/* global window */
// Eyad Academy — i18n dictionary (AR + EN)

const I18N = {
  ar: {
    dir: "rtl", htmlLang: "ar",
    nav: {
      brand: "أكاديمية إياد",
      why: "لماذا إياد", courses: "الدورات", journey: "رحلة التعلم",
      teachers: "المعلمون", stories: "قصص نجاح",
      login: "تسجيل دخول", start: "ابدأ مجانًا",
    },
    hero: {
      eyebrow: "منصة تعلم مميزة للأعمار ٤–١٧",
      titleA: "ابدأ رحلتك", titleB: "نحو المستقبل", titleC: "بتعليم يلامس قلبك أولًا.",
      lead: "أكاديمية إياد ترافق طفلك في رحلته التعليمية بدفء، وتمنح المراهق ثقة بنفسه، وتطمئن قلوب الأهالي. تعلّم القرآن، العربية، الرياضيات، والعلوم بطريقة عصرية وعميقة.",
      cta1: "جرّب أسبوعًا مجانيًا", cta2: "شاهد الدورات",
      s1n: "٣٨٫٤k+", s1l: "طالب وطالبة",
      s2n: "٢٤٠+", s2l: "معلم متخصص",
      s3n: "٤٫٩★", s3l: "تقييم الأهالي",
      chipA: "أكملت اليوم", chipAv: "٣ دروس ✨",
      chipB: "شارة جديدة", chipBv: "القارئ المتقن",
      progress: "تقدمك هذا الأسبوع", progressV: "٧٢٪",
    },
    why: {
      eyebrow: "لماذا إياد",
      titleA: "منصة تشبهك،", titleB: "وتعرف ابنك جيدًا.",
      lead: "صممنا كل تفصيلة لتوازن بين دفء المعلم، احترام عقل الطالب، وثقة الأهل. ليست منصة تعليم تقليدية — هي رفيق نموّ.",
      pillars: [
        { title: "تعليم بمحبّة", desc: "كل درس مصمم ليصل لقلب الطالب قبل عقله، بأسلوب دافئ يحوّل التعلم إلى متعة يومية." },
        { title: "رحلة شخصية", desc: "خطة تعلم تتكيّف مع سرعة طفلك ومستواه، فلا يشعر بالملل ولا بالضغط." },
        { title: "ثقة الأهل", desc: "تقارير دورية واضحة، واتصال مباشر مع المعلم، وبيئة آمنة للأبناء بلا إعلانات." },
        { title: "إنجاز محسوس", desc: "شهادات معتمدة، مسارات شارات، ولحظات تكريم تبني الثقة وتزرع حب التعلم." },
      ],
    },
    subjects: {
      eyebrow: "المواد الأساسية",
      titleA: "أربعة مسارات،", titleB: "رحلة نموّ متكاملة.",
      lead: "كل مادة بُنيت على منهج أكاديمي متين، ومحتوى بصري حديث، ومعلمين مؤهلين يلتقون بطفلك أسبوعيًا في حصص مباشرة.",
      discover: "اكتشف الدورات",
      items: {
        quran:   { name: "القرآن الكريم", desc: "تجويد، حفظ، وتفسير ميسر للأطفال والمراهقين" },
        arabic:  { name: "اللغة العربية", desc: "نحو، إملاء، قراءة وكتابة بطريقة محببة" },
        math:    { name: "الرياضيات",    desc: "من الحساب إلى الجبر بفهم عميق لا حفظ" },
        science: { name: "العلوم",       desc: "تجارب وفضول واستكشاف للعالم من حولنا" },
      },
    },
    courses: {
      eyebrow: "الدورات المميزة",
      titleA: "دورات نختارها بعناية،", titleB: "ليحب طفلك التعلم.",
      lead: "حصص قصيرة، مشاريع تطبيقية، وتتبع ذكي للتقدم. اختر المادة لاستكشاف الدورات المتاحة.",
      all: "كل الدورات",
      lesson: "درس",
      modal: { content: "المحتوى التعليمي", enroll: "التسجيل الآن", back: "عودة للدورات", lessons: "درس تفاعلي", duration: "مدة الدورة", students: "طالب مسجل" },
    },
    journey: {
      eyebrow: "رحلة التعلم",
      titleA: "من أول لقاء", titleB: "إلى شهادة الإتقان.",
      lead: "في أربع خطوات فقط، يبدأ طفلك مساره الخاص — برفقة معلم متخصص ودعم مستمر.",
      steps: [
        { num: "١", title: "اختبار قصير", desc: "نقيس مستوى طفلك الحالي في ١٠ دقائق فقط، بلا ضغط." },
        { num: "٢", title: "خطة مخصّصة", desc: "نبني له مسار تعلم يناسب عمره وأسلوبه ومواد اهتمامه." },
        { num: "٣", title: "دروس يومية", desc: "حصص قصيرة تفاعلية مع معلمين متخصصين ودعم مستمر." },
        { num: "٤", title: "شهادة وتكريم", desc: "إنجازات موثقة، شارات تحفيزية، وشهادة معتمدة في النهاية." },
      ],
    },
    teachers: {
      eyebrow: "المعلمون",
      titleA: "معلمون نختارهم", titleB: "كما نختار لأبنائنا.",
      lead: "١٪ فقط من المتقدمين يجتاز معايير القبول. كل معلم يخضع لتقييم مستمر من الأهالي والطلاب.",
      verified: "موثّق",
      years: "سنة خبرة",
      students: "طالب",
      names: {
        "هم": { name: "أ. هدى المنصور", subj: "اللغة العربية" },
        "خع": { name: "أ. خالد العنزي", subj: "القرآن والتجويد" },
        "يف": { name: "أ. ياسر الفهد", subj: "الرياضيات" },
        "فز": { name: "أ. فاطمة الزهراني", subj: "تحفيظ القرآن" },
      },
    },
    achievements: {
      eyebrow: "أرقام تتحدث",
      titleA: "إنجازات حقيقية،", titleB: "وقصص تستحق الفخر.",
      lead: "منذ انطلاقتنا، رافقنا آلاف الطلاب في رحلتهم. هذه بعض الأرقام التي نعتز بها.",
      statLabels: ["طالب وطالبة", "معلم متخصص", "رضا الأهالي", "ساعة تعلم"],
      cert: {
        kicker: "شهادة إتقان معتمدة",
        student: "ليان عبدالعزيز",
        body1: "أتمّت دورة \"حفظ جزء عمّ بإتقان\"",
        body2: "بمعدّل تقدير",
        grade: "ممتاز ٩٨٪",
        sig: "أكاديمية إياد",
        date: "مارس ٢٠٢٦",
      },
      rightTitleA: "شهادات معتمدة،",
      rightTitleB: "لحظات لا تُنسى.",
      rightLead: "مع كل إنجاز، يحصل طفلك على شهادة موقّعة رسميًا، وشارة رقمية، ومناسبة احتفاء صغيرة مع معلمه — لأن الإنجاز يستحق أن يُحتفى به.",
      bullets: [
        "شهادات موثقة وقابلة للمشاركة",
        "شارات رقمية لكل مرحلة",
        "تقرير تفصيلي للأهل بعد كل إنجاز",
        "احتفال مباشر مع المعلم في الحصة الأخيرة",
      ],
    },
    stories: {
      eyebrow: "قصص نجاح",
      titleA: "كلمات تأتينا", titleB: "كل يوم.",
      lead: "من طلاب أحبوا التعلم، ومن أمهات وآباء وجدوا في إياد ما كانوا يبحثون عنه.",
      prev: "السابق", next: "التالي",
    },
    cta: {
      eyebrow: "ابدأ الرحلة",
      titleA: "ابدأ أسبوعًا مجانيًا،", titleB: "وشاهد الفرق بنفسك.",
      body: "سجّل بياناتك الآن واحصل على ٧ أيام من الحصص الكاملة، تقييم أولي مجاني لطفلك، وتقرير مفصّل في نهاية الأسبوع — بلا التزام.",
      bullets: ["بدون بطاقة ائتمان", "حصص مباشرة من اليوم الأول", "إلغاء بضغطة زر"],
      formTitle: "سجّل طفلك في دقيقة",
      labels: { name: "اسم الطالب", age: "العمر", subject: "المادة المفضلة", email: "بريد ولي الأمر" },
      ph: { name: "مثلاً: محمد", age: "٤–١٧", email: "parent@example.com" },
      subjectOpts: { all: "الكل", quran: "القرآن الكريم", arabic: "اللغة العربية", math: "الرياضيات", science: "العلوم" },
      submit: "ابدأ الأسبوع المجاني",
      micro: "بالتسجيل أنت توافق على",
      terms: "الشروط",
      and: "و",
      privacy: "الخصوصية",
      errors: { name: "اسم الطالب مطلوب", age: "العمر بين ٤ و ١٧ سنة", email: "أدخل بريدًا صحيحًا لولي الأمر" },
      success: {
        title: "تم! سعداء بانضمامكم.",
        body1: "سيصلكم رابط الدخول على بريد ولي الأمر خلال دقائق.",
        body2: "أهلًا بك في عائلة إياد ✨",
        again: "تسجيل طالب آخر",
      },
    },
    footer: {
      about: "منصة تعلم عربية معاصرة للأعمار ٤–١٧ سنة. نوازن بين أصالة المحتوى وعصرية التجربة، ونؤمن أن التعلم يبدأ من القلب.",
      cols: {
        platform: { h: "المنصة",  items: ["الدورات", "المعلمون", "رحلة التعلم", "الأسعار"] },
        company:  { h: "الشركة",   items: ["عن إياد", "قصص نجاح", "الوظائف", "المدونة"] },
        support:  { h: "الدعم",    items: ["مركز المساعدة", "تواصل معنا", "الشروط", "الخصوصية"] },
      },
      copyright: "© ٢٠٢٦ أكاديمية إياد. جميع الحقوق محفوظة.",
      tag: "Made with ♡ in Riyadh",
    },
    courseOverrides: {
      c1: { title: "أحكام التجويد للناشئين", short: "رحلة هادئة لإتقان مخارج الحروف وأحكام النون والميم، مع تطبيقات صوتية تفاعلية وتقييم ذاتي.", tag: "تجويد", level: "مبتدئ", age: "٨–١٢ سنة", duration: "٦ أسابيع", teacher: "أ. خالد العنزي", role: "محفّظ ومجاز", curriculum: ["مخارج الحروف بأمثلة مسموعة", "أحكام النون الساكنة والتنوين", "أحكام الميم الساكنة", "المدود وأنواعها", "تطبيق على جزء عمّ"], cd: ["٤٥ د", "٥٠ د", "٤٠ د", "٥٥ د", "٦٠ د"] },
      c2: { title: "النحو الميسّر للمرحلة المتوسطة", short: "نتعلم الجملة الاسمية والفعلية، الإعراب، والمفاعيل بأسلوب قصصي يربط القواعد بحياة الطالب اليومية.", tag: "نحو", level: "متوسط", age: "١٢–١٥ سنة", duration: "٨ أسابيع", teacher: "أ. هدى المنصور", role: "خبيرة لغة عربية", curriculum: ["الكلمة وأقسامها", "الجملة الاسمية", "الجملة الفعلية", "المفاعيل الخمسة", "الإعراب والبناء"], cd: ["٣٠ د", "٤٠ د", "٤٥ د", "٦٠ د", "٥٠ د"] },
      c3: { title: "الجبر بفهم لا بحفظ", short: "نبني الحدس الجبري خطوة بخطوة من المعادلات البسيطة إلى المتباينات والدوال، مع أمثلة من الواقع.", tag: "جبر", level: "متقدم", age: "١٣–١٧ سنة", duration: "٧ أسابيع", teacher: "أ. ياسر الفهد", role: "معلم رياضيات", curriculum: ["المتغيرات والثوابت", "المعادلات الخطية", "المتباينات وتمثيلها", "الدوال الخطية", "المعادلات التربيعية"], cd: ["٣٥ د", "٤٥ د", "٥٠ د", "٦٠ د", "٧٠ د"] },
      c4: { title: "مغامرات في الفيزياء التجريبية", short: "تجارب يومية بسيطة تشرح الجاذبية، الحركة، الضوء، والمغناطيسية بطريقة تجعل الطالب يكتشف بنفسه.", tag: "فيزياء", level: "متوسط", age: "١١–١٥ سنة", duration: "٥ أسابيع", teacher: "أ. عمر الراشد", role: "معلم فيزياء", curriculum: ["القوة والحركة", "الطاقة وأشكالها", "الضوء وانعكاسه", "الكهرباء والمغناطيسية", "مشاريع تطبيقية"], cd: ["٤٠ د", "٤٥ د", "٤٠ د", "٥٠ د", "٦٥ د"] },
      c5: { title: "حفظ جزء عمّ بإتقان", short: "خطة حفظ متدرجة مع المراجعة الذكية والتسميع، وشهادات تكريم بعد كل خمس سور.", tag: "حفظ", level: "مبتدئ", age: "٧–١١ سنة", duration: "١٠ أسابيع", teacher: "أ. فاطمة الزهراني", role: "محفّظة قرآن", curriculum: ["السور القصيرة", "تقنية المراجعة المتباعدة", "تسميع تفاعلي", "حلقات الإتقان", "ختام وتكريم"], cd: ["١٥ د/يوم", "٢٠ د", "٢٥ د", "٣٠ د", "—"] },
      c6: { title: "كتابة الخواطر والمقالات", short: "نطلق صوت الطالب الإبداعي: من الفكرة الأولى إلى مقال متماسك، مع تغذية راجعة مفصّلة.", tag: "كتابة", level: "متقدم", age: "١٤–١٧ سنة", duration: "٤ أسابيع", teacher: "أ. هدى المنصور", role: "خبيرة لغة عربية", curriculum: ["من الفكرة إلى الجملة", "بناء الفقرة", "أنواع المقالات", "التحرير والمراجعة"], cd: ["٤٠ د", "٤٥ د", "٥٠ د", "٤٥ د"] },
    },
    auth: {
      back: "العودة للرئيسية",
      whatsapp: "محادثة عبر واتساب",
      login: {
        title: "أهلًا بعودتك",
        subtitle: "سجّل دخولك لمتابعة رحلة طفلك التعليمية.",
        labels: { email: "البريد الإلكتروني", password: "كلمة المرور" },
        ph: { email: "parent@example.com", password: "••••••••" },
        remember: "تذكّرني",
        forgot: "نسيت كلمة المرور؟",
        submit: "تسجيل الدخول",
        or: "أو تسجيل دخول عبر",
        google: "جوجل",
        apple: "آبل",
        noaccount: "لا تملك حسابًا؟",
        create: "أنشئ حسابًا",
        kicker: "بوابة الأهل والطلاب",
        side: { title: "نواصل معًا رحلة التعلّم.", body: "تابع تقدم طفلك، احجز الحصص، وتواصل مع المعلم في مكان واحد." },
        errors: { email: "أدخل بريدًا صحيحًا", password: "كلمة المرور مطلوبة (٦ أحرف على الأقل)" },
        success: { title: "تم تسجيل الدخول بنجاح!", body: "نعيد توجيهك إلى لوحة المتابعة الخاصة بطفلك...", btn: "الذهاب للوحة المتابعة" },
      },
      register: {
        title: "ابدأ حسابك الجديد",
        subtitle: "نحتاج ٣ خطوات صغيرة فقط — ولن يستغرق الأمر أكثر من دقيقة.",
        kicker: "تسجيل عائلة جديدة",
        steps: ["بيانات ولي الأمر", "بيانات الطالب", "اختيار الباقة"],
        next: "التالي", prev: "السابق", finish: "إنشاء الحساب",
        // Step 1
        s1: {
          h: "أولًا، عرّفنا بنفسك",
          d: "كل التواصل يصلك على هذه البيانات. لن نشاركها أبدًا.",
          name: "اسم ولي الأمر", namePh: "محمد عبدالله",
          email: "البريد الإلكتروني", emailPh: "parent@example.com",
          phone: "رقم الجوال", phonePh: "+966 5X XXX XXXX",
          password: "كلمة مرور قوية", passwordPh: "٨ أحرف على الأقل",
          agree: "أوافق على", terms: "الشروط", and: "و", privacy: "سياسة الخصوصية",
        },
        // Step 2
        s2: {
          h: "حدّثنا عن طفلك",
          d: "يساعدنا هذا في بناء الخطة التعليمية المناسبة له.",
          name: "اسم الطالب", namePh: "ليان",
          age: "العمر", agePh: "٤–١٧",
          grade: "الصف الدراسي",
          gradeOpts: { kg: "روضة", g1: "الأول", g2: "الثاني", g3: "الثالث", g4: "الرابع", g5: "الخامس", g6: "السادس", g7: "السابع", g8: "الثامن", g9: "التاسع", g10: "العاشر", g11: "الحادي عشر", g12: "الثاني عشر" },
          gender: "الجنس",
          genderOpts: { f: "بنت", m: "ولد" },
          subjects: "المواد التي تهمّ طفلك",
          subjectsHint: "اختر مادة أو أكثر.",
        },
        // Step 3
        s3: {
          h: "اختر باقة البداية",
          d: "كل الباقات تشمل أسبوعًا تجريبيًا مجانيًا. ألغِ في أي وقت.",
          plans: [
            { id: "free",     name: "تجربة مجانية", price: "٠", period: "أسبوع كامل", desc: "٧ أيام من الحصص الكاملة بدون التزام.", feats: ["حصة يومية مباشرة", "تقييم أولي للمستوى", "تقرير ختام الأسبوع"] },
            { id: "starter",  name: "البداية",      price: "١٤٩", period: "شهريًا", desc: "للأسر التي تبدأ رحلة منتظمة.", feats: ["١٢ حصة شهريًا", "متابعة دورية للأهل", "شهادات وشارات"], popular: false },
            { id: "premium",  name: "الأمثل",        price: "٢٤٩", period: "شهريًا", desc: "الباقة الأكثر اختيارًا من الأهل.", feats: ["حصص يومية مباشرة", "خطة فردية مخصصة", "تواصل مباشر مع المعلم", "شهادات معتمدة"], popular: true },
          ],
          choose: "اختر",
          selected: "تم الاختيار",
          currency: "ريال",
        },
        // Done
        done: {
          title: "أهلًا بكم في عائلة إياد ✨",
          body1: "أنشأنا حساب", body2: "وأرسلنا رابط تأكيد البريد إلى",
          tip: "افتح بريدك الآن لتنشيط الحساب وحجز أول حصة.",
          btn: "الذهاب للوحة المتابعة",
          back: "العودة للرئيسية",
        },
        errors: {
          name: "الاسم مطلوب",
          email: "أدخل بريدًا صحيحًا",
          phone: "أدخل رقم جوال صحيح",
          password: "كلمة المرور ٨ أحرف على الأقل",
          agree: "يرجى الموافقة على الشروط",
          studentName: "اسم الطالب مطلوب",
          age: "العمر بين ٤ و ١٧",
          subjects: "اختر مادة على الأقل",
          plan: "اختر باقة للمتابعة",
        },
        haveAccount: "لديك حساب بالفعل؟",
        signin: "تسجيل الدخول",
      },
    },
    portal: {
      greeting: { morning: "صباح الخير،", afternoon: "مساء الخير،", evening: "مساء الخير،" },
      nav: {
        dashboard: "الرئيسية",
        sessions: "الحصص",
        timetable: "الجدول",
        progress: "تقدّمي",
        certificates: "شهاداتي",
        gamification: "إنجازاتي",
        reports: "التقارير",
        settings: "الإعدادات",
        backsite: "العودة للموقع",
        logout: "تسجيل الخروج",
      },
      topbar: { search: "ابحث في الحصص والمواد…", level: "المستوى", xp: "نقطة" },
      dashboard: {
        h: "أهلًا بعودتك",
        sub: "إليك ما يحدث اليوم في مسارك.",
        next: { kicker: "الحصة القادمة", join: "انضم عبر زوم", inMin: "خلال", min: "دقيقة", now: "ابدأ الآن", later: "تذكير", meetingId: "رقم الاجتماع", with: "مع" },
        streak: { kicker: "السلسلة المتواصلة", days: "يومًا", motivate: "حافظ على وتيرتك — كل يوم يصنع فرقًا." },
        xp: { kicker: "نقاط الخبرة", level: "المستوى", next: "للوصول للمستوى التالي" },
        week: { kicker: "هذا الأسبوع", attended: "حضرتِ", lessons: "حصص من أصل", hours: "ساعة", h: "ساعات" },
        upcoming: { h: "حصص اليوم وغدًا", empty: "لا توجد حصص قريبة." },
        progressGlance: { h: "تقدّمي عبر المواد", viewAll: "عرض الكل" },
        badges: { h: "شارات أُنجزت مؤخرًا", viewAll: "كل الإنجازات" },
        insights: { h: "ملاحظات ذكية لك ولوالديك" },
        motivate: { h: "كلمة اليوم", body: "كل يوم تتعلمين فيه شيئًا جديدًا، تكبرين شيئًا في نفسك. واصلي ✨" },
      },
      sessions: {
        h: "حصصي",
        sub: "تابعي حصصك، حمّلي المواد، وانضمي عبر زوم بضغطة واحدة.",
        tabs: { upcoming: "القادمة", past: "السابقة" },
        join: "انضم عبر زوم",
        details: "التفاصيل",
        date: "التاريخ",
        time: "الوقت",
        with: "المعلم",
        materials: "المواد المرفقة",
        notes: "ملاحظات المعلم",
        addFile: "إرفاق ملف للحصة",
        addHint: "يمكنك رفع ملف من جهازك. سيظهر للمعلم وزميلاتك في الحصة.",
        upload: "اختر ملفًا",
        uploadedYou: "رفعتِه أنتِ",
        uploadedTeacher: "من المعلم",
        sizeMb: "م.ب.",
        zoomId: "رقم اجتماع زوم",
        download: "تحميل",
        delete: "حذف",
        chat: "محادثة الحصة",
        chatHint: "ستتوفر بعد بدء الحصة.",
        grade: "تقدير الحصة",
        empty: { upcoming: "لا توجد حصص قادمة هذا الأسبوع.", past: "لا توجد حصص سابقة بعد." },
        confirmJoin: { h: "الانضمام للحصة", body: "سيتم فتح زوم في تبويب جديد. تأكدي من تشغيل الكاميرا والميكروفون.", btn: "تشغيل زوم الآن", cancel: "إلغاء" },
      },
      timetable: {
        h: "الجدول الأسبوعي",
        sub: "نظرة شاملة على حصصك للأيام الخمسة القادمة.",
        prev: "الأسبوع السابق", next: "الأسبوع القادم",
        today: "اليوم",
        empty: "لا حصص",
      },
      progress: {
        h: "رحلة تقدّمي",
        sub: "كيف تتطور مهاراتك أسبوعًا بعد أسبوع.",
        completed: "أكملت",
        of: "من",
        lessons: "درس",
        hoursThisMonth: "ساعة هذا الشهر",
        trend: "هذا الأسبوع",
        weekly: { h: "ساعات التعلّم اليومية", total: "المجموع", avg: "المعدل" },
        breakdown: { h: "توزيع الوقت على المواد" },
      },
      certificates: {
        h: "شهاداتي",
        sub: "كل شهادة هي قصة إنجاز. شاركيها مع من تحبين.",
        earned: "محصّلة",
        locked: "في الطريق",
        download: "تحميل PDF",
        share: "مشاركة",
        unlock: "اكملي الدورة لفك الشهادة",
        progressLabel: "التقدم",
      },
      gamification: {
        h: "إنجازاتي وشاراتي",
        sub: "كل خطوة تخطينها تُسجَّل هنا. استمري في رحلتك ✨",
        xpCard: { kicker: "نقاط الخبرة", levelLabel: "المستوى", toNext: "للوصول للمستوى التالي" },
        streakCard: { kicker: "السلسلة الذهبية", days: "يومًا متواصلًا", best: "أفضل سلسلة" },
        rankCard: { kicker: "ترتيبك", among: "ضمن الفصل" },
        badgesGrid: { h: "كل الشارات", earned: "محصّلة", locked: "مغلقة" },
        leaderboard: { h: "المتصدرون هذا الشهر", you: "أنتِ", xp: "نقطة", streak: "سلسلة" },
      },
      reports: {
        h: "تقارير وليّ الأمر",
        sub: "ملخص أسبوعي مرسل لوليّ الأمر — لتطمئنّ عينه دائمًا.",
        download: "تحميل التقرير",
        attended: "الحضور",
        avg: "التقدير العام",
        highlights: "أبرز ما حدث",
        flags: "ما يحتاج انتباه",
        empty: "لا توجد تقارير بعد.",
        insights: { h: "ملاحظات ذكية" },
      },
      settings: {
        h: "الإعدادات",
        sub: "حدّثي معلوماتك وتفضيلاتك.",
        groups: { profile: "الملف الشخصي", account: "الحساب", prefs: "التفضيلات", parents: "العائلة", danger: "حساسة" },
        labels: {
          name: "اسم الطالب", grade: "الصف", parent: "ولي الأمر", parentEmail: "بريد ولي الأمر", phone: "رقم الجوال",
          oldPassword: "كلمة المرور الحالية", newPassword: "كلمة المرور الجديدة",
          notifEmail: "إشعارات البريد", notifSms: "إشعارات الجوال", notifWeekly: "تقرير أسبوعي",
          lang: "اللغة", theme: "المظهر", reminders: "تذكير قبل الحصة",
        },
        themes: { light: "فاتح", dark: "داكن" },
        save: "حفظ التغييرات",
        saved: "تم الحفظ ✓",
        photos: "صورة الطفل",
        change: "تغيير",
        deleteAccount: "حذف الحساب",
        deleteHint: "هذا الإجراء لا يمكن التراجع عنه. سيتم إنهاء جميع الاشتراكات.",
        confirmDelete: "تأكيد الحذف",
      },
      logoutModal: { h: "تسجيل الخروج", body: "هل أنت متأكد من تسجيل الخروج؟", confirm: "نعم، اخرج", cancel: "إلغاء" },
    },
    testimonials: [
      { body: "بنتي عمرها ٩ سنين وكانت تكره الرياضيات. بعد شهرين بس مع إياد أكاديمي صارت تطلب الحصة بنفسها. الفرق مو في المعلومات بس، في ثقتها بنفسها.", name: "أم محمد", role: "والدة طالبة، الرياض", initials: "أم" },
      { body: "أحب إياد لأنه يخليني أحس إني أقدر. النجمة تشجعني، والمعلم يفهمني، والشهادات اللي أخذتها معلقة في غرفتي.", name: "ليان، ١٢ سنة", role: "طالبة", initials: "ل" },
      { body: "كأهل، أهم شي عندنا الأمان والمحتوى المحترم. هذي أول منصة نحس فيها إن في وعي حقيقي بهوية أبناءنا وقيمنا.", name: "د. عبدالله السعيدي", role: "ولي أمر، الدمام", initials: "عس" },
      { body: "طريقة شرح الأستاذ ياسر للجبر غيّرت حياتي الدراسية. صرت أفهم بدل ما أحفظ، وصاير الجبر متعة.", name: "فارس، ١٥ سنة", role: "طالب", initials: "ف" },
      { body: "تجربة فريدة جدًا. التصميم راقي، المعلمون متميزون، والتقارير اللي توصلني عن مستوى أبنائي مفصّلة وواضحة.", name: "ندى الحربي", role: "والدة لثلاثة طلاب", initials: "ند" },
    ],
  },

  // ============================================================
  // ENGLISH
  // ============================================================
  en: {
    dir: "ltr", htmlLang: "en",
    nav: {
      brand: "Eyad Academy",
      why: "Why Eyad", courses: "Courses", journey: "Journey",
      teachers: "Teachers", stories: "Stories",
      login: "Log in", start: "Start free",
    },
    hero: {
      eyebrow: "A premium learning platform · ages 4–17",
      titleA: "Begin your journey", titleB: "toward the future,", titleC: "with learning that speaks to the heart.",
      lead: "Eyad Academy walks beside your child with warmth, gives teens real confidence, and gives parents peace of mind. Quran, Arabic, Math, and Science — taught with depth, told with modernity.",
      cta1: "Try a free week", cta2: "See courses",
      s1n: "38.4k+", s1l: "students enrolled",
      s2n: "240+",   s2l: "expert teachers",
      s3n: "4.9★",   s3l: "parent rating",
      chipA: "Completed today", chipAv: "3 lessons ✨",
      chipB: "New badge",        chipBv: "Masterful Reader",
      progress: "Your week so far", progressV: "72%",
    },
    why: {
      eyebrow: "Why Eyad",
      titleA: "A platform that fits you —", titleB: "and knows your child.",
      lead: "Every detail balances the warmth of a teacher, respect for a student's mind, and the trust of parents. Not another learning portal — a growth companion.",
      pillars: [
        { title: "Taught with love",      desc: "Every lesson is designed to reach the heart before the mind, turning learning into a daily delight." },
        { title: "A personal path",       desc: "A study plan that adapts to your child's pace and level — never boring, never overwhelming." },
        { title: "Parent peace of mind",  desc: "Clear weekly reports, direct teacher access, and a safe ad-free environment for your kids." },
        { title: "Visible achievement",   desc: "Accredited certificates, badge journeys, and recognition moments that build real confidence." },
      ],
    },
    subjects: {
      eyebrow: "Core subjects",
      titleA: "Four pathways,", titleB: "one complete journey.",
      lead: "Every subject is built on a rigorous curriculum, refreshed visual content, and qualified teachers who meet your child weekly in live classes.",
      discover: "Explore courses",
      items: {
        quran:   { name: "Holy Quran",   desc: "Tajweed, memorization, and gentle tafsir for kids and teens." },
        arabic:  { name: "Arabic",       desc: "Grammar, spelling, reading and writing — made delightful." },
        math:    { name: "Mathematics",  desc: "From arithmetic to algebra with deep intuition, not rote." },
        science: { name: "Science",      desc: "Experiments, curiosity, and exploring the world around us." },
      },
    },
    courses: {
      eyebrow: "Featured courses",
      titleA: "Courses we hand-pick", titleB: "so your child loves learning.",
      lead: "Short lessons, hands-on projects, and smart progress tracking. Pick a subject to explore available courses.",
      all: "All courses",
      lesson: "lesson",
      modal: { content: "Curriculum", enroll: "Enroll now", back: "Back to courses", lessons: "interactive lessons", duration: "Course length", students: "students enrolled" },
    },
    journey: {
      eyebrow: "Learning journey",
      titleA: "From first hello", titleB: "to mastery certificate.",
      lead: "In just four steps, your child begins their own path — alongside a dedicated teacher and ongoing support.",
      steps: [
        { num: "1", title: "Quick placement",   desc: "We measure your child's level in just 10 minutes, with zero pressure." },
        { num: "2", title: "Personal plan",     desc: "We build a learning path that fits their age, style, and interests." },
        { num: "3", title: "Daily lessons",     desc: "Short interactive classes with expert teachers and continuous support." },
        { num: "4", title: "Earn the cert",     desc: "Documented achievements, motivating badges, and an accredited certificate." },
      ],
    },
    teachers: {
      eyebrow: "Teachers",
      titleA: "Teachers we choose", titleB: "like we'd choose for our own kids.",
      lead: "Only 1% of applicants pass our standards. Every teacher is continuously rated by parents and students.",
      verified: "Verified",
      years: "yrs experience",
      students: "students",
      names: {
        "هم": { name: "Huda Al-Mansour",   subj: "Arabic Language" },
        "خع": { name: "Khalid Al-Anzi",    subj: "Quran & Tajweed" },
        "يف": { name: "Yasser Al-Fahd",    subj: "Mathematics" },
        "فز": { name: "Fatima Al-Zahrani", subj: "Quran Memorization" },
      },
    },
    achievements: {
      eyebrow: "Numbers that speak",
      titleA: "Real outcomes,", titleB: "stories worth a moment.",
      lead: "Since our launch, we've walked the journey with thousands of students. Here's a glimpse of what we're proud of.",
      statLabels: ["students enrolled", "expert teachers", "parent satisfaction", "hours of learning"],
      cert: {
        kicker: "Certificate of Achievement",
        student: "Layan Abdulaziz",
        body1: "completed the course \"Memorizing Juz' Amma\"",
        body2: "with a final grade of",
        grade: "Excellent · 98%",
        sig: "Eyad Academy",
        date: "March 2026",
      },
      rightTitleA: "Accredited certificates,",
      rightTitleB: "unforgettable moments.",
      rightLead: "With every milestone, your child receives a signed certificate, a digital badge, and a small celebration with their teacher — because earning matters.",
      bullets: [
        "Accredited, shareable certificates",
        "Digital badges for every milestone",
        "Detailed parent report after each finish",
        "Live celebration with the teacher in the final session",
      ],
    },
    stories: {
      eyebrow: "Stories",
      titleA: "Words that find us", titleB: "every day.",
      lead: "From students who fell in love with learning, and parents who found in Eyad what they'd been searching for.",
      prev: "Previous", next: "Next",
    },
    cta: {
      eyebrow: "Begin the journey",
      titleA: "Start a free week,", titleB: "see the difference yourself.",
      body: "Register now and unlock 7 days of full classes, a free initial assessment for your child, and a detailed report at the end of the week — no strings attached.",
      bullets: ["No credit card required", "Live classes from day one", "Cancel with one click"],
      formTitle: "Enroll your child in a minute",
      labels: { name: "Student name", age: "Age", subject: "Preferred subject", email: "Parent email" },
      ph: { name: "e.g. Mohammed", age: "4–17", email: "parent@example.com" },
      subjectOpts: { all: "All", quran: "Holy Quran", arabic: "Arabic", math: "Mathematics", science: "Science" },
      submit: "Start the free week",
      micro: "By signing up you agree to our",
      terms: "Terms",
      and: "and",
      privacy: "Privacy",
      errors: { name: "Student name is required", age: "Age must be between 4 and 17", email: "Please enter a valid parent email" },
      success: {
        title: "You're in! Welcome aboard.",
        body1: "We'll send the access link to the parent email within minutes.",
        body2: "Welcome to the Eyad family ✨",
        again: "Enroll another student",
      },
    },
    footer: {
      about: "A modern Arabic-first learning platform for ages 4–17. Authentic content, contemporary craft — because learning starts from the heart.",
      cols: {
        platform: { h: "Platform", items: ["Courses", "Teachers", "Journey", "Pricing"] },
        company:  { h: "Company",  items: ["About",   "Stories",  "Careers",  "Blog"] },
        support:  { h: "Support",  items: ["Help center", "Contact", "Terms", "Privacy"] },
      },
      copyright: "© 2026 Eyad Academy. All rights reserved.",
      tag: "Made with ♡ in Riyadh",
    },
    courseOverrides: {
      c1: { title: "Tajweed Foundations",      short: "A calm journey to master letter articulation and the rules of Nun and Mim, with interactive audio practice and self-assessment.", tag: "Tajweed", level: "Beginner",     age: "Ages 8–12",   duration: "6 weeks",  teacher: "Khalid Al-Anzi",    role: "Certified Qari",     curriculum: ["Letter articulation with audio", "Rules of Nun & Tanween", "Rules of Sakin Mim", "Madd & its types", "Applying it to Juz' Amma"],         cd: ["45 min", "50 min", "40 min", "55 min", "60 min"] },
      c2: { title: "Arabic Grammar Made Simple", short: "Nominal and verbal sentences, parsing, and objects — through a story-based approach that links grammar to a student's daily life.", tag: "Grammar", level: "Intermediate", age: "Ages 12–15",  duration: "8 weeks",  teacher: "Huda Al-Mansour",   role: "Arabic Specialist",  curriculum: ["Word types", "Nominal sentence", "Verbal sentence", "The five objects", "Parsing fundamentals"],                            cd: ["30 min", "40 min", "45 min", "60 min", "50 min"] },
      c3: { title: "Algebra With Intuition",   short: "We build algebraic intuition step by step — from simple equations to inequalities and functions, with real-world examples.",          tag: "Algebra", level: "Advanced",     age: "Ages 13–17",  duration: "7 weeks",  teacher: "Yasser Al-Fahd",    role: "Math Teacher",       curriculum: ["Variables & constants", "Linear equations", "Inequalities", "Linear functions", "Quadratic equations"],                  cd: ["35 min", "45 min", "50 min", "60 min", "70 min"] },
      c4: { title: "Adventures in Physics",    short: "Simple daily experiments that explain gravity, motion, light, and magnetism in a way kids discover for themselves.",                  tag: "Physics", level: "Intermediate", age: "Ages 11–15",  duration: "5 weeks",  teacher: "Omar Al-Rashed",    role: "Physics Teacher",    curriculum: ["Force & motion", "Forms of energy", "Light & reflection", "Electricity & magnetism", "Applied projects"],               cd: ["40 min", "45 min", "40 min", "50 min", "65 min"] },
      c5: { title: "Memorizing Juz' Amma",     short: "A gradual memorization plan with smart spaced review and recitation, plus recognition certificates every five suras.",               tag: "Hifz",    level: "Beginner",     age: "Ages 7–11",   duration: "10 weeks", teacher: "Fatima Al-Zahrani", role: "Hifz Teacher",       curriculum: ["Short suras", "Spaced repetition technique", "Interactive recitation", "Mastery circles", "Completion & celebration"],   cd: ["15 min/day", "20 min", "25 min", "30 min", "—"] },
      c6: { title: "Creative Writing",         short: "We unlock the student's creative voice — from first idea to a coherent essay, with detailed feedback at every step.",                tag: "Writing", level: "Advanced",     age: "Ages 14–17",  duration: "4 weeks",  teacher: "Huda Al-Mansour",   role: "Arabic Specialist",  curriculum: ["From idea to sentence", "Building paragraphs", "Essay types", "Editing & revision"],                                      cd: ["40 min", "45 min", "50 min", "45 min"] },
    },
    auth: {
      back: "Back to home",
      whatsapp: "Chat on WhatsApp",
      login: {
        title: "Welcome back",
        subtitle: "Sign in to keep your child's learning moving.",
        labels: { email: "Email address", password: "Password" },
        ph: { email: "parent@example.com", password: "••••••••" },
        remember: "Remember me",
        forgot: "Forgot password?",
        submit: "Sign in",
        or: "Or sign in with",
        google: "Google",
        apple: "Apple",
        noaccount: "Don't have an account?",
        create: "Create one",
        kicker: "Parents & Students Portal",
        side: { title: "We continue the journey together.", body: "Track your child's progress, book sessions, and chat with their teacher — all in one place." },
        errors: { email: "Please enter a valid email", password: "Password is required (6+ characters)" },
        success: { title: "Signed in successfully!", body: "Taking you to your child's dashboard…", btn: "Go to dashboard" },
      },
      register: {
        title: "Create your account",
        subtitle: "Just three small steps — it'll take less than a minute.",
        kicker: "New family enrollment",
        steps: ["Parent details", "Student details", "Choose a plan"],
        next: "Continue", prev: "Back", finish: "Create account",
        s1: {
          h: "First, tell us about you",
          d: "All updates will be sent to these details. We'll never share them.",
          name: "Parent name", namePh: "Mohammed Abdullah",
          email: "Email address", emailPh: "parent@example.com",
          phone: "Mobile number", phonePh: "+966 5X XXX XXXX",
          password: "Strong password", passwordPh: "8+ characters",
          agree: "I agree to the", terms: "Terms", and: "and", privacy: "Privacy Policy",
        },
        s2: {
          h: "Tell us about your child",
          d: "This helps us build the right learning plan for them.",
          name: "Student name", namePh: "Layan",
          age: "Age", agePh: "4–17",
          grade: "School grade",
          gradeOpts: { kg: "Kindergarten", g1: "Grade 1", g2: "Grade 2", g3: "Grade 3", g4: "Grade 4", g5: "Grade 5", g6: "Grade 6", g7: "Grade 7", g8: "Grade 8", g9: "Grade 9", g10: "Grade 10", g11: "Grade 11", g12: "Grade 12" },
          gender: "Gender",
          genderOpts: { f: "Girl", m: "Boy" },
          subjects: "Subjects of interest",
          subjectsHint: "Pick one or more.",
        },
        s3: {
          h: "Pick your starter plan",
          d: "Every plan includes a free trial week. Cancel anytime.",
          plans: [
            { id: "free",    name: "Free trial",  price: "0",   period: "full week", desc: "7 days of full classes with no commitment.",        feats: ["Daily live class", "Initial level assessment", "Week-end report"] },
            { id: "starter", name: "Starter",     price: "149", period: "/ month",   desc: "For families starting a steady routine.",            feats: ["12 sessions monthly", "Regular parent updates", "Certificates & badges"], popular: false },
            { id: "premium", name: "Optimal",     price: "249", period: "/ month",   desc: "The most-loved plan by parents.",                    feats: ["Daily live sessions", "Personalized plan", "Direct teacher access", "Accredited certificates"], popular: true },
          ],
          choose: "Choose",
          selected: "Selected",
          currency: "SAR",
        },
        done: {
          title: "Welcome to the Eyad family ✨",
          body1: "We've created an account for", body2: "and sent a verification link to",
          tip: "Open your inbox now to activate the account and book the first session.",
          btn: "Go to dashboard",
          back: "Back to home",
        },
        errors: {
          name: "Name is required",
          email: "Please enter a valid email",
          phone: "Please enter a valid phone number",
          password: "Password must be 8+ characters",
          agree: "Please accept the terms",
          studentName: "Student name is required",
          age: "Age must be between 4 and 17",
          subjects: "Pick at least one subject",
          plan: "Please choose a plan to continue",
        },
        haveAccount: "Already have an account?",
        signin: "Sign in",
      },
    },
    portal: {
      greeting: { morning: "Good morning,", afternoon: "Good afternoon,", evening: "Good evening," },
      nav: {
        dashboard: "Dashboard",
        sessions: "Sessions",
        timetable: "Timetable",
        progress: "Progress",
        certificates: "Certificates",
        gamification: "Achievements",
        reports: "Reports",
        settings: "Settings",
        backsite: "Back to site",
        logout: "Log out",
      },
      topbar: { search: "Search sessions and materials…", level: "Level", xp: "XP" },
      dashboard: {
        h: "Welcome back",
        sub: "Here's what's happening in your journey today.",
        next: { kicker: "Next session", join: "Join via Zoom", inMin: "in", min: "min", now: "Start now", later: "Remind me", meetingId: "Meeting ID", with: "with" },
        streak: { kicker: "Current streak", days: "days", motivate: "Keep it up — every day makes a difference." },
        xp: { kicker: "Experience points", level: "Level", next: "to next level" },
        week: { kicker: "This week", attended: "You've attended", lessons: "of", hours: "hours", h: "h" },
        upcoming: { h: "Today & tomorrow", empty: "No sessions coming up." },
        progressGlance: { h: "Progress across subjects", viewAll: "View all" },
        badges: { h: "Recent badges earned", viewAll: "All achievements" },
        insights: { h: "Smart notes for you & your parents" },
        motivate: { h: "Today's spark", body: "Every day you learn something new, you grow something in yourself. Keep going ✨" },
      },
      sessions: {
        h: "My sessions",
        sub: "Follow your sessions, download materials, and join via Zoom with one click.",
        tabs: { upcoming: "Upcoming", past: "Past" },
        join: "Join via Zoom",
        details: "Details",
        date: "Date",
        time: "Time",
        with: "Teacher",
        materials: "Materials",
        notes: "Teacher's notes",
        addFile: "Attach a file for this session",
        addHint: "You can upload a file from your device. Your teacher and classmates will see it.",
        upload: "Choose a file",
        uploadedYou: "Uploaded by you",
        uploadedTeacher: "From teacher",
        sizeMb: "MB",
        zoomId: "Zoom meeting ID",
        download: "Download",
        delete: "Remove",
        chat: "Session chat",
        chatHint: "Available once the session begins.",
        grade: "Session grade",
        empty: { upcoming: "No upcoming sessions this week.", past: "No past sessions yet." },
        confirmJoin: { h: "Join the session", body: "Zoom will open in a new tab. Make sure your camera and mic are ready.", btn: "Launch Zoom now", cancel: "Cancel" },
      },
      timetable: {
        h: "Weekly timetable",
        sub: "A full view of your sessions for the next five days.",
        prev: "Previous week", next: "Next week",
        today: "Today",
        empty: "No sessions",
      },
      progress: {
        h: "My progress",
        sub: "How your skills are growing week by week.",
        completed: "Completed",
        of: "of",
        lessons: "lessons",
        hoursThisMonth: "hours this month",
        trend: "This week",
        weekly: { h: "Daily learning hours", total: "Total", avg: "Avg" },
        breakdown: { h: "Time spent by subject" },
      },
      certificates: {
        h: "My certificates",
        sub: "Every certificate is a story of effort. Share them with the people you love.",
        earned: "Earned",
        locked: "In progress",
        download: "Download PDF",
        share: "Share",
        unlock: "Complete the course to unlock",
        progressLabel: "Progress",
      },
      gamification: {
        h: "Achievements & badges",
        sub: "Every step you take is recorded here. Keep going ✨",
        xpCard: { kicker: "Experience points", levelLabel: "Level", toNext: "to next level" },
        streakCard: { kicker: "Golden streak", days: "consecutive days", best: "Best streak" },
        rankCard: { kicker: "Your rank", among: "in your class" },
        badgesGrid: { h: "All badges", earned: "Earned", locked: "Locked" },
        leaderboard: { h: "Top this month", you: "You", xp: "XP", streak: "streak" },
      },
      reports: {
        h: "Parent reports",
        sub: "A weekly summary sent to the parent — so they can always feel at ease.",
        download: "Download report",
        attended: "Attendance",
        avg: "Overall grade",
        highlights: "Highlights",
        flags: "Needs attention",
        empty: "No reports yet.",
        insights: { h: "Smart insights" },
      },
      settings: {
        h: "Settings",
        sub: "Update your info and preferences.",
        groups: { profile: "Profile", account: "Account", prefs: "Preferences", parents: "Family", danger: "Danger zone" },
        labels: {
          name: "Student name", grade: "Grade", parent: "Parent name", parentEmail: "Parent email", phone: "Phone number",
          oldPassword: "Current password", newPassword: "New password",
          notifEmail: "Email notifications", notifSms: "SMS notifications", notifWeekly: "Weekly report",
          lang: "Language", theme: "Theme", reminders: "Pre-session reminder",
        },
        themes: { light: "Light", dark: "Dark" },
        save: "Save changes",
        saved: "Saved ✓",
        photos: "Student photo",
        change: "Change",
        deleteAccount: "Delete account",
        deleteHint: "This action cannot be undone. All subscriptions will be cancelled.",
        confirmDelete: "Confirm deletion",
      },
      logoutModal: { h: "Log out", body: "Are you sure you want to log out?", confirm: "Yes, log out", cancel: "Cancel" },
    },
    testimonials: [
      { body: "My 9-year-old daughter used to hate math. Two months with Eyad and she's asking for her class herself. The shift isn't only academic — it's her confidence.", name: "Umm Mohammed", role: "Parent, Riyadh",        initials: "UM" },
      { body: "I love Eyad because it makes me feel I can. The star cheers me on, the teacher gets me, and the certificates are hanging on my bedroom wall.",              name: "Layan, 12",    role: "Student",              initials: "L" },
      { body: "As parents, what matters most is safety and respectful content. This is the first platform where we genuinely feel awareness of our children's values.",      name: "Dr. Abdullah Al-Saidi", role: "Parent, Dammam", initials: "AS" },
      { body: "The way Mr. Yasser explains algebra changed my school life. I understand instead of memorizing — and now algebra is actually fun.",                          name: "Faris, 15",    role: "Student",              initials: "F" },
      { body: "A truly distinctive experience. The design is elegant, the teachers are excellent, and the reports I receive about my kids' progress are detailed and clear.", name: "Nada Al-Harbi", role: "Parent of three",     initials: "NH" },
    ],
  },
};

Object.assign(window, { I18N });
