/* ============================================================
   نجوم النار — Premium Fireworks Website
   Ultra-luxury design system
   ============================================================ */

/* ===== Custom Properties ===== */
:root {
  /* Backgrounds — قاعدة داكنة بلمحة بنفسجية */
  --bg:           #06040c;
  --bg-2:         #0c0818;
  --bg-card:      rgba(255,255,255,0.03);
  --bg-card-2:    rgba(255,255,255,0.06);

  /* Brand Colors — بنفسجي راقي (تدرج فيوليت–أوركيد) */
  --gold:         #c4b5fd;
  --gold-light:   #ede9fe;
  --gold-dim:     rgba(196,181,253,0.16);
  --orange:       #a78bfa;
  --fire:         #7c3aed;
  --brand:        #6d28d9;
  --brand-light:  #ddd6fe;

  /* Text */
  --text:         #eeeef8;
  --text-2:       #a0a0c0;
  --text-3:       #55556a;

  /* Borders */
  --border:       rgba(255,255,255,0.07);
  --border-gold:  rgba(196,181,253,0.28);
  --border-brand: rgba(124,58,237,0.25);

  /* WhatsApp */
  --wa:           #22c55e;
  --wa-2:         #16a34a;

  /* Effects */
  --blur:         blur(20px) saturate(160%);
  --blur-sm:      blur(10px);
  --shadow-xl:    0 24px 80px rgba(0,0,0,0.7);
  --shadow-glow:  0 0 60px rgba(167,139,250,0.18);

  /* Radius */
  --r:            20px;
  --r-sm:         12px;
  --r-lg:         28px;
  --r-pill:       100px;

  /* Timing */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:            0.3s;
  --t-slow:       0.6s;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* smooth scroll يستهلك الخيط الرئيسي؛ على اللمس نترك التمرير أصلياً لسلاسة أقرب لمعدل الشاشة (60–120Hz) */
html { scroll-behavior: auto; }
@media (pointer: fine) {
  html { scroll-behavior: smooth; }
}
section[id] { scroll-margin-top: 80px; }
.type-card[id] { scroll-margin-top: 92px; }

.types-toc-wrap {
  margin: 0 0 clamp(20px, 3vw, 28px);
}
.types-toc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin: 0 0 12px;
}

.about-brief-sec {
  padding: clamp(56px, 8vw, 88px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  position: relative;
}
.about-brief-card {
  margin-top: clamp(18px, 3vw, 26px);
  padding: clamp(22px, 4vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.about-brief-card p {
  font-size: clamp(0.88rem, 1.6vw, 0.95rem);
  line-height: 1.85;
  color: var(--text-2);
}
.about-brief-card p + p {
  margin-top: 1rem;
}

body {
  font-family: 'Tajawal', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ===== Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--fire), var(--brand));
  z-index: 9999;
  transform-origin: right;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(167,139,250,0.55);
}

/* ===== Animated Mesh Background ===== */
.mesh-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mesh-bg::before,
.mesh-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: meshFloat 12s ease-in-out infinite;
}
.mesh-bg::before {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
  top: -200px; left: -200px;
}
.mesh-bg::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.09) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -6s;
  animation-direction: reverse;
}
@keyframes meshFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(80px,-60px) scale(1.1); }
  66%      { transform: translate(-40px,80px) scale(0.95); }
}

/* تصنيف runtime-perf.js: تخفيف حركة الخلفية الضبابية على الأجهزة الأبطأ */
html[data-runtime-tier="balanced"] .mesh-bg::before,
html[data-runtime-tier="balanced"] .mesh-bg::after {
  animation-duration: 18s;
}
html[data-runtime-tier="lite"] .mesh-bg::before,
html[data-runtime-tier="lite"] .mesh-bg::after {
  animation-duration: 32s;
  filter: blur(72px);
}

/* ===== Utility: Gradient Text ===== */
.text-fire {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 35%, var(--orange) 65%, var(--fire) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(167,139,250,0.4));
}
.text-brand {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Section Labels ===== */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 18px;
}
.label-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}
@keyframes blink {
  0%,100% { opacity:1; } 50% { opacity:0.3; }
}

/* ===== Section Header ===== */
.sec-head {
  text-align: center;
  margin-bottom: 64px;
}
.sec-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.sec-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto;
}

/* ===== Premium Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--r-pill);
  padding: 15px 34px;
  transition: transform var(--t) var(--ease-spring),
              box-shadow var(--t) var(--ease),
              filter var(--t) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
/* Shimmer overlay */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 20%, rgba(255,255,255,0.25) 50%, transparent 80%);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0s;
}
.btn:hover::after {
  transform: translateX(160%) skewX(-15deg);
  transition: transform 0.6s ease;
}
.btn:active { transform: scale(0.96) !important; }

/* WhatsApp Button */
.btn-wa {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  box-shadow: 0 6px 30px rgba(34,197,94,0.35);
}
.btn-wa:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 50px rgba(34,197,94,0.5);
}

