/* Strova — هبوط 2026: شبكة، أورورا، زجاج، ظهور عند التمرير */

html:has(body.page-home) {
  overflow-x: clip;
}
body.app.page-home {
  overflow-x: clip;
  background-image:
    radial-gradient(ellipse 1000px 560px at 90% -8%, rgba(34, 211, 238, 0.11), transparent 52%),
    radial-gradient(ellipse 800px 480px at -5% 20%, rgba(129, 140, 248, 0.12), transparent 48%),
    radial-gradient(ellipse 700px 500px at 45% 110%, rgba(167, 139, 250, 0.08), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #030712 100%);
}
/* خلفية أهدأ للصفحة الرئيسية — الطبقة المتحركة داخل ‎.landing__bg */
body.landing-home-experience.app {
  background-image: linear-gradient(180deg, #030712 0%, #050b14 100%);
}
body.nav-drawer-open {
  overflow: hidden;
}

.landing--modern {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}
.landing--modern img {
  max-width: 100%;
  height: auto;
}

/* طبقة شبكة + ضوضاء خفيفة */
.landing--modern::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 40%, black 25%, transparent 72%);
  opacity: 0.65;
}

.landing--modern::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 1;
}

.landing--modern > .landing__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.landing--modern > *:not(.landing__bg) {
  position: relative;
  z-index: 1;
}

/* طبقة تدرج بطيئة (كحلي ↔ أخضر نيون) */
.landing--home .landing__bg-gradient {
  position: absolute;
  inset: -15%;
  background: linear-gradient(
    118deg,
    #030712 0%,
    #071018 18%,
    #0a1a14 38%,
    #062a1f 52%,
    #030712 72%,
    #0a1628 88%,
    #041910 100%
  );
  background-size: 320% 320%;
  animation: landing-gradient-breathe 42s ease-in-out infinite;
  opacity: 0.92;
}
@keyframes landing-gradient-breathe {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

/* خريطة عالمية باهتة + نقاط */
.landing--home .landing__bg-map {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500'%3E%3Cpath fill='%2394a3b8' d='M190 180c20-35 55-55 95-50 40 5 75 35 85 75 15-25 45-40 75-35 35 5 60 35 65 70 25-15 55-10 75 10 25 28 28 68 10 100-20 40-65 58-110 48-30-6-55-25-70-50-20 25-52 38-85 32-45-8-78-45-82-90-35 8-70-5-90-35-22-35-18-80 8-110zM520 120c35-8 70 5 92 32 28 35 25 85-8 115-30 28-75 30-110 10-38-22-55-68-42-108 12-38 48-62 68-49zM680 200c22-5 45 8 55 28 15 28 5 62-22 78-28 18-62 10-82-15-22-28-18-65 8-88 12-10 28-5 41-3zM780 320c18 35 8 78-25 100-32 22-75 15-100-18-28-38-20-90 18-118 32-25 78-22 107 36z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: min(1200px, 165vw) auto;
  filter: blur(0.5px);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, black 12%, transparent 72%);
}
.landing__node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #5dff7a 0%, rgba(93, 255, 122, 0.2) 70%);
  box-shadow: 0 0 14px rgba(93, 255, 122, 0.85);
  animation: landing-node-pulse 3.2s ease-in-out infinite;
  opacity: 0;
}
.landing__node--1 {
  left: 46%;
  top: 36%;
  animation-delay: 0.2s;
}
.landing__node--2 {
  left: 61%;
  top: 46%;
  animation-delay: 0.9s;
}
.landing__node--3 {
  left: 57%;
  top: 43%;
  animation-delay: 1.4s;
}
.landing__node--4 {
  left: 54%;
  top: 40%;
  animation-delay: 2s;
}
.landing__node--5 {
  left: 28%;
  top: 38%;
  animation-delay: 2.6s;
}
@keyframes landing-node-pulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  35% {
    opacity: 1;
    transform: scale(1.15);
  }
  55% {
    opacity: 0.45;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing--home .landing__bg-gradient {
    animation: none;
    background-position: 50% 50%;
  }
  .landing__node {
    animation: none;
    opacity: 0.35;
  }
}

