
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --navy: #1a2a44;       /* الكحلي الأصلي */
    --gold: #c5a059;       /* الذهبي المطفي */
    --green: #2d5a27;      /* الأخضر الزيتوني */
    --white: #ffffff;
    --soft-bg: #f8fafc;    /* خلفية هادئة جداً */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--soft-bg);
    color: var(--navy);
    direction: rtl;
    line-height: 1.6;
}

/* --- هيدر نحيف وأنيق --- */
.app-header {
    background: var(--navy);
    height: 100px; /* تم تقليل الارتفاع جداً */
    display: flex;
    flex-direction: row; /* جعل اللوجو بجانب النص */
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* اللوجو طائر بدون مربعات */
.logo-container {
    width: 80px;
    height: 80px;
    background: transparent; /* حذف المربع الأبيض */
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* لإبراز اللوجو فوق الكحلي إذا كان غامقاً */
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); 
}

.header-title {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

/* --- الحاوية الرئيسية --- */
.main-wrapper {
	padding-bottom: 100px !important; 
    padding: 20px 15px 120px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- كروت الخدمات والأخبار (ستايل فلات) --- */
.premium-card {
    background: var(--white);
    border-radius: 20px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    transition: 0.3s;
}

.card-icon-box {
    width: 50px;
    height: 40px;
    background: var(--soft-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

/* --- الأقسام السريعة (الستوري) --- */
.stories-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: none;
}

.story-ring {
    width: 65px;
    height: 65px;
    border-radius: 50%; /* دائرية تماماً */
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    color: var(--navy);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* --- البار السفلي العائم (ستايل آيفون) --- */




.nav-link.active { color: var(--gold); }
.nav-link i { font-size: 1.2rem; display: block; }

.center-action {
    width: 55px;
    height: 55px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: -40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

/* --- صفحة البروفايل الحديثة --- */
.profile-section {
    text-align: center;
    padding: 20px 0;
}

.avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
}

#profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.upload-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--gold);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid var(--white);
}

/* تحسين الشبكة للكمبيوتر */
@media (min-width: 768px) {
    .items-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 10px;
    }
}
        /* ستايل الأيقونات الدائرية الجديد */
        .quick-access-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 20px;
            text-align: center;
        }

        .icon-circle {
            width: 65px;
            height: 65px;
            background: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            font-size: 1.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: 0.3s;
            border: 1px solid rgba(0,0,0,0.02);
        }

        .icon-circle:active {
            transform: scale(0.9);
            background: var(--soft-bg);
        }

        .icon-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--navy);
            display: block;
        }

        /* تخصيص ألوان الأيقونات */
        .bg-red { color: #ff4757; }
        .bg-blue { color: #1e90ff; }
        .bg-green { color: #2ecc71; }
        .bg-orange { color: #ffa502; }
		
		        /* شريط الأقسام المتحرك */
        .scrolling-wrapper {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            padding: 10px 5px 15px;
            gap: 5px;
            scrollbar-width: none; /* إخفاء شريط التمرير للمتصفحات الحديثة */
        }
        
        .scrolling-wrapper::-webkit-scrollbar {
            display: none; /* إخفاء شريط التمرير لكروم وسافاري */
        }

        .scroll-item {
            flex: 0 0 auto;
            text-align: center;
            width: 70px;
            text-decoration: none;
        }

        /* تنسيق الأيقونات داخل الشريط */
        .scroll-icon {
            width: 60px;
            height: 60px;
            background: var(--white);
            border-radius: 20px; /* شكل مربع منحني أرق لتمييزه عن القسم العلوي */
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 7px;
            font-size: 1.4rem;
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(0,0,0,0.03);
            color: var(--navy);
        }

        .scroll-item span {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--navy);
            white-space: nowrap;
        }
        
        /* ألوان مخصصة لكل قسم */
        .color-blood { color: #d00000; }
        .color-doctor { color: #0077b6; }
        .color-teacher { color: #2d6a4f; }
        .color-vote { color: #7209b7; }
        .color-shop { color: #f9c74f; }
        .color-service { color: #4361ee; }
		
		        /* شريط فلاتر الفصائل */
        .blood-filter-box {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding: 10px 0 20px;
            scrollbar-width: none;
        }
        .blood-type-btn {
            flex: 0 0 auto;
            width: 50px;
            height: 50px;
            border-radius: 15px;
            background: var(--white);
            border: 2px solid #eee;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: var(--navy);
            cursor: pointer;
            transition: 0.3s;
        }
        .blood-type-btn.active {
            background: #d00000;
            color: white;
            border-color: #d00000;
            box-shadow: 0 5px 15px rgba(208, 0, 0, 0.3);
        }

        /* شريط البحث */
        .search-container {
            position: relative;
            margin-bottom: 20px;
        }
        .search-input {
            width: 100%;
            padding: 10px 45px 10px 10px;
            border-radius: 15px;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: var(--card-shadow);
            outline: none;
            font-family: 'Tajawal', sans-serif;
        }
        .search-container i {
            position: absolute;
            right: 15px;
            top: 40%;
            transform: translateY(-50%);
            color: #999;
        }

        /* أزرار التواصل */
        .contact-actions {
            display: flex;
            gap: 8px;
        }
        .action-btn {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            font-size: 1rem;
        }
        .btn-call { background: #4361ee; }
        .btn-whatsapp { background: #25d366; }
		
		        /* ستايل أمازون للمنتجات */
        .amazon-list {
            padding: 10px 15px 120px;
        }

        .product-item {
            display: flex;
            background: white;
            border-bottom: 1px solid #eee;
            padding: 15px 0;
            gap: 15px;
            position: relative;
        }

        .product-img-box {
            flex: 0 0 110px;
            height: 110px;
            background: #f7f7f7;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #f0f0f0;
        }

        .product-img-box img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .product-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .product-name {
            font-size: 1rem;
            font-weight: 600;
            color: #111;
            line-height: 1.4;
            margin-bottom: 5px;
        }

        .price-tag {
            font-size: 1.2rem;
            font-weight: 800;
            color: #B12704; /* لون سعر أمازون الشهير */
        }

        .price-tag span {
            font-size: 0.8rem;
            margin-right: 2px;
        }

        .stock-status {
            font-size: 0.75rem;
            color: #007600;
            margin-top: 4px;
        }

        /* أزرار التحكم بستايل مودرن */
        .admin-actions-bar {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .action-btn-sm {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.75rem;
            border: 1px solid #ddd;
            background: #fff;
            color: #333;
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .btn-edit-alt:hover { background: #f7fafa; border-color: #007185; color: #007185; }
        .btn-delete-alt:hover { background: #fff5f5; border-color: #d00000; color: #d00000; }

        /* إضافة لمسة احترافية للهيدر */
        .shop-header-premium {
            background: #232f3e; /* لون أمازون الليلي */
            padding: 40px 20px 60px;
            color: white;
            border-radius: 0 0 30px 30px;
        }
		        /* شريط التخصصات المتحرك */
        .specs-filter {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 10px 5px 25px;
            scrollbar-width: none;
        }
        .specs-filter::-webkit-scrollbar { display: none; }

        .spec-item {
            flex: 0 0 auto;
            background: white;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: bold;
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(0,0,0,0.05);
            cursor: pointer;
            transition: 0.3s;
        }
        .spec-item.active {
            background: var(--navy);
            color: var(--gold);
            border-color: var(--navy);
        }

        /* تنسيق صورة الطبيب داخل الكرت */
        .doctor-avatar {
            width: 65px;
            height: 65px;
            border-radius: 15px;
            object-fit: cover;
            border: 2px solid var(--soft-bg);
        }

        .doctor-card {
            text-decoration: none; /* لإزالة الخط تحت الرابط */
            color: inherit;
            display: flex;
            align-items: center;
            width: 100%;
        }
		        /* ستايل صفحة الإضافة والتعديل */
        .form-container {
            background: white;
            border-radius: 30px;
            padding: 30px 20px;
            margin-top: -30px;
            box-shadow: var(--card-shadow);
        }

        .image-upload-section {
            text-align: center;
            margin-bottom: 25px;
        }

        .image-preview {
            width: 120px;
            height: 120px;
            background: #f0f2f5;
            border: 2px dashed var(--gold);
            border-radius: 30px;
            margin: 0 auto 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold);
            font-size: 2rem;
            position: relative;
            overflow: hidden;
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            font-weight: 700;
            margin-bottom: 8px;
            font-size: 0.9rem;
            color: var(--navy);
        }

        .custom-input, .custom-select, .custom-textarea {
            width: 100%;
            padding: 15px;
            border-radius: 15px;
            border: 1px solid #eee;
            background: #f9fbff;
            outline: none;
            font-family: 'Tajawal';
            transition: 0.3s;
        }

        .custom-input:focus {
            border-color: var(--gold);
            background: white;
            box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
        }

        .save-btn {
            width: 100%;
            background: var(--navy);
            color: var(--gold);
            border: none;
            padding: 18px;
            border-radius: 20px;
            font-size: 1.1rem;
            font-weight: 800;
            cursor: pointer;
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: 0.3s;
        }

        .save-btn:active {
            transform: scale(0.98);
        }

        /* تنسيق خاص للوقت (المواعيد) */
        .days-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
		
		        /* --- أزرار الإدارة (تعديل وحذف) --- */
        .admin-top-bar {
            display: flex;
            justify-content: space-between;
            padding: 20px;
            position: absolute;
            width: 100%;
            z-index: 10;
        }
        .admin-btn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .btn-edit { background: var(--gold); color: white; }
        .btn-delete { background: #ff4757; color: white; }

        /* --- تفاصيل الطبيب العلوي --- */
        .doctor-profile-header {
            background: var(--navy);
            padding: 80px 20px 40px;
            text-align: center;
            color: white;
            border-radius: 0 0 40px 40px;
        }
        .main-doc-img {
            width: 120px;
            height: 120px;
            border-radius: 30px;
            border: 4px solid var(--gold);
            margin-bottom: 15px;
            object-fit: cover;
        }

        /* --- المربعات المعلوماتية --- */
        .info-card {
            background: white;
            padding: 20px;
            border-radius: 25px;
            margin-top: 20px;
            box-shadow: var(--card-shadow);
        }
        .time-slot {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px dashed #eee;
        }
        .rating-box { text-align: center; margin: 10px 0; }
        .stars { color: #f1c40f; font-size: 1.2rem; }
        .stars-interactive i { cursor: pointer; transition: 0.2s; margin: 0 2px; }
        .stars-interactive i:hover { transform: scale(1.2); }
        
        .review-input {
            width: 100%;
            border: 1px solid #ddd;
            padding: 10px;
            border-radius: 10px;
            margin-bottom: 10px;
            font-family: 'Tajawal';
            outline: none;
        }
        .submit-review {
            background: var(--navy);
            color: var(--gold);
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            font-weight: bold;
            cursor: pointer;
            width: 100%;
        }

        /* --- نظام التقييمات --- */
        .single-review {
            border-bottom: 1px solid #f0f0f0;
            padding: 15px 0;
        }
        .single-review:last-child { border-bottom: none; }
        .reviewer-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
        .reviewer-name { font-weight: bold; font-size: 0.95rem; color: var(--navy); }
        .review-text { font-size: 0.85rem; color: #555; line-height: 1.5; }

        /* --- المودال --- */
        .modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.7); display: none;
            align-items: center; justify-content: center; z-index: 2000;
            backdrop-filter: blur(5px);
        }
        .modal-content {
            background: white; width: 85%; max-width: 400px;
            border-radius: 30px; padding: 25px; text-align: center;
            animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        @keyframes modalPop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

        .modal-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
        .modal-title { font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; color: var(--navy); }
        .modal-text { color: #666; font-size: 0.9rem; margin-bottom: 25px; }
        .modal-actions { display: flex; gap: 10px; }
        .m-btn {
            flex: 1; padding: 15px; border-radius: 15px; border: none;
            font-weight: bold; font-family: 'Tajawal'; cursor: pointer; transition: 0.3s;
        }
        .btn-confirm-del { background: #ff4757; color: white; }
        .btn-cancel { background: #f0f2f5; color: #333; }
        .modal-header { font-weight: bold; margin-bottom: 15px; font-size: 1.1rem; color: var(--navy); }
		
		        /* إضافة بعض اللمسات الخاصة بصفحة المدرسين */
        .search-container {
            padding: 0 20px;
            margin-bottom: 20px;
        }
        .search-bar {
            width: 100%;
            padding: 12px 20px;
            border-radius: 15px;
            border: 1px solid #eee;
            background: white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            outline: none;
            font-family: 'Tajawal';
        }
        .filter-tabs {
            display: flex;
            overflow-x: auto;
            gap: 5px;
            padding: 0 5px 5px;
            scrollbar-width: none;
        }
        .filter-tabs::-webkit-scrollbar { display: none; }
        .tab {
            white-space: nowrap;
            padding: 5px 10px;
            border-radius: 20px;
            background: #f0f2f5;
            font-size: 0.85rem;
            cursor: pointer;
            transition: 0.3s;
        }
        .tab.active {
            background: var(--navy);
            color: var(--gold);
        }

        /* تعديل كارت المدرس ليحتوي على الصورة */
        .teacher-card {
            background: white;
            border-radius: 20px;
            padding: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            box-shadow: var(--card-shadow);
            text-decoration: none;
            color: inherit;
            transition: transform 0.2s;
        }
        .teacher-card:active { transform: scale(0.98); }
        
        .teacher-img {
            width: 70px;
            height: 70px;
            border-radius: 15px;
            object-fit: cover;
            border: 2px solid var(--gold);
        }
        .teacher-info { flex: 1; }
        .teacher-info h4 { margin: 0 0 5px; color: var(--navy); font-size: 1rem; }
        .teacher-info p { margin: 0; font-size: 0.8rem; color: #666; }
        .teacher-info .subject { 
            display: inline-block;
            background: #fff9e6;
            color: #d4a017;
            padding: 2px 8px;
            border-radius: 5px;
            font-size: 0.75rem;
            margin-top: 5px;
        }
        .call-action {
            width: 40px;
            height: 40px;
            background: #e8f5e9;
            color: #2ecc71;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }
		
		        /* نظام البحث والفلترة */
        .search-container {
            padding: 0 20px;
            margin-bottom: 15px;
        }
        .search-bar {
            width: 100%;
            padding: 12px 20px;
            border-radius: 15px;
            border: 1px solid #eee;
            background: white;
            box-shadow: var(--card-shadow);
            outline: none;
            font-family: 'Tajawal';
        }
        


        /* تنسيق كارت الشخصية */
        .person-card {
            background: white;
            border-radius: 20px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            box-shadow: var(--card-shadow);
            text-decoration: none;
            color: inherit;
            transition: 0.3s;
            border-right: 4px solid transparent;
        }
        .person-card:active { transform: scale(0.98); }
        .person-card.featured { border-right-color: var(--gold); }

        .person-img {
            width: 70px;
            height: 70px;
            border-radius: 50%; /* شكل دائري للشخصيات */
            object-fit: cover;
            border: 2px solid #f0f2f5;
        }
        
        .person-info { flex: 1; }
        .person-info h4 { margin: 0 0 5px; color: var(--navy); font-size: 1rem; }
        .person-info p { margin: 0; font-size: 0.8rem; color: #666; line-height: 1.4; }
        
        .family-badge {
            display: inline-block;
            background: #f0f2f5;
            color: #888;
            padding: 2px 8px;
            border-radius: 5px;
            font-size: 0.7rem;
            margin-top: 5px;
        }
		        /* هيدر الشخصية */
        .profile-header {
            background: linear-gradient(to bottom, var(--navy), #1a2a44);
            padding: 30px 10px 20px;
            text-align: center;
            color: white;
            border-radius: 0 0 40px 40px;
        }
        .profile-img {
            width: 130px;
            height: 130px;
            border-radius: 50%;
            border: 4px solid var(--gold);
            margin-bottom: 15px;
            object-fit: cover;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        /* الوسوم السريعة (الأبناء، الدرجات العلمية) */
        .quick-stats {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 15px;
        }
        .stat-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 5px 12px;
            border-radius: 10px;
            font-size: 0.8rem;
        }

        /* الأقسام */
        .section-title {
            color: var(--navy);
            border-right: 4px solid var(--gold);
            padding-right: 10px;
            margin: 10px 0 5px;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* القائمة الزمنية للسيرة المهنية */
        .timeline-item {
            border-right: 2px solid #eee;
            margin-right: 10px;
            padding-right: 20px;
            position: relative;
            margin-bottom: 20px;
        }
        .timeline-item::after {
            content: '';
            position: absolute;
            right: -6px;
            top: 5px;
            width: 10px;
            height: 10px;
            background: var(--gold);
            border-radius: 50%;
        }
        .timeline-date { font-size: 0.75rem; color: var(--gold); font-weight: bold; }
        .timeline-job { font-weight: bold; font-size: 0.95rem; display: block; margin: 2px 0; }
        .timeline-desc { font-size: 0.85rem; color: #666; }

        /* أيقونات التواصل الاجتماعي */
        .social-box {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 10px;
        }
        .social-link {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            text-decoration: none;
            transition: 0.3s;
        }
        .fb { background: #1877f2; color: white; }
        .in { background: #0077b5; color: white; }

        /* تذيل الصفحة للملاحظات */
        .disclaimer {
            background: #fff5f5;
            border: 1px dashed #ff4757;
            padding: 15px;
            border-radius: 15px;
            margin-top: 30px;
            text-align: center;
        }
        .disclaimer p { font-size: 0.8rem; color: #555; margin-bottom: 10px; }
        .contact-admin-btn {
            background: #ff4757;
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: bold;
        }
		        /* هيدر الصفحة */
        .contact-header {
            background: var(--navy);
            padding: 60px 20px 40px;
            text-align: center;
            color: white;
            border-radius: 0 0 40px 40px;
        }
        .contact-header i {
            font-size: 3rem;
            color: var(--gold);
            margin-bottom: 15px;
        }

        /* كروت التواصل */
        .contact-method-card {
            background: white;
            padding: 20px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            box-shadow: var(--card-shadow);
            text-decoration: none;
            color: inherit;
            transition: 0.3s;
        }
        .contact-method-card:active { transform: scale(0.98); }
        
        .method-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
        .bg-green { background: #e8f5e9; color: #2ecc71; }
        .bg-blue { background: #e3f2fd; color: #1e88e5; }
        .bg-red { background: #ffebee; color: #e53935; }
        .bg-gold { background: #fff9e6; color: var(--gold); }

        .method-info h4 { margin: 0; font-size: 1rem; color: var(--navy); }
        .method-info p { margin: 0; font-size: 0.85rem; color: #777; }

        /* نموذج المراسلة */
        .contact-form {
            background: white;
            padding: 25px;
            border-radius: 25px;
            margin-top: 25px;
            box-shadow: var(--card-shadow);
        }
        .form-group { margin-bottom: 15px; }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 0.9rem;
            font-weight: bold;
            color: var(--navy);
        }
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border-radius: 12px;
            border: 1px solid #eee;
            background: #fcfcfc;
            font-family: 'Tajawal';
            outline: none;
        }
        .form-control:focus { border-color: var(--gold); }
        
        .btn-send {
            width: 100%;
            padding: 15px;
            border-radius: 15px;
            border: none;
            background: var(--navy);
            color: var(--gold);
            font-weight: bold;
            font-family: 'Tajawal';
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 1rem;
        }
		
		        .faq-header {
            background: var(--navy);
            padding: 10px 5px 10px;
            text-align: center;
            color: white;
            border-radius: 0 0 40px 40px;
        }
        
        .faq-container {
            padding: 5px;
        }

        .faq-item {
            background: white;
            border-radius: 15px;
            margin-bottom: 5px;
            box-shadow: var(--card-shadow);
            overflow: hidden;
            transition: 0.3s;
        }

        .faq-question {
            padding: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: bold;
            color: var(--navy);
        }

        .faq-answer {
            padding: 0 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out, padding 0.3s ease;
            color: #666;
            font-size: 0.9rem;
            line-height: 1.3;
            border-top: 1px solid transparent;
        }

        .faq-item.active .faq-answer {
            padding: 10px 15px;
            max-height: 200px; /* القيمة كافية للنص */
            border-top: 1px solid #eee;
        }

        .faq-item.active .fa-chevron-down {
            transform: rotate(180deg);
            color: var(--gold);
        }

        .faq-link {
            color: var(--gold);
            text-decoration: none;
            font-weight: bold;
            display: inline-block;
            margin-top: 10px;
            border-bottom: 1px dashed var(--gold);
        }

        .search-faq {
            margin-top: -25px;
            padding: 0 30px;
        }
		        /* شريط التبويبات العلوي */
        .tabs-container {
            display: flex;
            justify-content: space-around;
            background: white;
            padding: 10px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }
        .service-tab {
            flex: 1;
            text-align: center;
            padding: 10px;
            font-size: 0.9rem;
            color: #777;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: 0.3s;
        }
        .service-tab i { display: block; margin-bottom: 5px; font-size: 1.2rem; }
        .service-tab.active {
            color: var(--navy);
            border-bottom-color: var(--gold);
            font-weight: bold;
        }

        /* كارت المصلحة */
        .entity-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow);
            text-decoration: none;
            color: inherit;
            display: block;
            transition: 0.3s;
        }
        .entity-card:active { transform: scale(0.98); }
        
        .entity-image-box {
            width: 100%;
            height: 160px;
            position: relative;
        }
        .entity-image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .entity-status {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(255, 255, 255, 0.9);
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.75rem;
            color: #2ecc71;
            font-weight: bold;
        }

        .entity-details {
            padding: 15px;
        }
        .entity-details h4 { margin: 0 0 5px; color: var(--navy); font-size: 1.1rem; }
        .entity-details p { margin: 0; font-size: 0.85rem; color: #666; display: flex; align-items: center; gap: 5px; }
        
        .entity-meta {
            margin-top: 5px;
            padding-top: 5px;
            border-top: 1px solid #f5f5f5;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .btn-view {
            color: var(--gold);
            font-size: 0.85rem;
            font-weight: bold;
        }
		
		        /* هيدر الجهة */
        .entity-header {
            position: relative;
            height: 200px;
            background: var(--navy);
        }
        .entity-header img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.6;
        }
        .entity-title-overlay {
            position: absolute;
            bottom: -30px;
            right: 20px;
            left: 20px;
            background: white;
            padding: 20px;
            border-radius: 20px;
            box-shadow: var(--card-shadow);
            text-align: center;
        }

        /* سجل المدراء */
        .managers-list {
            display: flex;
            overflow-x: auto;
            gap: 15px;
            padding: 10px 5px;
            scrollbar-width: none;
        }
        .managers-list::-webkit-scrollbar { display: none; }

        .manager-card {
            min-width: 140px;
            background: #f9f9f9;
            padding: 15px;
            border-radius: 15px;
            text-align: center;
            position: relative;
            border: 1px solid #eee;
        }
        .manager-img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 8px;
            border: 2px solid var(--gold);
        }
        .manager-name { font-size: 0.85rem; font-weight: bold; color: var(--navy); display: block; }
        .manager-date { font-size: 0.7rem; color: #777; }
        
        /* تمييز المتوفى */
        .manager-card.deceased {
            background: #fffafa;
            border-color: #ffcccc;
        }
        .deceased-tag {
            position: absolute;
            top: 5px;
            left: 5px;
            font-size: 0.6rem;
            background: #888;
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
        }

        /* المواعيد والشكاوى */
        .work-time {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px dashed #eee;
            font-size: 0.9rem;
        }
        .complaint-box {
            background: #fff5f5;
            border: 1px solid #ffeded;
            padding: 15px;
            border-radius: 15px;
            margin-top: 20px;
        }
        .btn-complaint {
            width: 100%;
            background: #ff4757;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 10px;
            font-family: 'Tajawal';
            font-weight: bold;
            margin-top: 10px;
        }
		.btn-send-complaint {
    width: 100%;
    padding: 15px;
    background: #2ecc71; /* لون أخضر للنجاح */
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    font-family: 'Tajawal';
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

/* تعديل زر الشكوى الأصلي في الصفحة ليفتح المودل */
.btn-complaint {
    cursor: pointer;
}
        /* زر إضافة صورة في الهيدر */
        .add-photo-header-btn {
            position: absolute;
            left: 20px;
            font-size: 1.3rem;
            color: var(--navy);
            cursor: pointer;
            background: #f0f2f5;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: 0.3s;
        }
        .add-photo-header-btn:active { transform: scale(0.9); background: #e2e4e7; }

        /* شبكة الصور */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2px;
            padding: 2px;
        }
        .gallery-item {
            aspect-ratio: 1 / 1;
            position: relative;
            overflow: hidden;
        }
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* نافذة الرفع المنبثقة */
        .upload-modal {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.7);
            display: none;
            justify-content: center;
            align-items: flex-end;
            z-index: 2000;
        }
        .upload-content {
            background: white;
            width: 100%;
            border-radius: 25px 25px 0 0;
            padding: 20px;
            animation: slideUp 0.3s ease-out;
        }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

        .upload-area {
            border: 2px dashed #ddd;
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            margin: 15px 0;
            color: #777;
            cursor: pointer;
        }
        .preview-img {
            width: 100%;
            max-height: 200px;
            object-fit: contain;
            display: none;
            border-radius: 10px;
            margin-top: 10px;
        }
        .form-group { margin-bottom: 12px; }
        .form-group label {
            display: block;
            font-size: 0.85rem;
            margin-bottom: 5px;
            color: var(--navy);
            font-weight: bold;
        }
        .form-input {
            width: 100%;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid #eee;
            outline: none;
            font-family: 'Tajawal';
        }
        .btn-post {
            width: 100%;
            padding: 15px;
            background: var(--navy);
            color: var(--gold);
            border: none;
            border-radius: 15px;
            font-weight: bold;
            font-family: 'Tajawal';
            font-size: 1rem;
            cursor: pointer;
        }
		  body { background-color: #f0f2f5; margin: 0; font-family: 'Tajawal', sans-serif; }
        
        /* هيدر الصفحة */
        .post-full-header {
            background: white;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        /* رأس المنشور (بيانات الناشر) */
        .post-user-bar {
            display: flex;
            align-items: center;
            padding: 12px;
            background: white;
            justify-content: space-between;
        }
        .user-info { display: flex; align-items: center; gap: 10px; }
        .user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #ddd; }
        .user-name { font-weight: bold; font-size: 0.95rem; color: var(--navy); }

        /* الصورة الرئيسية */
        .main-post-img { width: 100%; display: block; background: #000; max-height: 500px; object-fit: contain; }

        /* منطقة التفاعلات */
        .post-actions {
            display: flex;
            justify-content: space-between;
            padding: 10px 15px;
            background: white;
            border-bottom: 1px solid #eee;
        }
        .left-actions { display: flex; gap: 20px; align-items: center; }
        
        .action-btn { 
            cursor: pointer; 
            color: #65676b; 
            font-size: 0.95rem; 
            display: flex; 
            align-items: center; 
            gap: 5px;
            transition: 0.2s;
            user-select: none;
            -webkit-user-select: none;
        }

        /* صندوق التفاعلات (Facebook Style) */
        .reaction-container { position: relative; }
        .reactions-box {
            position: absolute;
            bottom: 40px;
            right: 0;
            background: white;
            padding: 8px 12px;
            border-radius: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            display: none;
            gap: 12px;
            z-index: 1000;
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        @keyframes popIn {
            from { transform: scale(0) translateY(100%); opacity: 0; }
            to { transform: scale(1) translateY(0); opacity: 1; }
        }
        .reaction-icon { font-size: 1.8rem; cursor: pointer; transition: 0.2s; }
        .reaction-icon:hover { transform: scale(1.4); }

        /* معلومات المنشور */
        .post-content-area { padding: 15px; background: white; margin-bottom: 10px; }
        .likes-display { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; color: #65676b; margin-bottom: 8px; }
        .post-title-bold { font-weight: 800; font-size: 1rem; color: var(--navy); margin-bottom: 5px; display: block; }
        .post-caption { font-size: 0.9rem; color: #333; line-height: 1.5; margin: 0; }
        .post-time { font-size: 0.75rem; color: #888; margin-top: 8px; display: block; }

        /* قسم التعليقات */
        .comments-section { background: white; padding: 15px; min-height: 200px; }
        .comment-item { margin-bottom: 12px; display: flex; gap: 10px; }
        .comment-bubble { background: #f0f2f5; padding: 8px 12px; border-radius: 18px; flex: 1; }
        .comment-user { font-weight: bold; font-size: 0.85rem; display: block; margin-bottom: 2px; }
        .comment-text { font-size: 0.85rem; color: #333; margin: 0; }

        /* شريط كتابة تعليق */
        .comment-input-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: white;
            padding: 10px 15px;
            display: flex;
            gap: 10px;
            align-items: center;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        }
        .comment-field {
            flex: 1;
            background: #f0f2f5;
            border: none;
            padding: 10px 15px;
            border-radius: 20px;
            outline: none;
            font-family: inherit;
        }
        .btn-send-comment { color: var(--navy); border: none; background: none; font-size: 1.2rem; cursor: pointer; }

        /* أزرار الإدارة */
        .admin-btn { color: #888; font-size: 1rem; cursor: pointer; margin-right: 10px; }
        .btn-del:hover { color: #ff4757; }
		
		        /* شريط البحث */
        .search-container {
            padding: 15px;
            background: white;
            position: sticky;
            top: 60px; /* تحت الهيدر */
            z-index: 99;
        }
        .search-box {
            display: flex;
            align-items: center;
            background: #f0f2f5;
            padding: 8px 15px;
            border-radius: 20px;
        }
        .search-box input {
            border: none;
            background: none;
            width: 100%;
            outline: none;
            font-family: 'Tajawal';
            padding: 5px;
        }

        /* تصنيفات الأخبار (Tabs) */
        .news-tabs {
            display: flex;
            gap: 10px;
            padding: 0 15px 15px;
            overflow-x: auto;
            background: white;
            white-space: nowrap;
        }
        .tab-btn {
            padding: 8px 18px;
            border-radius: 20px;
            background: #f0f2f5;
            color: #666;
            font-size: 0.85rem;
            cursor: pointer;
            border: none;
            font-family: 'Tajawal';
        }
        .tab-btn.active {
            background: var(--navy);
            color: var(--gold);
        }

        /* تصميم كروت الأخبار */
        .news-card {
            background: white;
            margin-bottom: 10px;
            padding: 15px;
            display: flex;
            gap: 15px;
            border-bottom: 1px solid #eee;
        }
        .news-img {
            width: 90px;
            height: 90px;
            border-radius: 12px;
            object-fit: cover;
        }
        .news-info { flex: 1; }
        .news-tag {
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 5px;
            margin-bottom: 5px;
            display: inline-block;
        }
        .tag-death { background: #fee2e2; color: #dc2626; } /* وفيات */
        .tag-event { background: #dcfce7; color: #16a34a; } /* مناسبات */
        .tag-general { background: #e0f2fe; color: #0284c7; } /* عام */

        .news-title { font-weight: bold; font-size: 0.95rem; margin-bottom: 5px; color: var(--navy); display: block; }
        .news-meta { font-size: 0.75rem; color: #888; display: flex; align-items: center; gap: 10px; }

        /* ستايل خاص للوفيات */
        .death-card { border-right: 4px solid #333; }
		
		        /* نظام التفاعلات */
        .reaction-container { position: relative; display: inline-block; }
        .reactions-box {
            position: absolute;
            bottom: 45px;
            right: 0;
            background: white;
            padding: 8px 12px;
            border-radius: 30px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            display: none;
            gap: 12px;
            z-index: 1000;
            border: 1px solid #eee;
            animation: popIn 0.2s ease-out;
        }
        @keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .reaction-icon { font-size: 1.7rem; cursor: pointer; transition: 0.2s; }
        .reaction-icon:hover { transform: scale(1.3); }

        /* بيانات الناشر */
        .publisher-info {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 15px;
            background: #f8f9fa;
            border-bottom: 1px solid #eee;
        }
        .pub-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
        .pub-details { display: flex; flex-direction: column; }
        .pub-name { font-weight: bold; font-size: 0.9rem; color: var(--navy); }
        .pub-time { font-size: 0.75rem; color: #888; }

        /* محتوى الخبر */
        .news-full-content { padding: 20px; background: white; }
        .news-full-title { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 15px; line-height: 1.4; }
        .news-full-img { width: 100%; border-radius: 15px; margin-bottom: 20px; }
        .news-text { font-size: 1rem; line-height: 1.8; color: #333; white-space: pre-wrap; }

        /* إحصائيات التفاعل */
        .stats-bar {
            padding: 10px 15px;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: #666;
        }

        /* شريط الأزرار */
        .action-bar { display: flex; justify-content: space-around; padding: 10px; background: white; }
        .action-btn { cursor: pointer; color: #666; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
        
        /* التعليقات */
        .comments-area { padding: 15px; background: #fff; margin-top: 10px; }
        .comment-box { display: flex; gap: 10px; margin-bottom: 15px; }
        .comment-content { background: #f0f2f5; padding: 10px 15px; border-radius: 15px; flex: 1; }
        .c-user { font-weight: bold; font-size: 0.85rem; display: block; margin-bottom: 3px; }
        .c-text { font-size: 0.85rem; color: #333; margin: 0; }
		
		        /* ستايل قائمة الإضافة المنبثقة */
        .action-menu-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(10, 25, 47, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3000;
            backdrop-filter: blur(5px);
        }

        .menu-items-wrapper {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            padding: 20px;
            width: 90%;
            animation: popUp 0.3s ease-out;
        }

        @keyframes popUp {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .menu-item {
            background: white;
            padding: 20px;
            border-radius: 20px;
            text-align: center;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            transition: 0.3s;
        }

        .menu-item i { font-size: 2rem; color: var(--navy); }
        .menu-item span { font-weight: bold; color: var(--navy); font-size: 0.9rem; }
        .menu-item:active { transform: scale(0.95); }

        /* ستايل خاص للألوان داخل المنيو */
        .item-news i { color: #0284c7; }
        .item-death i { color: #333; }
        .item-event i { color: #16a34a; }
        .item-photo i { color: var(--gold); }

        .close-menu-btn {
            position: absolute;
            bottom: 40px;
            width: 60px;
            height: 60px;
            background: var(--gold);
            color: var(--navy);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
		        .add-container { padding: 20px; }
        
        .photo-upload-zone {
            width: 120px;
            height: 120px;
            background: #f0f2f5;
            border: 2px dashed #ccc;
            border-radius: 50%;
            margin: 0 auto 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
            position: relative;
        }
        .photo-upload-zone img { width: 100%; height: 100%; object-fit: cover; display: none; }
        .photo-upload-zone i { font-size: 1.5rem; color: #888; }
        .photo-upload-zone span { font-size: 0.7rem; color: #888; margin-top: 5px; }

        .form-card {
            background: white;
            padding: 20px;
            border-radius: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }
        .input-group { margin-bottom: 15px; }
        .input-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: bold;
            color: var(--navy);
            margin-bottom: 8px;
        }
        /* تنسيق الكومبو بوكس والحقول */
        .input-group input, .input-group textarea, .input-group select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #eee;
            border-radius: 12px;
            outline: none;
            font-family: 'Tajawal';
            background: #fdfdfd;
            appearance: none; /* إزالة سهم المتصفح الافتراضي */
            -webkit-appearance: none;
        }
        /* إضافة سهم مخصص للكومبو بوكس */
        .select-wrapper { position: relative; }
        .select-wrapper::after {
            content: '\f107';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #888;
            pointer-events: none;
        }

        .input-group input:focus, .input-group select:focus { border-color: var(--gold); }

        .btn-submit-death {
            width: 100%;
            padding: 15px;
            background: #333;
            color: white;
            border: none;
            border-radius: 15px;
            font-weight: bold;
            font-size: 1rem;
            cursor: pointer;
            margin-top: 10px;
        }
		
		        /* شريط البحث والتصفية */
        .filter-section {
            background: white;
            padding: 15px;
            position: sticky;
            top: 60px;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .search-bar {
            display: flex;
            background: #f0f2f5;
            padding: 10px 15px;
            border-radius: 25px;
            margin-bottom: 15px;
        }
        .search-bar input {
            border: none; background: none; width: 100%; outline: none; font-family: inherit;
        }

        .location-tabs {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            white-space: nowrap;
            padding-bottom: 5px;
        }
        .loc-btn {
            padding: 8px 15px;
            border-radius: 15px;
            background: #f0f2f5;
            border: none;
            font-size: 0.8rem;
            cursor: pointer;
            font-family: inherit;
        }
        .loc-btn.active { background: var(--navy); color: var(--gold); }

        /* كروت العائلات */
        .families-grid {
            padding: 15px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }
        .family-card {
            background: white;
            border-radius: 20px;
            padding: 20px;
            border-right: 5px solid var(--gold);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .family-name {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--navy);
            margin-bottom: 5px;
            display: block;
        }
        .family-loc {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 15px;
            display: block;
        }
        
        /* أزرار الكارت */
        .family-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .f-btn {
            padding: 10px;
            border-radius: 10px;
            text-align: center;
            text-decoration: none;
            font-size: 0.8rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            transition: 0.2s;
        }
        .btn-symbols { background: #e0f2fe; color: #0369a1; } /* رموز العائلة */
        .btn-tree { background: #fef3c7; color: #92400e; }    /* شجرة العائلة */
        
        .f-btn:active { transform: scale(0.95); }
		
		        /* --- ستايلات المودال (النافذة المنبثقة) --- */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6);
            display: none; /* مخفي افتراضياً */
            justify-content: center;
            align-items: center;
            z-index: 3000;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: white;
            width: 90%;
            max-width: 400px;
            border-radius: 20px;
            padding: 20px;
            position: relative;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        /* ستايل فورم التعديل داخل المودال */
        .modal-body input {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 10px;
            font-family: inherit;
        }

        .modal-footer {
            display: flex;
            gap: 10px;
        }
		

        .btn-confirm { background: var(--navy); color: white; border: none; padding: 10px 20px; border-radius: 10px; flex: 1; cursor: pointer; }
        .btn-cancel { background: #eee; color: #333; border: none; padding: 10px 20px; border-radius: 10px; flex: 1; cursor: pointer; }
        .btn-danger { background: #ff4757; color: white; border: none; padding: 10px 20px; border-radius: 10px; flex: 1; cursor: pointer; }

        /* ستايلات الـ Grid والكروت كما هي */
        .symbols-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 15px; }
        .symbol-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; position: relative; border: 1px solid #eee; }
        .card-admin-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 8px; z-index: 10; }
        .admin-tool-btn { width: 28px; height: 28px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; cursor: pointer; }
        .symbol-img { width: 100%; height: 120px; object-fit: cover; }
        .symbol-info { padding: 10px 5px; }
        .add-symbol-fab { position: fixed; bottom: 90px; left: 20px; width: 60px; height: 60px; background: var(--gold); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; z-index: 2000; border: 2px solid white; }

        @media (max-width: 600px) { .symbols-grid { grid-template-columns: repeat(2, 1fr); } }
		
		        /* --- تنسيقات الشجرة التفاعلية --- */
        .tree-container { 
            padding: 50px 20px; 
            overflow-x: auto; 
            background: #fdfdfd; 
            min-height: 90vh;
            white-space: nowrap;
        }
        .tree ul { padding-top: 20px; position: relative; display: flex; justify-content: center; transition: all 0.5s; }
        .tree li { float: right; text-align: center; list-style-type: none; position: relative; padding: 20px 10px 0 10px; transition: all 0.5s; }
        
        /* رسم خطوط الربط */
        .tree li::before, .tree li::after { content: ''; position: absolute; top: 0; right: 50%; border-top: 2px solid #ccc; width: 50%; height: 20px; }
        .tree li::after { left: 50%; border-right: 2px solid #ccc; right: auto; }
        .tree li:only-child::after, .tree li:only-child::before { display: none; }
        .tree li:only-child { padding-top: 0; }
        .tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
        .tree li:last-child::before { border-left: 2px solid #ccc; border-radius: 0 5px 0 0; }
        .tree li:first-child::after { border-radius: 5px 0 0 0; }
        .tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid #ccc; width: 0; height: 20px; }

        /* كارت الشخص */

        /* زر المشاركة العائم */
        .share-fab {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: #25d366;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            cursor: pointer;
            z-index: 2000;
            border: 2px solid white;
            transition: 0.3s;
        }
        .share-fab:active { transform: scale(0.9); }

        /* أدوات التحكم */
        .node-actions { display: flex; justify-content: center; gap: 10px; border-top: 1px solid #eee; padding-top: 8px; }
        .node-actions i { font-size: 0.85rem; cursor: pointer; color: #aaa; transition: 0.3s; }
        .node-actions i:hover { color: var(--gold); }
        .node-actions .fa-trash:hover { color: #ff4757; }

        /* --- المودالات --- */
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); display: none; justify-content: center;
            align-items: center; z-index: 3000; backdrop-filter: blur(4px);
        }
        .modal-content { background: white; width: 90%; max-width: 400px; border-radius: 25px; padding: 30px; animation: pop 0.3s ease; text-align: center; }
        @keyframes pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        
        .modal-body input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #eee; border-radius: 12px; outline: none; background: #f9f9f9; text-align: center; }
        .modal-footer { display: flex; gap: 10px; margin-top: 20px; }
        .btn-confirm { background: var(--navy); color: white; border: none; padding: 12px; border-radius: 12px; flex: 1; cursor: pointer; font-weight: bold; }
        .btn-cancel { background: #f0f0f0; color: #555; border: none; padding: 12px; border-radius: 12px; flex: 1; cursor: pointer; }
        .btn-danger { background: #ff4757; color: white; border: none; padding: 12px; border-radius: 12px; flex: 1; cursor: pointer; font-weight: bold; }
		        .about-header {
            background: var(--navy);
            color: white;
            padding: 40px 20px;
            text-align: center;
            border-radius: 0 0 30px 30px;
        }

        .about-header h2 { margin-bottom: 10px; }

        /* الرؤية والمهمة */
        .vision-mission {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            padding: 20px;
            margin-top: -30px;
        }

        .vm-card {
            background: white;
            padding: 20px;
            border-radius: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            text-align: center;
        }

        .vm-card i { font-size: 1.5rem; color: var(--gold); margin-bottom: 10px; }
        .vm-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
        .vm-card p { font-size: 0.8rem; color: #666; line-height: 1.4; }

        /* فريق العمل */
        .team-section { padding: 20px; padding-bottom: 100px; }
        .section-title {
            text-align: center;
            color: var(--navy);
            margin-bottom: 25px;
            position: relative;
        }
        .section-title::after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background: var(--gold);
            margin: 8px auto;
        }

        /* كارت القائد (عمرو القصبي) */
        .leader-card {
            background: white;
            border-radius: 25px;
            padding: 25px;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            border: 2px solid var(--gold);
            margin-bottom: 30px;
        }

        .member-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: #eee;
            margin: 0 auto 15px;
            border: 3px solid var(--navy);
            object-fit: cover;
        }

        .member-name { color: var(--navy); font-size: 1.3rem; margin-bottom: 5px; }
        .member-role { color: var(--gold); font-weight: bold; font-size: 0.9rem; margin-bottom: 15px; display: block; }

        /* فريق العمل الصغير */
        .team-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .member-card {
            background: white;
            border-radius: 20px;
            padding: 15px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }

        .member-card .member-img { width: 80px; height: 80px; }
        .member-card .member-name { font-size: 1rem; }

        /* أيقونات التواصل */
        .social-links {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 10px;
        }

        .social-links a {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: #f0f2f5;
            color: var(--navy);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: 0.3s;
            font-size: 0.9rem;
        }

        .social-links a:hover { background: var(--navy); color: white; }
		.auth-container { padding: 40px 20px; text-align: center; max-width: 400px; margin: auto; }
.auth-header h1 { color: var(--navy); margin-bottom: 10px; }
.input-group {
    background: #f0f2f5;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.input-group input { border: none; background: none; width: 100%; outline: none; }
.auth-btn {
    width: 100%;
    padding: 15px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}
.auth-options { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 20px; }
.error-page, .offline-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.wifi-icon { font-size: 4rem; color: #ccc; margin-bottom: 20px; }

/*الراحلون*/
.fab-deceased {
        position: fixed;
        bottom: 100px; /* فوق زر الإضافة */
        right: 25px;
        background: #546e7a; /* لون وقور */
        color: #fff;
        padding: 0 15px;
        height: 50px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        text-decoration: none;
        z-index: 1000;
        font-size: 0.9rem;
        border: 2px solid #fff;
    }
.fab-deceased {
    display: flex !important; /* لضمان عدم وجود scripts تخفيه */
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 100px; /* لضمان وجود عرض للزر */
}