/* ============================================
   SHARE - HEADER
   الهيدر والقوائم (مع دعم RTL)
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 2px solid rgba(13,148,136,0.15);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ===== LOGO ===== */
.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--charity-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text span {
    color: var(--charity-secondary);
}

[dir="rtl"] .logo-text {
    font-size: 22px;
    letter-spacing: 0.5px;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 4px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--charity-primary);
    transition: all 0.3s;
}

.nav a:hover {
    color: var(--charity-primary);
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--charity-primary);
}

.nav a.active::after {
    width: 100%;
}

.nav .share-btn {
    background: var(--charity-primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.nav .share-btn::after {
    display: none;
}

.nav .share-btn:hover {
    background: var(--charity-primary-dark);
    color: var(--white) !important;
}

[dir="rtl"] .nav a {
    font-size: 15px;
    font-weight: 500;
}

[dir="rtl"] .nav .share-btn {
    font-size: 14px;
    padding: 6px 16px;
}

/* ===== HEADER CONTROLS ===== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

[dir="rtl"] .header-controls {
    margin-left: 0;
    margin-right: auto;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--gray-200);
    border-color: var(--charity-primary);
}

.lang-btn .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
}

.lang-btn.active .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 1001;
    border: 1px solid var(--gray-200);
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-dropdown.active {
    display: block;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.lang-dropdown a:hover {
    background: var(--gray-50);
    color: var(--charity-primary);
}

.lang-dropdown a.active {
    background: var(--gray-50);
    color: var(--charity-primary);
    font-weight: 600;
}

.lang-dropdown a.active::before {
    content: '✓ ';
    color: var(--charity-primary);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--charity-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    min-width: 40px;
    min-height: 40px;
}

.hamburger:hover {
    background: rgba(13, 148, 136, 0.08);
}

/* ===== NAV CLOSE (Mobile) ===== */
.nav-close {
    display: none;
}

/* ============================================
   DROPDOWN MENU - القائمة المنسدلة للتصنيفات
   ============================================ */

/* ===== عنصر القائمة الذي يحتوي على قائمة فرعية ===== */
.menu-item-has-children {
    position: relative;
}

/* ===== سهم القائمة المنسدلة ===== */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== القائمة الفرعية ===== */
.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 280px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 100;
    border: 1px solid var(--gray-200);
    list-style: none;
    flex-direction: column;  /* ✅ إضافة هذا السطر */
}

/* ===== إظهار القائمة عند التمرير (LTR) ===== */
.menu-item-has-children:hover .sub-menu {
    display: flex;  /* ✅ تغيير من block إلى flex */
    animation: subMenuFade 0.25s ease;
}

/* ===== أنيميشن القائمة المنسدلة (LTR) ===== */
@keyframes subMenuFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

[dir="rtl"] .sub-menu {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .menu-item-has-children:hover .sub-menu {
    animation: subMenuFadeRTL 0.25s ease;
}

/* ===== أنيميشن القائمة المنسدلة (RTL) ===== */
@keyframes subMenuFadeRTL {
    from {
        opacity: 0;
        transform: translateX(50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
}

[dir="rtl"] .dropdown-arrow {
    margin-left: 0;
    margin-right: 4px;
}

[dir="rtl"] .sub-menu li a {
    direction: rtl;
}

/* ============================================
   عناصر القائمة الفرعية
   ============================================ */

.sub-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;  /* ✅ إضافة هذا السطر */
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    width: 100%;  /* ✅ إضافة هذا السطر */
}

.sub-menu li a:hover {
    background: var(--gray-50);
    color: var(--charity-primary);
}

.sub-menu li a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--charity-primary);
    flex-shrink: 0;
}

/* ===== فاصل بين الأقسام ===== */
.menu-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
    padding: 0 !important;
    border-bottom: none !important;
}

/* ============================================
   RESPONSIVE - HEADER
   ============================================ */

