/* ============================================
   صفحة الواجهة الرئيسية (لاندينغ) - نفس تصميم التطبيق
   ============================================ */

.landing-page {
  background-color: var(--background-color);
  min-height: 100vh;
  font-family: var(--font-arabic);
  color: var(--text-primary);
  overflow-x: hidden;
}

.landing-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* الشريط العلوي بعرض الشاشة بالكامل من أقصى اليمين إلى أقصى اليسار */
.landing-main .landing-header,
.landing-page-inner .landing-header,
.admin-main .landing-header {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-left: max(16px, var(--safe-area-inset-left));
  padding-right: max(16px, var(--safe-area-inset-right));
  box-sizing: border-box;
}

/* هيدر: شبكة ثلاث أعمدة — أزرار | المنتصف (رجوع + شعار) | فراغ */
.landing-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 16px;
  background: var(--background-color);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(69, 118, 103, 0.15);
}

/* أقصى اليمين في RTL */
.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

/* أقصى اليسار في RTL (زر الرجوع / عودة) */
.landing-header__left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
}

.landing-header__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.landing-header__left .landing-header__back {
  margin-inline-end: 0;
}

.landing-header__logo {
  display: flex;
  align-items: center;
}

.landing-header__logo-img {
  width: 81px;
  height: 43px;
  object-fit: contain;
}

.landing-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.landing-header__back img {
  width: 24px;
  height: 19px;
  object-fit: contain;
}

.landing-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-arabic);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.landing-header__btn--soft {
  background: rgba(69, 118, 103, 0.10);
  border: 1.2px solid rgba(69, 118, 103, 0.22);
  color: var(--primary-color);
}

.landing-header__btn--soft:link,
.landing-header__btn--soft:visited {
  color: var(--primary-color);
}

.landing-header__btn--soft:hover {
  background: rgba(69, 118, 103, 0.16);
  border-color: rgba(69, 118, 103, 0.35);
  opacity: 1;
}

.landing-header__btn--outline {
  background: transparent;
  border: 1.2px solid var(--primary-color);
  color: var(--primary-color);
}

.landing-header__btn--outline:link,
.landing-header__btn--outline:visited {
  color: var(--primary-color);
}

.landing-header__btn--primary {
  background: linear-gradient(to bottom right, #8FAEA6, #4D8B7E);
  color: #fff;
}

.landing-header__btn--primary:link,
.landing-header__btn--primary:visited {
  color: #fff;
}

.landing-header__btn:hover {
  opacity: 0.9;
}

/* قسم تنزيل التطبيق: معرض صور (أسلوب mojod_web - سابق/تالي + مؤشرات) */
.landing-app-download {
  padding: 24px 0 32px;
}

.landing-app-download .product-image-gallery {
  position: relative;
  background: transparent;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  max-width: 360px;
  width: 100%;
  margin-inline: auto;
}

.landing-app-download .gallery-container {
  position: relative;
  width: 100%;
  max-height: 360px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-app-download .gallery-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.landing-app-download .gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.landing-app-download .gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.landing-app-download .gallery-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  border-radius: 12px;
  user-select: none;
  pointer-events: none;
  display: block !important;
  margin: 0;
  padding: 0;
}

.landing-app-download .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  color: var(--primary-color, #457667);
}

.landing-app-download .gallery-nav:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.landing-app-download .gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.landing-app-download .gallery-prev {
  right: 2rem;
}

.landing-app-download .gallery-next {
  left: 2rem;
}

.landing-app-download .gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.landing-app-download .gallery-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.landing-app-download .gallery-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.landing-app-download .gallery-indicator:hover {
  background: #bbb;
  transform: scale(1.2);
}

.landing-app-download .gallery-indicator.active {
  background: var(--primary-color, #457667);
  width: 24px;
  border-radius: 5px;
  transform: scale(1);
}

.landing-app-download__title {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.landing-app-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.landing-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-arabic);
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.landing-app-btn--apple {
  background: #000;
}

.landing-app-btn--google {
  background: #000;
  color: #fff;
}

.landing-app-btn--web {
  background: transparent;
  border: 1.5px solid var(--primary-color, #457667);
  color: var(--primary-color, #457667);
}

.landing-app-btn--web:hover {
  background: rgba(69, 118, 103, 0.08);
}

.landing-app-btn__icon {
  flex-shrink: 0;
}

.landing-app-btn__text {
  display: block;
}

/* موبايل: قسم التطبيق + الشعار أقصى اليسار في الصفحة الرئيسية فقط */
@media (max-width: 767px) {
  .landing-header__btn {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
  }
  .landing-main .landing-header__actions {
    gap: 6px;
  }
  .landing-main .landing-header__center {
    grid-column: 3;
    justify-self: start;
  }
  .landing-main .landing-header__left {
    grid-column: 2;
  }
  .landing-app-download .gallery-nav {
    width: 40px;
    height: 40px;
  }
  .landing-app-download .gallery-prev {
    right: 1rem;
  }
  .landing-app-download .gallery-next {
    left: 1rem;
  }
  .landing-app-download__title {
    font-size: 14px;
  }
  .landing-app-btn {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* الهيرو */
.landing-hero {
  text-align: center;
  padding: 48px 0 40px;
}

.landing-hero__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(69, 118, 103, 0.12);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
}

.landing-hero__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px;
  line-height: 1.4;
}

.landing-hero__subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 24px;
  line-height: 1.6;
  opacity: 0.95;
}

.landing-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.landing-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-arabic);
  text-decoration: none;
  background: linear-gradient(to bottom right, #8FAEA6, #4D8B7E);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69, 118, 103, 0.3);
}

.landing-hero__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.landing-hero__store-link {
  display: inline-block;
}

.landing-hero__store-link img {
  height: 44px;
  width: auto;
  display: block;
}

/* أقسام المحتوى */
.landing-section {
  padding: 32px 0;
  border-top: 1px solid rgba(69, 118, 103, 0.12);
}

.landing-section__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 16px;
  text-align: center;
}

.landing-section__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0 0 16px;
  text-align: center;
}

