 /* === ألوان محسنة عصرية (Modern Dark Theme) === */
        :root {
            --bg-main: #0B0F19;
            --bg-card: #151B2B;
            --surface-hover: #1E2638;
            --primary: #3B82F6;
            --primary-glow: rgba(59, 130, 246, 0.4);
            --accent: #06B6D4;
            --text-main: #F3F4F6;
            --text-muted: #9CA3AF;
            --border-color: #2A3241;
            --success: #10B981;
            --error: #ef4444;
            --radius: 16px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {

            font-family: 'Cairo', sans-serif;
            background-color: var(--bg-main);
            color: var(--text-main);
            min-height: 100vh;
            padding: 30px 20px;
            line-height: 1.7;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
        }

        /* === الهيدر === */
        .header {
            text-align: center;
            margin-bottom: 50px;
        }

        .header h1 {
            color: var(--text-main);
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 10px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .header h1 span {
            color: var(--accent);
        }

        .header p {
            color: var(--text-muted);
            font-size: 16px;
        }

        /* === أزرار التنقل الرئيسية (Tabs) === */
        .tabs-container {
            display: flex;
            gap: 15px;
            margin-bottom: 40px;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            background: rgba(21, 27, 43, 0.6);
            padding: 10px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
        }

        .flow-arrow {
            color: var(--accent);
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tab-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 14px 28px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 700;
            font-family: 'Cairo', sans-serif;
            transition: all 0.3s ease;
            flex: 1;
            min-width: 150px;
        }

        .tab-btn:hover:not(.disabled) {
            background: var(--surface-hover);
            color: var(--text-main);
        }

        .tab-btn.active {
            background: var(--primary);
            color: #ffffff;
            box-shadow: 0 8px 20px var(--primary-glow);
        }

        .tab-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* === المحتوى والبطاقات === */
        .section-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .section-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .step-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 30px;
            margin-bottom: 25px;
            display: flex;
            gap: 25px;
            transition: transform 0.3s ease, border-color 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .step-card:hover {
            transform: translateY(-3px);
            border-color: var(--primary);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        .step-card::before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(to bottom, var(--primary), var(--accent));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .step-card:hover::before {
            opacity: 1;
        }

        .step-number {
            background: linear-gradient(135deg, var(--primary), #2563EB);
            color: white;
            min-width: 45px;
            height: 45px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 800;
            flex-shrink: 0;
            box-shadow: 0 4px 15px var(--primary-glow);
        }

        .step-details {
            flex-grow: 1;
        }

        .step-details h3 {
            color: var(--text-main);
            margin-bottom: 12px;
            font-size: 22px;
        }

        .step-details p {
            color: var(--text-muted);
            margin-bottom: 20px;
            font-size: 15px;
        }

        .step-details ul {
            list-style-type: disc;
            margin-right: 20px;
            margin-bottom: 20px;
            color: var(--text-muted);
        }

        .step-details li {
            margin-bottom: 8px;
        }

        .step-image-container {
            border: 1px solid var(--border-color);
            padding: 5px;
            border-radius: 12px;
            background: #0B0F19;
            display: inline-block;
            max-width: 100%;
        }

        .step-img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            display: block;
        }

        .sub-box {
            background: rgba(0, 0, 0, 0.2);
            border: 1px dashed var(--accent);
            padding: 25px;
            border-radius: var(--radius);
            margin-top: 20px;
        }

        .external-link-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: red;
            color: #fff;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: bold;
            font-size: 16px;
            margin-bottom: 25px;
            box-shadow: 0 4px 15px var(--primary-glow);
            transition: transform 0.2s, background 0.3s;
        }

        .external-link-btn:hover {
            transform: translateY(-2px);
            background: #fc3939;
        }

        /* === رسالة التنبيه الهامة (مضافة للويندوز) === */
        .alert-box {
            background: rgba(239, 68, 68, 0.05);
            border: 1px solid rgba(239, 68, 68, 0.2);
            border-right: 4px solid var(--error);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 30px;
        }

        .alert-box h3 {
            color: var(--error);
            margin-bottom: 10px;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* أزرار خيارات التفعيل */
        .activation-options {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .act-option {
            flex: 1;
            min-width: 200px;
            max-width: 300px;
            text-align: center;
            padding: 15px 25px;
            border-radius: 12px;
            font-size: 18px;
            font-weight: bold;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid var(--border-color);
            background: var(--bg-card);
            color: var(--text-muted);
        }

        .act-option.active {
            border-color: var(--accent);
            color: var(--accent);
            background: rgba(6, 182, 212, 0.1);
        }

        .act-option:hover:not(.active) {
            border-color: var(--primary);
            color: var(--text-main);
            background: var(--surface-hover);
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .step-card {
                flex-direction: column;
                padding: 20px;
            }

            .tabs-container {
                flex-direction: column;
            }

            .flow-arrow {
                transform: rotate(-90deg);
                margin: 5px 0;
            }

            .tab-btn {
                width: 100%;
            }

            .activation-options {
                flex-direction: column;
                align-items: center;
            }

            .act-option {
                width: 100%;
            }
        }

        /* === تنسيقات القائمة المطوية (البحث عن التوكن) === */
        .guide-details {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 10px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }

       .guide-summary {
            font-size: 16px;
            font-weight: bold;
            color: red;
            cursor: pointer;
            padding: 10px;
            list-style: none;
            outline: none;
            display: flex;
            align-items: center;
            /* السطر الجديد لتشغيل النبض */
            animation: textPulse 1.5s infinite ease-in-out;
        }

        /* إيقاف النبض عندما يفتح المستخدم القائمة */
        .guide-details[open] .guide-summary {
            animation: none;
            color: var(--text-main); /* اختياري: تغيير لونه ليدل على أنه تم فتحه */
        }

        .guide-summary::before {
            content: '▼';
            font-size: 12px;
            margin-left: 10px;
            transition: transform 0.3s ease;
        }

        .guide-details[open] .guide-summary::before {
            transform: rotate(180deg);
        }

        /* كود حركة النبض (تكبير خفيف مع توهج) */
        @keyframes textPulse {
            0% {
                transform: scale(1);
                text-shadow: 0 0 0 rgba(255, 0, 0, 0);
            }
            50% {
                transform: scale(1.02); /* تكبير النص بنسبة بسيطة جداً */
                text-shadow: 0 0 8px rgba(255, 0, 0, 0.6); /* توهج أحمر */
            }
            100% {
                transform: scale(1);
                text-shadow: 0 0 0 rgba(255, 0, 0, 0);
            }
        }

        .guide-content {
            padding: 20px 10px 10px 10px;
            border-top: 1px solid var(--border-color);
            margin-top: 10px;
            animation: fadeIn 0.4s ease;
        }

        .inner-tabs-nav {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
        }

        .inner-tab-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-family: inherit;
            transition: all 0.3s ease;
        }

        .inner-tab-btn:hover {
            border-color: var(--primary);
            color: var(--text-main);
        }

        .inner-tab-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            box-shadow: 0 4px 15px var(--primary-glow);
        }

        .inner-tab-content {
            display: none;
            animation: fadeIn 0.4s ease-out;
        }

        .inner-tab-content.active {
            display: block;
        }

        .inner-step-card {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px dashed var(--border-color);
        }

        .inner-step-card:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .inner-step-number {
            background: var(--accent);
            color: #fff;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            flex-shrink: 0;
        }



















        /* حركة السهم الخاص بقائمة تحميل الأوفيس */
        details.office-guide-details>summary {
            list-style: none;
        }

        details.office-guide-details>summary::-webkit-details-marker {
            display: none;
        }

        details.office-guide-details[open] .office-arrow {
            transform: rotate(180deg);
        }




        .download-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 20px;
        }

        /* حالة الزر الافتراضية (أحمر وينبض) */
        .pro-download-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            flex: 1;
            min-width: 160px;
            padding: 12px 20px;
            border: 1.5px solid #ee4444;
            /* إطار أحمر */
            border-radius: 8px;
            color: #ffffff;
            /* نص أبيض دائمًا */
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            background: #ee4444;
            /* خلفية حمراء واضحة */
            transition: all 0.3s ease;

            /* تشغيل تأثير النبض بشكل دائم */
            animation: pulse 2s infinite;
        }

        .pro-download-btn svg {
            width: 20px;
            height: 20px;
            transition: transform 0.3s ease;
        }

        /* حالة الزر عند تمرير الماوس (Hover) */
        .pro-download-btn:hover {
            background: #d63d3d;
            /* لون أحمر أغمق قليلاً عند التمرير */
            border-color: #d63d3d;
            transform: translateY(-2px);
            /* ارتفاع الزر للأعلى قليلاً */
            box-shadow: 0 6px 12px rgba(238, 68, 68, 0.3);
            /* ظل ثابت تحت الزر */
            animation: none;
            /* إيقاف النبض عند التمرير ليعرف المستخدم أنه يتفاعل معه */
        }

        /* حركة الأيقونة للأسفل عند التمرير */
        .pro-download-btn:hover svg {
            transform: translateY(3px);
        }

        /* تأثير النبض (Pulse Animation) */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(238, 68, 68, 0.7);
                /* بداية النبض بظل قوي */
            }

            70% {
                box-shadow: 0 0 0 12px rgba(238, 68, 68, 0);
                /* اتساع الظل واختفاؤه تدريجياً */
            }

            100% {
                box-shadow: 0 0 0 0 rgba(238, 68, 68, 0);
                /* اختفاء الظل تماماً */
            }
        }

        /* تصميم بطاقة القائمة المنسدلة */
        .office-summary-card {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 15px 20px;
            background: var(--bg-card);
            /* يستخدم لون خلفية البطاقات في موقعك */
            border: 1px solid var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            list-style: none;
            /* لإخفاء السهم الافتراضي للمتصفح */
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        /* إخفاء السهم الافتراضي في متصفحات سفاري وكروم القديمة */
        .office-summary-card::-webkit-details-marker {
            display: none;
        }

        /* تأثير عند تمرير الماوس */
        .office-summary-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
            border-color: var(--primary);
            /* يحدد الإطار بلون موقعك الأساسي */
        }

        /* تنسيق الحاوية التي تضم الصورة والنص */
        .office-summary-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .office-summary-content img {
            width: 45px;
            height: 45px;
            object-fit: contain;
        }

        .office-summary-content span {
            font-size: 15px;
            font-weight: bold;
            color: var(--text-main);
        }

        /* حاوية بطاقات الأوفيس */
        .office-versions-grid {
            display: grid;
            /* عرض 4 بطاقات جنباً إلى جنب في الشاشات الكبيرة */
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            /* المسافة بين البطاقات */
            margin-bottom: 25px;
        }

        /* تعديل بسيط على تفاصيل القائمة لتعمل بشكل مثالي داخل الشبكة */
        .office-guide-details {
            width: 100%;
            margin-bottom: 0 !important;
            /* نلغي المارجن السفلي القديم لأن الشبكة (gap) تتكفل بالمسافات */
        }

        /* الشاشات المتوسطة (التابلت) - عرض بطاقتين في كل صف */
        @media (max-width: 992px) {
            .office-versions-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* الشاشات الصغيرة (الجوال) - عرض بطاقة واحدة (تحت بعض) */
        @media (max-width: 576px) {
            .office-versions-grid {
                grid-template-columns: 1fr;
            }
        }















        /* --- تنسيقات النوافذ المنبثقة (Popups) --- */
        .office-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .office-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .office-modal-content {
            background: var(--bg-main);
            /* --- التعديل هنا لتكبير الحجم --- */
            width: 90%;
            /* تأخذ 90% من عرض الشاشة (تنقص 10%) */
            max-width: none;
            /* إلغاء الحد الأقصى القديم لتتمدد النافذة */
            height: 90vh;
            /* تأخذ 90% من ارتفاع الشاشة (تنقص 10%) */
            /* --------------------------------- */
            border-radius: 16px;
            border: 1px solid var(--border-color);
            padding: 30px 20px;
            position: relative;
            overflow-y: auto;
            /* مهم جداً: لظهور شريط التمرير داخل النافذة إذا كان المحتوى طويلاً */
            transform: scale(0.8) translateY(30px);
            transition: all 0.3s ease;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .office-modal-overlay.active .office-modal-content {
            transform: scale(1) translateY(0);
        }

        .close-modal-btn {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(239, 68, 68, 0.1);
            color: var(--error);
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            font-size: 18px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 10;
        }

        .close-modal-btn:hover {
            background: var(--error);
            color: #fff;
            transform: rotate(90deg);
        }