/* شريط أسعار */
.market-ticker {
  position: sticky;
  top: var(--site-header-h, 56px);
  z-index: 95;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(3, 10, 20, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.market-ticker__viewport {
  overflow: hidden;
  max-width: 100%;
  direction: ltr;
  height: 30px;
}
.market-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  white-space: nowrap;
  padding: 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: market-ticker-marquee 38s linear infinite;
}
.market-ticker__track:hover {
  animation-play-state: paused;
}
.market-ticker__loading {
  color: var(--muted);
  font-weight: 600;
}
.market-ticker__pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--text-silver);
}
.market-ticker__sym {
  color: var(--accent2);
  min-width: 2.5rem;
}
.market-ticker__price {
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
  color: #e2e8f0;
}
.market-ticker__price--up {
  color: #4ade80;
}
.market-ticker__price--down {
  color: #f87171;
}
.market-ticker__sep {
  color: rgba(148, 163, 184, 0.35);
  font-weight: 400;
}
@keyframes market-ticker-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .market-ticker__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    row-gap: 0.25rem;
  }
}

/* إحصائيات حية تحت العنوان */
.landing-live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin: 0 0 0.65rem;
  max-width: 640px;
}
.landing-live-stats__item {
  padding: 0.75rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  text-align: center;
}
.landing-live-stats__value {
  font-family: var(--font-display), var(--font);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  line-height: 1.2;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  /* أرقام وعملات ثابتة في RTL (موبايل) */
  direction: ltr;
  unicode-bidi: isolate;
}
.landing-live-stats__label {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}
.landing-live-stats__disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 520px;
  line-height: 1.55;
  opacity: 0.9;
}
@media (max-width: 640px) {
  .landing-live-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 0.55rem 0.65rem;
  }
  .landing-live-stats__item {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
  }
  .landing-live-stats__value {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
  }
  .landing-live-stats__label {
    font-size: 0.68rem;
  }
  .landing-live-stats__disclaimer {
    font-size: 0.7rem;
    margin-bottom: 0.85rem;
  }
  .gold-gauge-wrap {
    margin-inline: auto;
    max-width: min(300px, 100%);
  }
  .landing-hero {
    padding-inline: max(1rem, env(safe-area-inset-left));
    padding-inline-end: max(1rem, env(safe-area-inset-right));
    padding-top: max(2rem, env(safe-area-inset-top));
  }
  .landing-hero__title {
    font-size: clamp(1.62rem, 6.2vw, 2.35rem);
    margin-bottom: 1.1rem;
  }
}

/* زر إنشاء حساب — نبض خفيف */
@keyframes landing-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 24px rgba(34, 211, 238, 0.22),
      0 0 0 0 rgba(93, 255, 122, 0.35);
  }
  50% {
    box-shadow:
      0 6px 28px rgba(34, 211, 238, 0.32),
      0 0 0 10px rgba(93, 255, 122, 0);
  }
}
.landing-home-experience .landing-hero__cta-primary,
.landing-home-experience .landing-cta-primary {
  animation: landing-cta-pulse 3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .landing-home-experience .landing-hero__cta-primary,
  .landing-home-experience .landing-cta-primary {
    animation: none;
  }
}

/* أيقونات الميزات — توهج وحدوث عند التمرير */
.landing-feature__icon {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    filter 0.4s ease,
    border-color 0.35s ease;
}
.landing-feature:hover .landing-feature__icon {
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 0 28px rgba(93, 255, 122, 0.35),
    0 0 48px rgba(34, 211, 238, 0.22);
  border-color: rgba(93, 255, 122, 0.45);
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55));
}
.landing-feature:hover .landing-feature__icon img {
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
}
.landing-service__icon {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}
.landing-service:hover .landing-service__icon {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.55));
}
@media (prefers-reduced-motion: reduce) {
  .landing-feature:hover .landing-feature__icon,
  .landing-service:hover .landing-service__icon {
    transform: none;
  }
}

/* كرات ضوء متحركة (خلف الهيرو فقط) */
.landing-hero {
  position: relative;
  padding: clamp(2.25rem, 6vw, 4.5rem) 1.25rem 2.5rem;
}
.landing-hero__aurora {
  position: absolute;
  inset: -20% -30% auto;
  height: min(70vh, 520px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.landing-hero__aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-float 18s ease-in-out infinite;
}
.landing-hero__aurora span:nth-child(1) {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45) 0%, transparent 70%);
  right: -5%;
  top: -10%;
  animation-delay: 0s;
}
.landing-hero__aurora span:nth-child(2) {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  background: radial-gradient(circle, rgba(129, 140, 248, 0.4) 0%, transparent 70%);
  left: -8%;
  top: 15%;
  animation-delay: -6s;
  animation-duration: 22s;
}
.landing-hero__aurora span:nth-child(3) {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, transparent 70%);
  left: 25%;
  bottom: -5%;
  animation-delay: -12s;
  animation-duration: 20s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(3%, -4%, 0) scale(1.05);
  }
  66% {
    transform: translate3d(-4%, 3%, 0) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__aurora span {
    animation: none;
    opacity: 0.35;
  }
}