/* Gold/Fire Button */
.btn-fire {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--orange));
  color: #070509;
  font-weight: 900;
  box-shadow: 0 6px 30px rgba(191,167,255,0.4);
}
.btn-fire:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 55px rgba(191,167,255,0.55);
  filter: brightness(1.06);
}

/* Outline Button */
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  backdrop-filter: var(--blur-sm);
}
.btn-ghost:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* ===== Gradient Border Card Mixin ===== */
.gcard {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--r);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  isolation: isolate;
  transition: transform var(--t) var(--ease-spring),
              box-shadow var(--t) var(--ease);
}
/* Inner gradient border via pseudo */
.gcard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(191,167,255,0.25),
    rgba(147,51,234,0.1),
    rgba(124,58,237,0.1),
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.gcard:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5),
              0 0 0 1px rgba(191,167,255,0.12),
              var(--shadow-glow);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(16px,4vw,32px);
  height: 70px;
  display: flex;
  align-items: center;
  transition: background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.nav.solid {
  background: rgba(6,4,12,0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
body.drawer-open .nav,
body.drawer-open .nav.solid {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
body.drawer-open .logo,
body.drawer-open .nav-actions { opacity: 0; pointer-events: none; transition: opacity var(--t); }
.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  overflow: visible;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #3d2668, #0f081c);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(191,167,255,0.35),
              0 0 0 1px rgba(191,167,255,0.25),
              inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform var(--t) var(--ease-spring);
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.logo-icon:hover { transform: rotate(-10deg) scale(1.1); }
.logo-name {
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; right: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width var(--t) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; flex-shrink: 0; }
/* أزرار الشريط العلوي: أصغر من أزرار المحتوى */
.nav-actions .btn { padding: 10px 18px; font-size: 0.87rem; gap: 7px; }

/* لغة: العربية | English */
.nav-lang,
.drawer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.drawer-lang {
  justify-content: center;
  width: 100%;
  padding: 10px 0 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-lang-current {
  color: var(--text);
  opacity: 0.95;
}
.nav-lang-sep {
  opacity: 0.45;
  font-weight: 400;
  user-select: none;
}
button.nav-lang-btn.nav-lang-link {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
  text-decoration: none;
}
button.nav-lang-btn.nav-lang-link:hover {
  color: var(--gold);
}
a.nav-lang-link {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--t);
}
a.nav-lang-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--t);
}
.hamburger:hover { background: rgba(255,255,255,0.07); }
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: transform var(--t) var(--ease), opacity var(--t);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile Drawer ===== */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 990;
  background: rgba(6,4,12,0.98);
  backdrop-filter: var(--blur);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 32px;
  padding: calc(90px + env(safe-area-inset-top)) 24px calc(56px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.drawer::-webkit-scrollbar { width: 6px; }
.drawer::-webkit-scrollbar-track { background: transparent; }
.drawer::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--orange));
  border-radius: 3px;
}
.drawer.open {
  opacity: 1;
  pointer-events: all;
}
.drawer a {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-2);
  transition: color var(--t), transform var(--t) var(--ease-spring);
  transform: translateY(20px);
  text-align: center;
  flex-shrink: 0;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.drawer.open a { transform: translateY(0); }
.drawer a:hover,
.drawer a:focus-visible {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(191,167,255,0.08);
}

/* أزرار القائمة الجانبية — تفوق على أنماط روابط النص */
.drawer a.drawer-btn {
  font-size: 1.05rem;
  font-weight: 900;
  padding: 16px 28px;
  align-self: center;
  width: 100%;
  max-width: 320px;
  flex-shrink: 0;
  justify-content: center;
}
.drawer a.btn-ghost.drawer-btn {
  margin-top: 20px;
}
.drawer a.btn-fire.drawer-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--orange));
  color: #070509;
  border: none;
  box-shadow: 0 6px 30px rgba(191,167,255,0.4);
  margin-top: 12px;
}
.drawer a.btn-fire.drawer-btn:hover,
.drawer a.btn-fire.drawer-btn:focus-visible {
  color: #070509;
  border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--orange));
  filter: brightness(1.06);
  box-shadow: 0 14px 55px rgba(191,167,255,0.55);
}
.drawer a.btn-ghost.drawer-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
}
.drawer a.btn-ghost.drawer-btn:hover,
.drawer a.btn-ghost.drawer-btn:focus-visible {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

#fw-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Star field overlay */
#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(191,167,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(124,58,237,0.09) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(6,4,12,0.25) 0%, rgba(6,4,12,0.55) 50%, rgba(6,4,12,0.96) 100%);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px clamp(16px,5vw,40px) 100px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* Floating badge */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(191,167,255,0.3);
  background: rgba(191,167,255,0.08);
  color: var(--gold-light);
  backdrop-filter: var(--blur-sm);
  margin-bottom: 28px;
  animation: heroIn 0.8s var(--ease) both;
}
.hero-label-pulse {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(191,167,255,0.5);
  animation: ripple 2s ease infinite;
}
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(191,167,255,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(191,167,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(191,167,255,0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  animation: heroIn 0.9s var(--ease) 0.1s both;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 42px;
  line-height: 1.75;
  animation: heroIn 0.9s var(--ease) 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 70px;
  animation: heroIn 0.9s var(--ease) 0.3s both;
}

/* Stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  backdrop-filter: var(--blur);
  animation: heroIn 0.9s var(--ease) 0.4s both;
}
.hero-stat {
  padding: 24px 16px;
  text-align: center;
  position: relative;
  transition: background var(--t);
}
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%; left: 0;
  width: 1px; height: 60%;
  background: var(--border);
}
.hero-stat:hover { background: rgba(191,167,255,0.04); }
.stat-num {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 600;
}

/* Scroll arrow */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease infinite;
}
.scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity:0.7; }
  50%      { transform: translateX(-50%) translateY(8px); opacity:1; }
}

