/* الخط المعتمد: DIN Next Arabic — الملف الوحيد المتوفّر حالياً هو Regular.
   نُعرّف عائلة واحدة فقط بالوزن 400؛ المتصفح سيُركّب (synthesize) الأوزان
   العريضة تلقائياً. عند توفّر أوزان أخرى (Light / Medium / Bold) أضفها في
   fonts/ وكرّر @font-face بالأوزان الصحيحة */
@font-face {
  font-family: "DIN Next LT W23";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/DINNextLTArabic-Regular.otf") format("opentype"),
    local("DIN Next LT W23"),
    local("DIN Next Arabic"),
    local("DIN Next LT Arabic");
}

:root {
  --c-deep: #250e42;
  --c-muted: #3b2451;
  --c-accent: #bf325c;
  --c-accent-2: #da3b4f;
  --c-light: #f1f0f0;
  --c-white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(37, 14, 66, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 96px;
  --content-max: 1180px;
  /* عناوين الأقسام: حجم موحّد لكل الأقسام (العنوان الصغير + العنوان الرئيسي) */
  --section-eyebrow-size: 1.35rem;
  --section-title-size: clamp(2.25rem, 4.4vw, 2.95rem);
  /* أيقونات بخط رفيع وأسلوب هادئ */
  --icon-stroke: 1.05;
  --font: "DIN Next LT W23", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

/* يضمن ظهور عنوان القسم أسفل الشريط الثابت عند التمرير السلس */
main section[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.35rem;
  line-height: 1.75;
  color: var(--c-light);
  background: var(--c-deep);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

/* يمنع الوميض: نخفي الـ nav (والعلامة التجارية) قبل أن يحسب JS تحويل FLIP.
   حين يُزال is-preparing يعود opacity إلى 1 بسلاسة ويظهر الشعار في منتصف الشاشة */
html.is-preparing .nav {
  opacity: 0;
}

/* أثناء القياس ومراحل إعداد FLIP — لا ننفّذ أي transition */
html.no-transition,
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
  transition: none !important;
}

/* ——— زخرفة داخل الهيدر — تظهر أثناء التحميل فقط.
   overflow: hidden هنا (وليس على الهيدر نفسه) حتى لا تُقصّ قائمة الجوال */
.site-header__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s;
}

body.is-loading .site-header__deco {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.deco-halo {
  position: absolute;
  width: 80vmin;
  height: 80vmin;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 50, 92, 0.28) 0%, rgba(59, 36, 81, 0.15) 45%, transparent 70%);
  filter: blur(6px);
  animation: deco-halo 3.2s ease-in-out infinite;
}