/*
 * طبقة التعتيم ‎#topbarBackdrop‎ داخل ‎#siteHeader‎ بـ z-index:0 و‎.topbar__wrap‎ بـ z-index:2
 * حتى تبقى روابط الدرج (داخل الـ wrap) فوقها في تكديس واحد — إذا كانت أخاً خارجياً لـ ‎header‎
 * فـ WebKit يوجّه اللمس للـ backdrop فلا تُضغَط الروابط.
 */
#siteHeader.topbar.topbar--guest {
  z-index: 400;
}

#siteHeader > .topbar__wrap {
  position: relative;
  z-index: 2;
}

.topbar__wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: nowrap;
  padding-inline: max(0.75rem, env(safe-area-inset-left));
  padding-inline-end: max(0.75rem, env(safe-area-inset-right));
}
.topbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.topbar__links a {
  color: var(--text-silver);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s ease;
}
.topbar__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-violet), transparent);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.85;
}
.topbar__links a:hover {
  color: var(--accent2);
}
.topbar__links a:hover::after {
  transform: scaleX(1);
}

.topbar__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.topbar__cta-btn.btn--primary {
  box-shadow:
    0 4px 24px rgba(34, 211, 238, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* رأس درج الموبايل — يُخفى على سطح المكتب */
.topbar__drawer-head {
  display: none;
}

/* زر الهامبرغر — يظهر فقط على الشاشات الضيقة */
.topbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 3;
}
.topbar__burger:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}
.topbar__burger-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent-violet));
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.topbar--nav-open .topbar__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(-45deg);
}
.topbar--nav-open .topbar__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.topbar--nav-open .topbar__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(45deg);
}

#siteHeader #topbarBackdrop.topbar__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 7, 18, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#siteHeader.topbar--nav-open #topbarBackdrop {
  display: block;
}
#siteHeader.topbar--nav-open {
  z-index: 10060;
}