@keyframes heroIn {
  from { opacity:0; transform: translateY(28px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ===== Ticker ===== */
.ticker-wrap {
  background: linear-gradient(90deg,
    var(--gold) 0%, var(--orange) 25%, var(--fire) 50%,
    var(--brand) 75%, var(--gold) 100%);
  background-size: 300% 100%;
  animation: gradMove 8s linear infinite;
  padding: 13px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
@keyframes gradMove {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.ticker-scroll {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  will-change: transform;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #000;
  letter-spacing: 0.03em;
}
.ticker-item .ticker-ico {
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.72);
}
@keyframes ticker { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* ===== Section Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.on {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ===== Types Section ===== */
.types-sec {
  padding: clamp(72px,10vw,112px) 0;
  background: var(--bg);
  position: relative;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}

.type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 16px 24px;
  text-align: center;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease-spring),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease),
              background var(--t) var(--ease);
  isolation: isolate;
}
/* top glow bar on hover */
.type-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t) var(--ease);
  border-radius: 3px 3px 0 0;
}
.type-card:hover {
  border-color: rgba(191,167,255,0.3);
  background: rgba(191,167,255,0.04);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(191,167,255,0.1);
}
.type-card:hover::after { transform: scaleX(1); transform-origin: left; }

.type-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(191,167,255,0.35));
  transition: transform var(--t) var(--ease-spring);
}
.type-emoji.type-emoji--illu {
  font-size: 0;
  line-height: 0;
  filter: none;
  /* نفس لغة رقاقات التواصل في التذييل (.local-entity-link--social) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-inline: auto;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform var(--t) var(--ease-spring);
}
.type-emoji.type-emoji--illu img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin: 0;
  filter: drop-shadow(0 2px 10px rgba(191, 167, 255, 0.22));
}
.type-emoji.type-emoji--fa i {
  font-size: 2.15rem;
  line-height: 1;
  color: rgba(230, 220, 255, 0.95);
}
.type-card:hover .type-emoji { transform: scale(1.2) rotate(-5deg); }
.type-card:hover .type-emoji.type-emoji--illu {
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(196, 181, 253, 0.08);
}
.type-card:hover .type-emoji.type-emoji--illu img {
  filter: drop-shadow(0 3px 14px rgba(191, 167, 255, 0.38));
}

.type-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.type-desc {
  margin: 10px 0 0;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--text-2);
}

.type-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 800;
}
.badge-hot  { background: rgba(191,167,255,0.14); color: var(--gold);     border: 1px solid rgba(191,167,255,0.3); }
.badge-in   { background: rgba(124,58,237,0.10); color: var(--brand-light); border: 1px solid rgba(124,58,237,0.28); }
.badge-soon { background: rgba(124,58,237,0.12); color: var(--brand-light); border: 1px solid rgba(124,58,237,0.3); }

/* ===== Events Section ===== */
.events-sec {
  padding: clamp(72px,10vw,112px) 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

/* Horizontal scroll on mobile */
.events-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-card {
  background: linear-gradient(150deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  transition: transform var(--t) var(--ease-spring),
              box-shadow var(--t) var(--ease),
              border-color var(--t);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Gradient corner accent */
.event-card::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(191,167,255,0.08), transparent 70%);
  transition: opacity var(--t);
  opacity: 0;
}
.event-card:hover { border-color: rgba(191,167,255,0.2); transform: translateY(-10px); box-shadow: var(--shadow-xl), var(--shadow-glow); }
.event-card:hover::before { opacity: 1; }

.event-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(191,167,255,0.14), rgba(147,51,234,0.1));
  border: 1px solid rgba(191,167,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
  transition:
    transform var(--t) var(--ease-spring),
    background 0.15s ease,
    border-color 0.15s ease;
}
.event-icon-wrap--flag {
  background: linear-gradient(135deg, rgba(0, 108, 53, 0.18), rgba(0, 60, 30, 0.12));
  border-color: rgba(0, 108, 53, 0.35);
  padding: 6px;
}
.event-icon-wrap--flag img {
  width: 52px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  display: block;
  image-rendering: auto;
}
.event-icon-wrap--illu {
  padding: 6px;
  font-size: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.event-icon-wrap--illu img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(191, 167, 255, 0.22));
}
.event-card:hover .event-icon-wrap { transform: scale(1.12) rotate(-8deg); }
.event-card:hover .event-icon-wrap--illu {
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(196, 181, 253, 0.08);
}
.event-card:hover .event-icon-wrap--illu img {
  filter: drop-shadow(0 3px 14px rgba(191, 167, 255, 0.36));
}

