/* ═══════════════════════════════════════════════════════════
   eJOB قطر — CSS محسَّن v3 (مع حل جذري لمشكلة الهيدر + تكبير الشعار)
   ═══════════════════════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
        --pri: #FF7F38; --pri-dark: #e06a2a; --sec: #00426D; --sec-light: #005a96;
        --primary: #FF7F38; --primary-dark: #e06a2a; --secondary: #00426D;
        --success: #10b981; --danger: #dc2626; --warning: #f59e0b; --info: #3b82f6; --purple: #8b5cf6;
        --male-bg: #EBF4FF; --male-border: #378ADD; --male-text: #0C447C; --male-badge: #B5D4F4;
        --female-bg: #FBEAF0; --female-border: #D4537E; --female-text: #72243E; --female-badge: #F4C0D1;
        --any-bg: #F1EFE8; --any-border: #888780; --any-text: #444441;
        --bg: #f4f6f9; --white: #fff; --card-bg: #ffffff; --secondary-bg: #f1f5f9;
        --gray: #64748b; --border: #e2e8f0; --light: #f8fafc; --text: #1e293b; --text-main: #1e293b;
        --shadow: 0 4px 16px rgba(0,0,0,0.09); --shadow-sm: 0 2px 8px rgba(0,0,0,0.06); --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    }

    body.dark {
        --bg: #152637; --white: #1a3448; --card-bg: #1a3448; --secondary-bg: #254d68;
        --bg-card: #1a3448; --bg-card-alt: #254d68; --border: #2d5f7d; --border-color: #2d5f7d;
        --text: #f0f4f8; --text-main: #f0f4f8; --gray: #a8bccf; --light: #1a3448;
        --male-bg: #163050; --female-bg: #3a1428; --any-bg: #252520;
    }
    body.dark .badge-sal { background: #2a1a10; color: #ff9a6c; }
    body.dark .badge-loc { background: #0f2a10; color: #6dd17a; }
    body.dark .badge-type { background: #0f1e40; color: #7db3f0; }
    body.dark .side-menu { background: #0f2a3e; }
    body.dark .menu-item:hover, body.dark .panel-item:hover { background: #1e3a4d; }
    body.dark .menu-overlay { background: rgba(0,0,0,0.7); }
    body.dark .modal-content, body.dark .stat-card, body.dark .plan-card,
    body.dark .advanced-filters, body.dark .detail-card { background: #0f2a3e; border-color: #1e3a4d; color: var(--text); }
    body.dark .cv-preview { background: #112236; }
    body.dark .post-type-tab, body.dark .filter-badge, body.dark .type-btn { background: #112236; color: #e2e8f0; }
    body.dark .job-title, body.dark .job-company, body.dark .sec-label, body.dark .jobs-title,
    body.dark .cat-chip-name, body.dark .category-card h3, body.dark .menu-item,
    body.dark .form-group label, body.dark .filter-title, body.dark .page-head h1,
    body.dark .page-head h2, body.dark .profile-header-card h3, body.dark .stat-number { color: #f1f5f9; }
    body.dark .job-description, body.dark .job-footer small, body.dark .jobs-count { color: #94a3b8; }
    body.dark .job-card.gender-male .job-footer small, body.dark .job-card.gender-male .job-title { color: #a8d4f8; }
    body.dark .job-card.gender-male .job-footer small i { color: #7db3f0; }
    body.dark .job-card.gender-female .job-footer small, body.dark .job-card.gender-female .job-title { color: #f4b8d0; }
    body.dark .job-card.gender-female .job-footer small i { color: #e882aa; }

    /* ============================================================
       الحل الجذري لمشكلة الهيدر - تثبيت الهيكل بالكامل
    ============================================================ */
    
    /* تثبيت الصفحة بالكامل */
    html, body {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        font-family: 'Cairo', 'Segoe UI', sans-serif;
        background: #2b3a47;
        color: var(--text);
        -webkit-font-smoothing: antialiased;
    }

    /* حاوية الهاتف - تأخذ كامل الشاشة */
    .phone-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        background: var(--bg);
    }

    /* الـ phone - يملأ كامل الحاوية */
    .phone {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        background: linear-gradient(180deg, #f4f6f9 0%, #e9edf3 100%);
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        clip-path: none !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        overscroll-behavior: none !important;
    }
    body.dark .phone { background: linear-gradient(165deg, #0a1929 0%, #0d2340 50%, #1a3a5c 100%); }

    /* الهيدر - ثابت في الأعلى ولن يختفي أبداً */
    .header {
        background: var(--sec) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 8px 16px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        flex-shrink: 0 !important;
        border-bottom: 0.5px solid rgba(255,255,255,0.08);
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }
    body.dark .header { background: #041828 !important; }

    /* المحتوى - قابل للتمرير */
    .body {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 14px 14px 24px !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
        position: relative !important;
    }
    .body::-webkit-scrollbar { display: none; }

    /* إخفاء العناصر الزائفة التي كانت تسبب المشكلة */
    .phone::before, .phone::after { display: none !important; }

    /* باقي التنسيقات كما هي دون تغيير */
    .header-right { display: flex; align-items: center; gap: 10px; }
    .header-left  { display: flex; align-items: center; gap: 6px; }

    .menu-btn {
        background: rgba(255,255,255,0.12);
        border: 0.5px solid rgba(255,255,255,0.18);
        color: #fff;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .2s ease;
    }
    .menu-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
    .menu-btn:active { transform: scale(0.95); }
    .logo { display: flex; align-items: center; gap: 4px; cursor: pointer; }
    
    /* ========== تكبير الشعار فقط ========== */
    .logo img { 
        height: 130px !important; 
        max-height: 130px !important; 
        border-radius: 0; 
        object-fit: contain; 
    }

    .icon-btn {
        background: rgba(255,255,255,0.12);
        border: 0.5px solid rgba(255,255,255,0.18);
        color: #fff;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: all .2s ease;
    }
    .icon-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
    .icon-btn:active { transform: scale(0.95); }

    .notify-badge {
        position: absolute;
        top: -4px;
        left: -4px;
        background: var(--pri);
        color: #fff;
        border-radius: 50%;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 1.5px solid var(--sec);
    }

    .dropdown-language, .notify-dropdown { position: relative; display: inline-block; }
    .language-dropdown { display: none; position: absolute; top: 100%; inset-inline-end: 0; background: var(--white); min-width: 150px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 1000; margin-top: 6px; overflow: hidden; }
    .language-dropdown a { display: flex; align-items: center; gap: 10px; padding: 11px 15px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); transition: background .2s; font-size: 13px; }
    .language-dropdown a:hover { background: var(--secondary-bg); }
    .notify-dropdown-content { display: none; position: absolute; top: 100%; inset-inline-end: 0; background: var(--white); width: 300px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 1000; max-height: 380px; overflow-y: auto; margin-top: 6px; }

    .page { display: none; animation: fadeIn .3s ease; }
    .page.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    .search-box {
        display: flex;
        align-items: center;
        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 0.5px solid rgba(0,0,0,0.08);
        border-radius: 16px;
        padding: 11px 16px;
        gap: 10px;
        margin-bottom: 13px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        transition: all .2s ease;
    }
    body.dark .search-box { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
    .search-box:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(255,127,56,0.15), 0 4px 12px rgba(0,0,0,0.06); }
    .search-box i.search-icon { color: var(--pri); font-size: 15px; flex-shrink: 0; }
    .search-box input { border: none; outline: none; flex: 1; font-size: 13.5px; font-family: inherit; background: transparent; color: var(--text); }
    .search-box input::placeholder { color: var(--gray); }
    body.dark .search-box input { color: #f1f5f9; }
    body.dark .search-box input::placeholder { color: rgba(255,255,255,0.5); }
    .search-clear-btn { background: none; border: none; color: var(--gray); font-size: 14px; cursor: pointer; padding: 0; transition: color .2s; }
    .search-clear-btn:hover { color: var(--pri); }

    .sec-label { font-size: 14px; font-weight: 700; color: var(--sec); margin: 6px 0 10px; display: flex; align-items: center; gap: 6px; }
    body.dark .sec-label { color: var(--text); }
    .sec-label i { color: var(--pri); }
    .show-all-btn { font-size: 11.5px; font-weight: 700; color: var(--pri); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: opacity .2s; }
    .show-all-btn:hover { opacity: .7; }

    .cats-scroll { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
    .cats-scroll:active { cursor: grabbing; }
    .cats-scroll::-webkit-scrollbar { display: none; }
    .cat-chip {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 78px;
        max-width: 78px;
        background: rgba(255,255,255,0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 16px;
        border: 0.5px solid rgba(0,0,0,0.06);
        padding: 12px 6px 10px;
        cursor: pointer;
        transition: all .25s cubic-bezier(.2,.8,.2,1);
        flex-shrink: 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    body.dark .cat-chip { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.1) !important; }
    .cat-chip:hover { border-color: rgba(255,127,56,0.3); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
    body.dark .cat-chip:hover { background: rgba(255,255,255,0.09) !important; border-color: rgba(255,127,56,0.4) !important; }
    .cat-chip.active { border-color: var(--pri); background: linear-gradient(135deg, rgba(255,127,56,0.12), rgba(255,127,56,0.04)); box-shadow: 0 4px 12px rgba(255,127,56,0.15); }
    body.dark .cat-chip.active { background: linear-gradient(135deg, rgba(255,127,56,0.2), rgba(255,127,56,0.08)) !important; border-color: rgba(255,127,56,0.5) !important; }
    .cat-chip.active .cat-chip-name { color: var(--pri); }
    .cat-chip-icon { font-size: 22px; line-height: 1; margin-bottom: 6px; color: var(--sec); }
    body.dark .cat-chip-icon { color: var(--text); }
    .cat-chip.active .cat-chip-icon { color: var(--pri); }
    .cat-chip-name { font-size: 10.5px; font-weight: 700; color: var(--text); white-space: nowrap; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }

    .categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 11px; margin: 6px 0 18px; }
    .category-card { background: var(--white); border-radius: 16px; padding: 16px 8px; text-align: center; cursor: pointer; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s; }
    .category-card:hover { transform: translateY(-3px); border-color: var(--pri); }
    .category-card i { font-size: 28px; color: var(--pri); margin-bottom: 8px; display: block; }
    .category-card h3 { font-size: 11.5px; font-weight: 700; color: var(--text); }

    .mode-toggle {
        display: flex;
        background: rgba(255,255,255,0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 26px;
        border: 0.5px solid rgba(0,0,0,0.06);
        padding: 4px;
        gap: 3px;
        margin-bottom: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    body.dark .mode-toggle { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.1) !important; }
    .mode-btn { flex: 1; padding: 10px 6px; border-radius: 22px; border: none; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--gray); background: transparent; transition: all .25s ease; display: flex; align-items: center; justify-content: center; gap: 6px; }
    .mode-btn:active { transform: scale(0.97); }
    .mode-btn.active-company { background: linear-gradient(135deg, var(--sec) 0%, #005a96 100%); color: #fff; box-shadow: 0 4px 12px rgba(0,66,109,.35); }
    .mode-btn.active-seeker  { background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%); color: #fff; box-shadow: 0 4px 12px rgba(124,58,237,.35); }

    .types-scroll { display: flex; overflow-x: auto; gap: 8px; padding: 4px 0; white-space: nowrap; scrollbar-width: none; }
    .types-scroll::-webkit-scrollbar { display: none; }
    .type-btn { padding: 7px 15px; background: var(--secondary-bg); border-radius: 30px; font-size: 13px; color: var(--text); white-space: nowrap; cursor: pointer; transition: all .2s; border: none; font-family: inherit; }
    .type-btn.active { background: var(--pri); color: #fff; }

    .advanced-filters { background: var(--white); border-radius: 14px; padding: 13px; margin: 9px 0; border: 1.5px solid var(--border); }
    .filter-title { font-weight: 700; margin-bottom: 9px; font-size: 13px; color: var(--sec); display: flex; align-items: center; gap: 6px; }
    body.dark .filter-title { color: var(--text); }
    .filter-badge { padding: 6px 14px; border-radius: 30px; border: 1.5px solid var(--border); background: var(--white); cursor: pointer; transition: all .2s; font-size: 13px; font-family: 'Cairo', sans-serif; color: var(--text); }
    .filter-badge.active { background: var(--pri); color: #fff; border-color: var(--pri); }

    .post-type-tabs { display: flex; gap: 9px; margin: 13px 0 6px; }
    .post-type-tab { flex: 1; padding: 11px 8px; border: 2px solid var(--border); border-radius: 14px; background: var(--white); cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700; transition: all .2s; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 7px; }
    .post-type-tab.active { border-color: var(--sec); background: var(--sec); color: #fff; }
    .post-type-tab.active-seeker { border-color: var(--purple); background: var(--purple); color: #fff; }

    .jobs-header { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
    .jobs-title { font-size: 14px; font-weight: 700; color: var(--sec); display: flex; align-items: center; gap: 6px; }
    body.dark .jobs-title { color: var(--text); }
    .jobs-title i { color: var(--pri); }
    .jobs-count { font-size: 11.5px; color: var(--gray); font-weight: 600; }

    .legend { display: flex; gap: 12px; margin-bottom: 11px; flex-wrap: wrap; }
    .legend-item { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; }
    .legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
    .ld-male { background: var(--male-border); } .ld-female { background: var(--female-border); } .ld-any { background: var(--any-border); }

    .jobs-container { display: flex; flex-direction: column; gap: 10px; }

    .job-card {
        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-radius: 20px;
        padding: 20px;
        border: 0.5px solid rgba(0,0,0,0.06);
        cursor: pointer;
        transition: all .25s cubic-bezier(.2,.8,.2,1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    }
    .job-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
    body.dark .job-card { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.1) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.15); }
    body.dark .job-card:hover { background: rgba(255,255,255,0.09) !important; border-color: rgba(255,255,255,0.18) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2); }

    .job-card::before { content: ''; position: absolute; top: 20px; bottom: 20px; inset-inline-end: 0; width: 4px; background: transparent; border-radius: 4px 0 0 4px; transition: background .2s ease; }
    .job-card.gender-male::before   { background: linear-gradient(180deg, #3b82f6, #1e6fb8); }
    .job-card.gender-female::before { background: linear-gradient(180deg, #ec4899, #d4537e); }
    .job-card.gender-male   { background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, rgba(255,255,255,0.7) 50%); }
    .job-card.gender-female { background: linear-gradient(135deg, rgba(236,72,153,0.04) 0%, rgba(255,255,255,0.7) 50%); }
    body.dark .job-card.gender-male   { background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(255,255,255,0.06) 50%) !important; }
    body.dark .job-card.gender-female { background: linear-gradient(135deg, rgba(236,72,153,0.08) 0%, rgba(255,255,255,0.06) 50%) !important; }

    .job-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
    .job-avatar { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
    .job-title { font-weight: 800; font-size: 19px; color: #1e293b; line-height: 1.4; letter-spacing: -0.01em; }
    body.dark .job-title { color: #ffffff !important; }
    .job-company { font-size: 15px; color: #475569; margin-top: 5px; font-weight: 700; }
    body.dark .job-company { color: #cbd5e1 !important; }
    .job-description { font-size: 15.5px; color: #334155; font-weight: 600; line-height: 1.7; margin: 14px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    body.dark .job-description { color: #e2e8f0 !important; }
    .job-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; flex-wrap: wrap; gap: 12px; padding-top: 12px; border-top: 0.5px solid rgba(0,0,0,0.08); }
    body.dark .job-footer { border-top-color: rgba(255,255,255,0.1); }
    .job-footer small { font-size: 14.5px; color: #1e293b; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
    body.dark .job-footer small { color: #ffffff !important; }
    .job-footer small i { color: var(--pri); font-size: 14px; }
    body.dark .job-card.gender-male .job-title { color: #93c5fd; }
    body.dark .job-card.gender-female .job-title { color: #fbcfe8; }

    .btn-apply { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; padding: 11px 22px; border-radius: 30px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .25s ease; font-family: 'Cairo', sans-serif; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; box-shadow: 0 4px 12px rgba(16,185,129,0.25); }
    .btn-apply:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,185,129,0.4); }
    .btn-apply:active { transform: translateY(0) scale(0.97); }
    .btn-apply-login { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border: none; padding: 11px 20px; border-radius: 30px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .25s ease; font-family: 'Cairo', sans-serif; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 4px 12px rgba(59,130,246,0.25); }
    .btn-apply-login:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(59,130,246,0.4); }
    .card-apply-row { padding-top: 14px; border-top: 0.5px solid rgba(0,0,0,0.08); margin-top: 14px; display: flex; justify-content: flex-end; }
    body.dark .card-apply-row { border-top-color: rgba(255,255,255,0.08); }

    .banner-slider { border-radius: 16px; overflow: hidden; margin: 12px 0; position: relative; background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .banner-slide { display: none; position: relative; line-height: 0; }
    .banner-slide.active { display: block; }
    .banner-slide img { width: 100%; height: auto; min-height: 100px; max-height: 200px; object-fit: cover; object-position: center; border-radius: 16px; display: block; margin: 0; padding: 0; }
    .banner-slide a { display: block; position: relative; }
    .banner-slide-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 20px 14px 10px; border-radius: 0 0 18px 18px; font-weight: 700; font-size: 13px; }
    .banner-dots { display: flex !important; justify-content: center; gap: 6px; padding: 8px 0 4px; position: relative; z-index: 5; }
    .banner-dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(128,128,128,0.3); cursor: pointer; transition: all .3s ease; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--gray); }
    .banner-dot.active { background: var(--pri); width: 36px; border-radius: 14px; color: #fff; transform: scale(1.1); }
    .banner-middle { margin: 12px 0; }

    .bottom-nav { display: none !important; }
    .body { padding-bottom: 24px; }

    .nav-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: transparent; border: none; cursor: pointer; padding: 8px 14px; font-family: inherit; border-radius: 14px; transition: all .25s ease; flex: 1; }
    .nav-btn:hover { background: rgba(0,0,0,0.04); }
    .nav-btn:active { transform: scale(0.95); }
    .nav-btn i { font-size: 19px; color: #94a3b8; transition: color .2s; }
    .nav-btn span { font-size: 10px; color: #94a3b8; font-weight: 600; transition: color .2s; }
    body.dark .nav-btn i, body.dark .nav-btn span { color: rgba(255,255,255,0.55); }
    .nav-btn.active { background: transparent; }
    .nav-btn.active i, .nav-btn.active span { color: var(--pri) !important; }
    body.dark .nav-btn.active { background: transparent !important; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
    body.dark .nav-btn.active i, body.dark .nav-btn.active span { color: #FF7F38 !important; }
    .nav-btn.add-btn { background: linear-gradient(135deg, #FF7F38 0%, #ff5e1f 100%); border-radius: 50%; width: 56px; height: 56px; padding: 0; margin-top: -28px; flex: 0 0 auto; box-shadow: 0 8px 24px rgba(255,127,56,0.45), 0 0 0 4px rgba(255,127,56,0.12); transition: all .25s ease; display: flex !important; align-items: center; justify-content: center; position: relative; z-index: 10; }
    .nav-btn.add-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,127,56,0.55), 0 0 0 4px rgba(255,127,56,0.18); }
    .nav-btn.add-btn i { font-size: 24px; color: #fff !important; margin: 0; }
    .nav-btn.add-btn span { display: none !important; }

    .menu-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 199; display: none; transition: opacity .3s ease; }
    .menu-overlay.active { display: block; }
    body.dark .menu-overlay { background: rgba(0,0,0,0.7); }

    .side-menu { position: absolute; top: 0; inset-inline-end: -100%; width: 84%; height: 100%; background: rgba(255,255,255,0.85); backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%); z-index: 9999; transition: inset-inline-end .35s cubic-bezier(.2,.8,.2,1); box-shadow: -12px 0 48px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden; border-inline-start: 0.5px solid rgba(255,255,255,0.18); }
    .side-menu.open { inset-inline-end: 0; }
    body.dark .side-menu { background: rgba(15,30,50,0.92) !important; border-inline-start-color: rgba(255,255,255,0.08); }

    .menu-header { background: linear-gradient(135deg, rgba(0,66,109,0.95) 0%, rgba(0,90,150,0.95) 100%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 26px 18px 22px; color: #fff; position: relative; border-bottom: 0.5px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; text-align: center; }
    body.dark .menu-header { background: linear-gradient(135deg, rgba(10,25,41,0.95) 0%, rgba(15,40,70,0.95) 100%); }
    .menu-avatar { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.18); border: 0.5px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
    .menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .menu-header h4 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
    .menu-header p  { font-size: 11.5px; opacity: .75; margin-top: 3px; }
    .menu-close { position: absolute; top: 16px; inset-inline-start: 16px; background: rgba(0,0,0,.4); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s ease; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
    .menu-close:hover { background: rgba(255,255,255,.25); transform: scale(1.05); }
    .menu-close:active { transform: scale(0.95); }

    .menu-items-scroll { flex: 1; overflow-y: auto; padding: 12px 8px; }
    .menu-item { padding: 12px 14px; margin: 2px 4px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .2s ease; background: transparent; border: none; width: calc(100% - 8px); font-family: inherit; text-align: start; border-radius: 12px; }
    .menu-item:hover { background: rgba(0,0,0,0.04); transform: translateX(-2px); }
    [dir="rtl"] .menu-item:hover { transform: translateX(2px); }
    body.dark .menu-item:hover { background: rgba(255,255,255,0.06); }
    .menu-item:active { transform: scale(0.98); }
    .menu-item > i { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; background: rgba(255,127,56,0.1); color: var(--pri); transition: all .2s ease; }
    body.dark .menu-item > i { background: rgba(255,127,56,0.15); }
    .menu-item:hover > i { background: rgba(255,127,56,0.18); transform: scale(1.08); }

    .add-ad-form { background: rgba(255,255,255,0.7); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-radius: 20px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04); border: 0.5px solid rgba(0,0,0,0.06); margin: 14px 0; }
    body.dark .add-ad-form { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 13px; color: var(--sec); letter-spacing: -0.01em; }
    body.dark .form-group label { color: #f1f5f9; }
    .form-group input, .form-group select, .form-group textarea, .form-control { width: 100%; padding: 12px 16px; border: 0.5px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.6); border-radius: 14px; font-size: 13.5px; font-family: inherit; color: var(--text); transition: all .2s ease; box-sizing: border-box; }
    body.dark .form-group input, body.dark .form-group select, body.dark .form-group textarea, body.dark .form-control { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.12) !important; color: #f1f5f9 !important; }
    body.dark .form-group select option, body.dark .form-control option, body.dark select option { background: #0f2a3e !important; color: #f1f5f9 !important; }
    body.dark .form-group select option:checked, body.dark .form-control option:checked, body.dark select option:checked { background: #1e3a4d !important; color: #ffffff !important; }
    body.dark .form-group select optgroup, body.dark .form-control optgroup, body.dark select optgroup { background: #0f2a3e !important; color: #94a3b8 !important; font-weight: 700; }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus, .form-control:focus { outline: none; border-color: var(--pri); background: rgba(255,255,255,0.85); box-shadow: 0 0 0 3px rgba(255,127,56,0.12); }
    body.dark .form-group input:focus, body.dark .form-group select:focus, body.dark .form-group textarea:focus, body.dark .form-control:focus { background: rgba(255,255,255,0.1) !important; box-shadow: 0 0 0 3px rgba(255,127,56,0.2); }
    .form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray); opacity: 0.7; }
    body.dark .form-group input::placeholder, body.dark .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
    .btn-primary { background: linear-gradient(135deg, var(--pri) 0%, #ff5e1f 100%); color: #fff; border: none; padding: 12px 24px; border-radius: 14px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all .25s ease; box-shadow: 0 4px 12px rgba(255,127,56,0.3); width: 100%; }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,127,56,0.45); }
    .btn-primary:active { transform: translateY(0) scale(0.98); }
    .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .form-row { display: flex; gap: 10px; }
    .form-row .form-group { flex: 1; }
    .btn-sm { font-size: 12px; padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: all .2s; }
    .image-upload-area { border: 2px dashed rgba(0,0,0,0.15); border-radius: 16px; padding: 22px 18px; text-align: center; cursor: pointer; transition: all .25s ease; margin-bottom: 10px; color: var(--gray); font-size: 13px; background: rgba(255,255,255,0.4); }
    body.dark .image-upload-area { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
    .image-upload-area:hover { border-color: var(--pri); background: rgba(255,127,56,0.06); transform: translateY(-1px); }
    .image-upload-area i { color: var(--pri); margin-inline-end: 6px; }

    .profile-header-card { position: relative; border-radius: 20px; padding: 0; text-align: center; margin: 14px 0; border: 0.5px solid rgba(0,0,0,0.06); box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04); overflow: hidden; min-height: 180px; background: linear-gradient(135deg, #00426D 0%, #005a96 40%, #FF7F38 100%); }
    .profile-header-card .phc-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; cursor: pointer; transition: transform .3s ease; }
    .profile-header-card .phc-bg-img:hover { transform: scale(1.03); }
    .profile-header-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,66,109,0.35) 0%, rgba(0,66,109,0.55) 50%, rgba(0,30,60,0.85) 100%); z-index: 1; pointer-events: none; }
    .profile-header-card .phc-content { position: relative; z-index: 2; padding: 24px 24px 20px; color: #fff; }
    .profile-header-card .phc-content h3 { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
    .profile-header-card .phc-content p  { color: rgba(255,255,255,0.88) !important; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
    body.dark .profile-header-card { border-color: rgba(255,255,255,0.1) !important; }
    .profile-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid rgba(255,255,255,0.8); box-shadow: 0 4px 16px rgba(0,0,0,0.3); cursor: pointer; transition: transform .2s; position: relative; z-index: 3; }
    .profile-avatar:hover { transform: scale(1.08); }
    .profile-header-card h3 { font-size: 17px; margin-bottom: 4px; }
    .profile-header-card p { font-size: 12.5px; margin: 2px 0; }
    .profile-stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
    .stat-card { flex: 1; background: var(--white); padding: 14px; border-radius: 16px; text-align: center; min-width: 90px; border: 1.5px solid var(--border); }
    .stat-number { font-size: 22px; font-weight: 800; color: var(--pri); }
    .stat-card > div:last-child { font-size: 11.5px; color: var(--gray); margin-top: 2px; }

    .plans-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0; }
    .plan-card { background: var(--white); border-radius: 18px; padding: 18px; text-align: center; border: 2px solid var(--border); cursor: pointer; transition: all .2s; }
    .plan-card:hover { border-color: var(--pri); transform: translateY(-3px); }

    .modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
    .modal-overlay.active { display: flex; }
    .modal-content { background: var(--white); border-radius: 22px; padding: 22px; max-width: 100%; width: 100%; text-align: center; max-height: 85dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .modal-content h3 { font-size: 17px; margin-bottom: 8px; }
    .modal-content p { font-size: 13.5px; color: var(--gray); }
    .modal-buttons { display: flex; gap: 10px; margin-top: 18px; }
    .modal-buttons button { flex: 1; padding: 12px; border: none; border-radius: 12px; cursor: pointer; font-weight: 700; font-family: inherit; }
    .modal-confirm { background: var(--pri); color: #fff; }
    .modal-cancel { background: var(--border); color: var(--gray); }

    .loading-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.75); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity .3s ease; }
    body.dark .loading-overlay { background: rgba(11,30,46,.8); }
    .loading-overlay.hide { opacity: 0; visibility: hidden; display: none; }
    .loader { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--pri); border-radius: 50%; animation: spin 1s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes lightboxZoom { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

    .toast-container { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 99999; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
    @media (min-width: 1024px) { .toast-container { top: 80px; bottom: auto; flex-direction: column; } }
    .toast-message { background: rgba(255,255,255,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 0.5px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.08); opacity: 0; transform: translateY(20px) scale(0.96); transition: opacity .35s cubic-bezier(.2,.8,.2,1), transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: auto; width: 100%; box-sizing: border-box; }
    @media (min-width: 1024px) { .toast-message { transform: translateY(-20px) scale(0.96); } }
    .toast-message.show { opacity: 1; transform: translateY(0) scale(1); }
    body.dark .toast-message { background: rgba(15,30,50,0.97); border-color: rgba(255,255,255,0.12); color: #fff; }
    .toast-icon-wrap { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
    .toast-icon-wrap.success { background: rgba(16,185,129,0.12); color: #059669; } .toast-icon-wrap.error { background: rgba(239,68,68,0.12); color: #dc2626; } .toast-icon-wrap.info { background: rgba(30,111,184,0.12); color: #1e6fb8; } .toast-icon-wrap.warning { background: rgba(245,158,11,0.12); color: #d97706; } .toast-icon-wrap.message { background: linear-gradient(135deg, #FF7F38 0%, #ff5e1f 100%); color: #fff; }
    body.dark .toast-icon-wrap.success { background: rgba(16,185,129,0.18); color: #34d399; } body.dark .toast-icon-wrap.error { background: rgba(239,68,68,0.18); color: #f87171; } body.dark .toast-icon-wrap.info { background: rgba(30,111,184,0.22); color: #60a5fa; } body.dark .toast-icon-wrap.warning { background: rgba(245,158,11,0.18); color: #fbbf24; }
    .toast-text { flex: 1; min-width: 0; } .toast-title { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 2px; line-height: 1.3; } .toast-subtitle { font-size: 12px; color: #64748b; margin: 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.dark .toast-title { color: #f1f5f9; } body.dark .toast-subtitle { color: rgba(255,255,255,0.65); }
    .toast-close { background: transparent; border: none; color: #94a3b8; font-size: 14px; cursor: pointer; padding: 4px; flex-shrink: 0; opacity: 0.7; } .toast-close:hover { opacity: 1; }
    .toast-message.t-success { border-left: 3px solid #10b981; } .toast-message.t-error { border-left: 3px solid #ef4444; } .toast-message.t-info { border-left: 3px solid #1e6fb8; } .toast-message.t-warning { border-left: 3px solid #f59e0b; } .toast-message.t-message { border-left: 3px solid #FF7F38; }
    [dir="rtl"] .toast-message.t-success { border-left: none; border-right: 3px solid #10b981; } [dir="rtl"] .toast-message.t-error { border-left: none; border-right: 3px solid #ef4444; } [dir="rtl"] .toast-message.t-info { border-left: none; border-right: 3px solid #1e6fb8; } [dir="rtl"] .toast-message.t-warning { border-left: none; border-right: 3px solid #f59e0b; } [dir="rtl"] .toast-message.t-message { border-left: none; border-right: 3px solid #FF7F38; }

    .smart-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; color: #fff; flex-shrink: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.3px; overflow: hidden; position: relative; }
    .smart-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .smart-avatar.gender-female { background: linear-gradient(135deg, #ec4899 0%, #d4537e 50%, #9333ea 100%); box-shadow: 0 2px 8px rgba(212,83,126,0.25); }
    .smart-avatar.gender-male { background: linear-gradient(135deg, #3b82f6 0%, #1e6fb8 50%, #1e3a8a 100%); box-shadow: 0 2px 8px rgba(30,111,184,0.25); }
    .smart-avatar.gender-unknown, .smart-avatar:not(.gender-female):not(.gender-male) { background: linear-gradient(135deg, #FF7F38 0%, #ff5e1f 100%); box-shadow: 0 2px 8px rgba(255,127,56,0.25); }
    .smart-avatar.is-company { background: linear-gradient(135deg, #1e6fb8 0%, #00426D 100%); box-shadow: 0 2px 8px rgba(0,66,109,0.3); }
    .smart-avatar.sz-sm { width: 32px; height: 32px; font-size: 11px; } .smart-avatar.sz-md { width: 44px; height: 44px; font-size: 14px; } .smart-avatar.sz-lg { width: 56px; height: 56px; font-size: 18px; } .smart-avatar.sz-xl { width: 80px; height: 80px; font-size: 24px; }

    .applicant-card { background: var(--white); border-radius: 16px; padding: 14px; margin-bottom: 12px; border: 1.5px solid var(--border); contain: layout style; will-change: auto; }
    .applicant-header { display: flex; gap: 12px; align-items: center; }
    .applicant-avatar { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
    .applicant-info { flex: 1; min-width: 0; }
    .applicant-info h4 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .applicant-info p { font-size: 11px; color: var(--gray); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .applicant-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
    .applicant-actions button { padding: 8px 14px; border-radius: 30px; border: none; cursor: pointer; font-weight: 600; font-family: inherit; font-size: 12px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    .btn-call { background: #10b981; color: #fff; } .btn-whatsapp { background: #25D366; color: #fff; }
    .contact-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; text-decoration: none; transition: transform .15s ease, opacity .15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
    .contact-icon-btn:active { transform: scale(0.88); opacity: 0.9; }
    .contact-icon-btn.call-btn { background: #10b981; color: #fff; } .contact-icon-btn.wa-btn { background: #25D366; color: #fff; } .contact-icon-btn.mail-btn { background: #8b5cf6; color: #fff; }
    .btn-interview { background: var(--pri); color: #fff; } .btn-accept { background: #3b82f6; color: #fff; } .btn-reject { background: #dc2626; color: #fff; }
    .stage-tab { padding: 12px 20px; border: none; background: none; cursor: pointer; font-weight: 700; transition: all .2s; font-family: inherit; font-size: 15px; color: var(--text); border-radius: 10px 10px 0 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; white-space: nowrap; }
    .stage-tab:hover { background: var(--light); } .stage-tab.active { border-bottom: 3px solid var(--pri); color: var(--pri); background: var(--light); }
    .stage-tabs-scroll { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 2px solid var(--border); margin-bottom: 15px; padding-bottom: 0; }
    .stage-tabs-scroll::-webkit-scrollbar { display: none; }
    .cv-preview { background: var(--light); border-radius: 14px; padding: 14px; margin: 10px 0; }
    .cv-section { margin-bottom: 13px; }
    .cv-section-title { font-weight: 700; color: var(--pri); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; font-size: 13px; }

    .page-head { display: flex; align-items: center; gap: 13px; margin: 12px 0 8px; }
    .page-head h1, .page-head h2 { font-size: 18px; margin: 0; }
    .back-arrow { font-size: 18px; cursor: pointer; color: var(--sec); width: 36px; height: 36px; background: var(--secondary-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: none; }
    body.dark .back-arrow { color: var(--text); }
    .back-btn { background: var(--secondary-bg); border: 1.5px solid var(--border); padding: 8px 18px; border-radius: 30px; color: var(--sec); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
    .back-btn:hover { background: var(--sec); color: #fff; border-color: var(--sec); }
    body.dark .back-btn { color: var(--text); }
    .detail-card { background: var(--white); border-radius: 18px; border: 1.5px solid var(--border); }
    .desktop-back-btn { display: none; background: var(--secondary-bg); border: 1.5px solid var(--border); color: var(--sec); padding: 9px 20px; border-radius: 30px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; align-items: center; gap: 8px; margin-bottom: 16px; transition: all .2s; }
    .desktop-back-btn:hover { background: var(--sec); color: #fff; border-color: var(--sec); }
    body.dark .desktop-back-btn { background: var(--secondary-bg); color: var(--text); border-color: var(--border); }
    @media (min-width: 1024px) { .desktop-back-btn { display: inline-flex !important; } }

    /* ============================================================
       تعديلات الجوال - الحفاظ على الهيدر ثابتاً + تكبير الشعار
    ============================================================ */
    @media (max-width: 768px) {
        .header {
            padding: 8px 12px !important;
        }
        .logo img {
            height: 80px !important;
            max-height: 80px !important;
        }
        .menu-btn, .icon-btn {
            width: 36px !important;
            height: 36px !important;
        }
        .body {
            padding: 12px 12px 70px !important;
        }
    }

    @media (max-width: 480px) {
        .phone-wrapper { padding: 0; background: var(--bg); }
        .phone { width: 100%; height: 100dvh; min-height: 100dvh; border-radius: 0 !important; border: none !important; box-shadow: none !important; clip-path: none !important; overflow: hidden; }
        .header { position: relative !important; top: 0 !important; z-index: 1000 !important; flex-shrink: 0 !important; }
        .body { flex: 1 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; overscroll-behavior: contain !important; padding-top: 14px !important; }
        .side-menu { top: 0 !important; height: 100% !important; }
        .phone::before, .phone::after { display: none !important; }
        .logo img {
            height: 70px !important;
            max-height: 70px !important;
        }
    }

    /* ============================================================
       تعديلات الديسكتوب - الهيدر يبقى ثابتاً في الأعلى + تكبير الشعار
    ============================================================ */
    @media (min-width: 1024px) {
        html, body {
            position: relative !important;
            overflow: auto !important;
            height: auto !important;
        }
        .phone-wrapper {
            position: relative !important;
        }
        .phone {
            position: relative !important;
            height: auto !important;
            min-height: 100vh !important;
        }
        .header {
            position: sticky !important;
            top: 0 !important;
            background: #00426D !important;
            backdrop-filter: none !important;
            z-index: 1000 !important;
        }
        body.dark .header { background: #041828 !important; }
        .logo img {
            height: 60px !important;
            max-height: 60px !important;
        }
    }

    /* باقي التنسيقات للديسكتوب كما هي - محافظة على الميزات */
    @media (min-width: 1024px) {

        html, body { overflow: auto !important; height: auto !important; background: #f4f6f9 !important; font-size: 16px; }
        body.dark { background: #0a1929 !important; }
        body::before, body::after { display: none !important; }

        .phone-wrapper { display: block !important; padding: 0 !important; background: transparent !important; }
        .phone { width: 100% !important; max-width: 100% !important; height: auto !important; min-height: 100vh !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; clip-path: none !important; background: transparent !important; display: block !important; position: static !important; }
        .phone::before, .phone::after { display: none !important; }

        .menu-btn { display: flex !important; }
        .icon-btn { width: 42px !important; height: 42px !important; font-size: 16px !important; border-radius: 12px !important; }
        .notify-dropdown-content { z-index: 300 !important; width: 380px !important; position: absolute !important; }
        .language-dropdown { z-index: 300 !important; }

        .side-menu {
            position: fixed !important; top: 0 !important; bottom: 0 !important;
            right: 0 !important; left: auto !important;
            inset-inline-end: auto !important; inset-inline-start: auto !important;
            width: 360px !important; max-width: 90vw !important; height: 100vh !important;
            transform: translateX(100%) !important;
            transition: transform 0.3s cubic-bezier(.25,.8,.25,1) !important;
            border-radius: 0 !important; box-shadow: -8px 0 32px rgba(0,0,0,.25) !important;
            z-index: 250 !important; display: flex !important; flex-direction: column !important;
            background: var(--white) !important;
        }
        body.dark .side-menu { background: #0f2a3e !important; }
        .side-menu.open { transform: translateX(0) !important; }
        html[dir="ltr"] .side-menu { right: auto !important; left: 0 !important; transform: translateX(-100%) !important; }
        html[dir="ltr"] .side-menu.open { transform: translateX(0) !important; }
        .menu-close { display: flex !important; }
        .menu-overlay { position: fixed !important; inset: 0 !important; z-index: 240 !important; }
        .menu-header { padding: 24px 20px !important; }
        .menu-avatar { width: 64px !important; height: 64px !important; font-size: 30px !important; }
        .menu-header h4 { font-size: 17px !important; }
        .menu-header p { font-size: 13px !important; }
        .menu-item { padding: 14px 20px !important; font-size: 15px !important; }
        .menu-item > i { width: 38px !important; height: 38px !important; font-size: 16px !important; }

        .modal-overlay { position: fixed !important; z-index: 600 !important; }
        .loading-overlay { position: fixed !important; }

        .body {
            display: block !important; overflow: visible !important; height: auto !important;
            padding: 20px 40px 60px !important; min-height: calc(100vh - 70px) !important;
            scrollbar-width: thin;
        }
        html[dir="ltr"] .body { padding: 20px 40px 60px !important; }
        .body > .page { max-width: 880px !important; margin: 0 auto !important; padding: 0 !important; }
        .page { display: none !important; }
        .page.active { display: block !important; }
        .bottom-nav { display: none !important; }

        .cats-scroll { gap: 14px !important; padding: 4px 4px 14px !important; scrollbar-width: none !important; }
        .cats-scroll::-webkit-scrollbar { display: none !important; }
        .cat-chip { min-width: 100px !important; max-width: 100px !important; padding: 16px 8px 14px !important; border-radius: 18px !important; }
        .cat-chip-icon { font-size: 30px !important; margin-bottom: 8px !important; }
        .cat-chip-name { font-size: 13px !important; max-width: 80px !important; }

        .search-box { padding: 14px 22px !important; border-radius: 30px !important; margin-bottom: 20px !important; }
        .search-box input { font-size: 16px !important; }
        .search-box i.search-icon { font-size: 18px !important; }

        .mode-toggle { padding: 5px !important; border-radius: 30px !important; max-width: 520px !important; margin: 0 auto 22px auto !important; }
        .mode-btn { padding: 13px 14px !important; font-size: 15px !important; border-radius: 26px !important; }

        .jobs-header { margin: 22px 0 12px !important; }
        .jobs-title { font-size: 18px !important; }
        .jobs-count { font-size: 14px !important; }
        .legend { gap: 18px !important; margin-bottom: 14px !important; }
        .legend-item { font-size: 13px !important; }

        .jobs-container { display: flex !important; flex-direction: column !important; gap: 18px !important; }
        .job-card { padding: 26px !important; border-radius: 22px !important; border-width: 2px !important; }
        .job-avatar { width: 72px !important; height: 72px !important; border-radius: 18px !important; }
        .job-header { gap: 18px !important; margin-bottom: 14px !important; }
        .job-title { font-size: 22px !important; line-height: 1.4 !important; }
        .job-company { font-size: 16px !important; margin-top: 6px !important; font-weight: 600 !important; }
        .job-description { font-size: 16.5px !important; line-height: 1.75 !important; margin: 16px 0 !important; -webkit-line-clamp: 3 !important; }
        .job-footer { gap: 16px !important; margin-top: 16px !important; padding-top: 14px !important; }
        .job-footer small { font-size: 15px !important; font-weight: 600 !important; }
        .job-footer small i { font-size: 15px !important; }
        .btn-apply, .btn-apply-login { padding: 13px 28px !important; font-size: 15.5px !important; border-radius: 30px !important; }
        .card-apply-row { padding-top: 16px !important; margin-top: 16px !important; }

        .page-head h1, .page-head h2 { font-size: 26px !important; }
        .sec-label { font-size: 18px !important; }
        .sec-label span, .sec-label h2 { font-size: 18px !important; }
        .show-all-btn { font-size: 14px !important; }
        .page-head .back-arrow { display: flex !important; }

        .categories-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 18px !important; }
        .category-card { padding: 24px 12px !important; border-radius: 20px !important; }
        .category-card i { font-size: 36px !important; margin-bottom: 12px !important; }
        .category-card h3 { font-size: 15px !important; }

        #jobDetailsContainer .detail-card { padding: 32px !important; }
        #jobDetailsContainer h2, #jobDetailsContainer h3 { font-size: 24px !important; line-height: 1.5 !important; }
        #jobDetailsContainer p, #jobDetailsContainer div { font-size: 16px !important; line-height: 1.85 !important; }
        #jobDetailsContainer .job-title { font-size: 26px !important; }
        #jobDetailsContainer i { font-size: 17px !important; }

        .add-ad-form { padding: 32px !important; border-radius: 24px !important; max-width: 640px !important; margin: 0 auto !important; }
        .form-group { margin-bottom: 22px !important; }
        .form-group label { font-size: 15px !important; margin-bottom: 9px !important; }
        .form-group input, .form-group select, .form-group textarea, .form-control { padding: 13px 18px !important; font-size: 16px !important; border-radius: 16px !important; }
        .btn-primary { padding: 15px 32px !important; font-size: 16px !important; border-radius: 30px !important; }
        #addPostContainer .add-ad-form { max-width: 880px !important; }
        #addPostContainer .form-row { gap: 18px !important; }
        .form-row { gap: 16px; }

        .profile-header-card { padding: 32px !important; border-radius: 24px !important; }
        .profile-avatar { width: 110px !important; height: 110px !important; }
        .profile-header-card h3 { font-size: 22px !important; }
        .profile-header-card p { font-size: 14px !important; }
        .profile-stats { gap: 16px !important; }
        .stat-card { padding: 22px !important; border-radius: 20px !important; }
        .stat-number { font-size: 30px !important; }
        .stat-card > div:last-child { font-size: 14px !important; }

        .plans-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
        .plan-card { padding: 26px !important; border-radius: 24px !important; }

        .applicant-card { padding: 22px !important; border-radius: 20px !important; }
        .applicant-avatar { width: 70px !important; height: 70px !important; }
        .applicant-info h4 { font-size: 17px !important; }
        .applicant-info p { font-size: 13px !important; }
        .applicant-actions button { padding: 10px 18px !important; font-size: 14px !important; }

        .modal-content { max-width: 520px !important; padding: 32px !important; border-radius: 24px !important; }
        .modal-content h3 { font-size: 22px !important; margin-bottom: 12px !important; }
        .modal-content p { font-size: 16px !important; }
        .modal-buttons button { padding: 14px !important; font-size: 15px !important; border-radius: 16px !important; }

        .banner-slide img { height: 220px !important; object-fit: cover; }
        .banner-slide-title { font-size: 17px !important; padding: 26px 22px 14px !important; }

        #sectionPage.active, #allSectionsPage.active, #jobDetailsPage.active,
        #myPostsPage.active, #myApplicationsPage.active, #applicantsPage.active,
        #plansPage.active, #changePasswordPage.active { max-width: 1200px !important; margin: 0 auto !important; padding: 32px 40px 60px !important; }
        #loginPage.active, #registerPage.active, #forgotPage.active,
        #addPostPage.active, #profilePage.active { max-width: 600px !important; margin: 0 auto !important; padding: 32px !important; }

        #homePage.active { max-width: 1280px; margin: 0 auto; padding: 24px 32px 60px; }
    }

    @media (min-width: 1440px) {
        .body > .page { max-width: 1200px !important; }
        .body { padding: 28px 64px 60px !important; }
        html[dir="ltr"] .body { padding: 28px 64px 60px !important; }
        .jobs-container { gap: 20px !important; }
    }

    @media (min-width: 1024px) and (max-width: 1199px) {
        .body { padding: 16px 24px 50px !important; }
        html[dir="ltr"] .body { padding: 16px 24px 50px !important; }
        .body > .page { max-width: 880px !important; }
    }

    @media (min-width: 769px)  { .banner-slide img { max-height: 300px; object-fit: cover; } }
    @media (min-width: 1025px) { .banner-slide img { height: auto; max-height: 400px; object-fit: contain; } }

    html.dark-preload, html.dark-preload body { background: #0a1929 !important; color: #e2e8f0 !important; }

    .modal-scroll, .notify-dropdown-content, .menu-items-scroll { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }

    .feature-popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9999; align-items: center; justify-content: center; }
    .feature-popup-overlay.active { display: flex; }
    .feature-popup { background: var(--white, #fff); border-radius: 20px; padding: 32px 28px; max-width: 400px; width: 92%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.18); animation: featurePopupIn .3s cubic-bezier(.34,1.56,.64,1); }
    body.dark .feature-popup { background: #16213e; color: #e2e8f0; }
    @keyframes featurePopupIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .feature-popup .star-icon { font-size: 52px; margin-bottom: 12px; line-height: 1; }
    .feature-popup h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--dark, #1a1a2e); }
    body.dark .feature-popup h3 { color: #e2e8f0; }
    .feature-popup p { font-size: 14px; color: var(--gray, #888); margin: 0 0 24px; line-height: 1.6; }
    .feature-popup .price-badge { display: inline-block; background: linear-gradient(135deg, #ff7f38, #ff5722); color: #fff; border-radius: 50px; padding: 6px 18px; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
    .feature-popup .btn-feature { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, #ff7f38, #ff5722); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; margin-bottom: 10px; transition: opacity .2s; }
    .feature-popup .btn-feature:hover { opacity: .9; }
    .feature-popup .btn-later { background: none; border: none; color: var(--gray, #888); font-size: 14px; cursor: pointer; padding: 6px; text-decoration: underline; }

    .limit-modal-new-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998; align-items: center; justify-content: center; }
    .limit-modal-new-overlay.active { display: flex; }
    .limit-modal-new { background: var(--white, #fff); border-radius: 20px; padding: 32px 28px; max-width: 420px; width: 92%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.18); animation: featurePopupIn .3s cubic-bezier(.34,1.56,.64,1); }
    body.dark .limit-modal-new { background: #16213e; color: #e2e8f0; }
    .limit-modal-new .limit-icon { font-size: 48px; margin-bottom: 12px; }
    .limit-modal-new h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--dark, #1a1a2e); }
    body.dark .limit-modal-new h3 { color: #e2e8f0; }
    .limit-modal-new p { font-size: 14px; color: var(--gray,#888); margin: 0 0 20px; }
    .limit-modal-new .btn-pay-extra { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, #ff7f38, #ff5722); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; margin-bottom: 10px; }
    .limit-modal-new .btn-upgrade { display: block; width: 100%; padding: 12px; background: var(--pri, #0066ff); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
    .limit-modal-new .btn-cancel-limit { background: none; border: none; color: var(--gray, #888); font-size: 14px; cursor: pointer; padding: 6px; text-decoration: underline; }

    .job-card.is-featured { border: 2px solid #ff7f38 !important; position: relative; box-shadow: 0 4px 20px rgba(255,127,56,0.15); }
    .featured-badge { position: absolute; top: 12px; inset-inline-end: 12px; background: linear-gradient(135deg, #ff7f38, #ff5722); color: #fff; border-radius: 50px; padding: 4px 12px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; z-index: 10; box-shadow: 0 2px 8px rgba(255,127,56,0.4); white-space: nowrap; pointer-events: none; }
    .btn-renew { background: #27ae60; color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-weight: 600; }
    .btn-renew:hover { background: #229954; }
    .btn-feature-small { background: linear-gradient(135deg, #ff7f38, #ff5722); color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-weight: 600; }
    .expired-label { color: #e74c3c; font-size: 12px; font-weight: 700; margin-bottom: 4px; display: inline-block; }
    .featured-until-label { color: #ff7f38; font-weight: 700; font-size: 13px; }
    .my-posts-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
    .btn-action { border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: #fff; transition: opacity .2s, transform .15s; }
    .btn-action:hover { opacity: .9; transform: translateY(-1px); }
    .btn-action.btn-feature-small { background: linear-gradient(135deg, #ff7f38, #ff5722); }
    .btn-action.btn-renew { background: #27ae60; }
    .btn-action.btn-delete-sm { background: #e74c3c; }