@keyframes deco-halo {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* أيقونة التحميل السفلية (بدل شريط التقدّم) — الدوران على الـspan وليس <img> حتى يعمل بثقة مع الـ filter */
.deco-loader-icon {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  line-height: 0;
  pointer-events: none;
}

.deco-loader-icon__spin {
  display: block;
  width: min(3.5rem, 15vw);
  transform-origin: 50% 50%;
  /* دوران واضح ومستمر — مؤشّر تحميل */
  animation: deco-loader-icon-rotate 1.05s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.deco-loader-icon__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

/* كان سابقاً نُلغي الدوران هنا — فيبدو «ثابتاً» تماماً عند تفعيل «تقليل الحركة» */
@media (prefers-reduced-motion: reduce) {
  .deco-loader-icon__spin {
    animation-duration: 2.6s;
  }
}

@keyframes deco-loader-icon-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-accent-2);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

a:hover {
  color: var(--c-accent);
}

/* روابط <a class="btn"> — لا تَرث لون a:hover (كان يحوّل النص لـ c-accent فوق الـ gradient) */
a.btn--primary,
a.btn--primary:hover,
a.btn--primary:focus-visible {
  color: var(--c-white);
}

a.btn--ghost {
  color: var(--c-light);
}

a.btn--ghost:hover,
a.btn--ghost:focus-visible {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* أيقونات SVG — خطوط رفيعة، زوايا حادة قليلاً، بدون مظهر "ألعاب" */
.icon {
  display: block;
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  color: currentColor;
  stroke: currentColor;
  fill: none;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.icon--sm {
  width: 1.05em;
  height: 1.05em;
}

.icon--md {
  width: 1.2em;
  height: 1.2em;
  opacity: 0.88;
}

.icon--nav {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.48;
  transition: opacity 0.2s var(--ease-out);
}

.nav__link:hover .icon--nav,
.nav__link--cta .icon--nav {
  opacity: 0.9;
}

/* الهيدر نفسه هو شاشة التحميل — يتحول إلى شريط تنقل عند انتهاء التحميل.
   ارتفاع صريح (= nav + padding) حتى يعمل transition بين 100dvh والشريط */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: calc(var(--nav-h) + 2rem);
  padding: 1rem 1.75rem;
  background: linear-gradient(180deg, rgba(37, 14, 66, 0.92) 0%, rgba(37, 14, 66, 0.65) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    height 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    padding 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    box-shadow 0.4s var(--ease-out);
}

/* حالة التحميل: الهيدر يملأ الشاشة ويعرض خلفية التحميل */
body.is-loading .site-header {
  height: 100vh;
  height: 100dvh;
  padding: 0 1.75rem;
  background: radial-gradient(circle at 50% 40%, #3b2451 0%, #250e42 55%, #1a0930 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-scrolled {
  background: rgba(37, 14, 66, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nav {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
  height: 100%;
  position: relative;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* العلامة التجارية: شعار واحد. أثناء التحميل يُطبَّق عليه تحويل FLIP يُحسبه JS
   فيظهر في منتصف الشاشة بحجم كبير. عند انتهاء التحميل يعود إلى موضعه الطبيعي
   في الزاوية اليمنى للشريط — بنفس المنحنى، بلا تبادل شفافية، بلا عناصر مكررة */
.nav__brand {
  flex-shrink: 0;
  opacity: 0.95;
  transform-origin: center center;
  transform: translate(0, 0) scale(1);
  will-change: transform;
  transition:
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s;
}

body.is-loading .nav__brand {
  transform: translate(var(--brand-tx, 0px), var(--brand-ty, 0px)) scale(var(--brand-s, 1));
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.45));
}

.nav__brand:hover {
  opacity: 1;
}

.nav__logo {
  height: 86px;
  width: auto;
  max-width: min(320px, 52vw);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--c-light);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* أثناء التحميل: روابط الشريط والـ toggle يختفيان — لا يظهر إلا الشعار */
body.is-loading .nav__list,
body.is-loading .nav__toggle {
  opacity: 0;
  pointer-events: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  color: var(--c-light);
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s var(--ease-out), color 0.25s;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* لا نُطبّق خلفية الروابط الشفافة على زر CTA — كانت تُلغي الـ gradient */
.nav__link:hover:not(.nav__link--cta) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-white);
}

.nav__link.is-active {
  color: var(--c-white);
  background: rgba(191, 50, 92, 0.15);
}

.nav__link--cta {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: var(--c-white) !important;
  margin-inline-start: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.22rem;
}

.nav__link--cta::after {
  display: none;
}

/* يبقى الـ gradient واضحاً؛ hover يضيءه قليلاً ولا يغيّر لون النص */
.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  color: var(--c-white) !important;
  background: linear-gradient(135deg, #c63d5f, #e34558) !important;
  box-shadow: 0 10px 32px rgba(191, 50, 92, 0.48);
  filter: none;
  transform: translateY(-1px);
  transition: background 0.2s var(--ease-out), box-shadow 0.2s, transform 0.2s;
}

@media (max-width: 900px) {
  html,
  body {
    /* منع السحب الأفقي في الجوال مع السماح بالتمرير العمودي */
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  :root {
    --nav-h: 84px;
  }

  .site-header {
    /* يغطي العرض بالكامل على الجوال بدون فراغ على اليمين عند الـ zoom out */
    left: 0;
    right: 0;
    width: 100%;
    padding-inline: 0;
  }

  body.is-loading .site-header {
    padding-inline: 0;
  }

  .nav {
    width: 100%;
    max-width: none;
    padding-inline: 1rem;
    margin: 0;
  }

  .nav__logo {
    height: 67px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: absolute;
    top: calc(var(--nav-h) + 0.5rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(37, 14, 66, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
  }

  .nav__list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    text-align: center;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 2rem 4.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/background.png") center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-zoom 22s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.06);
  }
}

/* بدون طبقة تعتيم: تُعرض صورة الخلفية بألوانها الأصلية بدون أي تأثير فوقها */
.hero__overlay {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  text-align: center;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--c-white);
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.35rem;
  color: rgba(241, 240, 240, 0.88);
  max-width: 44rem;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--c-accent), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, filter 0.25s;
}

.btn .icon {
  opacity: 0.82;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: var(--c-white);
  box-shadow: 0 12px 32px rgba(191, 50, 92, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* شريط نمط بعرض النافذة ومتمركز — آمن مع شريط التمرير.
   نستخدم calc(50% - 50vw) بدلاً من left:50%;margin-left:-50vw لأن 100vw يشمل
   عرض شريط التمرير بينما عرض القسم لا يشمله، مما يُزيح الصورة جانبياً */
.section__pattern-strap {
  position: relative;
  display: block;
  width: auto;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  margin-top: 3.25rem;
  margin-bottom: 0;
  line-height: 0;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.section__pattern-strap .section-pattern {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  vertical-align: bottom;
}

/* خط فاصل خفيف أعلى كل قسم (ما عدا الهيرو) — يربط المقاطع بصرياً */
main > .section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section {
  position: relative;
  padding: 5rem 0 0;
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  min-width: 0;
  width: 100%;
  padding: 0 2rem;
}

.section__inner--about {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0 auto;
}

.section__inner--about .about__content {
  text-align: center;
}

.section__inner--about .about__text {
  margin: 0 auto;
  max-width: 48rem;
}

.section--vision {
  background: linear-gradient(180deg, var(--c-deep) 0%, var(--c-muted) 100%);
  /* تكبير ارتفاع قسم الرؤية/الرسالة بشكل أوضح */
  padding: 7rem 0 3rem 0;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
}

.section--vision .section__inner {
  flex: 1;
  display: flex;
  align-items: center;
}

/* شريطان: أعلى معكوس (x+y)، أسفل كالأصل */
.section--vision .section__pattern-strap--mirrored {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section--vision .section__pattern-strap--mirrored .section-pattern {
  transform: scale(-1, -1);
  transform-origin: center;
}

.section--vision .section__head {
  text-align: start;
  margin-inline: 0;
  margin-inline-end: auto;
}

.section--vision .vision__intro {
  max-width: 46rem;
  margin: 0 0 2.75rem;
  margin-inline: 0;
  margin-inline-end: auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(241, 240, 240, 0.9);
  text-align: start;
}

.section--about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c-deep);
  padding-top: 7rem;
  padding-bottom: 7rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* من نحن: نص أبيض بالكامل (العنوان الفرعي كان بلون التمييز) */
.section--about .section__eyebrow,
.section--about .section__title,
.section--about .about__text {
  color: #fff;
}

/* خدماتنا / مشاريعنا / اتصل بنا: نفس لون «من نحن» للعنوان الفرعي */
.section--services .section__eyebrow,
.section--projects .section__eyebrow,
.section--contact .section__eyebrow {
  color: #fff;
}

/* خلفية «من نحن»: حركة طفو سلسة دائمة (بدون ارتباط بالتمرير) */
@keyframes about-bg-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.06);
  }
}

.about__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../assets/site/who-we-are-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  /* سفل الصورة مع رفع من الحافة (100% = bottom؛ أقل = أعلى) */
  background-position: center 86%;
  background-attachment: scroll;
  transform-origin: 50% 86%;
  will-change: transform;
  animation: about-bg-float 14s ease-in-out infinite;
}

.about__scrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(37, 14, 66, 0.55) 0%, rgba(37, 14, 66, 0.35) 50%, rgba(37, 14, 66, 0.55) 100%);
}

/* خدماتنا: خلفية متماسكة + وهج خفيف — يميّز القسم عن «تواجدنا» */
.section--services {
  position: relative;
  background: var(--c-deep);
  padding-bottom: 0;
  overflow: hidden;
}

.section--services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 70% at 50% 0%, rgba(191, 50, 92, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.section__inner--services {
  position: relative;
  z-index: 1;
}

/* نمط أسفل خدماتنا: بعرض الشاشة كاملاً لكن ارتفاعه محدود — غير الضخامة السابقة */
.section--services .section__pattern-strap {
  position: relative;
  z-index: 1;
  margin-top: 3.25rem;
  line-height: 0;
  pointer-events: none;
  user-select: none;
}

/* مشاريعنا: خلفية مميزة وتخطيط من عمودين — الخط أعلاه من main > .section */
.section--projects {
  position: relative;
  margin-top: 0;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  background: linear-gradient(180deg, #1a0b2e 0%, var(--c-deep) 28%, var(--c-muted) 100%);
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 1rem;
}

.projects-layout__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  text-align: start;
}

.projects-info__text {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.01em;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
  min-height: 2.4em;
}

.projects-info__text.is-swapping {
  opacity: 0;
  transform: translateY(-8px);
}

.projects-info__cta {
  align-self: flex-start;
}

.projects-layout__map {
  position: relative;
  min-width: 0;
}

.ksa-map {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1000 / 824;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at center, rgba(191, 50, 92, 0.08) 0%, transparent 70%);
}

.ksa-map__object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  z-index: 1;
}