.event-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.event-desc  { font-size: 0.88rem; color: var(--text-2); line-height: 1.72; }

.event-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.event-tag {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.event-card:hover .event-tag { background: rgba(191,167,255,0.07); border-color: rgba(191,167,255,0.2); color: var(--gold-light); }

/* ===== Gallery ===== */
.gallery-sec {
  padding: clamp(72px,10vw,112px) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 22px);
}

.gallery-card {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform var(--t) var(--ease-spring), border-color var(--t), box-shadow var(--t);
}
.gallery-card:hover {
  border-color: rgba(191,167,255,0.22);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}
.gallery-open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.gallery-open img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.45s var(--ease);
}
.gallery-card:hover .gallery-open img { transform: scale(1.04); }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 28px);
}
.gallery-lightbox[hidden] { display: none !important; }

.gallery-lightbox-scrim {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(3, 5, 8, 0.92);
  cursor: pointer;
}

.gallery-lightbox-frame {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 900px);
  max-height: min(92vh, 1200px);
  margin: 0 auto;
}
.gallery-lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: min(92vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.85), 0 0 0 1px rgba(191,167,255,0.15);
}

.gallery-lightbox-close {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(191,167,255,0.35);
  background: rgba(7, 9, 15, 0.95);
  color: var(--gold-light);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t) var(--ease-spring), background var(--t), border-color var(--t);
}
.gallery-lightbox-close:hover {
  background: rgba(191,167,255,0.12);
  border-color: var(--gold);
  transform: scale(1.06);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-lightbox-close {
    top: 8px;
    left: 8px;
  }
}

/* ===== Clients page ===== */
.clients-sec {
  padding: clamp(72px, 10vw, 112px) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 22px);
}

.clients-card {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform var(--t) var(--ease-spring), border-color var(--t), box-shadow var(--t);
}

.clients-card:hover {
  border-color: rgba(191, 167, 255, 0.22);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.clients-card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: clamp(12px, 2.2vw, 20px);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.clients-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.clients-card-title {
  margin: 0;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 22px);
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .clients-grid { grid-template-columns: 1fr; }
}

/* ===== Why Section ===== */
.why-sec {
  padding: clamp(72px,10vw,112px) 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.why-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 26px;
  transition: transform var(--t) var(--ease-spring),
              border-color var(--t), background var(--t);
  position: relative;
  overflow: hidden;
}
.why-item::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--orange));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.why-item:hover { border-color: rgba(191,167,255,0.2); background: rgba(191,167,255,0.03); transform: translateX(-4px); }
.why-item:hover::after { transform: scaleY(1); transform-origin: top; }

.why-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.why-content h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.why-content p  { font-size: 0.86rem; color: var(--text-2); line-height: 1.72; }
.why-content p a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.why-content p a:hover { color: var(--gold); }

/* ===== Coverage ===== */
.coverage-sec {
  padding: clamp(72px,10vw,112px) 0;
  background: var(--bg-2);
}

.cov-hero {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(191,167,255,0.06));
  border: 1px solid rgba(191,167,255,0.15);
  border-radius: var(--r-lg);
  padding: clamp(32px,5vw,52px);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.cov-hero::before {
  content: '🗺️';
  position: absolute;
  font-size: 12rem;
  opacity: 0.04;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: grayscale(1);
}
.cov-hero h3 { font-size: clamp(1.4rem,3vw,2rem); font-weight: 900; margin-bottom: 10px; }
.cov-hero p  { color: var(--text-2); max-width: 480px; margin: 0 auto; }

.regions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}

/* قائمة المناطق الـ13: قالب مخفي يُعرض في النافذة المنبثقة */
#coverageRegionsSource.coverage-regions-source-hidden {
  display: none !important;
}
.coverage-regions-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}
.coverage-regions-modal .nh-district-modal-panel {
  width: min(96vw, 720px);
}
.coverage-regions-modal-grid {
  margin-top: 6px;
}

/* مدن المملكة: قالب مخفي يُعرض في النافذة المنبثقة */
#saudi-cities.saudi-cities-seo-only {
  display: none !important;
}
.saudi-cities-modal .nh-district-modal-panel {
  width: min(96vw, 720px);
  max-height: min(90vh, 880px);
}
.saudi-cities-modal-body .nh-intro {
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 26px);
}
.saudi-cities-modal-body .nh-title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 900;
  margin: 0 0 10px;
  padding: 0;
  padding-inline-start: 48px;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}
