/* عزل تمرير الصفحة عند القفل */
html.nxX-locked, body.nxX-locked { overflow: hidden !important; }

/* الحاوية العامة */
.nxX-striplock{
  padding: 60px 0;
  position: relative;
}

/* العنوان */
.nxX-heading{
  text-align: center;
  margin-bottom: clamp(16px, 4vw, 28px);
  overflow: hidden;
}
.nxX-heading h2{
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(90deg, #cecbd3, #a9aba7, #d6ff96);
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}
.nxX-striplock.nxX-inview .nxX-heading h2{ opacity:1; transform:none; }
.nxX-heading .brand{ -webkit-text-fill-color:#6a12f8; }

/* السكة الأفقية */
.nxX-rail{
  display: flex; flex-wrap: nowrap;
  gap: clamp(18px, 3vw, 28px);
  overflow-x: auto; overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: inline mandatory;
  white-space: nowrap;
  padding: 6px 2px;
  scrollbar-width: none;
}
.nxX-rail::-webkit-scrollbar { display: none; }

/* البطاقة */
.nxX-card{
  flex: 0 0 clamp(300px, 33vw, 400px);
  height: clamp(140px, 22vw, 220px);
  border-radius: 22px;
  padding: clamp(16px, 2.2vw, 22px);
  background: rgba(17,21,29,.86);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  position: relative;
  display: grid;
  align-content: center;
  gap: .35rem;
  scroll-snap-align: center;
  transform: translateY(var(--nxX-off, 0));
  transition: transform .25s ease, box-shadow .25s ease;
}
.nxX-card:hover{
  transform: translateY(calc(var(--nxX-off,0) - 4px));
  box-shadow: 0 26px 64px rgba(0,0,0,.36);
}

/* موجة تفاوت ارتفاع خفيفة */
.nxX-card:nth-child(5n+1){ --nxX-off: -10px; }
.nxX-card:nth-child(5n+2){ --nxX-off:  8px; }
.nxX-card:nth-child(5n+3){ --nxX-off: -16px; }
.nxX-card:nth-child(5n+4){ --nxX-off:  9px; }
.nxX-card:nth-child(5n){   --nxX-off: -6px; }

/* النصوص */
.nxX-num{
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1;
  color: #7915eb;
}
.nxX-title{
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}
.nxX-note{
  margin: 0;
  color: #aab3c2;
  font-size: .95rem;
}

/* وضع النهار */
html[data-bs-theme="light"] .nxX-card{
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.08);
  color: #111;
}
html[data-bs-theme="light"] .nxX-note{ color:#5b6270; }