.ksa-map__markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ============================
   Map Markers (pulsing pins)
   ============================ */
.map-marker {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Pulsing ring extends past the 22px pin; without this, hover hits the map and shows a region name instead of the project. */
.map-marker::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: auto;
  background: transparent;
}

.map-marker__dot {
  position: absolute;
  inset: 6px;
  background: radial-gradient(circle at 30% 30%, #ff5f7f, var(--c-accent) 70%);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(191, 50, 92, 0.6), 0 0 0 2px rgba(191, 50, 92, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
}

.map-marker__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(218, 59, 79, 0.55);
  z-index: 1;
  animation: marker-pulse 2.2s cubic-bezier(0.25, 0.8, 0.3, 1) infinite;
}

.map-marker__pulse--delay {
  animation-delay: 1.1s;
}

@keyframes marker-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  80% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.map-marker:hover .map-marker__dot,
.map-marker:focus-visible .map-marker__dot {
  transform: scale(1.25);
  box-shadow: 0 8px 22px rgba(218, 59, 79, 0.75), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.map-marker:focus-visible {
  outline: none;
}

.map-marker__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(17, 7, 31, 0.92);
  color: var(--c-white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-marker:hover .map-marker__label,
.map-marker:focus-visible .map-marker__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .map-marker__pulse {
    animation: none;
    opacity: 0;
  }

  .about__bg {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 860px) {
  .projects-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .projects-layout__info {
    order: 2;
    align-items: flex-start;
  }

  .projects-layout__map {
    order: 1;
  }

  .projects-info__cta {
    align-self: stretch;
    justify-content: center;
  }

  .map-marker {
    width: 18px;
    height: 18px;
  }
}

/* ============================
   Project Detail Modal
   ============================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.project-modal[hidden] {
  display: none;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.project-modal__panel {
  position: relative;
  width: min(560px, 100%);
  background: linear-gradient(180deg, #2a1340 0%, #1a0b2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.project-modal.is-open .project-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.project-modal__close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.project-modal__close:hover,
.project-modal__close:focus-visible {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: rotate(90deg);
  outline: none;
}

.project-modal__content {
  padding: 2.25rem 2rem 2rem;
  text-align: start;
}

.project-modal__location {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-accent-2);
  padding: 0.3rem 0.75rem;
  background: rgba(218, 59, 79, 0.14);
  border: 1px solid rgba(218, 59, 79, 0.3);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.project-modal__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-white);
}

.project-modal__desc {
  margin: 0 0 1.75rem;
  color: rgba(241, 240, 240, 0.82);
  line-height: 1.75;
  font-size: 1rem;
}

.project-modal__cta {
  width: 100%;
  justify-content: center;
}

/* ============================
   Projects Modal
   ============================ */
.projects-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.projects-modal[hidden] {
  display: none;
}

.projects-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.projects-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.projects-modal__panel {
  position: relative;
  width: min(840px, 100%);
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #2a1340 0%, #1a0b2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.projects-modal.is-open .projects-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.projects-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.projects-modal__titles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.projects-modal__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-accent-2);
}

.projects-modal__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--c-white);
}