@media (max-width: 900px) {
  /*
   * موبايل / WebKit: تراكم ‎backdrop-filter‎ و‎filter: blur‎ على طبقات متعددة
   * يعطي شاشة «ضبابية» كلها ويعطل اللمس. نستبدل الزجاجية بخلفيات صلبة.
   */
  html:has(body.page-home),
  body.app.page-home {
    overflow-x: hidden;
  }
  body.landing-home-experience.app {
    overflow-x: hidden;
  }
  .landing--modern {
    overflow-x: hidden;
    max-width: 100%;
  }
  #siteHeader #topbarBackdrop.topbar__backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(3, 7, 18, 0.78) !important;
  }
  .market-ticker {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(3, 10, 20, 0.94) !important;
  }
  .landing--home .landing__bg-map {
    filter: none !important;
  }
  .landing-hero__aurora span {
    animation: none !important;
    filter: none !important;
    opacity: 0.22 !important;
  }
  .landing-hero__eyebrow,
  .landing-hero__title,
  .landing-hero__text,
  .landing-hero__actions,
  .landing-hero__note,
  .landing-hero__visual {
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  /*
   * ‎backdrop-filter‎ على ‎.topbar‎ يجعل ‎position:fixed‎ للدرج نسبياً لصندوق الهيدر القصير
   * (القائمة تُقصّ ولا تظهر الروابط). على الموبايل نلغي الزجاجية على الشريط.
   */
  #siteHeader.topbar.topbar--guest {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(3, 7, 18, 0.94);
  }

  /*
   * إخفاء أي رابط في الشريط (دخول/حساب/تيليجرام) — يبقى زر القائمة فقط.
   * أقوى من ‎.btn { display: inline-flex } من app.css
   */
  #siteHeader .topbar__toolbar > a {
    display: none !important;
  }

  .topbar__burger {
    display: inline-flex !important;
  }
  /*
   * عند الفتح: الهامبرغر يصبح × في نفس موضع الشريط بينما يوجد زر إغلاق في رأس الدرج —
   * فيبدو «× مزدوج» ويغطي المحتوى على بعض الشاشات. نخفي شريط الأدوات بالكامل ونغلق من الدرج أو الخلفية.
   */
  #siteHeader.topbar--nav-open .topbar__toolbar {
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  #siteHeader.topbar--nav-open .topbar__burger {
    display: none !important;
  }

  .topbar__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(3, 10, 24, 0.98);
  }

  .topbar__drawer-title {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
  }

  .topbar__drawer-close {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
  }

  .topbar__drawer-close:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.12);
  }

  /*
   * لوحة كاملة العرض تحت الشريط — fixed تتفادى غرابة absolute في WebView (إنستغرام).
   * يغلب ‎.topbar nav { display:flex } من app.css عبر #siteHeader + id
   */
  #siteHeader nav#topbarNav.topbar__links {
    position: fixed;
    top: var(--site-header-h, 56px);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    flex: none;
    gap: 0;
    margin: 0;
    padding: 0 0 max(1rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(3, 7, 18, 0.99);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    isolation: isolate;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(34, 211, 238, 0.35);
    color: #f8fafc;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    display: none !important;
  }
  #siteHeader.topbar--nav-open nav#topbarNav.topbar__links {
    display: flex !important;
  }
  /*
   * كل روابط الدرج — بدون الاعتماد على ‎.topbar__drawer-link‎ فقط (نسخ قديمة أو HTML معدّل).
   * خلفية صف خفيفة + نص أبيض صريح يغلب ‎transparent‎ و‎clip‎ من أنماط أخرى.
   */
  #siteHeader #topbarNav.topbar__links a[href] {
    display: block;
    position: relative;
    z-index: 2;
    padding: 0.95rem 1.25rem;
    margin: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    white-space: normal;
    text-decoration: none !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    background-color: rgba(30, 41, 59, 0.55) !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    font-size: 1.07rem;
    font-weight: 600;
    line-height: 1.45;
    opacity: 1 !important;
    visibility: visible !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    pointer-events: auto !important;
    cursor: pointer;
    touch-action: manipulation;
    forced-color-adjust: none;
  }
  #siteHeader #topbarNav.topbar__links a[href]:link,
  #siteHeader #topbarNav.topbar__links a[href]:visited {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
  }
  #siteHeader #topbarNav.topbar__links a[href]:hover,
  #siteHeader #topbarNav.topbar__links a[href]:focus-visible,
  #siteHeader #topbarNav.topbar__links a[href]:active {
    color: #ecfeff !important;
    -webkit-text-fill-color: #ecfeff !important;
    background-color: rgba(34, 211, 238, 0.18) !important;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35);
  }
  .topbar__links a::after {
    display: none;
  }

  .landing-section {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
  .landing__container {
    padding-inline: max(0.5rem, env(safe-area-inset-left));
    padding-inline-end: max(0.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 901px) {
  #siteHeader #topbarBackdrop {
    display: none !important;
  }
  /* رابط تيليجرام داخل القائمة يُعرض فقط في درج الموبايل (الشريط يعرض زر تيليجرام) */
  .topbar__link--drawer-only {
    display: none !important;
  }
  .topbar__drawer-head {
    display: none !important;
  }
}

.landing-section {
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
}
.landing-section--tight {
  padding-top: 2rem;
}
.landing__container {
  max-width: 1140px;
  margin: 0 auto;
}

.landing-section h2 {
  font-family: var(--font);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  text-align: center;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 45%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-section .section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.75rem;
  line-height: 1.9;
  font-size: 1.05rem;
  font-weight: 500;
}

/* Hero */
.landing-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.landing-hero__content,
.landing-hero__visual {
  min-width: 0;
}
@media (min-width: 900px) {
  .landing-hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3rem;
  }
}

