/* ================= ملف style.css (النسخة المستقرة والمطورة لمشغل الصور) ================= */
:root {
    --bg-dark: #0d1124;                 /* خلفية سيبرانية شديدة القتامة */
    --primary-blue: #243d87;            /* الأزرق الداكن الملكي */
    --purple-deep: #624393;             /* البنفسجي السحري العميق */
    --neon-cyan: #6bc6e1;               /* السيان المضيء لخطوط النظام */
    --neon-pink: #e53c8d;               /* الماغنتا النيوني المشع للتفاعل الفاخر */
    --window-bg: rgba(13, 17, 36, 0.92); /* خلفية النوافذ مع شفافية زجاجية */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; /* تفعيل الماوس المخصص بالكامل */
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ================= اسم المجموعة المنساب في الزاوية العلوية الشمال ================= */
.os-header-title {
    position: absolute;
    top: 45px;
    left: 50px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    direction: rtl;
    pointer-events: none;
}

.os-header-title .title-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.os-header-title .title-divider {
    color: var(--neon-pink);
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 8px var(--neon-pink);
}

.os-header-title .title-en {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    color: var(--neon-cyan);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px var(--neon-cyan);
    direction: ltr;
}

/* ================= بيانات الكاميرا والـ OSD ================= */
.camera-telemetry-osd {
    position: absolute;
    bottom: 45px;
    left: 50px; 
    z-index: 5;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: rgba(107, 198, 225, 0.6); 
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px rgba(107, 198, 225, 0.25);
    direction: ltr; 
    text-align: left;
    pointer-events: none;
}

.osd-row { margin-bottom: 3px; }
.osd-blink {
    color: var(--neon-pink);
    margin-right: 5px;
    animation: cameraBlink 1s steps(2, start) infinite;
    text-shadow: 0 0 8px var(--neon-pink);
}
@keyframes cameraBlink { to { opacity: 0; } }

/* ================= تأثير الخلفية والفيديو ================= */
#bg-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
    opacity: 0.28;
    mix-blend-mode: screen; 
    pointer-events: none;
}

.desktop-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(98, 67, 147, 0.45) 0%, rgba(36, 61, 135, 0.6) 50%, var(--bg-dark) 100%);
    opacity: 0.95;
    z-index: -2;
}

.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.35;
}

/* ================= هندسة مصفوفة الأيقونات الأساسية ================= */
.desktop-screen {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%); 
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 65px; 
    z-index: 10;
}

.desktop-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto; /* العرض يتبع النص — فتصير المسافة بين النصوص موحدة */
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.desktop-folder:hover { transform: scale(1.08); }

.folder-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px; height: 85px;
    margin-bottom: 15px; 
}

.custom-logo-icon {
    width: 85px !important;
    height: 85px !important;
    display: block !important;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(107, 198, 225, 0.35));
    transition: filter 0.3s ease;
}
.desktop-folder:hover .custom-logo-icon { filter: drop-shadow(0 0 15px var(--neon-pink)); }