.projects-modal__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.projects-modal__close:hover,
.projects-modal__close:focus-visible {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: rotate(90deg);
  outline: none;
}

.projects-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.75rem 1.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(191, 50, 92, 0.6) transparent;
}

.projects-modal__body::-webkit-scrollbar {
  width: 8px;
}

.projects-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.projects-modal__body::-webkit-scrollbar-thumb {
  background: rgba(191, 50, 92, 0.55);
  border-radius: 4px;
}

.projects-modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(218, 59, 79, 0.75);
}

.projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.projects-list__item {
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  transition: border-color 0.35s var(--ease-out), transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.projects-list__item:hover {
  border-color: rgba(191, 50, 92, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(12, 4, 24, 0.35);
}

.projects-list__download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.projects-list__download:hover,
.projects-list__download:focus-visible {
  outline: none;
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: var(--c-white);
}

.projects-list__download.is-disabled {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 240, 240, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  pointer-events: none;
}

.projects-list__empty {
  margin: 1rem 0 0;
  padding: 1.5rem;
  text-align: center;
  color: rgba(241, 240, 240, 0.6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.projects-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.projects-list__region {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-accent-2);
  padding: 0.25rem 0.65rem;
  background: rgba(218, 59, 79, 0.14);
  border: 1px solid rgba(218, 59, 79, 0.3);
  border-radius: 999px;
}

.projects-list__year {
  font-size: 0.8rem;
  color: rgba(241, 240, 240, 0.55);
  font-variant-numeric: tabular-nums;
}

/* كامل بطاقة المشروع: أيقونة SLSS + تدرج عند المرور */
.projects-list__body {
  position: relative;
  margin-top: 0.15rem;
  padding: 0.4rem 0.35rem 0.2rem;
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: start;
  z-index: 1;
}

.projects-list__item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.projects-list__item::before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11.5rem;
  height: 11.5rem;
  max-width: 92%;
  max-height: 88%;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  background: url("../assets/Icon.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(191, 50, 92, 0.55));
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.projects-list__item:hover::before {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(1);
}

.projects-list__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(37, 14, 66, 0.32) 0%, rgba(191, 50, 92, 0.1) 100%);
  transition: opacity 0.4s var(--ease-out);
}

.projects-list__item:hover::after {
  opacity: 1;
}

.projects-list__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.35;
  position: relative;
  z-index: 1;
  transition: text-shadow 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.projects-list__desc {
  margin: 0;
  color: rgba(241, 240, 240, 0.72);
  line-height: 1.65;
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
  transition: text-shadow 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.projects-list__item:hover .projects-list__title {
  color: #fff;
  text-shadow:
    0 0.04em 0.15em rgba(0, 0, 0, 0.85),
    0 0.12em 0.4em rgba(12, 4, 24, 0.95);
}

.projects-list__item:hover .projects-list__desc {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 0.04em 0.2em rgba(0, 0, 0, 0.75);
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .projects-modal__head {
    padding: 1.15rem 1.25rem 1rem;
  }

  .projects-modal__body {
    padding: 1rem 1.25rem 1.25rem;
  }

  .projects-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section--contact {
  /* نفس لون تذييل الصفحة في الأسفل — بدون شفشفة/حدّ يفصل عن الفوتر */
  background: linear-gradient(180deg, var(--c-muted) 0%, var(--c-deep) 100%);
  padding-bottom: 2.5rem;
}

.section__head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 3rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: var(--section-eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 0.85rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: var(--section-title-size);
  line-height: 1.2;
  color: var(--c-white);
  font-weight: 700;
}

/* أيقونة لعناوين محددة فقط */
.icon-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-title__img {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  object-fit: contain;
  transform: translateY(0.02em);
}

.section__subtitle {
  margin: 0;
  color: rgba(241, 240, 240, 0.78);
  font-size: 1.25rem;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  width: 100%;
  margin-inline: auto;
  align-self: center;
}

.vision-grid .vision__intro {
  margin: 0;
  max-width: none;
}

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

@media (max-width: 480px) {
  .section__pattern-strap {
    margin-top: 2.5rem;
  }
  .section--vision .section__pattern-strap--mirrored {
    margin-top: 0;
  }
}

.vision-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  align-items: center;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.vision-card:hover {
  transform: translateY(-6px);
  border-color: rgba(191, 50, 92, 0.35);
  box-shadow: 0 20px 50px rgba(37, 14, 66, 0.45);
}

.vision-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  margin-bottom: 1.1rem;
  margin-inline-start: 0;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.vision-card__icon .icon {
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.95;
}

.vision-card__icon--2,
.vision-card__icon--3 {
  /* موحّد مع البطاقة الأولى — بدون تدرجات وردية */
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.vision-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--c-white);
}

.vision-card__text {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(241, 240, 240, 0.82);
}

.about__text {
  color: #fff;
  margin: 0 0 1.35rem;
}

.about__stats {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.about__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.15rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.4rem;
}

.stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.1rem;
}

.stat__icon .icon {
  width: 1.2rem;
  height: 1.2rem;
  opacity: 1;
}

.stat-num {
  display: block;
  font-size: 2.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-light), var(--c-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 1.05rem;
  color: rgba(241, 240, 240, 0.65);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.projects-grid--services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.projects-grid--services .project-card {
  width: calc((100% - 2.5rem) / 3);
  min-width: 17.5rem;
}

.section--services .projects-grid--services .project-card--extra {
  display: none;
}

.section--services .projects-grid--services.is-expanded .project-card--extra {
  display: flex;
}

.services-expand {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.services-expand__btn {
  min-width: 12rem;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    max-width: 32rem;
    margin-inline: auto;
  }

  .projects-grid--services .project-card {
    width: 100%;
    min-width: 0;
  }
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 28px rgba(37, 14, 66, 0.45);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s,
    border-color 0.35s,
    background 0.4s var(--ease-out);
}

/* خدماتنا: تمرير فوق البطاقة = خلفية أنعم + أيقونة مائية في منتصف عمود النص (وليس شريط الوسائط) */
.section--services .project-card:hover {
  background: linear-gradient(145deg, rgba(191, 50, 92, 0.14) 0%, rgba(37, 14, 66, 0.42) 55%, rgba(37, 14, 66, 0.28) 100%);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(37, 14, 66, 0.55);
  border-color: rgba(191, 50, 92, 0.38);
}

.project-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 6.75rem;
  min-width: 6.75rem;
  align-self: stretch;
  min-height: 0;
  background-size: cover;
  background-position: center;
}

.project-card__gif {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.26));
}