.saudi-cities-modal-body .nh-desc {
  margin: 0 auto;
  max-width: 520px;
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.65;
  text-align: center;
}
.saudi-cities-modal-body .neighborhoods-grid {
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.region {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 700;
  transition: all var(--t) var(--ease-spring);
}
.region:hover {
  border-color: rgba(191,167,255,0.3);
  background: rgba(191,167,255,0.06);
  transform: scale(1.04);
  color: var(--gold-light);
}
a.region {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.region:visited {
  color: inherit;
}
a.region:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.75);
  outline-offset: 2px;
}
.r-dot {
  width: 8px; height: 8px;
  background: radial-gradient(circle, var(--gold-light), var(--orange));
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(191,167,255,0.5);
}

/* أحياء الرياض — محتوى محلي مرئي */
.nh-block {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--border);
}
.nh-intro { text-align: center; margin-bottom: clamp(28px, 4vw, 40px); }
.nh-title {
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.nh-desc {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
}
.nh-group { margin-bottom: clamp(22px, 3vw, 32px); }
.nh-group:last-child { margin-bottom: 0; }
.nh-group-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--gold-light);
  letter-spacing: -0.01em;
}
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.nh-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--t) var(--ease-spring), background var(--t) var(--ease-spring), transform var(--t) var(--ease-spring), color var(--t) var(--ease-spring);
}
.nh-chip:hover {
  border-color: rgba(191,167,255,0.28);
  background: rgba(191,167,255,0.06);
  transform: translateY(-2px);
  color: var(--gold-light);
}
.nh-pc {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: 0.02em;
}

/* أحياء الرياض: قالب مخفي؛ النافذة تعرض المقدمة + كل المجموعات */
#riyadhDistrictsSource.riyadh-districts-source-hidden {
  display: none !important;
}
.riyadh-districts-all-modal .nh-district-modal-panel {
  width: min(96vw, 720px);
  max-height: min(90vh, 880px);
}
.riyadh-districts-all-modal-body .nh-intro {
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 26px);
}
.riyadh-districts-all-modal-body .nh-title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 900;
  margin: 0 0 10px;
  padding: 0;
  padding-inline-start: 48px;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}
.riyadh-districts-all-modal-body .nh-desc {
  margin: 0 auto;
  max-width: 520px;
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.65;
  text-align: center;
}
.riyadh-districts-all-modal-body .nh-group {
  margin-bottom: clamp(20px, 3vw, 28px);
}
.riyadh-districts-all-modal-body .nh-group:last-child {
  margin-bottom: 0;
}

.nh-district-modal {
  position: fixed;
  inset: 0;
  z-index: 10051;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 28px);
}
.nh-district-modal[hidden] { display: none !important; }

/* محتوى يُنسخ إلى النافذة يحمل غالبًا .reveal؛ المراقب يعمل مرة عند التحميل فلا يُضاف .on — نجعل النسخ داخل النافذة مرئية */
.nh-district-modal .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.nh-district-modal-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  padding: 0;
  background: rgba(3, 5, 8, 0.92);
  cursor: pointer;
}

.nh-district-modal-panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(96vw, 540px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 30px);
  background: var(--bg-card);
  border: 1px solid rgba(191, 167, 255, 0.18);
  border-radius: var(--r-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(191, 167, 255, 0.12);
}

.nh-district-modal-close {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(191, 167, 255, 0.35);
  background: rgba(7, 9, 15, 0.95);
  color: var(--gold-light);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t) var(--ease-spring), background var(--t), border-color var(--t);
}
.nh-district-modal-close:hover {
  background: rgba(191, 167, 255, 0.12);
  border-color: var(--gold);
  transform: scale(1.06);
}

.nh-district-modal-title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 900;
  margin: 0 0 8px;
  padding: 0;
  padding-inline-start: 48px;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}
.nh-district-modal-hint {
  margin: 0 0 18px;
  padding-inline-start: 48px;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
}
.nh-district-modal-grid {
  margin-top: 4px;
}

@media (max-width: 520px) {
  .nh-district-modal-title,
  .nh-district-modal-hint {
    padding-inline-start: 44px;
  }
  .riyadh-districts-all-modal-body .nh-title {
    padding-inline-start: 44px;
  }
  .saudi-cities-modal-body .nh-title {
    padding-inline-start: 44px;
  }
  .nh-district-modal-close {
    top: 8px;
    inset-inline-start: 8px;
  }
}

/* صفحات الأحياء — Hero مختصر + بطاقة معلومات + بريدكرامبس + فقرات نص */
.hood-hero {
  min-height: clamp(520px, 70vh, 680px);
}
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 18px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.crumbs a {
  color: var(--text-2);
  transition: color var(--t) var(--ease-spring);
}
.crumbs a:hover { color: var(--gold-light); }
.crumbs [aria-current="page"] { color: var(--gold-light); }

