
/* NOVORA — شاشة الترحيب على الهاتف فقط */

.welcome-mobile {
    display: none;
  }
  
  @media (max-width: 767px) {
  
    /* إخفاء واجهة الكمبيوتر على المحمول فقط */
    .shell {
      display: none !important;
    }
  
    body {
      margin: 0;
      overflow-x: hidden;
    }
  
    .welcome-mobile {
      display: block;
      width: 100%;
      max-width: 520px;
      min-height: 100svh;
      margin-inline: auto;
    }
  
    .welcome-mobile-stage {
      position: relative;
      width: 100%;
      direction: ltr;
    }
  
    #welcomeMobileImage {
      display: block;
      width: 100%;
      height: auto;
      max-width: 100%;
      user-select: none;
      pointer-events: none;
      -webkit-user-drag: none;
    }
  
    /* مناطق الضغط محسوبة بالنسبة لأبعاد الصورة */
    .mobile-hit {
      position: absolute;
      z-index: 3;
      display: block;
      padding: 0;
      margin: 0;
      border: 0;
      border-radius: 9px;
      background: transparent;
      box-shadow: none;
      color: transparent;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
  
    .mobile-hit:hover,
    .mobile-hit:active {
      background: transparent;
      box-shadow: none;
    }
  
    .mobile-hit:focus:not(:focus-visible) {
      outline: none;
    }
  
    .mobile-hit:focus-visible {
      outline: 2px solid #e9b54e;
      outline-offset: -2px;
    }
  
    /* الأزرار العلوية */
    .mobile-hit-menu {
      left: 2.2%;
      top: 1.8%;
      width: 8.7%;
      height: 5.3%;
    }
  
    .mobile-hit-login {
      left: 11.1%;
      top: 1.8%;
      width: 23.7%;
      height: 5.3%;
    }
  
    .mobile-hit-language {
      left: 35.1%;
      top: 1.8%;
      width: 20.7%;
      height: 5.3%;
    }
  
    .mobile-hit-theme {
      left: 56%;
      top: 1.8%;
      width: 8.1%;
      height: 5.3%;
    }
  
    /* زر ابدأ رحلتك الآن */
    .mobile-hit-start {
      left: 21.8%;
      top: 50%;
      width: 56.4%;
      height: 7.3%;
    }
  
    /* ضبط مكان الزر حسب النسخة المعتمدة */
    .welcome-mobile[data-language="en"][data-theme="dark"]
    .mobile-hit-start {
      left: 19.2%;
      top: 49.3%;
      width: 61.2%;
      height: 7.2%;
    }
  
    .welcome-mobile[data-language="en"][data-theme="light"]
    .mobile-hit-start {
      left: 17.6%;
      top: 46.7%;
      width: 65.3%;
      height: 7.9%;
    }
  
    .welcome-mobile[data-language="ar"][data-theme="dark"]
    .mobile-hit-start {
      left: 22.1%;
      top: 50.1%;
      width: 55.5%;
      height: 7.6%;
    }
  
    .welcome-mobile[data-language="ar"][data-theme="light"]
    .mobile-hit-start {
      left: 21.8%;
      top: 50.6%;
      width: 55.9%;
      height: 7.5%;
    }
  
    /* القائمة الحقيقية عند الضغط على أيقونة القائمة */
    .welcome-mobile-nav {
      position: absolute;
      z-index: 9;
      top: 9.2%;
      left: 3%;
      right: 3%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding: 13px;
      border: 1px solid #dba750;
      border-radius: 16px;
      background: rgba(4, 15, 41, .97);
      box-shadow: 0 12px 36px #0008;
      backdrop-filter: blur(16px);
      direction: rtl;
    }
  
    .welcome-mobile-nav[hidden],
    .welcome-mobile-detail[hidden] {
      display: none !important;
    }
  
    .welcome-mobile-nav button {
      min-width: 0;
      min-height: 42px;
      padding: 8px 5px;
      border: 1px solid #caa04d;
      border-radius: 11px;
      background: #0b1c3c;
      color: #ffffff;
      font-size: clamp(12px, 3.4vw, 16px);
      line-height: 1.4;
      font-weight: 700;
      cursor: pointer;
    }
  
    /* القائمة في الوضع الفاتح */
    .welcome-mobile[data-theme="light"]
    .welcome-mobile-nav {
      background: rgba(255, 252, 245, .98);
      box-shadow: 0 12px 30px #56472935;
    }
  
    .welcome-mobile[data-theme="light"]
    .welcome-mobile-nav button {
      background: #fff9ed;
      color: #142345;
    }
  
    .welcome-mobile[data-language="en"]
    .welcome-mobile-nav {
      direction: ltr;
    }
  
    /* عرض تفاصيل الأقسام عند اختيارها */
    .welcome-mobile-detail {
      position: absolute;
      z-index: 8;
      top: 17%;
      left: 5%;
      width: 90%;
      max-height: 44%;
      overflow-y: auto;
      overscroll-behavior: contain;
      border: 1px solid #ddb05b;
      border-radius: 17px;
      padding: 20px 16px 16px;
      background: rgba(4, 15, 43, .97);
      box-shadow: 0 12px 36px #0008;
      backdrop-filter: blur(16px);
      color: #ffffff;
      direction: rtl;
      text-align: start;
      overflow-wrap: anywhere;
    }
  
    .welcome-mobile[data-language="en"]
    .welcome-mobile-detail {
      direction: ltr;
    }
  
    .welcome-mobile[data-theme="light"]
    .welcome-mobile-detail {
      background: rgba(255, 253, 249, .98);
      color: #122341;
      box-shadow: 0 12px 30px #56472935;
    }
  
    .welcome-mobile-detail h2 {
      color: #efbb64;
      font-size: clamp(18px, 5vw, 25px);
      line-height: 1.45;
      margin: 10px 0 12px;
      white-space: pre-line;
    }
  
    .welcome-mobile[data-theme="light"]
    .welcome-mobile-detail h2 {
      color: #a76b19;
    }
  
    .welcome-mobile-detail p {
      font-size: clamp(14px, 3.7vw, 18px);
      line-height: 1.85;
      white-space: pre-line;
      margin: 0;
    }
  
    .welcome-mobile-close {
      position: absolute;
      top: 5px;
      inset-inline-end: 7px;
      width: 35px;
      height: 35px;
      border: 1px solid #dba750;
      border-radius: 50%;
      background: transparent;
      color: inherit;
      font-size: 24px;
      line-height: 1;
      cursor: pointer;
    }
  }
  