@media (max-width: 992px) {
    .nav ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* ===== MOBILE HEADER ===== */
    .header {
        padding: 10px 0;
    }
    
    .header-inner {
        gap: 8px;
    }
    
    .logo-text {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    [dir="rtl"] .logo-text {
        font-size: 17px;
    }
    
    /* ===== HEADER CONTROLS ===== */
    .header-controls {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    [dir="rtl"] .header-controls {
        margin-left: 0;
        margin-right: auto;
    }
    
    /* ===== HAMBURGER ===== */
    .hamburger {
        display: flex !important;
        font-size: 20px;
        padding: 6px 10px;
        min-width: 36px;
        min-height: 36px;
        order: 1;
    }
    
    [dir="rtl"] .hamburger {
        order: -1;
    }
    
    /* ===== LANGUAGE BUTTON ===== */
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 36px;
        order: 2;
    }
    
    [dir="rtl"] .lang-btn {
        order: 1;
    }
    
    .lang-btn span {
        display: none;
    }
    
    .lang-btn .fa-chevron-down {
        display: none;
    }
    
    .lang-dropdown {
        min-width: 150px;
        right: 0;
    }
    
    [dir="rtl"] .lang-dropdown {
        right: auto;
        left: 0;
    }
    
    /* ===== MOBILE NAV ===== */
    .nav {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        padding: 70px 24px 30px;
        z-index: 999;
        overflow-y: auto;
        flex-direction: column;
        margin: 0;
    }
    
    .nav.active {
        display: flex !important;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ===== NAV LINKS ===== */
    .nav ul {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        padding: 0;
        margin: 0;
        flex: 1;
    }
    
    .nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav ul li a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 20px !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        color: var(--gray-700) !important;
        border-radius: var(--radius-sm);
        transition: all 0.3s;
        text-decoration: none !important;
        min-height: 50px;
    }
    
    [dir="rtl"] .nav ul li a {
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    .nav ul li a i {
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: var(--charity-primary);
    }
    
    [dir="rtl"] .nav ul li a i {
        font-size: 17px;
        width: 22px;
    }
    
    .nav ul li a:hover {
        background: var(--charity-primary) !important;
        color: var(--white) !important;
    }
    
    .nav ul li a:hover i {
        color: var(--white) !important;
    }
    
    .nav ul li a.active {
        background: var(--charity-primary) !important;
        color: var(--white) !important;
    }
    
    .nav ul li a.active i {
        color: var(--white) !important;
    }
    
    /* ===== SHARE BUTTON IN MOBILE ===== */
    .nav ul li a.share-btn {
        background: var(--charity-primary) !important;
        color: var(--white) !important;
        justify-content: center;
        margin-top: 10px;
        border-radius: 50px !important;
    }
    
    .nav ul li a.share-btn i {
        color: var(--white) !important;
    }
    
    .nav ul li a.share-btn:hover {
        background: var(--charity-primary-dark) !important;
    }
    
    /* ===== CLOSE BUTTON ===== */
    .nav-close {
        display: block !important;
        position: absolute;
        top: 16px;
        right: 20px;
        background: var(--gray-100);
        border: none;
        font-size: 24px;
        color: var(--gray-700);
        cursor: pointer;
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        z-index: 1001;
        transition: all 0.3s;
    }
    
    [dir="rtl"] .nav-close {
        right: auto;
        left: 20px;
    }
    
    .nav-close:hover {
        background: var(--gray-200);
        color: var(--charity-primary);
    }
    
    /* ===== BODY LOCK ===== */
    body.menu-open {
        overflow: hidden;
    }
    
    /* ===== MOBILE DROPDOWN ===== */
    .sub-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding: 0;
        background: var(--gray-50);
        border-radius: var(--radius-sm);
        margin-top: 4px;
        width: 100%;
        animation: none !important;
    }
    
    [dir="rtl"] .sub-menu {
        transform: none !important;
    }
    
    .sub-menu li a {
        padding: 10px 16px 10px 40px;
        font-size: 14px;
    }
    
    [dir="rtl"] .sub-menu li a {
        padding: 10px 40px 10px 16px;
    }
    
    .sub-menu li a i {
        width: 20px;
    }
    
    .menu-item-has-children .dropdown-arrow {
        display: none;
    }
    
    .menu-divider {
        display: none;
    }
    
    /* في الموبايل، القائمة تظهر عند النقر وليس عند التمرير */
    .menu-item-has-children .sub-menu {
        display: none;
    }
    
    .menu-item-has-children.active .sub-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }
    
    [dir="rtl"] .logo-text {
        font-size: 15px;
    }
    
    .nav {
        padding: 60px 16px 20px !important;
    }
    
    .nav ul li a {
        font-size: 15px !important;
        padding: 12px 14px !important;
        min-height: 44px;
    }
    
    [dir="rtl"] .nav ul li a {
        font-size: 14px !important;
        padding: 10px 14px !important;
    }
    
    .nav ul li a i {
        font-size: 16px;
        width: 20px;
    }
    
    .nav-close {
        top: 12px;
        right: 14px;
        font-size: 20px;
        padding: 6px 10px;
    }
    
    [dir="rtl"] .nav-close {
        right: auto;
        left: 14px;
    }
    
    .hamburger {
        font-size: 18px;
        padding: 4px 8px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-height: 30px;
    }
}