.hood-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 36px;
  max-width: 720px;
}
.hm-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-align: start;
}
.hm-k {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.hm-v {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.hood-prose {
  max-width: 760px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  text-align: center;
}
.hood-prose p {
  color: var(--text-2);
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.hood-prose p:last-child { margin-bottom: 0; }

/* ===== Process ===== */
.process-sec {
  padding: clamp(72px,10vw,112px) 0;
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 44px; right: 12.5%; left: 12.5%;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--border-gold), var(--border-gold), transparent);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.6rem;
  position: relative;
  transition: all var(--t) var(--ease-spring);
  box-shadow: 0 0 0 0 rgba(191,167,255,0);
}
.step:hover .step-circle {
  border-color: var(--gold);
  background: rgba(191,167,255,0.1);
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(191,167,255,0.08);
}

.step-n {
  position: absolute;
  top: -6px; left: -6px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  color: #000;
  display: flex; align-items: center; justify-content: center;
}

.step-title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.step-desc  { font-size: 0.82rem; color: var(--text-2); line-height: 1.65; }

/* كيف نعمل: قالب مخفي؛ الخطوات تُعرض في النافذة المنبثقة */
#processModalSource.process-modal-source-hidden {
  display: none !important;
}
.process-how-modal .nh-district-modal-panel {
  width: min(96vw, 920px);
  max-height: min(90vh, 900px);
}
.process-how-modal-body .sec-head {
  text-align: center;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.process-how-modal-body .sec-title {
  padding-inline-start: 48px;
}
.process-how-modal-body .label {
  justify-content: center;
}
.process-how-modal-body .steps::before {
  display: none;
}
.process-how-modal-body .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}
@media (max-width: 520px) {
  .process-how-modal-body .sec-title {
    padding-inline-start: 44px;
  }
  .process-how-modal-body .steps {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq-sec {
  padding: clamp(72px,10vw,112px) 0;
  background: var(--bg-2);
}

.faq-wrap {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item.open {
  border-color: rgba(191,167,255,0.22);
  box-shadow: 0 6px 30px rgba(191,167,255,0.07);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: right;
  color: var(--text);
  transition: color var(--t);
}
.faq-btn:hover { color: var(--gold-light); }

.faq-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.75rem;
  transition: transform 0.35s var(--ease), background var(--t);
}
.faq-item.open .faq-icon { transform: rotate(180deg); background: rgba(191,167,255,0.12); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-inner {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.faq-inner strong { color: var(--gold); }
.faq-inner a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ===== CTA Final ===== */
/* صفحة الأمان — معايير وشهادات مرجعية عالمية */
.safety-certs-sec {
  padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 7vw, 72px);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(191, 167, 255, 0.03) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}
.safety-certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 4vw, 40px);
}
.safety-cert-card {
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--t) var(--ease-spring), transform var(--t) var(--ease-spring), box-shadow var(--t);
}
.safety-cert-card:hover {
  border-color: rgba(191, 167, 255, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.safety-cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  background: rgba(191, 167, 255, 0.08);
  border: 1px solid rgba(191, 167, 255, 0.25);
  border-radius: 12px;
}
.safety-cert-badge i { font-size: 1.25rem; }
.safety-cert-badge-nfpa { letter-spacing: 0.04em; font-size: 0.68rem; }
.safety-cert-badge-un i { font-size: 1.1rem; }
.safety-cert-name {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.safety-cert-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-2);
}
.safety-certs-footnote {
  margin: clamp(28px, 4vw, 40px) auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-2);
  opacity: 0.92;
}

.final-cta {
  padding: clamp(80px,12vw,130px) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Animated radial glow */
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(191,167,255,0.07) 0%, transparent 70%);
  animation: ctaGlow 6s ease-in-out infinite;
}
@keyframes ctaGlow {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity:0.7; }
  50%      { transform: translate(-50%,-50%) scale(1.3); opacity:1; }
}

.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(2rem,4vw,3.2rem);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.final-cta p {
  font-size: clamp(0.95rem,1.8vw,1.1rem);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 40px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-chips {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.trust-chip i { color: var(--wa); }

/* ===== Footer ===== */
.footer {
  background: #010204;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-about p {
  font-size: 0.86rem;
  color: var(--text-2);
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.8;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  transition: color var(--t), background var(--t), border-color var(--t),
    transform var(--t) var(--ease-spring);
}
.footer-links a:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}
.footer-links a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-2);
}
.f-contact-icon {
  width: 34px; height: 34px;
  background: var(--bg-card);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ===== WhatsApp FAB ===== */
.wa-fab {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 16px;
  box-shadow: 0 8px 36px rgba(34,197,94,0.45);
  transition: padding var(--t) var(--ease), box-shadow var(--t), transform var(--t) var(--ease-spring);
  text-decoration: none;
  overflow: hidden;
  max-width: 58px;
}
.wa-fab:hover {
  max-width: 220px;
  padding: 16px 24px;
  transform: translateY(-3px);
  box-shadow: 0 14px 55px rgba(34,197,94,0.55);
}
.wa-fab i { font-size: 1.5rem; flex-shrink: 0; }
.wa-fab-text {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  transition: max-width var(--t) var(--ease), margin-right var(--t);
  margin-right: 0;
}
.wa-fab:hover .wa-fab-text {
  max-width: 160px;
  margin-right: 0;
  margin-left: 12px;
}
.wa-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(34,197,94,0.4);
  animation: ringPulse 2.5s ease infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  50%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ===== Responsive ===== */

/* شاشات واسعة (1200px–1400px): ضغط خفيف على الشريط العلوي */
@media (min-width: 1201px) and (max-width: 1400px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.82rem; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 9px 14px; font-size: 0.82rem; }
}