.folder-glow {
    position: absolute;
    width: 85px; height: 85px;
    background: radial-gradient(circle, rgba(107, 198, 225, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.folder-glow.pink-glow { background: radial-gradient(circle, rgba(229, 60, 141, 0.2) 0%, transparent 70%); }
.desktop-folder:hover .folder-glow { opacity: 1; }

.folder-name {
    font-family: 'Share Tech Mono', 'Cairo', monospace, sans-serif;
    font-size: 0.98rem; 
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
.desktop-folder:hover .folder-name {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(229, 60, 141, 0.85);
}

/* ================= هندسة النوافذ بحجم الشاشة للمشاريع ================= */
.window-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 620px; max-width: 92%;
    background: var(--window-bg);
    border: 1px solid rgba(107, 198, 225, 0.3);
    border-radius: 8px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
}
.window-wrapper.active { display: flex; opacity: 1; transform: translate(-50%, -50%) scale(1); }

.window-wrapper.large-project-window {
    width: 94vw !important;
    height: 88vh !important;
    max-width: 1600px;
    max-height: 900px;
}

.window-header {
    background: rgba(36, 61, 135, 0.35);
    padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(107, 198, 225, 0.2);
}

.window-title {
    font-size: 0.85rem; font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
    font-family: 'Share Tech Mono', 'Cairo', sans-serif;
}

.window-lang-toggle-btn {
    background: transparent; border: 1px solid var(--neon-cyan); color: var(--neon-cyan);
    font-family: 'Share Tech Mono', sans-serif; font-size: 0.75rem; font-weight: bold;
    padding: 3px 12px; border-radius: 4px; margin-left: auto; margin-right: 15px;
    transition: all 0.2s ease;
}
.window-lang-toggle-btn:hover { background: rgba(107, 198, 225, 0.15); box-shadow: 0 0 8px var(--neon-cyan); }

.window-controls { display: flex; align-items: center; }
.control-btn {
    background: rgba(229, 60, 141, 0.1); border: 1px solid var(--neon-pink); color: var(--neon-pink);
    width: 24px; height: 24px; border-radius: 4px; font-weight: bold; display: flex; align-items: center; justify-content: center;
}
.control-btn:hover { background: var(--neon-pink); color: #ffffff; box-shadow: 0 0 10px var(--neon-pink); }

.window-body { padding: 24px; max-height: 440px; overflow-y: auto; }
.window-body.project-body-layout { height: calc(100% - 50px); max-height: none !important; display: flex; flex-direction: column; }

/* ================= شبكة المجلدات الداخلية للمشاريع ================= */
.project-inner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.project-subfolder {
    background: rgba(36, 61, 135, 0.15);
    border: 1px solid rgba(107, 198, 225, 0.2);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.project-subfolder:hover {
    background: rgba(229, 60, 141, 0.1);
    border-color: var(--neon-pink);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 60, 141, 0.25);
}

.subfolder-icon { font-size: 3.2rem; margin-bottom: 12px; display: inline-block; filter: drop-shadow(0 0 8px var(--neon-cyan)); }
.subfolder-title { font-size: 0.95rem; font-weight: 600; color: #ffffff; line-height: 1.4; }
.subfolder-meta { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: rgba(107, 198, 225, 0.6); margin-top: 5px; display: block; }

.back-to-projects-btn {
    background: transparent; border: 1px solid var(--neon-cyan); color: var(--neon-cyan);
    padding: 6px 16px; border-radius: 4px; font-family: 'Cairo', sans-serif; font-size: 0.8rem; font-weight: bold; margin-bottom: 20px; align-self: flex-start; transition: all 0.2s ease;
}
.back-to-projects-btn:hover { background: rgba(107, 198, 225, 0.15); box-shadow: 0 0 10px var(--neon-cyan); }

.main-projects-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; width: 100%; }

/* ================= مشغل الفيديو المدمج والـ كلاسات اللغوية ================= */
.custom-video-container {
    margin-top: 22px;
    border: 1px solid rgba(107, 198, 225, 0.3);
    border-radius: 6px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(107, 198, 225, 0.1);
    transition: border-color 0.3s ease;
}
.custom-video-container:hover { border-color: var(--neon-pink); }

/* ================= 🌐 شبكة صور P857 والـ Lightbox ================= */
.p857-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed rgba(107, 198, 225, 0.2);
    width: 100%;
}

.p857-grid-item {
    display: flex;
    flex-direction: column;
    background: rgba(13, 17, 36, 0.6);
    border: 1px solid rgba(107, 198, 225, 0.22);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}
.p857-grid-item:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 18px rgba(229, 60, 141, 0.3);
    transform: translateY(-3px);
}

.p857-grid-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: brightness(0.88) saturate(0.9);
    transition: filter 0.3s ease;
}
.p857-grid-item:hover .p857-grid-thumb {
    filter: brightness(1) saturate(1.05);
}

.p857-grid-caption {
    padding: 8px 12px 10px;
    font-family: 'Share Tech Mono', 'Cairo', monospace;
    font-size: 0.72rem;
    color: rgba(107, 198, 225, 0.8);
    line-height: 1.45;
    direction: ltr;
    text-align: left;
    border-top: 1px solid rgba(107, 198, 225, 0.1);
    background: rgba(36, 61, 135, 0.12);
}

/* --- Lightbox --- */
.p857-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    gap: 0;
}
.p857-lightbox.active { display: flex; }

.p857-lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 88vw;
    max-height: 90vh;
}

.p857-lightbox-img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border: 1px solid rgba(107, 198, 225, 0.35);
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(107, 198, 225, 0.12);
    display: block;
}

.p857-lightbox-caption {
    margin-top: 14px;
    font-family: 'Share Tech Mono', 'Cairo', monospace;
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.85);
    text-align: center;
    direction: ltr;
    line-height: 1.5;
    max-width: 700px;
    padding: 0 12px;
    background: rgba(36, 61, 135, 0.18);
    border: 1px solid rgba(107, 198, 225, 0.15);
    border-radius: 4px;
    padding: 8px 16px;
}

.p857-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: transparent;
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    font-size: 1.6rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    cursor: none;
}
.p857-lightbox-close:hover {
    background: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 14px var(--neon-pink);
}

