/* ===== قائمة المستخدم العصرية ===== */
.user-dropdown {
    position: relative;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: -50px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.user-profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.profile-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.profile-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.profile-info {
    text-align: center;
}

.user-email {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 600;
}

.profile-header h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.profile-content {
    padding: 15px;
    background: #f9fafb;
}

.profile-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Cairo', sans-serif;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    text-align: right;
}

.profile-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.profile-btn i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.profile-btn.login-btn {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
    justify-content: center;
}

.profile-btn.login-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.profile-btn.register-btn {
    background: white;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    justify-content: center;
}

.profile-btn.register-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.profile-btn.logout-btn {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.profile-btn.logout-btn:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}





.user-menu-header {
    padding: 30px 25px 25px;
    text-align: center;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.user-menu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.welcome-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    position: relative;
    z-index: 1;
    color: white !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.welcome-icon i {
    color: white !important;
    font-size: 22px;
}

.user-menu-header h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.user-menu-header p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.user-menu-content {
    padding: 30px;
    background: white;
}

.benefits-list {
    margin-bottom: 25px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    color: #4b5563;
    font-size: 15px;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 500;
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item i {
    color: #1e40af;
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.user-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
}

.user-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.user-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.login-btn:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.4);
}

.register-btn {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.register-btn:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.3);
}

.user-btn i {
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.quick-links {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid white;
}

.quick-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quick-link i {
    font-size: 14px;
}
/* تحسينات قائمة المستخدم */
.user-menu-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3b82f6;
    font-size: 18px;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.user-menu .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-menu .auth-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-menu .auth-logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.user-menu .auth-btn {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-menu .auth-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* حل نهائي للشاشات الصغيرة */
@media (max-width: 768px) {
    .user-menu {
        position: absolute;
        top: 100%;
        right: -100px;
        width: 280px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    
    .profile-header {
        padding: 15px;
    }
    
    .profile-content {
        padding: 12px;
    }
    
    .profile-logo img {
        width: 60px;
        height: 60px;
    }
    
    .user-email {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .user-menu {
        right: -120px;
        width: 260px;
    }
    
    .profile-header {
        padding: 12px;
    }
    
    .profile-logo img {
        width: 50px;
        height: 50px;
    }
    
    .user-email {
        font-size: 12px;
    }
    
    .profile-content {
        padding: 10px;
    }
    
    .profile-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}