@media (max-width: 1200px) {
  .events-scroll { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); gap: 40px; }
  .steps::before { display: none; }
  /* شريط التنقل: إخفاء الروابط والأزرار عند الشاشات المتوسطة وإظهار زر القائمة */
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  /* .hamburger مُظهر بالفعل من الـ 1024px */

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2)::after { display: none; }

  .events-scroll { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .wa-fab {
    bottom: calc(28px + env(safe-area-inset-bottom));
  }
}

/* دخول الصفحة — جوالات، شاشات ضيقة، وجوالات بالعرض (لمس خشن)؛ styles.css واحد لكل الصفحات */
@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 768px),
    ((hover: none) and (pointer: coarse) and (max-width: 1024px)) {
  @keyframes heroEnterTouch {
    0% {
      opacity: 0;
      transform: translate3d(0, 40px, 0) scale(0.92);
    }
    58% {
      opacity: 1;
      transform: translate3d(0, -6px, 0) scale(1.02);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  @keyframes navEnterTouch {
    from {
      opacity: 0;
      transform: translate3d(0, -18px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  @keyframes heroGradientFadeIn {
    from { opacity: 0.25; }
    to { opacity: 1; }
  }

  @keyframes scrollHintFadeIn {
    from { opacity: 0; }
    to { opacity: 0.72; }
  }

  /* قسم «لماذا نحن»: دخول بطاقات لمسية على الجوال */
  @keyframes whyItemMobileIn {
    0% {
      opacity: 0;
      transform: translate3d(0, 44px, 0) scale(0.93);
    }
    58% {
      opacity: 1;
      transform: translate3d(0, -5px, 0) scale(1.02);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  .nav {
    animation: navEnterTouch 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-gradient {
    animation: heroGradientFadeIn 1.15s ease-out both;
  }

  /* منحنى واحد ناعم مع ارتداد مدمج في الـ keyframes */
  .hero-label {
    animation: heroEnterTouch 1.02s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-title {
    animation: heroEnterTouch 1.08s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }
  .hero-sub {
    animation: heroEnterTouch 1.02s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
  }
  .hero-cta {
    animation: heroEnterTouch 1s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
  }
  .hero-stats {
    animation: heroEnterTouch 1.06s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
  }

  /* صفحات المدن والأحياء: بطاقات الميتا تحت الأزرار (بدل شريط الإحصائيات في الرئيسية) */
  .hero .hood-meta.reveal {
    animation: heroEnterTouch 1.06s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
  }

  section#why .why-item.reveal {
    transition: none;
  }
  section#why .why-item.reveal:not(.on) {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.96);
  }
  section#why .why-item.reveal.on {
    animation: whyItemMobileIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  section#why .why-item.reveal.on.d1 { animation-delay: 0.06s; }
  section#why .why-item.reveal.on.d2 { animation-delay: 0.14s; }
  section#why .why-item.reveal.on.d3 { animation-delay: 0.22s; }
  section#why .why-item.reveal.on.d4 { animation-delay: 0.3s; }
  section#why .why-item.reveal.on.d5 { animation-delay: 0.38s; }
  section#why .why-item.reveal.on.d6 { animation-delay: 0.46s; }

  /* بقية عناصر .reveal: دخول لمسي موحّد (كروت، معرض، FAQ، التذييل…) */
  .reveal:not(.why-item) {
    transition: none;
  }
  .reveal:not(.why-item):not(.on) {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(0.97);
  }
  .reveal:not(.why-item).on {
    animation: whyItemMobileIn 0.74s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .reveal:not(.why-item).on.d1 { animation-delay: 0.06s; }
  .reveal:not(.why-item).on.d2 { animation-delay: 0.12s; }
  .reveal:not(.why-item).on.d3 { animation-delay: 0.18s; }
  .reveal:not(.why-item).on.d4 { animation-delay: 0.24s; }
  .reveal:not(.why-item).on.d5 { animation-delay: 0.3s; }
  .reveal:not(.why-item).on.d6 { animation-delay: 0.36s; }

  @keyframes tickerStripIn {
    from {
      opacity: 0;
      transform: translate3d(0, 14px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  .ticker-wrap {
    animation: tickerStripIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
  }

  @keyframes waFabPopIn {
    from {
      opacity: 0;
      transform: scale(0.86) translate3d(0, 16px, 0);
    }
    to {
      opacity: 1;
      transform: scale(1) translate3d(0, 0, 0);
    }
  }
  .wa-fab {
    animation: waFabPopIn 0.52s cubic-bezier(0.34, 1.4, 0.64, 1) 0.75s both;
  }

  /* نفس ترتيب التحديد: المحتوى المنسوخ للنوافذ يبقى مرئيًا دون انتظار .on */
  .nh-district-modal .reveal,
  .nh-district-modal .reveal:not(.on) {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .scroll-hint {
    animation: scrollHintFadeIn 0.9s ease-out 0.58s both,
      scrollBounce 2.5s ease 1.48s infinite;
  }
  }
}

@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 340px; }
  .trust-chips { flex-direction: column; align-items: center; }
}

/* ===== أداء الجوال — تقليل blur والحركة الثقيلة ===== */
@media (max-width: 900px) {
  .mesh-bg::before,
  .mesh-bg::after {
    animation: none;
    filter: blur(72px);
  }
  .nav.solid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(3, 5, 8, 0.94);
  }
  .drawer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .ticker-scroll {
    animation-duration: 42s;
  }
  .hero-stats .hero-stat:hover {
    transform: none;
  }
  .wa-fab-ring {
    animation: none;
    opacity: 0.45;
  }
}

/* ===== صفحة الأمان والسلامة — بطاقات المراجع الرسمية ===== */
.safety-refs {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 28px;
}
.safety-ref-card {
  display: block;
  padding: 22px 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.safety-ref-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.safety-ref-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.safety-ref-card h3 i {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.95;
}
.safety-ref-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}
.safety-ref-card .ref-ext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}
.safety-ref-card .ref-ext i {
  font-size: 0.75rem;
  opacity: 0.85;
}
.safety-note {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--border-gold);
  background: rgba(191, 167, 255, 0.04);
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.75;
}
.safety-note strong {
  color: var(--gold-light);
}
@media (prefers-reduced-motion: reduce) {
  .safety-ref-card:hover { transform: none; }
}

/* ===== صفحات المدن (أحياء + رمز بريدي) — نفس لغة التصميم: type-card / coverage ===== */
.page-city .city-districts-sec {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 38%, rgba(124, 58, 237, 0.05) 100%);
  border-block: 1px solid var(--border);
  position: relative;
}
.page-city .city-districts-sec::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 167, 255, 0.35), transparent);
  pointer-events: none;
}

.page-city .city-zip-panel {
  margin-top: clamp(20px, 4vw, 36px);
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-city .city-zip-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.page-city .city-zip-panel-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(191, 167, 255, 0.18), rgba(91, 33, 182, 0.12));
  border: 1px solid rgba(191, 167, 255, 0.25);
  color: var(--gold-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.page-city .city-zip-panel-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--border-gold), var(--border));
  opacity: 0.85;
}

