/* =============================================
   أكاديمية نوران - الأنماط المخصصة
   Nouran Academy - Custom Styles
   ============================================= */

/* استيراد خط عربي جميل */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* =============================================
   المتغيرات الأساسية (CSS Variables)
   ============================================= */
:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --secondary: #EC4899;
    --secondary-light: #F9A8D4;
    --accent: #F59E0B;
    --accent-light: #FCD34D;
    --teal: #14B8A6;
    --teal-light: #5EEAD4;
    --bg-light: #FDF4FF;
    --bg-warm: #FFFBEB;
    --text-dark: #1E1B4B;
    --text-muted: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);
    --gradient-cool: linear-gradient(135deg, #14B8A6 0%, #7C3AED 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 10px 30px -5px rgba(124, 58, 237, 0.3);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

/* =============================================
   الأنماط الأساسية (Base Styles)
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    background-color: #FAFAFA;
    line-height: 1.7;
    overflow-x: hidden;
}

/* =============================================
   شريط التنقل (Navbar)
   ============================================= */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* =============================================
   قسم البطل (Hero Section)
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, #EDE9FE 0%, #FCE7F3 30%, #FEF3C7 60%, #CCFBF1 100%);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    animation: float-bg 15s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
    animation: float-bg 12s ease-in-out infinite reverse;
}

@keyframes float-bg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 550px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* =============================================
   الأزرار (Buttons)
   ============================================= */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-colored);
    font-family: 'Tajawal', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(124, 58, 237, 0.2);
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.04);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