.p857-lightbox-nav {
    background: rgba(13, 17, 36, 0.75);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 2.2rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 18px;
    flex-shrink: 0;
    transition: all 0.22s ease;
    cursor: none;
    z-index: 10;
}
.p857-lightbox-nav:hover {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 16px var(--neon-pink);
}

/* بروتوكولات اللغات والنصوص ثابتة ومستقرة */
.bilingual-container { display: flex; flex-direction: column; gap: 12px; }
.manifesto-text { font-size: 0.95rem; line-height: 1.8; color: #cbd5e1; text-align: justify; }
.lang-block { display: none; }
.lang-block.active { display: block; }
.lang-block.ar { direction: rtl; text-align: right; font-family: 'Cairo', sans-serif; }
.lang-block.en { direction: ltr; text-align: left; font-family: 'Segoe UI', Tahoma, sans-serif; color: #cbd5e1; }

/* التنسيق لقسم الاتصال ثابت */
.contact-fixed-text { text-align: center; padding: 15px 0; }
.contact-fixed-text h2 { font-family: 'Share Tech Mono', monospace; color: #ffffff; font-size: 1.8rem; margin-bottom: 8px; }
.fixed-email-link { font-family: 'Share Tech Mono', monospace; color: var(--neon-cyan); font-size: 1.2rem; text-decoration: none; text-shadow: 0 0 8px var(--neon-cyan); }
.fixed-email-link:hover { color: var(--neon-pink); text-shadow: 0 0 12px var(--neon-pink); }
.social-networks-grid { display: flex; justify-content: center; margin-top: 15px; }
.social-card { display: flex; flex-direction: column; align-items: center; padding: 15px 30px; background: rgba(13, 17, 36, 0.6); border: 1px solid rgba(107, 198, 225, 0.15); border-radius: 6px; text-decoration: none; }
.social-card:hover { border-color: #e1306c; box-shadow: 0 0 15px rgba(225, 48, 108, 0.3); }
.social-icon { font-size: 1.8rem; margin-bottom: 6px; }
.social-label { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: #f1f5f9; }

/* المؤشر المخصص */
.custom-cursor, .custom-cursor-dot { position: fixed; pointer-events: none; transform: translate(-50%, -50%); border-radius: 50%; z-index: 100000; }
.custom-cursor { width: 22px; height: 22px; border: 1.5px solid var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.custom-cursor-dot { width: 5px; height: 5px; background-color: var(--neon-pink); box-shadow: 0 0 5px var(--neon-pink); }
.custom-cursor.hovering { width: 38px; height: 38px; background-color: rgba(229, 60, 141, 0.08); border-color: var(--neon-pink); box-shadow: 0 0 15px var(--neon-pink); }

.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
/* تنسيق الشبكة للمصغرات */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.gallery-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--neon-cyan);
    transition: 0.3s;
}
.gallery-thumbnail:hover { opacity: 0.7; }

/* النافذة العائمة للعرض الكبير */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 10000;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80%; border: 2px solid #fff; }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 30px; cursor: pointer; }
/* تنسيق الشبكة للمصغرات */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.gallery-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--neon-cyan);
    transition: transform 0.3s;
}
.gallery-thumbnail:hover { transform: scale(1.05); }

/* النافذة العائمة (Lightbox) */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; justify-content: center; align-items: center;
    z-index: 9999999;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 80%; border: 1px solid #fff; }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 40px; cursor: pointer; }
/* ================= 📖 قارئ الكتاب PDF — تصميم دفتر بصفحتين ================= */

/* النافذة الخاصة بالكتاب — تملأ معظم الشاشة */
.window-wrapper.pdf-book-window {
    width: 92vw !important;
    max-width: 1300px !important;
    height: 92vh !important;
    max-height: 980px !important;
}
.pdf-book-window .window-body {
    max-height: calc(92vh - 50px) !important;
    height: auto !important;
    overflow-y: auto;
    padding: 16px 20px;
}

/* الـ viewer كله */
.pdf-book-viewer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(107, 198, 225, 0.2);
    width: 100%;
    gap: 14px;
}

/* شريط التنقل */
.pdf-book-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    direction: rtl;
    padding: 6px 0;
}
.pdf-book-counter {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.65);
    min-width: 100px;
    text-align: center;
    letter-spacing: 0.5px;
}
.pdf-book-nav {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Cairo', 'Share Tech Mono', sans-serif;
    font-size: 0.78rem;
    font-weight: bold;
    padding: 5px 18px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: none;
    letter-spacing: 0.3px;
}
.pdf-book-nav:hover:not(:disabled) {
    background: rgba(107, 198, 225, 0.12);
    box-shadow: 0 0 10px var(--neon-cyan);
    color: #fff;
}
.pdf-book-nav:disabled { opacity: 0.2; cursor: not-allowed; }

