/* ===================================================================
   أكاديمية الرسم للأطفال — تصميم "دفتر التلوين"
   Mobile-First: الأساس مصمم للجوال ثم يتوسع للشاشات الكبيرة
   =================================================================== */
:root {
  --blue: #4A90D9;
  --blue-dark: #3372B5;
  --yellow: #FFC93C;
  --coral: #FF7B54;
  --coral-dark: #E85F38;
  --mint: #3EC1A8;
  --purple: #8E7CC3;
  --pink: #FF9EC4;
  --ink: #2D2A32;
  --paper: #FFF9F0;
  --sky: #EAF4FF;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 6px 0 rgba(45, 42, 50, .12);
  --shadow-lift: 0 12px 24px rgba(45, 42, 50, .14);
  --font-head-ar: 'Baloo Bhaijaan 2', 'Baloo 2', cursive;
  --font-head-en: 'Baloo 2', 'Baloo Bhaijaan 2', cursive;
  --font-body: 'Rubik', 'Baloo Bhaijaan 2', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  /* مساحة لشريط الاشتراك السفلي في الجوال */
  padding-bottom: 74px;
}
.lang-ar h1, .lang-ar h2, .lang-ar h3 { font-family: var(--font-head-ar); }
.lang-en h1, .lang-en h2, .lang-en h3 { font-family: var(--font-head-en); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
ul, ol { list-style: none; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ============================ الأزرار ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1.05rem;
  border: 3px solid var(--ink); border-radius: 999px; cursor: pointer;
  padding: 13px 26px; min-height: 48px; /* هدف لمس مريح للجوال */
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 5px 0 var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-secondary { background: var(--mint); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-light { background: var(--yellow); color: var(--ink); }
.btn-lg { font-size: 1.2rem; padding: 16px 34px; min-height: 56px; }
.btn-sm { font-size: .95rem; padding: 9px 18px; min-height: 42px; box-shadow: 0 3px 0 var(--ink); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
}

/* ============================ الهيدر ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 3px dashed var(--yellow);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 62px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head-ar); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.nav-toggle { display: none; }
.nav-burger {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
}
.nav-burger span { width: 26px; height: 3.5px; background: var(--ink); border-radius: 3px; transition: .2s; }
.nav-links {
  display: none; width: 100%; flex-direction: column; gap: 4px; padding: 10px 0 16px;
}
.nav-toggle:checked ~ .nav-links { display: flex; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.nav-links a {
  color: var(--ink); font-weight: 600; padding: 12px 14px; border-radius: 12px; min-height: 44px;
  display: flex; align-items: center; gap: 6px;
}
.nav-links a.active, .nav-links a:active { background: var(--sky); color: var(--blue-dark); }
.lang-switch { border: 2px dashed var(--blue); border-radius: 999px !important; justify-content: center; }

@media (min-width: 860px) {
  .nav-burger { display: none; }
  .nav-links { display: flex !important; width: auto; flex-direction: row; align-items: center; gap: 6px; padding: 0; }
  .lang-switch { padding: 8px 14px !important; min-height: 40px; }
}

/* ============================ HERO ============================ */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #DCEEFF 100%); position: relative; padding: 34px 0 70px; }
.hero-grid { display: grid; gap: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 2.5px solid var(--yellow); border-radius: 999px;
  padding: 7px 16px; font-weight: 700; font-size: .92rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 7.5vw, 3.3rem); line-height: 1.25; margin: 14px 0 10px; position: relative;
}
.scribble { display: block; width: min(220px, 55%); margin-top: 2px; }
.hero-sub { font-size: clamp(1rem, 4vw, 1.2rem); color: #4b4750; max-width: 560px; }
.hero-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.price-now { font-family: var(--font-head-ar); font-size: clamp(2rem, 8vw, 2.7rem); font-weight: 800; color: var(--coral-dark); }
.price-old { color: #9b96a3; font-size: 1.15rem; }
.hero-cta-form { margin: 10px 0 8px; }
.hero-note { display: flex; align-items: center; gap: 7px; color: #4b4750; font-size: .95rem; }
.stats { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.stat {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px 16px; text-align: center; flex: 1; min-width: 96px;
}
.stat strong { display: block; font-family: var(--font-head-ar); font-size: 1.35rem; color: var(--blue-dark); }
.stat span { font-size: .85rem; color: #6b6675; }
.hero-art img { border-radius: var(--radius); border: 4px solid var(--white); box-shadow: var(--shadow-lift); }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 46px; }

@media (min-width: 860px) {
  .hero { padding: 60px 0 100px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 44px; }
  .wave { height: 90px; }
}

/* ============================ الأقسام العامة ============================ */
.section { padding: 54px 0; }
.section-alt { background: var(--sky); }
.section-title {
  font-size: clamp(1.55rem, 6vw, 2.4rem); text-align: center; margin-bottom: 12px; position: relative;
}
.section-title::after {
  content: ""; display: block; width: 84px; height: 7px; margin: 10px auto 0;
  background: var(--yellow); border-radius: 99px; transform: rotate(-1.5deg);
}
.section-subtitle { text-align: center; color: #5c5766; margin: 0 auto 30px; max-width: 620px; }
.section-cta { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }

/* ============================ بطاقات المميزات ============================ */
.cards-grid { display: grid; gap: 16px; margin-top: 30px; }
.card {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px; text-align: center;
}
.card-icon {
  display: inline-grid; place-items: center; width: 84px; height: 84px;
  background: var(--sky); border-radius: 50%; border: 3px dashed var(--blue); margin-bottom: 12px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.card p { color: #5c5766; font-size: .97rem; }
.tilt-0 { transform: rotate(.7deg); }
.tilt-1 { transform: rotate(-.8deg); }
.tilt-2 { transform: rotate(.5deg); }

@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ============================ الفوائد (يستفيد طفلك) ============================ */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.benefit {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 14px;
}
.benefit-icon {
  display: grid; place-items: center; width: 104px; height: 104px;
  background: var(--paper); border-radius: 26px; border: 3px dashed var(--coral);
}
.benefit-icon img { width: 72px; height: 72px; object-fit: contain; }
.benefit h3 { font-size: 1.05rem; }

@media (min-width: 700px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1020px) { .benefits-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } .benefit h3 { font-size: .98rem; } }

/* حذف أنماط المقارنة غير المستخدمة أبقيناه نظيفاً */

/* ============================ الخطوات ============================ */
.steps-grid { display: grid; gap: 16px; margin-top: 30px; }
.step {
  position: relative; text-align: center;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 20px 22px;
}
.step img { margin: 0 auto 10px; }
.step-num {
  position: absolute; top: -18px; inset-inline-start: 18px;
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%;
  font-family: var(--font-head-ar); font-weight: 800; font-size: 1.25rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: #5c5766; font-size: .95rem; }

@media (min-width: 780px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ============================ عن الدورة ============================ */
.about-grid { display: grid; gap: 26px; align-items: center; }
.about-text .section-title { text-align: start; }
.about-text .section-title::after { margin-inline-start: 0; }
.about-text p { margin-bottom: 18px; color: #4b4750; }
.about-art img { border-radius: var(--radius); border: 4px solid var(--white); box-shadow: var(--shadow-lift); }

@media (min-width: 860px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 44px; } }

/* ============================ قائمة الدروس ============================ */
.lessons-list { max-width: 780px; margin: 26px auto 0; counter-reset: lesson; display: grid; gap: 12px; }
.lesson-row {
  display: flex; gap: 13px; align-items: center;
  background: var(--white); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow); padding: 13px 16px;
}
.lesson-num {
  flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--blue); color: var(--white); border-radius: 50%;
  font-family: var(--font-head-ar); font-weight: 800; font-size: 1.15rem; border: 3px solid var(--ink);
}
.lesson-info { flex: 1; min-width: 0; }
.lesson-info h3 { font-size: 1.03rem; }
.lesson-info p { color: #6b6675; font-size: .88rem; }
.lesson-meta { flex: 0 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 11px; font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.pill-free { background: var(--mint); color: var(--white); }

/* ============================ المعرض ============================ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.gallery-item {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; text-align: center;
}
.gallery-item img { border-radius: 12px; width: 100%; }
.gallery-item figcaption { font-size: .85rem; font-weight: 600; padding: 8px 4px 2px; color: #4b4750; }

@media (min-width: 860px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ============================ الآراء ============================ */
.testimonials-grid { display: grid; gap: 16px; margin-top: 28px; }
.testimonial {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.stars { display: flex; gap: 3px; margin-bottom: 10px; }
.testimonial p { color: #4b4750; margin-bottom: 14px; }
.testimonial footer { display: flex; flex-direction: column; }
.testimonial footer strong { color: var(--blue-dark); }
.testimonial footer span { font-size: .85rem; color: #8c8795; }

@media (min-width: 780px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ============================ الشهادة ============================ */
.cert-grid { display: grid; gap: 26px; align-items: center; }
.cert-text .section-title { text-align: start; }
.cert-text .section-title::after { margin-inline-start: 0; }
.cert-text p { margin-bottom: 18px; color: #4b4750; }
.cert-art img { border-radius: var(--radius); border: 4px solid var(--yellow); box-shadow: var(--shadow-lift); }

@media (min-width: 860px) { .cert-grid { grid-template-columns: 1.05fr .95fr; gap: 44px; } }

/* ============================ صندوق السعر ============================ */
.price-box {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--white); border: 4px solid var(--ink); border-radius: 26px;
  box-shadow: var(--shadow-lift); padding: 34px 22px;
  position: relative;
}
.price-box::before {
  content: ""; position: absolute; inset: -14px; z-index: -1;
  border: 3px dashed var(--coral); border-radius: 34px; transform: rotate(-.6deg);
}
.price-box h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); margin-bottom: 8px; }
.price-box-price { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin: 10px 0 16px; }
.price-includes { text-align: start; max-width: 400px; margin: 0 auto 22px; display: grid; gap: 9px; }
.price-includes li { display: flex; align-items: flex-start; gap: 9px; font-size: .98rem; }
.price-includes img { flex: 0 0 auto; margin-top: 2px; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 14px; font-size: .87rem; color: #6b6675; }

/* ============================ FAQ ============================ */
.faq-container { max-width: 720px; }
.faq-item {
  background: var(--white); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 18px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--coral); font-weight: 800; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 18px 16px; color: #4b4750; }

/* ============================ CTA النهائي ============================ */
.cta-final {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: var(--white); text-align: center; padding: 58px 0;
}
.cta-final img { margin: 0 auto 14px; }
.cta-final h2 { font-size: clamp(1.5rem, 6vw, 2.3rem); margin-bottom: 10px; }
.cta-final p { opacity: .92; margin-bottom: 18px; }
.cta-price { justify-content: center; }
.cta-price .price-now { color: var(--yellow); }
.cta-price .price-old { color: rgba(255, 255, 255, .65); }

/* ============================ صفحة الدورة ============================ */
.course-page { padding: 30px 0 60px; }
.paywall {
  max-width: 540px; margin: 0 auto 30px; text-align: center;
  background: var(--white); border: 4px solid var(--ink); border-radius: 26px;
  box-shadow: var(--shadow-lift); padding: 30px 22px;
}
.paywall img { margin: 0 auto 10px; }
.paywall h2 { font-size: 1.3rem; margin-bottom: 8px; }
.paywall .hero-price { justify-content: center; margin: 8px 0; }
.paywall-login { margin-top: 12px; font-size: .95rem; }

.lessons-counter { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 6px 0 14px; }
.lessons-counter strong { font-family: var(--font-head-ar); font-size: 1.3rem; color: var(--blue-dark); }

/* ألوان أرقام الدروس المتناوبة — حيوية */
.nc0 { background: var(--blue); } .nc1 { background: var(--coral); } .nc2 { background: var(--mint); }
.nc3 { background: var(--purple); } .nc4 { background: var(--yellow); color: var(--ink) !important; }

/* قائمة العناوين فقط (قبل الاشتراك) */
.titles-list { max-width: 720px; margin: 0 auto; display: grid; gap: 9px; }
.title-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 rgba(45,42,50,.12); padding: 10px 14px;
}
.title-text { flex: 1; font-weight: 600; font-size: .98rem; }

/* تخطيط المشغل + القائمة (بعد الاشتراك) */
.player-layout { display: grid; gap: 20px; }
.player-card {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.video-wrap { position: relative; padding-top: 56.25%; background: var(--ink); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  color: var(--white); text-align: center; padding: 20px;
}
.player-info { padding: 16px 18px 20px; }
.now-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky); border: 2px solid var(--blue); border-radius: 999px;
  padding: 4px 12px; font-size: .82rem; font-weight: 700; color: var(--blue-dark);
}
.player-info h1 { font-size: 1.25rem; margin: 10px 0 4px; }
.player-info p { color: #5c5766; font-size: .95rem; }
.attachments { margin-top: 14px; display: grid; gap: 8px; }
.attachments h3 { display: flex; align-items: center; gap: 7px; font-size: .98rem; }
.att-chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: var(--paper); border: 2.5px solid var(--mint); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--ink); min-height: 42px;
}
.att-chip:active { background: var(--mint); color: var(--white); }

.list-head { display: grid; gap: 10px; margin-bottom: 12px; }
.lesson-search {
  font-family: inherit; font-size: 1rem; padding: 12px 16px; min-height: 48px; width: 100%;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--white);
}
.lesson-search:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.lessons-scroll { display: grid; gap: 8px; }
.lesson-btn {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: var(--white); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 rgba(45,42,50,.12); padding: 10px 13px; min-height: 56px;
  color: var(--ink); transition: transform .12s;
}
.lesson-btn .lesson-num { width: 36px; height: 36px; font-size: 1rem; }
.lesson-btn-title { flex: 1; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.lesson-dur { font-size: .78rem; color: #8c8795; white-space: nowrap; }
.lesson-play { opacity: .35; flex: 0 0 auto; }
.lesson-btn.active { background: var(--sky); border-color: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.lesson-btn.active .lesson-play { opacity: 1; }
.lesson-btn:active { transform: translateY(2px); }

@media (min-width: 960px) {
  .player-layout { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .player-side { position: sticky; top: 78px; }
  .lessons-scroll { max-height: calc(100vh - 220px); overflow-y: auto; padding-inline-end: 6px; }
  .lessons-scroll::-webkit-scrollbar { width: 9px; }
  .lessons-scroll::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 99px; }
}

/* ============================ تسجيل/دخول ============================ */
.auth-page { padding: 46px 0 70px; display: grid; place-items: center; min-height: 60vh; }
.auth-card {
  width: min(430px, 100% - 32px); text-align: center;
  background: var(--white); border: 4px solid var(--ink); border-radius: 26px;
  box-shadow: var(--shadow-lift); padding: 32px 24px;
}
.auth-card > img { margin: 0 auto 10px; }
.auth-card h1 { font-size: 1.45rem; margin-bottom: 18px; }
.auth-card form { display: grid; gap: 14px; text-align: start; }
.auth-card label { font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
.auth-card input {
  font-family: inherit; font-size: 1rem; padding: 13px 14px; min-height: 48px;
  border: 3px solid var(--ink); border-radius: 13px; background: var(--paper);
}
.auth-card input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.auth-alt { margin-top: 16px; font-size: .95rem; }
.form-error {
  background: #FFE9E2; border: 2.5px solid var(--coral); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px; font-size: .93rem; font-weight: 600;
}
.success-card p { margin-bottom: 18px; color: #4b4750; }

/* ============================ الفوتر ============================ */
.site-footer { background: var(--ink); color: #E8E4DE; padding: 34px 0; text-align: center; }
.footer-inner { display: grid; gap: 14px; justify-items: center; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.copyright { font-size: .85rem; opacity: .7; }

/* ============================ شريط CTA السفلي (جوال) ============================ */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border-top: 3px solid var(--ink);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(45, 42, 50, .14);
}
.mobile-cta-price { display: flex; flex-direction: column; line-height: 1.25; }
.mobile-cta-price strong { font-family: var(--font-head-ar); font-size: 1.25rem; color: var(--coral-dark); }
.mobile-cta-price s { color: #9b96a3; font-size: .84rem; }
.mobile-cta .btn { box-shadow: 0 4px 0 var(--ink); padding: 11px 22px; }

@media (min-width: 860px) {
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ============================ أنيميشن ============================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
.bounce { animation: bounce 2.4s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bounce { animation: none; }
}

/* ============================ تواصل الفوتر ============================ */
.footer-contact { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.fc-item { display: inline-flex; align-items: center; gap: 8px; color: #E8E4DE; font-size: .95rem; min-height: 44px; }
.fc-item img { background: #fff; border-radius: 8px; padding: 2px; }
@media (min-width: 700px) { .footer-contact { flex-direction: row; gap: 26px; justify-content: center; } }

/* ============================ أيقونة الدعم الفني ============================ */
.chat-fab {
  position: fixed; z-index: 70;
  inset-inline-end: 16px; bottom: 88px; /* فوق شريط الاشتراك في الجوال */
  width: 58px; height: 58px; display: grid; place-items: center;
  background: #3EC1A8; border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 0 5px 0 var(--ink), 0 10px 22px rgba(45,42,50,.25);
  animation: chat-pop 2.6s infinite;
}
.chat-fab:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
@keyframes chat-pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (min-width: 860px) { .chat-fab { bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .chat-fab { animation: none; } }

/* عرض 5 دروس ثم "مشاهدة المزيد" */
.js #home-lessons .extra-row { display: none; }
.show-more-wrap { text-align: center; margin-top: 18px; }