.landing-hero__content {
  text-align: right;
}
.landing-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  opacity: 0.95;
  animation: hero-line 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.landing-hero__title {
  font-family: var(--font);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 900;
  line-height: 1.22;
  margin: 0 0 1.35rem;
  letter-spacing: -0.03em;
  background: linear-gradient(125deg, #ffffff 0%, #e2e8f0 35%, #a5f3fc 62%, #22d3ee 78%, #a78bfa 100%);
  background-size: 160% 120%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-line 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.06s backwards;
}
.landing-hero__title span.accent {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.landing-hero__text {
  color: var(--text-silver);
  font-size: 1.08rem;
  line-height: 1.95;
  margin: 0 0 1.85rem;
  max-width: 540px;
  font-weight: 500;
  animation: hero-line 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
}
.landing-hero__text strong {
  color: var(--text);
  font-weight: 800;
}
.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  animation: hero-line 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.18s backwards;
}
.landing-hero__note {
  margin-top: 1.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  animation: hero-line 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.24s backwards;
}

@keyframes hero-line {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__eyebrow,
  .landing-hero__title,
  .landing-hero__text,
  .landing-hero__actions,
  .landing-hero__note {
    animation: none;
    opacity: 1;
    filter: none;
  }
}

.landing-hero__visual {
  position: relative;
  z-index: 1;
  animation: hero-line 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero__visual {
    animation: none;
  }
}

.landing-hero__frame {
  position: relative;
  max-width: 100%;
  border-radius: 24px;
  padding: clamp(1rem, 3vw, 1.85rem);
  background: linear-gradient(
    155deg,
    rgba(34, 211, 238, 0.08) 0%,
    rgba(17, 24, 39, 0.42) 42%,
    rgba(3, 7, 18, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 80px rgba(34, 211, 238, 0.06);
}
.landing-hero__frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.45),
    transparent 38%,
    transparent 62%,
    rgba(167, 139, 250, 0.35)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.landing-hero__illu {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  line-height: 0;
  background: #030712;
}
.landing-hero__illu img {
  width: 100%;
  height: auto;
  max-height: min(320px, 52vw);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: saturate(1.08) contrast(1.03);
}

.landing-hero__video-cap {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  font-size: 0.9rem;
  color: var(--text-silver);
  line-height: 1.65;
}

.landing-hero__play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}
.landing-hero__play img {
  display: block;
  width: 22px;
  height: 22px;
  filter: brightness(1.15);
}

/* About */
.landing-about {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, transparent 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.landing-about__text {
  font-size: 1.08rem;
  line-height: 2.05;
  color: var(--text-silver);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-weight: 500;
}
.landing-about__text strong {
  color: var(--text);
  font-weight: 800;
}
.landing-about__cta {
  text-align: center;
  margin-top: 2.25rem;
}

/* Why grid */
.landing-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.35rem;
}
.landing-feature {
  padding: 1.65rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.38), rgba(3, 7, 18, 0.28));
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.landing-feature:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(34, 211, 238, 0.08);
}
.landing-feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(129, 140, 248, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.landing-feature__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: brightness(1.1);
}
.landing-feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
}
.landing-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* Split */
.landing-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}
.landing-split__text,
.landing-split__art {
  min-width: 0;
}
.landing-split:last-child {
  margin-bottom: 0;
}
@media (min-width: 860px) {
  .landing-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .landing-split--reverse .landing-split__text {
    order: 2;
  }
  .landing-split--reverse .landing-split__art {
    order: 1;
  }
}
.landing-split h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 1.1rem;
  background: linear-gradient(90deg, #f1f5f9, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-split ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.landing-split li {
  position: relative;
  padding-right: 1.45rem;
  margin-bottom: 0.9rem;
  color: var(--text-silver);
  line-height: 1.8;
  font-size: 0.98rem;
  font-weight: 500;
}
.landing-split li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
}
.landing-split__art {
  border-radius: var(--radius);
  min-height: 200px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), #030712);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
}
.landing-split__art img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(260px, 50vh);
  object-fit: contain;
  object-position: center;
  display: block;
}
.landing-split__caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  padding: 1.35rem 1.5rem 1.6rem;
  margin: 0;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.5);
}

/* Services */
.landing-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.65rem;
}
.landing-service {
  padding: 1.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(195deg, rgba(17, 24, 39, 0.48), rgba(3, 7, 18, 0.32));
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.landing-service:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.25);
}
.landing-service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-violet), transparent);
  opacity: 0.85;
}
.landing-service__icon {
  margin-bottom: 1.1rem;
}
.landing-service__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.25));
}
.landing-service h4 {
  margin: 0 0 0.8rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}
.landing-service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.85;
}