/* =============================================
   البطاقات (Cards)
   ============================================= */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-icon.purple { background: #EDE9FE; color: var(--primary); }
.card-icon.pink { background: #FCE7F3; color: var(--secondary); }
.card-icon.yellow { background: #FEF3C7; color: var(--accent); }
.card-icon.teal { background: #CCFBF1; color: var(--teal); }
.card-icon.blue { background: #DBEAFE; color: var(--info); }
.card-icon.green { background: #D1FAE5; color: var(--success); }

/* =============================================
   إحصائيات لوحة التحكم (Dashboard Stats)
   ============================================= */
.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 0 0 80px;
    opacity: 0.1;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card.purple::before { background: var(--primary); }
.stat-card.pink::before { background: var(--secondary); }
.stat-card.yellow::before { background: var(--accent); }
.stat-card.teal::before { background: var(--teal); }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-number.purple { color: var(--primary); }
.stat-number.pink { color: var(--secondary); }
.stat-number.yellow { color: var(--accent); }
.stat-number.teal { color: var(--teal); }

/* =============================================
   النجوم (Stars Rating)
   ============================================= */
.stars {
    display: flex;
    gap: 0.25rem;
    direction: ltr;
}

.star {
    color: #E5E7EB;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.star.filled {
    color: var(--accent);
}

.star-input {
    display: flex;
    gap: 0.25rem;
    direction: ltr;
}

.star-input input[type="radio"] {
    display: none;
}

.star-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #E5E7EB;
    transition: all 0.2s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: var(--accent);
    transform: scale(1.1);
}

/* =============================================
   الجداول (Tables)
   ============================================= */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #F5F3FF 0%, #FDF2F8 100%);
}

.data-table th {
    padding: 1rem 1.25rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
}

.data-table td {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.9375rem;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.02);
}

/* =============================================
   النماذج (Forms)
   ============================================= */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    direction: rtl;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: left 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    direction: rtl;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* =============================================
   التنبيهات (Alerts)
   ============================================= */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.4s ease-out;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

/* =============================================
   ميزات قسم الصفحة الرئيسية (Features Section)
   ============================================= */
.features-section {
    background: white;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: white;
}

.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.12);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.feature-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-emoji {
    transform: scale(1.2) rotate(5deg);
}

/* =============================================
   قسم الإحصائيات (Stats Section)
   ============================================= */
.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='15' cy='15' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-big-number {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* =============================================
   قسم CTA
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, #FDF4FF 0%, #FEF3C7 50%, #CCFBF1 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

/* =============================================
   التذييل (Footer)
   ============================================= */
.footer {
    background: linear-gradient(180deg, #1E1B4B 0%, #0F0A2E 100%);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light);
}

/* =============================================
   صفحات المصادقة (Auth Pages)
   ============================================= */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EDE9FE 0%, #FCE7F3 30%, #FEF3C7 60%, #CCFBF1 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.6s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* =============================================
   لوحة التحكم (Dashboard Layout)
   ============================================= */
.dashboard-container {
    min-height: calc(100vh - 80px);
    background: #F5F3FF;
}

.dashboard-header {
    background: var(--gradient-primary);
    padding: 2rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

.welcome-text {
    position: relative;
    z-index: 1;
}

/* =============================================
   شارة الدور (Role Badge)
   ============================================= */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.role-badge.admin { background: #FEE2E2; color: #991B1B; }
.role-badge.teacher { background: #DBEAFE; color: #1E40AF; }
.role-badge.parent { background: #D1FAE5; color: #065F46; }
.role-badge.supervisor { background: #FEF3C7; color: #92400E; }

/* =============================================
   حصة الانضمام (Join Button)
   ============================================= */
.join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.4);
    font-family: 'Tajawal', sans-serif;
}

.join-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.5);
}

.join-btn .pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* =============================================
   نقاط الطالب (Points Badge)
   ============================================= */
.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px -3px rgba(245, 158, 11, 0.4);
}

/* =============================================
   حالة الحصة (Class Status)
   ============================================= */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-badge.scheduled { background: #DBEAFE; color: #1E40AF; }
.status-badge.active { background: #D1FAE5; color: #065F46; }
.status-badge.completed { background: #F3F4F6; color: #4B5563; }
.status-badge.cancelled { background: #FEE2E2; color: #991B1B; }

/* =============================================
   الرسوم المتحركة (Animations)
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease-out; }
.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-slideInRight { animation: slideInRight 0.6s ease-out; }
.animate-bounceIn { animation: bounceIn 0.6s ease-out; }

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; animation-fill-mode: both; }
.stagger-2 { animation-delay: 0.2s; animation-fill-mode: both; }
.stagger-3 { animation-delay: 0.3s; animation-fill-mode: both; }
.stagger-4 { animation-delay: 0.4s; animation-fill-mode: both; }
.stagger-5 { animation-delay: 0.5s; animation-fill-mode: both; }

/* =============================================
   قائمة الهاتف (Mobile Menu)
   ============================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }

    #navLinks.nav-links {
        display: none !important;
    }

    #navLinks.nav-links.active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(124, 58, 237, 0.12);
        box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.15);
        padding: 1.25rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        z-index: 1000;
        animation: fadeIn 0.2s ease-out;
    }

    .hero-section {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-big-number {
        font-size: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }
}

/* =============================================
   أنماط الطباعة (Print Styles)
   ============================================= */
@media print {
    .navbar, .footer, .btn-primary, .btn-secondary, .join-btn, .whatsapp-float {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card, .stat-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =============================================
   زر واتساب العائم (Floating WhatsApp Button)
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

.whatsapp-float__tooltip {
    background: #ffffff;
    color: #1F2937;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float__btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: whatsapp-pulse 2.2s ease-out infinite;
}

.whatsapp-float__btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    transition: transform 0.25s ease;
}

.whatsapp-float__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    z-index: -1;
    animation: whatsapp-ring 2.2s ease-out infinite;
}

.whatsapp-float__btn::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #EF4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.whatsapp-float__btn:hover {
    transform: scale(1.08);
    background: #1EBE57;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55), 0 6px 12px rgba(0, 0, 0, 0.15);
    animation: none;
}

.whatsapp-float__btn:hover svg {
    transform: scale(1.05);
}

.whatsapp-float__btn:focus-visible {
    outline: 3px solid #A7F3D0;
    outline-offset: 3px;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes whatsapp-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float__btn {
        width: 56px;
        height: 56px;
    }
    .whatsapp-float__btn svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-float__tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float__btn,
    .whatsapp-float__btn::before,
    .whatsapp-float__btn::after {
        animation: none !important;
    }
}