.section--services .project-card__icon {
  display: none;
}

.section--services .project-card__media {
  position: relative;
  width: 5.5rem;
  min-width: 5.5rem;
  background-repeat: no-repeat;
  background-position: center;
  /* تصغير الـ GIF داخل عمود الوسائط */
  background-size: auto 38%;
}


.project-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.project-card__icon .icon {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  opacity: 0.95;
  max-width: none;
  max-height: none;
}

.project-card__body {
  flex: 1;
  min-width: 0;
  padding: 1.2rem 1.35rem 1.3rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  text-align: start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
  transition: background 0.4s var(--ease-out);
}

/* أيقونة SLSS — مركز عمود النص، خلف النص. ملف: assets/Icon.svg (نفس المسار المستخدم للصور) */
.section--services .project-card__body::before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11rem;
  height: 11rem;
  max-width: 92%;
  max-height: 88%;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  background: url("../assets/Icon.svg") center / contain no-repeat;
  /* وهج وردي حول الشكل — يبقى الأبيض واضحاً */
  filter: drop-shadow(0 0 16px rgba(191, 50, 92, 0.55));
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.section--services .project-card:hover .project-card__body::before {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(1);
}

.section--services .project-card:hover .project-card__body {
  background: linear-gradient(180deg, rgba(37, 14, 66, 0.22) 0%, rgba(191, 50, 92, 0.06) 100%);
}