/* الكتاب المفتوح — صفحتان جنب بعض */
.pdf-book-spread {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    background: #1a1a1a;
    border-radius: 6px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.9),
        0  4px 20px rgba(0,0,0,0.7),
        inset 0 0 40px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

/* كل صفحة */
.pdf-page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f4f0e8;
    padding: 8px;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

/* ظل داخلي — يمين يأخذ ظل على اليسار، يسار على اليمين */
.pdf-page-right {
    border-left: none;
    box-shadow: inset -8px 0 20px rgba(0,0,0,0.18);
}
.pdf-page-left {
    border-right: none;
    box-shadow: inset  8px 0 20px rgba(0,0,0,0.18);
}

/* خط العمود (الوسط) */
.pdf-book-spine {
    width: 6px;
    flex-shrink: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.35) 0%,
        rgba(80,60,40,0.6) 30%,
        rgba(60,45,30,0.7) 50%,
        rgba(80,60,40,0.6) 70%,
        rgba(0,0,0,0.35) 100%
    );
    box-shadow:
        -2px 0 8px rgba(0,0,0,0.4),
         2px 0 8px rgba(0,0,0,0.4);
}

/* الـ canvas داخل كل صفحة */
.pdf-book-canvas {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.25s ease;
    background: transparent;
    border-radius: 1px;
}

.pdf-blank-page {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #f4f0e8;
}

/* شاشة التحميل — تعلو فوق الكتاب */
.pdf-book-loading {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(13, 17, 36, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10;
    border-radius: 6px;
}
.pdf-book-loading span {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    animation: pdfPulse 1.4s ease-in-out infinite;
}
@keyframes pdfPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}


/* ============================================
   MOBILE — no scroll, everything fits screen
   ============================================ */
@media (max-width: 768px) {

    html, body {
        overflow: hidden !important;
        height: 100dvh !important;
        width: 100vw !important;
        position: fixed !important;
    }

    /* فيديو الخلفية يغطي كاملاً portrait */
    #bg-video {
        position: fixed !important;
        inset: 0 !important;
        transform: none !important; /* إلغاء إزاحة الديسكتوب translate(-50%,-50%) */
        min-width: 0 !important;
        min-height: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .desktop-background {
        position: fixed !important;
        inset: 0 !important;
    }

    /* Header */
    .os-header-title {
        font-size: 0.58rem !important;
        padding: 4px 8px !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        white-space: nowrap !important;
    }


    /* OSD */
    .camera-telemetry-osd {
        font-size: 0.45rem !important;
        bottom: auto !important;
        top: 10px !important;
        left: 10px !important;
        line-height: 1.6 !important;
    }

    /* إخفاء copyright */
    .center-bottom-copyrights {
        display: none !important;
    }

    /* الحاوية الرئيسية للأيقونات */
    .desktop-screen {
        position: fixed !important;
        inset: 0 !important;
        transform: none !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 60px 0 20px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* كل أيقونة — بطاقة أفقية */
    .desktop-folder {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: min(82vw, 300px) !important;
        gap: 12px !important;
        background: rgba(0,0,0,0.50) !important;
        border: 1px solid rgba(229,60,141,0.30) !important;
        border-radius: 10px !important;
        padding: 9px 14px !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        text-align: left !important;
        direction: ltr !important;
    }

    .folder-icon-wrapper {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }

    .folder-glow,
    .folder-glow.pink-glow {
        width: 42px !important;
        height: 42px !important;
        position: absolute !important;
        inset: 0 !important;
    }

    .custom-logo-icon {
        width: 42px !important;
        height: 42px !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .folder-name {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        direction: rtl !important;
        text-align: right !important;
        flex: 1 !important;
        color: #fff !important;
    }

    /* Windows — ملء الشاشة */
    .window-wrapper,
    .window-wrapper.gallery-window-style {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        transform: none !important;
        border-radius: 0 !important;
        z-index: 200 !important;
        top: 0 !important;
        left: 0 !important;
    }

    .window-body {
        height: calc(100dvh - 44px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* PDF — صفحة واحدة */
    .pdf-page-wrapper:first-child { display: none !important; }
    .pdf-book-spread { flex-direction: column !important; }

    /* Grids — عمود واحد */
    .yt-grid,
    .p857-image-grid { grid-template-columns: 1fr !important; }

    .scanlines { opacity: 0.25 !important; }
}