.landing-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
}

.landing-step {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(69, 118, 103, 0.12);
}

.landing-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #8FAEA6, #4D8B7E);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.landing-step__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 8px;
}

.landing-step__desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* الفيديوهات */
.landing-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.landing-video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(69, 118, 103, 0.15);
}

.landing-video-card__wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.landing-video-card__wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.landing-video-card__title {
  padding: 12px 16px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.landing-video-card__watch-link {
  display: inline-block;
  padding: 8px 16px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.landing-video-card__watch-link:hover {
  text-decoration: underline;
}

/* البطاقات الأربع (مزايا) */
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.landing-feature {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(69, 118, 103, 0.12);
}

.landing-feature__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.landing-feature__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 8px;
}

.landing-feature__desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

/* الأسئلة الشائعة */
.landing-faq {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.landing-faq__item {
  margin-bottom: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(69, 118, 103, 0.15);
}

.landing-faq__q {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.landing-faq__a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.85;
  margin: 0;
}

.landing-faq__a a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

.landing-faq__a a:hover {
  text-decoration: underline;
}

.landing-faq-more {
  text-align: center;
  margin: 20px 0 0;
}

.landing-faq-more a {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.landing-faq-more a:link,
.landing-faq-more a:visited {
  color: var(--primary-color);
}

.landing-faq-more a:hover {
  text-decoration: underline;
}

/* CTA نهائي */
.landing-cta {
  text-align: center;
  padding: 40px 0;
}

.landing-cta__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.landing-cta__subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 24px;
  opacity: 0.9;
}

.landing-cta__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* الفوتر */
.landing-footer {
  text-align: center;
  padding: 32px 16px;
  border-top: 1px solid rgba(69, 118, 103, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.85;
}

.landing-footer__company {
  margin-bottom: 8px;
}

.landing-footer__contact-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.landing-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.landing-footer__social-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(69, 118, 103, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}

.landing-footer__social-item:hover {
  background: rgba(69, 118, 103, 0.15);
}

.landing-footer__social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.landing-footer__links {
  margin-top: 12px;
}

.landing-footer__links a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 8px;
}

.landing-footer__links a:link,
.landing-footer__links a:visited {
  color: var(--primary-color);
}

.landing-footer__links a:hover {
  text-decoration: underline;
}

/* موبايل: تصغير الخط */
@media (max-width: 767px) {
  .landing-hero__title {
    font-size: 18px;
  }
  .landing-hero__eyebrow {
    font-size: 12px;
  }
  .landing-hero__subtitle {
    font-size: 13px;
  }
  .landing-step__title {
    font-size: 14px;
  }
  .landing-step__desc {
    font-size: 12px;
  }
  .landing-hero__btn {
    font-size: 14px;
    padding: 12px 20px;
  }
  .landing-section__title {
    font-size: 16px;
  }
  .landing-section__text {
    font-size: 13px;
  }
  .landing-video-card__title {
    font-size: 13px;
    padding: 10px 12px;
  }
  .landing-feature__title {
    font-size: 14px;
  }
  .landing-feature__desc {
    font-size: 12px;
  }
  .landing-faq__q {
    font-size: 13px;
  }
  .landing-faq__a {
    font-size: 12px;
  }
  .landing-cta__title {
    font-size: 18px;
  }
  .landing-cta__subtitle {
    font-size: 13px;
  }
  .landing-footer {
    font-size: 12px;
  }
  .landing-footer__social {
    gap: 8px;
    margin-bottom: 14px;
  }
  .landing-footer__social-item {
    padding: 6px 10px;
    font-size: 12px;
  }
  .landing-footer__social-icon {
    width: 20px;
    height: 20px;
  }
  .landing-footer__links a {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .landing-hero__title {
    font-size: 28px;
  }
  .landing-section__title {
    font-size: 22px;
  }
}

/* مساعد ذكي من اللاندينغ — بدون حفظ */
.landing-ai-assistant {
  margin: 28px 0 32px;
  padding: 22px 18px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(69, 118, 103, 0.12), rgba(143, 174, 166, 0.18));
  border: 1px solid rgba(69, 118, 103, 0.22);
}

.landing-ai-assistant__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #457667;
}

.landing-ai-assistant__desc {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary, #515459);
  line-height: 1.55;
}

.landing-ai-assistant__actions {
  display: flex;
  justify-content: center;
  align-items: center;
}
