:root {
    /* Color Palette - Soft Purples & Warm Tones */
    --primary-purple: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --bg-gradient-start: #F3E8FF;
    --bg-gradient-end: #FFFFFF;
    --accent-orange: #F97316;
    /* Warm Orange */
    --accent-gold: #FBBF24;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --text-light: #F8FAFC;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-blur: blur(12px);

    /* Shadows & Effects */
    --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);

    /* Typography */
    --font-main: 'Cairo', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #E9D5FF 0%, #F3E8FF 50%, #FFFFFF 100%);
    background-attachment: fixed;
    /* Parallax-like effect for background */
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utility Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-main);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.23);
}

.btn-glass-purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(4px);
}

.btn-glass-purple:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.btn-outline:hover {
    background-color: var(--primary-purple);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
/* --- التنسيقات الأساسية (Desktop First) --- */

.hero {
    /* تأكد أن المتغير --header-height معرف لديك، أو استبدله بقيمة ثابتة مثل 80px */
    padding-top: calc(var(--header-height, 80px) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.text-highlight {
    color: var(--primary-purple);
    position: relative;
    z-index: 1;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(139, 92, 246, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.hero-image {
    position: relative;
    /* مهم لضمان عدم خروج العناصر العائمة عن حدود هذا القسم */
    z-index: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    /* تم تغييره للسماح بظهور الكارد العائم بشكل صحيح إذا كان خارج الحدود قليلاً، أو يمكن إبقاؤه hidden حسب التصميم */
    /* في هذا التصميم، الكارد خارج الصورة، لذا نحتاج للتعامل معه بحذر */
    box-shadow: var(--shadow-xl);
    animation: morph 8s ease-in-out infinite;
}

/* ملاحظة: لكي يظهر الكارد العائم فوق الصورة المورف، يجب أن يكون خارج الـ overflow: hidden الخاص بالـ image-wrapper، 
   لكن في الكود الأصلي الكارد كان بداخلها. سأتركها كما هي لتعمل حسب كودك الأصلي */

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    bottom: 40px;
    right: -20px;
    /* القيمة الأصلية للديسك توب */
}

.card-1 i {
    color: #10B981;
    font-size: 1.5rem;
}

.card-1 span {
    font-weight: 700;
    font-size: 0.9rem;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* --------------------------------------------------- */
/* --- Responsive Styles (تعديلات الموبايل والتابلت) --- */
/* --------------------------------------------------- */

@media (max-width: 991px) {
    .hero {
        padding-top: calc(var(--header-height, 80px) + 2rem);
        padding-bottom: 4rem;
        text-align: center;
        /* توسيط النصوص */
    }

    .hero-container {
        grid-template-columns: 1fr;
        /* تحويل العرض لعمود واحد */
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    /* تحسين شكل الإحصائيات (Grid بدل صف واحد طويل) */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* عمودين */
        gap: 2rem;
        justify-items: center;
        border-top: none;
        /* إزالة الخط الفاصل في الموبايل إذا كان شكله غير مناسب */
        padding-top: 1rem;
    }

    /* تعديل الصورة */
    .hero-image {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    .image-wrapper {
        max-width: 400px;
        width: 100%;
    }

    /* تعديل الكارت العائم حتى لا يخرج من الشاشة */
    .card-1 {
        right: 0;
        /* إلغاء الترحيل لليمين */
        left: 50%;
        /* توسيط تقريبي أو تعديل مكان */
        transform: translateX(-50%);
        /* للمساعدة في التمركز إذا أردت */
        /* أو نجعله في الزاوية بدون خروج: */
        left: auto;
        right: 10px;
        bottom: 20px;
        animation: none;
        /* إيقاف الأنيميشن في الموبايل إذا كان يسبب بطء، أو تركه */
    }

    /* إعادة تفعيل حركة الطفو لكن مع مراعاة الموقع الجديد */
    .card-1 {
        animation: float 3s ease-in-out infinite;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        /* تصغير الخط أكثر للشاشات الصغيرة */
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .floating-card {
        padding: 0.8rem 1rem;
    }

    .card-1 {
        right: 0px;
        bottom: 15px;
    }
}

/* Features Section */
/* --- Features Section Styling --- */

.features {
    padding: 6rem 0;
    /* خلفية شفافة عشان تظهر التدرج اللي وراها */
    background-color: rgba(255, 255, 255, 0.3);
}

.features-grid {
    display: grid;
    /* توزيع الكروت بشكل متجاوب */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);

    /* --- الإضافة الجديدة لضبط المحاذاة (Alignment) --- */
    display: flex;
    /* تفعيل الفليكس */
    flex-direction: column;
    /* رص العناصر فوق بعض */
    align-items: center;
    /* توسيط العناصر أفقياً (الأيقونة والعناوين) */
    text-align: center;
    /* توسيط النصوص */
    height: 100%;
    /* توحيد طول الكروت */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.9);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(243, 232, 255, 0.8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 800;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* تنسيق خاص لزر الاشتراك لتوسيطه */
.features .btn {
    display: block;
    /* تحويله لـ block ليقبل الـ margin auto */
    width: fit-content;
    /* الزر ياخد حجم الكلام اللي جواه بس */
    margin: 3rem auto 0;
    /* مسافة من فوق، و auto يمين وشمال للتوسيط */
    min-width: 200px;
    /* (اختياري) حد أدنى للعرض عشان يبقى شكله قيم */
}

/* =========================================
   تنسيقات جمالية فقط (Visual Styling Only)
   مع الحفاظ على الترتيب الأصلي للكود
   ========================================= */

/* =========================================
   تنسيق سكشن الصورة والنص (Image Section)
   ========================================= */

.image-section {
    padding: 7rem 0;
    /* خلفية تدرج لوني ناعم */
    background: linear-gradient(135deg, #f9fafb 0%, #f3e8ff 100%);
    direction: rtl;
    /* لضمان اتجاه العربي */
}

.image-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* عمودين في الشاشات الكبيرة */
    gap: 5rem;
    align-items: center;
}

/* --- تنسيق النصوص --- */
.image-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--text-dark, #1e293b);
}

.image-text p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* --- تنسيق القائمة --- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-dark, #334155);
    font-size: 1.05rem;
}

.check-list i {
    color: #fff;
    background: var(--primary-purple, #8B5CF6);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(139, 92, 246, 0.2);
}

/* --- تنسيق الصورة (Wrapper) --- */
.wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.6);
}

.wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================
   تنسيق مجموعة الزرار والسهم (CTA Container)
   هام: هذا الجزء خارج الـ Media Query ليظهر للجميع
   ========================================= */

/* --- تنسيق المجموعة (الملاحظة + السهم + الزرار) --- */
/* --- تنسيق الحاوية (عشان السهم ييجي في نص الزرار) --- */
/* --- الكود الوحيد المسؤول عن السهم والزرار --- */
.hand-drawn-note {
    color: red;
    font-size: larger;
}

.cta-container {
    display: flex !important;
    flex-direction: column !important;
    /* يرصهم فوق بعض */
    align-items: center !important;
    /* دي أهم واحدة: بتخلي السهم والزرار يتسنتروا أفقي بالنسبة لبعض */
    width: fit-content !important;
    /* يلم الحاوية على قد حجم المحتوى */
    margin-top: 2rem;

    /* لو عايز المجموعة كلها تيجي يمين أو شمال، تحكم فيها بالمارجن هنا */
    /* مثلاً لو الموقع عربي وعايزها في اليمين */
    margin-right: 0;
}

.arrow-box {
    width: 100%;
    /* ده بيخلي صندوق السهم ياخد نفس عرض الزرار اللي تحته */
    display: flex;
    justify-content: center;
    /* يخلي أيقونة السهم في نص الصندوق بالظبط */
    margin-bottom: 10px;
    /* مسافة بسيطة بين السهم والزرار */
}

.arrow-box i {
    color: red !important;
    font-size: 2rem;
    animation: bounce 2s infinite;
    /* تأكد إنه مفيش مارجن جانبي للأيقونة نفسها بيلخبط السنترة */
    margin-left: 0;
    margin-right: 0;
}

.main-btn {
    background-color: #8B5CF6;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    padding: 15px 50px;
    /* حجم كبير في اللابتوب */
    font-size: 1.2rem;
    min-width: 250px;
    display: inline-block;
}

/* حركة السهم */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- في الموبايل --- */
@media (max-width: 991px) {
    .cta-container {
        margin: 2rem auto;
        /* يوسطن المجموعة كلها في نص الشاشة */
    }
}

/* =========================================
   تعديلات الموبايل (Responsive Styles)
   ========================================= */

@media (max-width: 991px) {
    .image-section {
        padding: 4rem 0;
    }

    .image-container {
        /* تحويل لعمود واحد */
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        /* توسيط كل النصوص */
    }

    /* عكس الترتيب: الصورة فوق والكلام تحت */
    .wrapper {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .image-text {
        order: 2;
    }

    .image-text h2 {
        font-size: 1.8rem;
    }

    /* توسيط القائمة في الموبايل */
    .check-list {
        display: inline-grid;
        grid-template-columns: 1fr;
        justify-items: start;
        text-align: right;
    }

    /* توسيط مجموعة الزرار والسهم في الموبايل */
    .cta-container {
        margin: 2rem auto;
        /* توسيط في نص الشاشة */
        align-items: space-between;
        width: 100%;
    }

    /* جعل الزرار يملأ الشاشة في الموبايل */
    .main-btn {
        width: 100%;
        max-width: 350px;
        /* عشان ميكبرش اوي في التابلت */
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/*Review Section*/
/* تنسيق القسم */
.videos-section {
    padding: 50px 20px;
    background-color: #fff;
    /* أو أي لون خلفية تفضله */
    text-align: center;
}

.section-header h3 {
    color: #4834d4;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-header p {
    color: #4834d4;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* تنسيق الشبكة (الترتيب بجانب بعض) */
.videos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* ينزل سطر جديد لو الشاشة صغيرة */
    gap: 30px;
    /* المسافة بين الفيديوهات */
}

/* شكل كارت الفيديو */
.video-card {
    width: 350px;
    /* عرض الفيديو */
    height: 200px;
    /* ارتفاع الفيديو */
    background: #000;
    border-radius: 20px;
    /* التدوير المهم */
    overflow: hidden;
    /* يقص الزوايا الحادة للفيديو */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* الظل */
    position: relative;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    /* حركة خفيفة عند الماوس */
}

/* ضبط الفيديو ليملأ الكارت */
.video-card iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الشريط العلوي الشفاف (اختياري) */
.video-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
    pointer-events: none;
    /* يسمح بالضغط على الفيديو للتشغيل */
    font-family: sans-serif;
    font-weight: bold;
}

/*End Review Section*/


/* Registration Form Section */
.registration {
    padding: 6rem 0;
    position: relative;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.form-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    /* محاذاة النص لليمين ليتناسب مع العربي */
    text-align: right;
}

/* --- تعديلات الحقول لتصبح واضحة (White Field) --- */
.glass-input {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 1.2rem;
    /* تغيير الحواف من دائري كامل (50px) إلى حواف ناعمة صغيرة */
    border-radius: 6px;
    /* حدود رمادية واضحة بدلاً من الشفافة */
    border: 1px solid #ced4da;
    /* خلفية بيضاء صريحة */
    background: #ffffff;
    /* إزالة تأثير الزجاج */
    backdrop-filter: none;

    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.glass-input:focus {
    background: #ffffff;
    /* لون الحدود عند الضغط - يمكنك تغييره للون البراند الخاص بك */
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.glass-input::placeholder {
    color: #94A3B8;
}

/* --- إضافات جديدة لتنسيق رقم الهاتف والـ Checkboxes --- */

/* تنسيق حاوية الهاتف لتدمج العلم مع الرقم */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.country-flag {
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    /* لون رمادي فاتح خلف العلم */
    height: 50px;
    /* نفس ارتفاع الحقل */
    border-left: 1px solid #ced4da;
    /* خط فاصل */
    font-weight: bold;
    color: #333;
}

/* إزالة حدود الحقل داخل حاوية الهاتف */
.phone-input-wrapper .glass-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* تنسيق مربعات الاختيار (Checkboxes) بجانب بعضها */
.checkbox-group {
    display: flex;
    justify-content: flex-end;
    /* تبدأ من اليمين */
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    /* النص يمين المربع */
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    /* لون علامة الصح */
}

/* Phone Input Styling */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-code {
    position: absolute;
    left: 1.2rem;
    /* LTR visual left, but in RTL context it might be confusing. Let's fix direction */
    /* Since dir=rtl, left is actually left. We want the code on the left (end of input visually in RTL? No, usually phone numbers are LTR) */
    /* Let's force LTR for phone input for better UX */
    direction: ltr;
    color: var(--text-gray);
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

.phone-input-wrapper input {
    direction: ltr;
    padding-left: 3.5rem;
    /* Space for +20 */
    text-align: left;
}

/* Select Styling */
.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
}

select.glass-input {
    appearance: none;
    cursor: pointer;
}

/* --- Reviews Marquee Section (شريط الآراء المتحرك) --- */
.reviews {
    padding: 4rem 0;
    overflow: hidden;
    /* إخفاء الزيادات */
    background: transparent;
}

.marquee-container {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* تأثير تلاشي في الجوانب */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* العرض يتمدد حسب المحتوى */
    animation: scroll 40s linear infinite;
    /* حركة مستمرة */
}

/* حركة الأنيميشن */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }

    /* نحرك 50% لأننا كررنا العناصر مرتين */
}

/* تصميم الكارت الزجاجي */
/* --- Reviews Slider Styles --- */
.reviews-slider-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    /* مسافة عشان الزراير متبقاش لازقة */
}

.reviews-track-container {
    overflow: hidden;
    /* عشان يخفي الكروت الزيادة */
    padding: 20px 0;
}

.reviews-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 0;
    /* المسافات هنعملها بالبادينج */
}

.review-slide {
    list-style: none;
    padding: 0 10px;
    /* مسافة بين الكروت */
    box-sizing: border-box;
}

/* في الموبايل: الكارت ياخد عرض الشاشة بالكامل */
.review-slide {
    min-width: 100%;
}

/* في الشاشات الكبيرة: يظهر 3 كروت جنب بعض */
@media (min-width: 992px) {
    .review-slide {
        min-width: 33.3333%;
    }
}

/* --- Reviews Section CSS --- */
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px;
    /* مسافة للأزرار */
}

.css-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* إخفاء شريط التمرير */
    scroll-behavior: smooth;
}


.css-slider::-webkit-scrollbar {
    display: none;
}

.review-card-wrapper {
    flex: 0 0 auto;
    width: 100%;
    /* عرض الموبايل */
    scroll-snap-align: center;
}

/* اللابتوب: 3 كروت */
@media (min-width: 992px) {
    .review-card-wrapper {
        width: calc(33.333% - 14px);
    }
}

/* التابلت: 2 كارت */
@media (max-width: 991px) and (min-width: 768px) {
    .review-card-wrapper {
        width: calc(50% - 10px);
    }
}

/* تنسيق الأزرار */
.review-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.review-btn:hover {
    background: var(--primary-purple);
    color: #fff;
}

.review-btn.next-btn {
    right: 0;
}

.review-btn.prev-btn {
    left: 0;
}

/* تنسيق الكارت */
.review-card {
    background-color: #F8F5FF;
    border: 1px solid var(--primary-purple);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.reviewer-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background-color: rgba(255, 255, 255, 0.3);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    font-family: var(--font-main);
    text-align: right;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-purple);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq .btn {
    display: block;
    /* تحويله لـ block ليقبل الـ margin auto */
    width: fit-content;
    /* عشان الزر ياخد حجم الكلام اللي جواه بس مش عرض الشاشة كله */
    margin: 3rem auto 0;
    /* 3rem مسافة من فوق، و auto يمين وشمال للتوسيط */
}

/* --- إعدادات السكشن الأساسية --- */
.success-stories {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- شريط التمرير (المحرك) --- */
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    justify-content: center!important;
    /* يسمح بالسكرول */

    /* Scroll Snap: يجعل الكارت يقف في مكانه الصحيح تلقائياً */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 20px 5px;
    list-style: none;

    /* إخفاء شريط التمرير ليكون الشكل نظيفاً */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* --- تنسيق الشريحة (Slide) --- */
.carousel-slide {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: center;
    /* سنترة الكارت */
}

@media (min-width: 768px) {
    .carousel-slide {
        width: calc(50% - 10px);
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        width: calc(33.333% - 14px);
    }
}

/* --- الكارت الزجاجي (التصميم القديم) --- */
.story-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.story-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 4px solid #f3f4f6;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1f2937;
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 5px 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50px;
    transition: background 0.3s;
}

.story-link:hover {
    background: #8b5cf6;
    color: #fff;
}

.story-quote {
    font-style: italic;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: #1E293B;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-col p {
    color: #94A3B8;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #94A3B8;
}

.footer-col ul li a:hover {
    color: white;
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-container,
    .video-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Pricing Stacking */
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 500px;
    }

    .card.featured {
        transform: scale(1);
    }

    .card.featured:hover {
        transform: translateY(-10px);
    }

    /* Footer Refinements */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col p {
        margin: 0 auto;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    /* Success Stories Mobile */
    .carousel-slide {
        min-width: 85%;
    }

    .carousel-container {
        padding: 0 1rem;
    }

    .carousel-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu logic in JS handles this */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Form Stacking */
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}