/* =============================================
   منصة الأستاذ الذكية - ملف التنسيق الرئيسي
   File: public/assets/css/style.css
   Version: 3.0.0 - Unified & Production Ready
   ============================================= */

/* ==========================================
   🏗️ إعادة تعيين الهيكل الأساسي (Reset)
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh; /* ديناميكي: يدعم المتصفحات الحديثة */
    display: flex;
    flex-direction: column;
    font-family: 'Cairo', sans-serif;
    background: #f8f9fa;
    color: #1e293b;
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================
   📦 الحاوية الرئيسية (Main Wrapper)
   ========================================== */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ==========================================
   📄 المحتوى الرئيسي
   ========================================== */
.main-content {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   🧩 الأعمدة والشبكات (Flexible)
   ========================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
    width: 100%;
}

.col {
    flex: 1 1 0%;
    padding: 0 0.75rem;
    min-width: 0;
}

/* ==========================================
   🖼️ الصور (Fluid)
   ========================================== */
img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   📱 نقاط التوقف الرئيسية (Breakpoints)
   ========================================== */

/* الهواتف الصغيرة */
@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.75rem;
    }
    
    .row {
        margin: 0 -0.5rem;
    }
    
    .col {
        padding: 0 0.5rem;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* الهواتف المتوسطة والكبيرة */
@media (min-width: 481px) and (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .row {
        margin: 0 -0.5rem;
    }
    
    .col {
        padding: 0 0.5rem;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-full {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* الأجهزة اللوحية */
@media (min-width: 769px) and (max-width: 992px) {
    .main-content {
        padding: 2rem 1.5rem;
    }
    
    .col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    .col-half {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* الشاشات الكبيرة */
@media (min-width: 993px) and (max-width: 1200px) {
    .col {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-half {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* الشاشات العملاقة */
@media (min-width: 1201px) {
    .col {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .col-half {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ==========================================
   🔄 إصلاح مشكلة الـ Viewport
   ========================================== */

/* إصلاح ارتفاع الشاشة في المتصفحات */
@supports (height: 100dvh) {
    #app,
    body {
        min-height: 100dvh;
    }
}

/* إصلاح ارتفاع الشاشة في Safari */
@supports (-webkit-touch-callout: none) {
    #app,
    body {
        min-height: -webkit-fill-available;
    }
}

/* ==========================================
   📦 حاويات مرنة (Flex Containers)
   ========================================== */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

/* ==========================================
   🎯 إصلاحات للشاشات الصغيرة جداً
   ========================================== */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .main-content {
        padding: 0.75rem 0.5rem;
    }
}

/* ==========================================
   🧪 إصلاحات للطباعة
   ========================================== */
@media print {
    #app {
        min-height: auto !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
}


/* =============================================
   1. المتغيرات العامة (Global Variables)
   ============================================= */
:root {
    /* الألوان الأساسية */
    --royal-purple: #5b3cc4;
    --royal-gold: #f5b042;
    --purple-dark: #3f2a8f;
    --purple-light: #7d5ee0;
    --gold-dark: #e09d32;
    --white-creamy: #fffef7;
    --gray-light: #f8f7ff;
    
    /* ألوان النصوص (محسنة للتباين) */
    --text-dark: #1a202c;
    --text-medium: #2d3748;
    --gray-text: #4a5568;
    
    /* الظلال */
    --shadow-sm: 0 5px 20px rgba(91, 60, 196, 0.1);
    --shadow-md: 0 10px 40px rgba(91, 60, 196, 0.15);
    --shadow-lg: 0 20px 60px rgba(91, 60, 196, 0.2);
    
    /* الانتقالات */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* القائمة الجانبية */
    --sidebar-width: 250px;
    --sidebar-bg-start: #3f2a8f;
    --sidebar-bg-end: #5b3cc4;
    --active-bg: #f5b042;
    --active-color: #3f2a8f;
    --hover-bg: rgba(255, 255, 255, 0.1);
    --badge-bg: rgba(255, 255, 255, 0.15);
}

/* =============================================
   2. إعادة تعيين الأنماط (Reset)
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.8;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   3. شاشة التحميل (Loader)
   ============================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--royal-purple);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.loader-logo span {
    color: var(--royal-gold);
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--royal-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   4. شريط تقدم التمرير (Scroll Progress)
   ============================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-gold), var(--royal-purple));
    z-index: 10000;
    transition: width 0.1s;
    width: 0;
}

/* =============================================
   5. الهيدر (Header)
   ============================================= */
.header {
    background: rgba(91, 60, 196, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.7rem 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo a {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo span {
    color: var(--royal-gold);
}

.logo i {
    color: var(--royal-gold);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--royal-gold);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--royal-gold);
}

.header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status i {
    color: var(--royal-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* =============================================
   6. الأزرار (Buttons)
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--royal-gold);
    color: #2c2a2a;
    box-shadow: 0 4px 15px rgba(245, 176, 66, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 176, 66, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--royal-purple);
}

.btn-purple {
    background: var(--royal-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(91, 60, 196, 0.4);
}

.btn-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 60, 196, 0.5);
}

/* =============================================
   7. القسم الرئيسي (Hero)
   ============================================= */
.hero {
    margin-top: 80px;
    padding: 4rem 5%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91, 60, 196, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--purple-dark);
}

.hero-content h1 span {
    color: var(--royal-purple);
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 15px;
    background: rgba(245, 176, 66, 0.3);
    z-index: -1;
    border-radius: 10px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(91, 60, 196, 0.1);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--royal-purple);
    display: block;
}

.stat-label {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 5s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 1.8rem;
    color: var(--royal-gold);
}

.floating-card-text h4 {
    font-weight: 700;
    color: var(--purple-dark);
    font-size: 0.95rem;
}

.floating-card-text p {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* =============================================
   8. العناوين والأقسام (Sections)
   ============================================= */
section {
    padding: 5rem 5%;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-gold), var(--royal-purple));
    border-radius: 2px;
}

.section-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* =============================================
   9. كيف تعمل المنصة (How It Works)
   ============================================= */
.how-it-works {
    background: white;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-card {
    background: linear-gradient(135deg, var(--gray-light) 0%, white 100%);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--royal-gold);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -25px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-gold), var(--gold-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 5px 15px rgba(245, 176, 66, 0.4);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--royal-purple), var(--purple-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.step-card h3 {
    color: var(--purple-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =============================================
   10. المعلمين (Teachers)
   ============================================= */
.teachers {
    background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
}

.teachers-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.teacher-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--royal-gold);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.teacher-info {
    padding: 1.8rem;
    text-align: center;
}

.teacher-info h3 {
    color: var(--purple-dark);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.teacher-subject {
    color: var(--royal-purple);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.teacher-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.stage-tag {
    background: var(--gray-light);
    color: var(--royal-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.teacher-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    color: var(--royal-gold);
}

.teacher-rating span {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.teacher-card .btn {
    width: 100%;
}

/* =============================================
   11. المراحل الدراسية (Stages)
   ============================================= */
.stages {
    background: white;
}

.stages-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stage-card {
    background: linear-gradient(135deg, var(--gray-light) 0%, white 100%);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--royal-gold), var(--royal-purple));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stage-card:hover::before {
    transform: scaleX(1);
}

.stage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal-purple);
}

.stage-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--royal-purple), var(--purple-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(91, 60, 196, 0.3);
}

.stage-card h3 {
    font-size: 1.5rem;
    color: var(--purple-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.stage-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stage-ages {
    display: inline-block;
    background: var(--royal-purple);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* =============================================
   12. المواد الدراسية (Subjects)
   ============================================= */
.subjects {
    background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
}

.subjects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subject-card {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.subject-card:hover {
    border-color: var(--royal-purple);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.subject-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--royal-purple), var(--purple-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    color: white;
}

.subject-card h3 {
    font-size: 1.3rem;
    color: var(--purple-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.subject-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.subject-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.subject-stage-tag {
    background: var(--gray-light);
    color: var(--royal-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =============================================
   13. لماذا ينضم المعلمون (Features Teachers)
   ============================================= */
.features-teachers {
    background: linear-gradient(135deg, var(--royal-purple) 0%, var(--purple-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.features-teachers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.features-teachers .section-header h2,
.features-teachers .section-header p {
    color: white;
}

.features-teachers .section-header h2::after {
    background: var(--royal-gold);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--royal-gold);
}

.feature-card i {
    font-size: 3rem;
    color: var(--royal-gold);
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: white;
}

.feature-card p {
    line-height: 1.7;
    font-size: 0.95rem;
    opacity: 0.9;
    color: white;
}

/* =============================================
   14. حماية المحتوى (Protection)
   ============================================= */
.protection {
    background: white;
}

.protection-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.protection-content h3 {
    font-size: 2rem;
    color: var(--purple-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.protection-content > p {
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.protection-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.protection-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--gray-light);
    border-radius: 15px;
    transition: var(--transition);
}

.protection-feature:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
    background: white;
}

.protection-feature i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-purple), var(--purple-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.protection-feature-text h4 {
    color: var(--purple-dark);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.protection-feature-text p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.protection-image {
    position: relative;
}

.protection-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.protection-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: var(--royal-gold);
    color: white;
    padding: 1rem 2rem;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.protection-badge i {
    font-size: 1.5rem;
}

/* =============================================
   15. لماذا تختار منصة الأستاذ (Why Us)
   ============================================= */
.why-us {
    background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.why-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.why-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(91, 60, 196, 0.08);
    line-height: 1;
}

.why-card i {
    font-size: 2.8rem;
    color: var(--royal-gold);
    margin-bottom: 1.2rem;
}

.why-card h3 {
    font-size: 1.3rem;
    color: var(--purple-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.why-card p {
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =============================================
   16. آراء أولياء الأمور (Testimonials)
   ============================================= */
.testimonials {
    background: var(--gray-light);
    padding: 5rem 5%;
}

.testimonials .section-header h2 {
    color: var(--purple-dark);
    font-weight: 800;
}

.testimonials .section-header p {
    color: var(--text-medium);
    font-weight: 600;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(91, 60, 196, 0.08);
    box-shadow: 0 5px 20px rgba(91, 60, 196, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--royal-gold);
    box-shadow: 0 15px 40px rgba(91, 60, 196, 0.15);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--royal-gold);
    margin: 0 auto 1.2rem;
    display: block;
}

.testimonial-stars {
    color: var(--royal-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-style: italic;
    color: var(--text-medium);
    font-weight: 600;
}

.testimonial-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--purple-dark);
    margin-bottom: 0.3rem;
}

.testimonial-role {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: 600;
}

/* =============================================
   17. الأسعار والاشتراكات (Pricing)
   ============================================= */
.pricing {
    background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
}

.pricing-note {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--royal-gold);
}

.pricing-note i {
    font-size: 2.5rem;
    color: var(--royal-gold);
    margin-bottom: 1rem;
}

.pricing-note h3 {
    color: var(--purple-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-note p {
    color: var(--gray-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: white;
    border-radius: 30px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--royal-gold);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--royal-gold);
    color: #2c2a2a;
    padding: 0.5rem 2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.pricing-card i {
    font-size: 3rem;
    color: var(--royal-purple);
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: var(--purple-dark);
    margin-bottom: 1rem;
}

.pricing-desc {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: right;
}

.pricing-features li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--purple-dark);
}

.pricing-features li i {
    color: var(--royal-gold);
    font-size: 1rem;
}

/* =============================================
   18. الأسئلة الشائعة (FAQ)
   ============================================= */
.faq {
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray-light);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.faq-item.active {
    border-color: var(--royal-purple);
    background: white;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--purple-dark);
    font-size: 1.05rem;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--royal-purple);
}

.faq-question i {
    color: var(--royal-purple);
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--royal-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--gray-text);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* =============================================
   19. التواصل (Contact)
   ============================================= */
.contact {
    background: linear-gradient(135deg, #f5f0ff 0%, #ffffff 100%);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--purple-dark);
    margin-bottom: 1.2rem;
}

.contact-info > p {
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--royal-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    color: var(--purple-dark);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.contact-item-text p {
    color: var(--gray-text);
    font-size: 0.95rem;
    word-break: break-word;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--royal-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--royal-gold);
    transform: translateY(-5px);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--purple-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--gray-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--royal-purple);
    box-shadow: 0 0 0 4px rgba(91, 60, 196, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* =============================================
   20. الفوتر (Footer)
   ============================================= */
.footer {
    background: var(--purple-dark);
    color: white;
    padding: 3rem 5% 1rem;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--royal-gold);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
    transition: var(--transition);
    font-size: 0.95rem;
    word-break: break-word;
}

.footer-col a:hover {
    color: var(--royal-gold);
    padding-right: 5px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.payment-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-method i {
    color: var(--royal-gold);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--royal-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--royal-gold);
    font-weight: 700;
}

/* =============================================
   21. الأزرار العائمة (Floating Buttons)
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--royal-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    box-shadow: var(--shadow-md);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--royal-gold);
    transform: translateY(-5px);
}

/* =============================================
   22. نافذة تسجيل الدخول (Login Modal)
   ============================================= */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.login-modal.active {
    display: flex;
}

.login-box {
    background: white;
    border-radius: 30px;
    padding: 2.5rem 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--purple-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.login-close:hover {
    background: var(--royal-purple);
    color: white;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--royal-purple);
    margin-bottom: 1rem;
}

.login-header h2 {
    color: var(--purple-dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.login-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    background: var(--gray-light);
    padding: 5px;
    border-radius: 15px;
}

.login-tab {
    flex: 1;
    padding: 0.7rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-text);
}

.login-tab.active {
    background: var(--royal-purple);
    color: white;
    box-shadow: var(--shadow-sm);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.login-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
}

.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #ddd;
}

.login-divider::before { right: 0; }
.login-divider::after { left: 0; }

.social-login {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-login-btn {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-login-btn:hover {
    border-color: var(--royal-purple);
    transform: translateY(-3px);
}

.social-login-btn.google { color: #ea4335; }
.social-login-btn.facebook { color: #1877f2; }

.role-info {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-right: 4px solid var(--royal-gold);
}

.role-info p {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.6;
}

.role-info i {
    color: var(--royal-gold);
    margin-left: 0.5rem;
}

/* =============================================
   23. الإشعارات المنبثقة (Toast)
   ============================================= */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--purple-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast i {
    font-size: 1.2rem;
    color: var(--royal-gold);
}

/* =============================================
   24. القائمة الجانبية للموبايل (Mobile Menu)
   ============================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: rgba(31, 25, 51, 0.98);
    backdrop-filter: blur(12px);
    z-index: 2000;
    transition: 0.4s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    text-align: left;
    margin-bottom: 2rem;
}

.mobile-menu-close button {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: 0.2s;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-links a:hover {
    color: var(--royal-gold);
}

/* =============================================
   25. القائمة الجانبية للوحة التحكم (Admin Sidebar)
   ============================================= */
.admin-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg-start) 0%, var(--sidebar-bg-end) 100%);
    color: white;
    padding: 25px 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.admin-sidebar .logo {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-sidebar .logo i {
    font-size: 2.5rem;
    color: var(--royal-gold);
    display: block;
    margin-bottom: 8px;
}

.admin-sidebar .logo h2 {
    font-size: 1.2rem;
    font-weight: 800;
}

.admin-sidebar .logo small {
    opacity: 0.7;
    font-size: 0.75rem;
}

.admin-sidebar .user-info {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar .user-info .avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--royal-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.6rem;
    color: var(--purple-dark);
    font-weight: 800;
}

.admin-sidebar .user-info .name {
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-sidebar .user-info .role {
    font-size: 0.75rem;
    opacity: 0.7;
}

.admin-sidebar .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar .nav-menu li {
    margin-bottom: 2px;
}

.admin-sidebar .nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    position: relative;
}

.admin-sidebar .nav-menu li a:hover {
    background: var(--hover-bg);
    color: white;
    transform: translateX(-4px);
}

.admin-sidebar .nav-menu li a.active {
    background: var(--active-bg);
    color: var(--active-color);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 176, 66, 0.3);
}

.admin-sidebar .nav-menu li a.active:hover {
    transform: none;
}

.admin-sidebar .nav-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.admin-sidebar .nav-menu li a .badge {
    margin-right: auto;
    background: var(--badge-bg);
    padding: 1px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.admin-sidebar .nav-menu li a .badge.badge-danger {
    background: #dc3545;
    color: white;
}

.admin-sidebar .nav-menu li a .badge.badge-warning {
    background: #f5b042;
    color: #1a1a1a;
}

.admin-sidebar .nav-menu li a .badge.badge-success {
    background: #28a745;
    color: white;
}

.admin-sidebar .nav-menu li a .badge.badge-info {
    background: #17a2b8;
    color: white;
}

.admin-sidebar .nav-menu .section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.4;
    padding: 12px 14px 6px;
    letter-spacing: 1px;
    font-weight: 700;
}

.admin-sidebar .logout-btn {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar .logout-btn a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.admin-sidebar .logout-btn a:hover {
    background: rgba(255, 0, 0, 0.15);
    color: #ff6b6b;
}

.admin-sidebar .logout-btn a i {
    width: 20px;
    text-align: center;
}

/* =============================================
   26. زر القائمة للموبايل (Mobile Toggle)
   ============================================= */
.admin-mobile-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: var(--royal-purple);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(91, 60, 196, 0.3);
}

.admin-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.admin-overlay.active {
    display: block;
}

/* =============================================
   27. المحتوى الرئيسي للوحة التحكم
   ============================================= */
.admin-main {
    margin-right: var(--sidebar-width);
    padding: 25px 30px;
    min-height: 100vh;
}

/* =============================================
   28. التجاوب العام (Responsive)
   ============================================= */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 2.6rem; }
    .hero-container { gap: 3rem; }
    .nav-links { gap: 1.3rem; }
}

@media (max-width: 992px) {
    html { font-size: 15px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .header { padding: 0.8rem 4%; }
    .logo a { font-size: 1.4rem; }
    .btn { padding: 8px 18px; font-size: 0.88rem; }
    .user-status { display: none; }
    .hero { margin-top: 70px; padding: 3rem 4%; min-height: auto; }
    .hero-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; gap: 2rem; }
    .hero-image { order: -1; max-width: 450px; margin: 0 auto; }
    .floating-card { display: none; }
    section { padding: 4rem 4%; }
    .section-header h2 { font-size: 2rem; }
    .protection-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .protection-image { order: -1; }
    .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .pricing-card.featured { transform: scale(1); }
    .footer-container { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    
    /* Admin Sidebar Responsive */
    .admin-sidebar {
        transform: translateX(100%);
        width: 280px;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-mobile-toggle {
        display: block;
    }
    .admin-overlay.active {
        display: block;
    }
    .admin-main {
        margin-right: 0;
        padding: 20px 15px;
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    html { font-size: 14.5px; }
    .header { padding: 0.7rem 3%; }
    .logo a { font-size: 1.25rem; }
    .btn { padding: 8px 16px; font-size: 0.85rem; }
    .mobile-menu-btn { font-size: 1.5rem; }
    .hero { margin-top: 65px; padding: 2.5rem 3%; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-description { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 0.8rem; }
    .hero-buttons .btn { width: 100%; padding: 12px 20px; }
    .hero-stats { gap: 1.5rem; margin-top: 2rem; }
    .stat-number { font-size: 1.8rem; }
    .hero-image { max-width: 350px; }
    section { padding: 3.5rem 3%; }
    .section-header h2 { font-size: 1.7rem; }
    .steps-container, .teachers-grid, .stages-grid, .subjects-grid, .features-grid, .why-card, .testimonials-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .protection-content h3 { font-size: 1.6rem; }
    .contact-container { gap: 2rem; }
    .contact-form { padding: 2rem 1.5rem; }
    .footer { padding: 2.5rem 3% 1rem; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .whatsapp-float { width: 55px; height: 55px; font-size: 1.7rem; bottom: 20px; left: 20px; }
    .back-to-top { width: 45px; height: 45px; font-size: 1.1rem; bottom: 20px; right: 20px; }
    .login-box { padding: 2rem 1.5rem; }
    .login-header h2 { font-size: 1.5rem; }
    .login-tab { font-size: 0.8rem; padding: 0.6rem 0.3rem; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .hero-content h1 { font-size: 1.55rem; }
    .section-header h2 { font-size: 1.5rem; }
    .teacher-image { height: 250px; }
    .stage-icon { width: 80px; height: 80px; font-size: 2rem; }
    .login-tabs { flex-wrap: wrap; }
    .login-tab { flex: 1 1 45%; }
    .admin-sidebar { width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}







.user-info {
            text-align: right;
            color: #ffffff;
        }

        .user-info strong {
            display: block;
            font-size: 0.9rem;
            line-height: 1.2;
            color: #ffffff;
            font-weight: 700;
        }

/* ==========================================
   روابط التواصل الاجتماعي - الواجهة الأمامية
   ========================================== */
.teacher-social-links {
    background: #f8f7ff;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-right: 4px solid #5b3cc4;
}

.teacher-social-links h4 {
    color: #3f2a8f;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher-social-links h4 i {
    color: #f5b042;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.social-link i {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .social-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .social-link span {
        display: none; /* إخفاء النص في الشاشات الصغيرة */
    }
    .social-link i {
        font-size: 1.2rem;
    }
}

/* منع التمرير الأفقي وضبط العرض على الهواتف */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* ضمان أن جميع الحاويات لا تتجاوز عرض الشاشة */
.container, .teachers-container, .stages-container, .subjects-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}