/* طبقة داكنة خفيفة فوق الأيقونة (فقط تحت النص) لرفع تباين القراءة */
.section--services .project-card__body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(18, 6, 32, 0.52) 0%, rgba(37, 14, 66, 0.18) 60%, transparent 100%);
  transition: opacity 0.4s var(--ease-out);
}

.section--services .project-card:hover .project-card__body::after {
  opacity: 1;
}

.section--services .project-card__title,
.section--services .project-card__desc {
  position: relative;
  z-index: 1;
  transition: text-shadow 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.section--services .project-card:hover .project-card__title {
  color: #fff;
  text-shadow:
    0 0.04em 0.15em rgba(0, 0, 0, 0.85),
    0 0.12em 0.4em rgba(12, 4, 24, 0.95);
}

.section--services .project-card:hover .project-card__desc {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 0.04em 0.2em rgba(0, 0, 0, 0.75);
}

.project-card__media--1 {
  background-image: linear-gradient(160deg, rgba(191, 50, 92, 0.65), rgba(37, 14, 66, 0.95));
}

.project-card__media--2 {
  background-image: linear-gradient(160deg, rgba(218, 59, 79, 0.6), rgba(59, 36, 81, 0.98));
}

.project-card__media--3 {
  background-image: linear-gradient(160deg, rgba(59, 36, 81, 0.9), rgba(191, 50, 92, 0.55));
}

.project-card__title {
  margin: 0;
  padding: 0;
  font-size: 1.28rem;
  line-height: 1.3;
  color: var(--c-white);
}

.project-card__desc {
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(241, 240, 240, 0.78);
}

@media (max-width: 600px) {
  .project-card {
    flex-direction: column;
  }

  .project-card__media {
    width: 100%;
    min-width: 0;
    min-height: 5.5rem;
    max-height: 7rem;
  }

  .section--services .project-card__media {
    min-height: 4.6rem;
    max-height: 6rem;
    background-size: auto 34%;
  }

  .project-card__icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .project-card__body {
    padding: 1.1rem 1.2rem 1.35rem;
  }
}

.section__inner--contact {
  max-width: 58rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* اتصل بنا: بطاقة حديثة + أيقونات */
.contact-panel {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(37, 14, 66, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  padding: 1.75rem 1.5rem 1.85rem;
  box-shadow: 0 18px 48px rgba(12, 4, 24, 0.45);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 0% 0%, rgba(191, 50, 92, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.contact-panel__row,
.contact-panel__split {
  position: relative;
  z-index: 1;
}

.contact-panel__row--channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
  justify-content: center;
}

.contact-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 6, 32, 0.38);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.contact-tile:hover,
.contact-tile:focus-visible {
  border-color: rgba(191, 50, 92, 0.45);
  background: rgba(37, 14, 66, 0.55);
  box-shadow: 0 8px 24px rgba(12, 4, 24, 0.35);
  transform: translateY(-2px);
  outline: none;
}

.contact-tile__icon {
  width: 3.15rem;
  height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(191, 50, 92, 0.35) 0%, rgba(37, 14, 66, 0.9) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-tile__icon--wa {
  color: #25d366;
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.25) 0%, rgba(18, 6, 32, 0.95) 100%);
}

.contact-tile__svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.contact-panel__split {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.contact-panel__social-title {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.contact-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 22rem;
  margin-inline: auto;
}

.contact-social li {
  margin: 0;
}

.contact-social__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.75rem;
  border-radius: 0.9rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(18, 6, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}

.contact-social__link:hover,
.contact-social__link:focus-visible {
  background: rgba(37, 14, 66, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  outline: none;
}

.contact-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.contact-social__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  flex-shrink: 0;
}

.contact-social__link--in:hover .contact-social__icon,
.contact-social__link--in:focus-visible .contact-social__icon {
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.15);
}

.contact-social__link--x:hover .contact-social__icon,
.contact-social__link--x:focus-visible .contact-social__icon {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.contact-social__link--tt:hover .contact-social__icon,
.contact-social__link--tt:focus-visible .contact-social__icon {
  color: #fff;
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.35) 0%, rgba(0, 242, 234, 0.12) 100%);
}

.contact-social__link--ig:hover .contact-social__icon,
.contact-social__link--ig:focus-visible .contact-social__icon {
  color: #f77737;
  background: rgba(247, 119, 55, 0.12);
}


@media (max-width: 900px) {
  .contact-panel__row--channels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-social {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .contact-panel {
    padding: 1.35rem 1.1rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vision-grid .reveal:nth-child(1) {
  transition-delay: 0s;
}
.vision-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.vision-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.projects-grid .reveal:nth-child(1) {
  transition-delay: 0s;
}
.projects-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.projects-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.projects-grid .reveal:nth-child(4) {
  transition-delay: 0.2s;
}
.projects-grid .reveal:nth-child(5) {
  transition-delay: 0.25s;
}
.projects-grid .reveal:nth-child(6) {
  transition-delay: 0.3s;
}

.site-footer {
  position: relative;
  padding: 3rem 2rem 2rem;
  background: var(--c-deep);
  overflow: hidden;
  /* يلتقي بقسم «اتصل بنا» بلا حدّ سفلي بارز */
  border-top: none;
  box-shadow: none;
}

.footer__inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  margin: 0 auto 1.25rem;
  opacity: 0.85;
  height: 86px;
  width: auto;
}

@media (max-width: 900px) {
  .footer__logo {
    height: 67px;
  }
}

.footer__copy {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: rgba(241, 240, 240, 0.55);
}

.footer__cr {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: rgba(241, 240, 240, 0.5);
  letter-spacing: 0.02em;
}

.footer__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  color: var(--c-accent-2);
}

.footer__top .icon {
  width: 1em;
  height: 1em;
  opacity: 0.6;
}

.footer__top:hover {
  color: var(--c-accent);
}

.footer__top:hover .icon {
  opacity: 0.9;
}

/* لا نُعطّل الرسوم بناءً على إعدادات النظام حتى لا يختفي الأنيميشن عند بعض المستخدمين */

/* =========================================================
   ADMIN OVERLAY (in-page, activated via #admin URL hash)
   ========================================================= */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-y: auto;
  background: linear-gradient(180deg, #130823 0%, #1a0b2e 100%);
  color: var(--c-light);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  direction: rtl;
}

.admin-overlay[hidden] {
  display: none !important;
}

body.is-admin-open {
  overflow: hidden;
}

.admin-overlay h1,
.admin-overlay h2,
.admin-overlay h3 {
  margin: 0;
  color: var(--c-white);
  font-weight: 700;
}

/* ---- Auth (login) ---- */
.admin-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.admin-auth[hidden] {
  display: none;
}

.admin-auth__card {
  width: min(420px, 100%);
  background: #251238;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  padding: 2.25rem 2rem;
  text-align: center;
}

.admin-auth__brand {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--c-white);
  margin-bottom: 0.75rem;
}

.admin-auth__title {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.admin-auth__subtitle {
  color: rgba(241, 240, 240, 0.7);
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
}

.admin-auth__form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  text-align: start;
}

.admin-auth__error {
  margin: 0.25rem 0 0;
  color: #ff6b7a;
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}

.admin-auth__back {
  display: inline-block;
  margin-top: 1.25rem;
  color: rgba(241, 240, 240, 0.7);
  font-size: 0.9rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.admin-auth__back:hover {
  color: var(--c-accent-2);
}

/* ---- Fields ---- */
.admin-field {
  display: block;
}

.admin-field__label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--c-light);
  margin-bottom: 0.4rem;
}