/* CTA */
.landing-cta {
  text-align: center;
  padding: clamp(2.75rem, 5vw, 4.25rem) clamp(1rem, 4vw, 1.5rem);
  margin: 0 auto 2rem;
  width: min(1140px, calc(100% - 1.5rem));
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 28px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.1), rgba(129, 140, 248, 0.05), rgba(3, 7, 18, 0.45));
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.landing-cta::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.12), transparent 55%);
  pointer-events: none;
}
.landing-cta h2 {
  margin: 0 0 0.65rem;
  position: relative;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  background: linear-gradient(90deg, #f8fafc, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-cta p {
  color: var(--muted);
  margin: 0 0 1.65rem;
  font-size: 1.05rem;
  font-weight: 500;
  position: relative;
  line-height: 1.75;
}
.landing-cta .btn {
  position: relative;
}

/* Footer */
.landing-footer {
  padding: 3.25rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.6), rgba(3, 7, 18, 0.95));
}
.landing-footer__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.25rem;
}
.landing-footer h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-silver);
  margin: 0 0 1.1rem;
}
.landing-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.landing-footer a {
  display: block;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.landing-footer a:hover {
  color: var(--accent2);
}
.landing-footer__lead {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}

.landing-footer__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, #f1f5f9, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.85rem;
  display: inline-block;
}
.landing-footer__copy {
  max-width: 1140px;
  margin: 2.25rem auto 0;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.landing-scroll-hint {
  text-align: center;
  padding: 0.5rem 1rem 2.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.75;
  position: relative;
  z-index: 1;
  animation: hint-pulse 3s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-scroll-hint {
    animation: none;
    opacity: 0.75;
  }
}

/* ——— سبيكة Three.js تفاعلية ——— */
.landing-gold-bar-3d {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, transparent 100%);
}
.gold-bar-3d__layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 860px) {
  .gold-bar-3d__layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.gold-bar-3d__canvas-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(251, 191, 36, 0.08), rgba(3, 7, 18, 0.92));
  min-height: 260px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.gold-bar-3d__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  cursor: grab;
}
.gold-bar-3d__canvas-wrap canvas:active {
  cursor: grabbing;
}
.gold-bar-3d__panel {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.gold-bar-3d__panel-head {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.9);
  margin-bottom: 0.65rem;
}
.gold-bar-3d__fact {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--text, #f1f5f9);
  min-height: 4.5rem;
  transition: opacity 0.25s ease;
}
.gold-bar-3d__fact--pop {
  animation: gold-bar-fact-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes gold-bar-fact-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gold-bar-3d__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted, #94a3b8);
}
.gold-bar-3d__disclaimer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .gold-bar-3d__fact--pop {
    animation: none;
  }
}

/* ——— رسوم الصفحة الرئيسية (Chart.js) ——— */
.landing-insights {
  position: relative;
}
.landing-insights__lead {
  max-width: 52rem;
  margin-bottom: 2rem;
}
.landing-insights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.landing-insights__card--full {
  grid-column: 1 / -1;
}
.landing-insights__card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.landing-insights__card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.landing-insights__card-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}
.landing-insights__chart-wrap {
  position: relative;
  min-height: 220px;
  max-height: 280px;
}
.landing-insights__chart-wrap--donut {
  min-height: 260px;
  max-height: 300px;
  max-width: 340px;
  margin-inline: auto;
}
.landing-insights__footnote {
  margin: 1.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 48rem;
}

/* ——— صفحة الشروط والأحكام ——— */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 4rem;
}
.legal-page__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-page__back {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.legal-page__back a {
  color: var(--accent2);
}
.legal-page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.legal-page__updated {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.legal-page__body {
  color: var(--text-silver);
  font-size: 0.98rem;
  line-height: 1.85;
}
.legal-page__section {
  margin-bottom: 2rem;
  scroll-margin-top: 5.5rem;
}
.legal-page__section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.legal-page__section p {
  margin: 0 0 1rem;
}
.legal-page__section p:last-child {
  margin-bottom: 0;
}
.legal-page__list {
  margin: 0;
  padding: 0 1.15rem 0 0;
  list-style: disc;
}
.legal-page__list li {
  margin-bottom: 0.85rem;
}
.legal-page__list li:last-child {
  margin-bottom: 0;
}
.legal-page__section--risk {
  padding: 1.25rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}
.legal-page__section--risk h2 {
  color: #fecaca;
}
.legal-page__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.legal-page__footer p {
  margin: 0 0 1rem;
}
.legal-page__footer p:last-child {
  margin-bottom: 0;
}

/* ظهور عند التمرير */
.js-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  filter: blur(8px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
