        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            font-family: 'Tajawal', sans-serif;
            overflow-x: hidden;
        }
        
        /* الحاوية الرئيسية */
        .login-wrapper {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        /* بطاقة تسجيل الدخول */
        .login-card {
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid rgba(59, 130, 246, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            width: 100%;
            box-shadow: 
                0 15px 35px rgba(0, 0, 0, 0.3),
                0 5px 15px rgba(59, 130, 246, 0.1);
            transition: all 0.4s ease;
        }
        
        .login-card:hover {
            border-color: rgba(59, 130, 246, 0.4);
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.4),
                0 10px 20px rgba(59, 130, 246, 0.15);
        }
        
        /* الشعار */
        .login-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .logo-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
        }
        
        .logo-icon i {
            font-size: 1.8rem;
            color: white;
        }
        
        .logo-text {
            font-size: 2rem;
            font-weight: 800;
            background: linear-gradient(135deg, #60a5fa, #a5b4fc);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .logo-subtitle {
            color: #94a3b8;
            font-size: 0.9rem;
            margin-top: -5px;
        }
        
        /* العنوان */
        .login-title {
            font-size: 1.6rem;
            font-weight: 700;
            color: #93c5fd;
            text-align: center;
            margin-bottom: 30px;
            position: relative;
            padding-bottom: 15px;
        }
        
        .login-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
            border-radius: 2px;
        }
        
        /* الإشعارات */
        .notification {
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: none;
            animation: slideIn 0.3s ease;
            align-items: flex-start;
            gap: 10px;
        }
        
        .notification.show {
            display: flex;
        }
        
        .notification.success {
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid rgba(34, 197, 94, 0.3);
            color: #86efac;
        }
        
        .notification.error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #fca5a5;
        }
        
        .notification i {
            font-size: 1.2rem;
            margin-top: 2px;
        }
        
        .notification-content h4 {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 0.95rem;
        }
        
        .notification-content p {
            font-size: 0.85rem;
            margin: 0;
            line-height: 1.5;
        }
        
        .notification-close {
            background: none;
            border: none;
            color: inherit;
            cursor: pointer;
            margin-right: auto;
            font-size: 0.9rem;
            opacity: 0.7;
            transition: opacity 0.2s ease;
        }
        
        .notification-close:hover {
            opacity: 1;
        }
        
        /* نموذج الإدخال */
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            color: #cbd5e1;
            margin-bottom: 8px;
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .input-container {
            position: relative;
        }
        
        .form-input {
            width: 100%;
            padding: 14px 45px 14px 15px;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 10px;
            color: white;
            font-size: 0.95rem;
            font-family: 'Tajawal', sans-serif;
            transition: all 0.3s ease;
        }
        
        .form-input:focus {
            outline: none;
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            background: rgba(15, 23, 42, 0.8);
        }
        
        .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #60a5fa;
            font-size: 1rem;
        }
        
        /* خيارات تذكرني */
        .remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #cbd5e1;
            font-size: 0.85rem;
        }
        
        .remember-checkbox {
            width: 16px;
            height: 16px;
            accent-color: #3b82f6;
            cursor: pointer;
        }
        
        .forgot-password {
            color: #60a5fa;
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.2s ease;
        }
        
        .forgot-password:hover {
            color: #93c5fd;
            text-decoration: underline;
        }
        
        /* زر تسجيل الدخول */
        .login-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border: none;
            border-radius: 10px;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 25px;
        }
        
        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
        }
        
        /* رابط التسجيل */
        .register-link {
            text-align: center;
            color: #94a3b8;
            font-size: 0.9rem;
        }
        
        .register-link a {
            color: #60a5fa;
            text-decoration: none;
            font-weight: 600;
            margin-right: 5px;
            transition: color 0.2s ease;
        }
        
        .register-link a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }
        
        /* تأثيرات */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* تصميم متجاوب */
        @media (max-width: 480px) {
            .login-card {
                padding: 30px;
            }
            
            .logo-icon {
                width: 60px;
                height: 60px;
            }
            
            .logo-icon i {
                font-size: 1.5rem;
            }
            
            .logo-text {
                font-size: 1.8rem;
            }
            
            .login-title {
                font-size: 1.4rem;
            }
        }
        
        /* زر إظهار/إخفاء كلمة المرور */
        .password-toggle {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            font-size: 1rem;
            z-index: 2;
        }
        
        .password-toggle:hover {
            color: #60a5fa;
        }
        
        /* التأكد من عدم ظهور الهيدر والفوتر */
        header, footer {
            display: none !important;
        }
        
        /* تأثير ظهور البطاقة */
        .login-card {
            animation: fadeIn 0.6s ease forwards;
        }
        
        /* تحسينات للحقول */
        .form-input.error {
            border-color: rgba(239, 68, 68, 0.5);
            background: rgba(239, 68, 68, 0.05);
        }
        
        .form-input.success {
            border-color: rgba(34, 197, 94, 0.5);
            background: rgba(34, 197, 94, 0.05);
        }
        
        /* تأثير اهتزاز عند الخطأ */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }
        
        .shake {
            animation: shake 0.5s ease;
        }
        
        /* تأثير النموذج عند الإرسال */
        .form-submitting .login-btn {
            opacity: 0.7;
            cursor: not-allowed;
        }
        
        /* تلميحات الأدوات */
        .form-input::placeholder {
            color: #64748b;
            font-size: 0.9rem;
        }
        
        /* إزالة الزخارف من أزرار الإدخال */
        input[type="email"],
        input[type="password"],
        input[type="text"] {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
        
        /* تحسين المظهر على متصفحات مختلفة */
        .form-input::-webkit-input-placeholder {
            color: #64748b;
        }
        
        .form-input:-ms-input-placeholder {
            color: #64748b;
        }
        
        .form-input::-ms-input-placeholder {
            color: #64748b;
        }
        
        .form-input::placeholder {
            color: #64748b;
        }

        /* تنسيقات خاصة لصفحة التسجيل */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        /* شدة كلمة المرور */
        .password-strength {
            margin-top: 8px;
            height: 5px;
            border-radius: 3px;
            background: rgba(100, 116, 139, 0.3);
            overflow: hidden;
        }

        .strength-bar {
            height: 100%;
            width: 0%;
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .strength-bar.weak {
            background: #ef4444;
            width: 33%;
        }

        .strength-bar.medium {
            background: #f59e0b;
            width: 66%;
        }

        .strength-bar.strong {
            background: #10b981;
            width: 100%;
        }

        .strength-text {
            font-size: 0.8rem;
            color: #94a3b8;
            margin-top: 4px;
            text-align: left;
        }

        /* شروط كلمة المرور */
        .password-requirements {
            background: rgba(15, 23, 42, 0.4);
            border-radius: 8px;
            padding: 15px;
            margin-top: 10px;
            margin-bottom: 20px;
            border: 1px solid rgba(59, 130, 246, 0.1);
        }

        .password-requirements h5 {
            color: #cbd5e1;
            font-size: 0.9rem;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .requirement-list {
            list-style: none;
            padding: 0;
        }

        .requirement-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #94a3b8;
            font-size: 0.8rem;
            margin-bottom: 6px;
        }

        .requirement-item i {
            font-size: 0.7rem;
        }

        .requirement-item.valid {
            color: #86efac;
        }

        .requirement-item.valid i {
            color: #10b981;
        }

        /* خيارات الاشتراك */
        .subscription-options {
            margin-bottom: 25px;
        }

        .subscription-title {
            color: #cbd5e1;
            font-size: 0.95rem;
            margin-bottom: 12px;
            font-weight: 500;
        }

        .subscription-types {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .subscription-type {
            position: relative;
        }

        .subscription-type input[type="radio"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .subscription-type label {
            display: block;
            padding: 12px;
            background: rgba(15, 23, 42, 0.4);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .subscription-type input[type="radio"]:checked + label {
            background: rgba(59, 130, 246, 0.1);
            border-color: rgba(59, 130, 246, 0.5);
            color: #60a5fa;
        }

        .subscription-type label:hover {
            border-color: rgba(59, 130, 246, 0.3);
        }

        /* زر إنشاء حساب */
        .register-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #10b981, #3b82f6);
            border: none;
            border-radius: 10px;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 25px;
        }

        .register-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
        }

        .register-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* رابط تسجيل الدخول */
        .login-link {
            text-align: center;
            color: #94a3b8;
            font-size: 0.9rem;
        }

        .login-link a {
            color: #60a5fa;
            text-decoration: none;
            font-weight: 600;
            margin-right: 5px;
            transition: color 0.2s ease;
        }

        .login-link a:hover {
            color: #93c5fd;
            text-decoration: underline;
        }

        /* اتفاقية الاستخدام */
        .terms-agreement {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 25px;
            color: #cbd5e1;
            font-size: 0.85rem;
        }

        .terms-agreement input[type="checkbox"] {
            margin-top: 3px;
            accent-color: #3b82f6;
        }

        .terms-agreement a {
            color: #60a5fa;
            text-decoration: none;
        }

        .terms-agreement a:hover {
            text-decoration: underline;
        }

        /* نص مساعد تحت الحقول */
        .form-help {
            font-size: 0.8rem;
            color: #94a3b8;
            margin-top: 5px;
            display: block;
        }

        /* تحسينات متجاوبة */
        @media (max-width: 480px) {
            .form-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .subscription-types {
                grid-template-columns: 1fr;
            }
            
            .register-card {
                padding: 30px;
            }
        }

        /* رسالة التحقق */
        .verification-message {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
            display: none;
        }

        .verification-message.show {
            display: block;
            animation: slideIn 0.3s ease;
        }

        .verification-message p {
            color: #93c5fd;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .verification-message small {
            color: #94a3b8;
            font-size: 0.8rem;
        }

        /* شريط التقدم في التسجيل */
        .registration-progress {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            position: relative;
        }

        .registration-progress::before {
            content: '';
            position: absolute;
            top: 15px;
            right: 0;
            left: 0;
            height: 2px;
            background: rgba(59, 130, 246, 0.2);
            z-index: 1;
        }

        .progress-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .step-number {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(30, 41, 59, 0.8);
            border: 2px solid rgba(59, 130, 246, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 8px;
            transition: all 0.3s ease;
        }

        .step-label {
            font-size: 0.8rem;
            color: #94a3b8;
            transition: all 0.3s ease;
        }

        .progress-step.active .step-number {
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            border-color: rgba(59, 130, 246, 0.6);
            color: white;
            transform: scale(1.1);
        }

        .progress-step.active .step-label {
            color: #93c5fd;
            font-weight: 600;
        }

        .progress-step.completed .step-number {
            background: rgba(34, 197, 94, 0.2);
            border-color: rgba(34, 197, 94, 0.5);
            color: #86efac;
        }

        /* حقل البحث عن اسم المستخدم */
        .username-availability {
            position: relative;
        }

        .username-check {
            position: absolute;
            left: 45px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #60a5fa;
            cursor: pointer;
            font-size: 1rem;
            display: none;
        }

        .username-check.visible {
            display: block;
        }

        .availability-status {
            font-size: 0.8rem;
            margin-top: 5px;
            display: none;
        }

        .availability-status.available {
            color: #10b981;
            display: block;
        }

        .availability-status.taken {
            color: #ef4444;
            display: block;
        }

        /* الأساس المشترك لكل أزرار الـ auth */
.menu-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border-width: 1px;
    border-style: solid;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

/* زر تسجيل الدخول / إنشاء حساب */
.menu-login-btn,
.menu-register-btn {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-color: rgba(59, 130, 246, 0.5);
    color: #e5f0ff;
}

/* زر تسجيل الخروج – كلاس جديد بدون تعارض */
.menu-logout-danger {
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    border-color: rgba(248, 113, 113, 0.9);
    color: #fee2e2;
}

/* Hover */
.menu-login-btn:hover,
.menu-register-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.menu-logout-danger:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.45);
}

        .forgot-wrapper {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
        }
        
        .forgot-card {
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid rgba(59, 130, 246, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            width: 100%;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.6s ease;
        }
        
        .forgot-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .forgot-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #f59e0b, #3b82f6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
        }
        
        .forgot-icon i {
            font-size: 1.8rem;
            color: white;
        }
        
        .forgot-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #fbbf24;
            margin-bottom: 10px;
        }
        
        .forgot-subtitle {
            color: #94a3b8;
            font-size: 0.95rem;
            line-height: 1.5;
        }
        
        .forgot-form {
            margin-bottom: 30px;
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-label {
            display: block;
            color: #cbd5e1;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .input-container {
            position: relative;
        }
        
        .form-input {
            width: 100%;
            padding: 14px 45px 14px 15px;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 10px;
            color: white;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }
        
        .form-input:focus {
            outline: none;
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        
        .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #f59e0b;
            font-size: 1rem;
        }
        
        .submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #f59e0b, #3b82f6);
            border: none;
            border-radius: 10px;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
        }
        
        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        .back-link {
            text-align: center;
            color: #94a3b8;
            font-size: 0.9rem;
        }
        
        .back-link a {
            color: #60a5fa;
            text-decoration: none;
            font-weight: 600;
            margin-right: 5px;
        }
        
        .back-link a:hover {
            text-decoration: underline;
        }
        
        .notification {
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: none;
            animation: slideIn 0.3s ease;
            align-items: flex-start;
            gap: 10px;
        }
        
        .notification.show {
            display: flex;
        }
        
        .notification.success {
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid rgba(34, 197, 94, 0.3);
            color: #86efac;
        }
        
        .notification.error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #fca5a5;
        }
        
        .notification-close {
            background: none;
            border: none;
            color: inherit;
            cursor: pointer;
            margin-right: auto;
            opacity: 0.7;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @media (max-width: 480px) {
            .forgot-card {
                padding: 30px;
            }
            
            .forgot-title {
                font-size: 1.5rem;
            }
        }