.admin-field__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--c-white);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-field__input:focus {
  outline: none;
  border-color: var(--c-accent-2);
  background: rgba(255, 255, 255, 0.06);
}

.admin-overlay textarea.admin-field__input {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.6;
}

.admin-field__hint {
  display: block;
  margin-top: 0.35rem;
  color: rgba(241, 240, 240, 0.65);
  font-size: 0.8rem;
}

/* ---- Buttons (admin) ---- */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}

.admin-btn--primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  color: var(--c-white);
}

.admin-btn--primary:hover,
.admin-btn--primary:focus-visible {
  outline: none;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.admin-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-light);
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-btn--ghost:hover,
.admin-btn--ghost:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--c-white);
}

.admin-btn--block {
  width: 100%;
}

.admin-btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
}

.admin-icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.admin-icon-btn:hover {
  background: var(--c-accent);
  color: var(--c-white);
  transform: rotate(90deg);
}

/* ---- Topbar ---- */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(10, 3, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-topbar__mark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--c-white);
}

.admin-topbar__label {
  color: rgba(241, 240, 240, 0.7);
  font-size: 0.92rem;
}

.admin-topbar__nav {
  display: flex;
  gap: 0.5rem;
}

/* ---- Dashboard layout ---- */
.admin-dash[hidden] {
  display: none;
}

.admin-dash__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.admin-pane {
  background: #251238;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.admin-pane__head {
  margin-bottom: 1rem;
}

.admin-pane__head--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-pane__head h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.admin-pane__hint {
  margin: 0;
  color: rgba(241, 240, 240, 0.7);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.admin-pane__hint.is-error {
  color: #ff8a96;
  font-weight: 600;
}

/* ---- Admin map ---- */
.admin-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 824;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f0520;
  cursor: crosshair;
  user-select: none;
}