/* ===== إجبار إخفاء القائمة ===== */
.sub-menu {
    display: none !important;
}

.menu-item-has-children:hover .sub-menu {
    display: flex !important;
}

/* ============================================
   SHARE BREADCRUMB - مسار الصفحة
   ============================================ */

.share-breadcrumb {
    background: var(--gray-50);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-top: 80px;
}

.share-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}

.share-breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-breadcrumb a:hover {
    color: var(--charity-primary);
}

.share-breadcrumb a.active {
    color: var(--charity-primary);
    font-weight: 600;
}

.share-breadcrumb .separator {
    color: var(--gray-400);
    font-size: 12px;
}

.share-breadcrumb .current {
    color: var(--gray-700);
    font-weight: 600;
}

/* ===== RTL ===== */
[dir="rtl"] .share-breadcrumb a i {
    transform: scaleX(-1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .share-breadcrumb {
        margin-top: 70px;
        padding: 10px 0;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .share-breadcrumb {
        margin-top: 60px;
        padding: 8px 0;
        font-size: 12px;
    }
}

/* في share/assets/css/share-header.css */

.logo-main img {
    height: 36px;
    width: auto;
    max-width: 220px;  /* ✅ منع التمدد الزائد */
}

/* للموبايل */
@media (max-width: 768px) {
    .logo-main img {
        height: 28px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .logo-main img {
        height: 24px;
        max-width: 120px;
    }
}

/* ============================================
   USER MENU - قائمة المستخدم
   ============================================ */

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

/* ===== مستخدم مسجل ===== */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.user-btn:hover {
    background: var(--gray-200);
    border-color: var(--charity-primary);
}

.user-btn .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--charity-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-btn .user-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-btn .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
}

.user-btn.active .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 1001;
    border: 1px solid var(--gray-200);
}

.user-dropdown-content.active {
    display: block;
    animation: dropdownFade 0.2s ease;
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.user-dropdown-content a:hover {
    background: var(--gray-50);
    color: var(--charity-primary);
}

.user-dropdown-content a .badge {
    margin-left: auto;
    background: #EF4444;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 10px;
    border-radius: 50px;
}

.user-dropdown-content .dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

.user-dropdown-content .logout-link {
    color: #DC2626;
}

.user-dropdown-content .logout-link:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* ===== زائر ===== */
.user-menu-guest {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu-guest .login-btn {
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--charity-primary);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.user-menu-guest .login-btn:hover {
    background: var(--charity-primary-dark);
    transform: translateY(-2px);
}

.user-menu-guest .register-btn {
    padding: 6px 14px;
    border-radius: 50px;
    background: transparent;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.user-menu-guest .register-btn:hover {
    border-color: var(--charity-primary);
    color: var(--charity-primary);
}

/* ============================================
   RESPONSIVE - USER MENU
   ============================================ */

@media (max-width: 768px) {
    .user-btn .user-name {
        display: none;
    }
    
    .user-btn {
        padding: 6px 10px 6px 6px;
    }
    
    .user-btn .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .user-menu-guest .login-btn,
    .user-menu-guest .register-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .user-menu-guest .register-btn {
        display: none;
    }
    
    .user-dropdown-content {
        min-width: 180px;
        right: -10px;
    }
}

/* ============================================
   USER MENU - قائمة المستخدم
   ============================================ */

/* ===== حاوية القائمة ===== */
.user-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== مستخدم مسجل ===== */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    min-height: 36px;
}

.user-btn:hover {
    background: var(--gray-200);
    border-color: var(--charity-primary);
}

.user-btn .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--charity-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-btn .user-name {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.user-btn .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
    margin-left: 2px;
}

.user-btn.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* ===== القائمة المنسدلة للمستخدم ===== */
.user-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    z-index: 1001;
    border: 1px solid var(--gray-200);
}

.user-dropdown-content.active {
    display: block;
    animation: dropdownFade 0.2s ease;
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.user-dropdown-content a:hover {
    background: var(--gray-50);
    color: var(--charity-primary);
}

.user-dropdown-content a .badge {
    margin-left: auto;
    background: #EF4444;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 50px;
}

.user-dropdown-content .dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 12px;
}

.user-dropdown-content .logout-link {
    color: #DC2626;
}

.user-dropdown-content .logout-link:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* ===== زائر (غير مسجل) ===== */
.user-menu-guest {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-menu-guest .login-btn {
    padding: 4px 14px;
    border-radius: 50px;
    background: var(--charity-primary);
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.user-menu-guest .login-btn:hover {
    background: var(--charity-primary-dark);
    transform: translateY(-1px);
}

.user-menu-guest .register-btn {
    padding: 4px 12px;
    border-radius: 50px;
    background: transparent;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
    white-space: nowrap;
}

.user-menu-guest .register-btn:hover {
    border-color: var(--charity-primary);
    color: var(--charity-primary);
}

/* ============================================
   RESPONSIVE - USER MENU
   ============================================ */

@media (max-width: 992px) {
    .user-btn .user-name {
        display: none;
    }
    
    .user-btn {
        padding: 4px 8px 4px 4px;
        min-height: 32px;
    }
    
    .user-btn .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .user-menu-guest .register-btn {
        display: none;
    }
    
    .user-menu-guest .login-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .user-dropdown-content {
        min-width: 180px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .user-menu-guest .login-btn {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .user-btn {
        padding: 2px 6px 2px 2px;
        min-height: 28px;
    }
    
    .user-btn .user-avatar {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* ============================================
   NOTIFICATIONS - الإشعارات
   ============================================ */

.notifications-wrapper {
    position: relative;
}

.notif-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--charity-primary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.notif-btn:hover {
    background: rgba(13, 148, 136, 0.08);
}

.notif-btn .notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== Notifications Dropdown ===== */
.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 460px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1002;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

[dir="rtl"] .notif-dropdown {
    right: auto;
    left: 0;
}

.notif-dropdown.active {
    display: block;
    animation: dropdownFade 0.25s ease;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.notif-header span {
    font-weight: 700;
    font-size: 15px;
    color: #0F172A;
}

.notif-header .mark-all-read {
    font-size: 12px;
    color: #0D9488;
    text-decoration: none;
    font-weight: 600;
}

.notif-header .mark-all-read:hover {
    text-decoration: underline;
}

.notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.notif-list::-webkit-scrollbar {
    width: 4px;
}

.notif-list::-webkit-scrollbar-track {
    background: #F1F5F9;
}

.notif-list::-webkit-scrollbar-thumb {
    background: #0D9488;
    border-radius: 4px;
}

/* ===== Notification Item ===== */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notif-item:hover {
    background: #F8FAFC;
}

.notif-item.unread {
    background: #F0FDF4;
}

.notif-item.unread:hover {
    background: #D1FAE5;
}

.notif-item .notif-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #D1FAE5;
    color: #0D9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notif-item .notif-content {
    flex: 1;
    min-width: 0;
}

.notif-item .notif-title {
    font-weight: 600;
    font-size: 14px;
    color: #0F172A;
}

.notif-item .notif-message {
    font-size: 13px;
    color: #475569;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item .notif-time {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 4px;
}

.notif-item .notif-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #0D9488;
    margin-top: 4px;
}

.notif-empty {
    text-align: center;
    padding: 30px 20px;
}

.notif-empty i {
    font-size: 32px;
    color: #D1FAE5;
}

.notif-empty p {
    color: #94A3B8;
    font-size: 14px;
    margin-top: 8px;
}

.notif-footer {
    padding: 10px 18px;
    border-top: 1px solid #E2E8F0;
    text-align: center;
    background: #F8FAFC;
}

.notif-footer a {
    color: #0D9488;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.notif-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE - NOTIFICATIONS
   ============================================ */

@media (max-width: 480px) {
    .notif-dropdown {
        width: 320px;
        right: -60px;
    }
    
    [dir="rtl"] .notif-dropdown {
        right: auto;
        left: -60px;
    }
}

/* ============================================
   MESSAGES BUTTON - زر الرسائل
   ============================================ */

.messages-wrapper {
    position: relative;
}

.msg-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--charity-primary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.msg-btn:hover {
    background: rgba(13, 148, 136, 0.08);
}

.msg-btn .msg-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse-badge 2s infinite;
}