.city-zip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.city-zip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 18px 18px;
  text-align: start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  transition: transform var(--t) var(--ease-spring),
    box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease),
    background var(--t) var(--ease);
}
.city-zip-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t) var(--ease);
  border-radius: 3px 3px 0 0;
  z-index: 1;
}
.city-zip-card:hover {
  border-color: rgba(191, 167, 255, 0.32);
  background: rgba(191, 167, 255, 0.05);
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(191, 167, 255, 0.12);
}
.city-zip-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.city-zip-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.city-zip-en {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 6px;
  direction: ltr;
  text-align: left;
  line-height: 1.35;
}

.city-zip-code {
  margin-top: 14px;
  padding: 10px 12px;
  display: block;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  background: rgba(191, 167, 255, 0.09);
  border: 1px solid rgba(191, 167, 255, 0.22);
  border-radius: var(--r-sm);
  text-align: center;
}
.city-zip-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.city-footnote {
  margin-top: clamp(24px, 4vw, 32px);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  border-radius: var(--r-sm);
  border: 1px dashed rgba(191, 167, 255, 0.22);
  background: rgba(191, 167, 255, 0.03);
}

.page-city #other-cities.coverage-sec {
  background: var(--bg);
}

@media (max-width: 520px) {
  .city-zip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .city-zip-card {
    padding: 16px 12px 14px;
  }
  .city-zip-name {
    font-size: 0.92rem;
  }
  .page-city .city-zip-panel-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .city-zip-card:hover {
    transform: none;
  }
  .city-zip-card::after {
    transition: none;
  }
}

/* ===== تذييل: روابط الكيان المحلي (Google Business / الخرائط) ===== */
.local-entity-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}
.local-entity-heading {
  flex-basis: 100%;
  width: 100%;
  margin: 0;
  padding-top: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.95;
}
.local-entity-link {
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  opacity: 0.92;
}
.local-entity-link--social {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.65em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.local-entity-link--social:hover {
  opacity: 1;
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(196, 181, 253, 0.08);
}
.local-entity-link--social:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.75);
  outline-offset: 2px;
}
/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .nav,
  .hero-gradient,
  .hero-label,
  .hero-title,
  .hero-sub,
  .hero-cta,
  .hero-stats,
  .hero .hood-meta.reveal,
  .scroll-hint {
    animation: none !important;
  }
  .nav,
  .hero-gradient,
  .hero-label,
  .hero-title,
  .hero-sub,
  .hero-cta,
  .hero-stats,
  .hero .hood-meta.reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-hint {
    opacity: 0.72 !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