.admin-map__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.admin-map__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.admin-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 10px rgba(191, 50, 92, 0.6);
  pointer-events: none;
}

.admin-marker.is-editing {
  background: #f7b500;
  border-color: #fff;
  box-shadow: 0 3px 10px rgba(247, 181, 0, 0.65);
}

.admin-marker--pending {
  width: 18px;
  height: 18px;
  background: #50e3c2;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(80, 227, 194, 0.25), 0 3px 10px rgba(80, 227, 194, 0.7);
  animation: admin-pending-pulse 1.2s ease-in-out infinite;
}

@keyframes admin-pending-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(80, 227, 194, 0.25), 0 3px 10px rgba(80, 227, 194, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(80, 227, 194, 0), 0 3px 10px rgba(80, 227, 194, 0.7); }
}

.admin-map__legend {
  margin: 0.75rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(241, 240, 240, 0.7);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.admin-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  vertical-align: middle;
  margin-inline-end: 0.25rem;
}
.admin-legend-dot--existing { background: var(--c-accent); }
.admin-legend-dot--pending { background: #50e3c2; }

.admin-legend-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.admin-count {
  color: rgba(241, 240, 240, 0.7);
  font-weight: 500;
  font-size: 0.92rem;
  margin-inline-start: 0.35rem;
}

/* ---- Settings card + toggle switch ---- */
.admin-settings {
  padding: 1rem 1.1rem;
  background: #2f1847;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.admin-settings__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: rgba(241, 240, 240, 0.85);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.admin-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.admin-toggle__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-white);
}

.admin-toggle__hint {
  font-size: 0.78rem;
  color: rgba(241, 240, 240, 0.6);
  transition: color 0.2s ease;
}

.admin-switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  display: inline-block;
}

.admin-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.admin-switch__track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.admin-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: left 0.25s cubic-bezier(0.25, 0.8, 0.3, 1);
}

.admin-switch input:checked + .admin-switch__track {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-switch input:checked + .admin-switch__track .admin-switch__thumb {
  left: 22px;
}

.admin-switch input:focus-visible + .admin-switch__track {
  box-shadow: 0 0 0 3px rgba(218, 59, 79, 0.4);
}

.admin-toggle.is-off .admin-toggle__hint {
  color: #ff8a96;
}

/* ---- Admin form ---- */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  background: #2f1847;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.admin-form[hidden] {
  display: none;
}

.admin-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.admin-form__head h3 {
  font-size: 1.05rem;
}

.admin-coord {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.admin-coord__label {
  color: rgba(241, 240, 240, 0.7);
  font-weight: 600;
}

.admin-coord__value {
  color: #50e3c2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-coord__hint {
  width: 100%;
  color: rgba(241, 240, 240, 0.6);
  font-size: 0.8rem;
}

.admin-form__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* ---- Admin project list ---- */
.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 55vh;
  overflow-y: auto;
  padding-inline-end: 0.25rem;
}

.admin-list::-webkit-scrollbar { width: 6px; }
.admin-list::-webkit-scrollbar-thumb { background: rgba(191, 50, 92, 0.5); border-radius: 3px; }

.admin-list__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-list__item.is-editing {
  background: rgba(247, 181, 0, 0.08);
  border-color: rgba(247, 181, 0, 0.4);
}

.admin-list__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-list__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-list__body strong {
  color: var(--c-white);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list__loc {
  color: var(--c-accent-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-list__coord {
  color: rgba(241, 240, 240, 0.55);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.admin-list__actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}

.admin-list__actions button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-light);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-list__edit:hover {
  background: rgba(247, 181, 0, 0.15);
  color: #ffd25c;
  border-color: rgba(247, 181, 0, 0.4);
}

.admin-list__move:hover:not(:disabled) {
  background: rgba(80, 227, 194, 0.14);
  color: #6ef0d3;
  border-color: rgba(80, 227, 194, 0.38);
}

.admin-list__move:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-list__del:hover {
  background: rgba(255, 99, 99, 0.12);
  color: #ff8a96;
  border-color: rgba(255, 99, 99, 0.35);
}

.admin-empty {
  margin: 1rem 0 0;
  padding: 1.25rem;
  text-align: center;
  color: rgba(241, 240, 240, 0.65);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .admin-dash__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-list {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .admin-topbar {
    padding: 0.7rem 1rem;
  }
  .admin-topbar__label {
    display: none;
  }
  .admin-dash__inner {
    padding: 0.85rem;
    gap: 0.85rem;
  }
  .admin-auth__card {
    padding: 1.75rem 1.35rem;
  }
  .admin-form__actions {
    flex-direction: column;
  }
  .admin-form__actions .admin-btn {
    width: 100%;
  }
}

