/* =========================================================
   منصة ألعاب التعلّم — الأنماط الرئيسية (نسخة فاتحة)
   مقرر: تصميم وإنتاج ألعاب التعلم والتلعيب
   إعداد الباحثة: صابرين سعد محمد الشيخ — جامعة أم القرى
   ========================================================= */

/* ---------- 1. المتغيرات ---------- */
:root {
  /* خلفيات فاتحة */
  --bg: #f6f8fd;
  --bg-2: #eef3fb;
  --bg-3: #e4ecf8;

  --surface: #ffffff;
  --surface-2: #f4f7fe;
  --surface-3: #eaf1fb;

  --line: rgba(20, 33, 61, 0.10);
  --line-strong: rgba(20, 33, 61, 0.18);

  --text: #14213d;
  --text-soft: #46536d;
  --text-mute: #75839d;

  /* ألوان التمييز — مشبعة بما يكفي للتباين على خلفية فاتحة */
  --violet: #6c5ce7;
  --violet-soft: #7b6cf6;
  --mint: #0a9d74;
  --cyan: #0b8fb0;
  --gold: #bd7f0b;
  --rose: #d94a7a;

  /* أشكال */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 10px rgba(20, 33, 61, 0.05);
  --shadow-sm: 0 6px 20px rgba(20, 33, 61, 0.07);
  --shadow: 0 14px 40px rgba(20, 33, 61, 0.10);
  --shadow-lg: 0 26px 60px rgba(20, 33, 61, 0.14);

  --container: 1200px;
  --header-h: 76px;

  --font: "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Reem Kufi", "Tajawal", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. إعادة الضبط ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
  /* يمنع تمرير الصفحة أفقيًا بسبب الهالات الزخرفية (مهم في RTL) */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 88% -10%, rgba(108, 92, 231, 0.10), transparent 62%),
    radial-gradient(950px 640px at 2% 4%, rgba(11, 143, 176, 0.08), transparent 60%),
    radial-gradient(1150px 720px at 50% 106%, rgba(10, 157, 116, 0.07), transparent 66%);
  background-attachment: fixed;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -70px;
  transform: translateX(50%);
  z-index: 999;
  background: var(--violet);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- 3. أدوات مساعدة ---------- */
.grad-text {
  background: linear-gradient(100deg, var(--mint), var(--cyan) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background 0.28s var(--ease), border-color 0.28s var(--ease);
  will-change: transform;
}
.btn i { font-size: 0.95em; }

.btn--primary {
  background: linear-gradient(135deg, var(--violet), #5b4be0 55%, var(--cyan));
  color: #fff;
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.28);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(108, 92, 231, 0.38);
}

.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(10, 157, 116, 0.5);
  box-shadow: var(--shadow-sm);
}

.btn--sm { padding: 10px 18px; font-size: 14.5px; }

/* ---------- 4. الهيدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(20, 33, 61, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 40px, 1320px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.30);
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255,255,255,0.45), transparent 55%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-family: var(--font-display); font-size: 17px; color: var(--text); }
.brand__text small { color: var(--text-mute); font-size: 11.5px; letter-spacing: 0.2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 9px 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  inset-inline: 50%;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  transform: translateX(50%);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link:hover::after { width: 22px; }
.nav__link.is-active { color: var(--violet); font-weight: 700; }
.nav__link.is-active::after { width: 26px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. الهيرو ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(30px, 4vw, 46px);
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.55;
}
.hero__glow--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.42), transparent 68%);
  top: -180px; inset-inline-end: -120px;
  animation: floatGlow 14s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(10, 157, 116, 0.32), transparent 68%);
  bottom: -190px; inset-inline-start: -140px;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}
@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, 40px, 0) scale(1.14); }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}
.eyebrow i { color: var(--mint); }

.hero__title {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  line-height: 1.22;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text);
}
.hero__title .grad-text { display: block; }
.hero__title-sub {
  display: block;
  font-size: clamp(1.35rem, 4vw, 2.6rem);
  color: var(--text);
  margin-top: 6px;
  line-height: 1.4;
}

.hero__lead {
  font-size: clamp(15.5px, 1.7vw, 18.5px);
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero__lead strong { color: var(--text); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.stat dt {
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 2px;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat dd i { font-size: 0.62em; color: var(--mint); }

/* ---- المدار المتحرك ---- */
.hero__visual { display: grid; place-items: center; }
.orbit {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(20, 33, 61, 0.16);
}
.orbit__ring--outer {
  inset: 0;
  animation: spin 46s linear infinite;
}
.orbit__ring--inner {
  inset: 16%;
  border-style: solid;
  border-color: rgba(108, 92, 231, 0.24);
  animation: spin 32s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.orbit::before {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, rgba(108, 92, 231, 0.28), rgba(11, 143, 176, 0.10) 58%, transparent 72%);
  filter: blur(6px);
}

.orbit__badge {
  position: relative;
  width: 33%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 34%;
  font-size: clamp(30px, 6vw, 52px);
  color: #fff;
  background: linear-gradient(140deg, var(--violet), var(--cyan));
  box-shadow: 0 22px 48px rgba(108, 92, 231, 0.36), inset 0 1px 0 rgba(255,255,255,0.45);
  animation: badgePulse 5.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes badgePulse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(6deg); }
}

.orbit__node {
  position: absolute;
  width: 15.5%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28%;
  font-size: clamp(14px, 2.4vw, 20px);
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  z-index: 3;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.orbit__node:hover {
  transform: scale(1.12);
  border-color: rgba(10, 157, 116, 0.45);
}
.orbit__node--1 { top: 0%;    left: 50%;  margin-left: -7.75%; color: var(--mint); }
.orbit__node--2 { top: 22%;   right: 1%;  color: var(--gold); }
.orbit__node--3 { bottom: 22%; right: 1%; color: var(--cyan); }
.orbit__node--4 { bottom: 0%; left: 50%;  margin-left: -7.75%; color: var(--violet); }
.orbit__node--5 { bottom: 22%; left: 1%;  color: var(--rose); }
.orbit__node--6 { top: 22%;   left: 1%;   color: var(--mint); }

.hero__strip {
  margin-top: clamp(34px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero__strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-soft);
  padding: 6px 4px;
  text-align: center;
}
.hero__strip span i { color: var(--mint); font-size: 15px; }
.hero__strip span + span { border-inline-start: 1px solid var(--line); }

/* ---------- 6. الأقسام ---------- */
.section {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0;
}
.section--reports { background: linear-gradient(180deg, transparent, rgba(238, 243, 251, 0.85) 18%, rgba(238, 243, 251, 0.85) 82%, transparent); }
.section--vision { background: linear-gradient(180deg, transparent, rgba(228, 236, 248, 0.65) 20%, rgba(228, 236, 248, 0.65) 80%, transparent); }
.section--dedication { background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.9) 22%, rgba(255, 250, 240, 0.9) 78%, transparent); }
.section--researcher { background: linear-gradient(180deg, transparent, rgba(238, 243, 251, 0.8) 20%, rgba(238, 243, 251, 0.8) 80%, transparent); }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 54px);
  text-align: center;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--mint);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(10, 157, 116, 0.28);
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.55rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-soft);
  font-size: clamp(14.5px, 1.6vw, 17px);
  margin: 0;
}
.section-sub strong { color: var(--mint); font-weight: 700; }

/* ---------- 7. بوابة المنصة (بطاقات) ---------- */
.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
/* ثلاثة أبواب: تتوزّع على صف واحد في الشاشات الواسعة */
.gate-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .gate-grid--three { grid-template-columns: 1fr; }
}
.gate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gate-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 160px; height: 160px;
  background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gate-card:hover,
.gate-card:focus-visible {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: var(--shadow);
}
.gate-card:hover::before { opacity: 1; }

.gate-card__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 23px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  transition: transform 0.4s var(--ease);
}
.gate-card:hover .gate-card__icon { transform: rotate(-6deg) scale(1.06); }

.gate-card h3 { font-size: 1.22rem; margin: 4px 0 0; }
.gate-card p { color: var(--text-soft); font-size: 14.5px; margin: 0; flex: 1; }
.gate-card p strong { color: var(--text); }
.gate-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}
.gate-card__link i { transition: transform 0.3s var(--ease); }
.gate-card:hover .gate-card__link i { transform: translateX(-5px); }

/* ---------- 8. شريط أدوات التقارير ---------- */
.reports-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.28s var(--ease);
}
.chip i { font-size: 12.5px; opacity: 0.9; }
.chip:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(10, 157, 116, 0.26);
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  min-width: 260px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.search:focus-within {
  border-color: rgba(10, 157, 116, 0.5);
  box-shadow: 0 0 0 4px rgba(10, 157, 116, 0.10);
}
.search i { color: var(--text-mute); font-size: 14px; }
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
}
.search input::placeholder { color: var(--text-mute); }

/* ---------- 9. بطاقات التقارير ---------- */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.report-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.report-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 88%);
  opacity: 0.9;
}
.report-card:hover,
.report-card:focus-within {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: var(--shadow);
}

.report-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 24px 0;
}
.report-card__icon {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 17px;
  font-size: 21px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  transition: transform 0.4s var(--ease);
}
.report-card:hover .report-card__icon { transform: scale(1.07) rotate(-5deg); }

.report-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  white-space: nowrap;
}

.report-card__body { padding: 16px 24px 20px; flex: 1; display: flex; flex-direction: column; }
.report-card__title { font-size: 1.13rem; margin: 0 0 8px; line-height: 1.5; }
.report-card__desc {
  font-size: 14.2px;
  color: var(--text-soft);
  margin: 0 0 16px;
  flex: 1;
}

.report-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  font-size: 12.5px;
  color: var(--text-mute);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.report-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.report-card__meta i { color: var(--accent); opacity: 0.9; }

.report-card__actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px 22px;
  flex-wrap: wrap;
}
.report-card__actions .btn { flex: 1; justify-content: center; padding: 11px 12px; font-size: 14px; }

.btn--brief {
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 157, 116, 0.24);
}
.btn--brief:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(10, 157, 116, 0.34); }

.btn--full {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--full:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 92, 231, 0.5);
  background: rgba(108, 92, 231, 0.06);
}

.btn--link {
  background: none;
  border: 1px dashed var(--line-strong);
  color: var(--text-mute);
  font-size: 13px;
  flex: 1 1 100%;
}
.btn--link:hover { color: var(--cyan); border-color: rgba(11, 143, 176, 0.5); }

.empty-state {
  text-align: center;
  color: var(--text-mute);
  padding: 46px 20px;
  font-size: 15.5px;
}
.empty-state i { display: block; font-size: 30px; margin-bottom: 12px; opacity: 0.7; }

/* ---------- 10. رؤية 2030 ---------- */
.vision-stack {
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
  max-width: 940px;
  margin-inline: auto;
}
.vision-panel {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 300px at 88% 0%, rgba(10, 157, 116, 0.10), transparent 70%),
    #fff;
  border: 1px solid rgba(10, 157, 116, 0.26);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.vision-panel::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mint), var(--cyan) 55%, var(--violet));
}
.vision-copy .section-title { text-align: start; margin-bottom: 16px; }
.vision-panel > p { color: var(--text-soft); margin-bottom: 26px; }
.vision-panel > p strong { color: var(--mint); }

.vision-points { display: grid; gap: 14px; margin-bottom: 26px; }
.vision-points li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.vision-points li:hover { border-color: rgba(10, 157, 116, 0.35); transform: translateX(-5px); }
.vision-points i { color: var(--mint); margin-top: 6px; font-size: 15px; flex-shrink: 0; }
.vision-points div { font-size: 14.7px; color: var(--text-soft); }
.vision-points strong { color: var(--text); display: block; margin-bottom: 2px; }

.vision-quote {
  position: relative;
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(189, 127, 11, 0.28);
  background: linear-gradient(140deg, rgba(189, 127, 11, 0.08), rgba(189, 127, 11, 0.02));
  color: #7a5306;
  font-size: 15.5px;
  font-weight: 500;
}
.vision-quote i { color: var(--gold); opacity: 0.6; margin-inline-end: 8px; }

/* شريط 2030 المختصر */
.vision-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(100deg, rgba(10, 157, 116, 0.10), rgba(108, 92, 231, 0.09)),
    #fff;
  border: 1px solid rgba(10, 157, 116, 0.24);
  box-shadow: var(--shadow-xs);
}
.vision-banner__year {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--mint), var(--cyan) 58%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.vision-banner__label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 1.5px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--line-strong);
}

/* ---------- 11. الإهداء ---------- */
.dedication-card {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(34px, 5.5vw, 62px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(189, 127, 11, 0.10), transparent 68%),
    #fffdf8;
  border: 1px solid rgba(189, 127, 11, 0.26);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dedication-card__corner {
  position: absolute;
  width: 74px; height: 74px;
  border: 2px solid rgba(189, 127, 11, 0.32);
}
.dedication-card__corner--tl {
  top: 16px; inset-inline-start: 16px;
  border-inline-end: 0; border-bottom: 0;
  border-start-start-radius: 16px;
}
.dedication-card__corner--br {
  bottom: 16px; inset-inline-end: 16px;
  border-inline-start: 0; border-top: 0;
  border-end-end-radius: 16px;
}
.dedication-card__mark {
  font-size: clamp(26px, 4vw, 40px);
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 14px;
  display: inline-block;
}
.dedication-card__intro {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-soft);
  margin-bottom: 14px;
}
.dedication-card__name {
  font-size: clamp(1.5rem, 4.4vw, 2.5rem);
  margin: 0 0 26px;
  line-height: 1.45;
}
.dedication-card__name-fill {
  background: linear-gradient(100deg, #b07a06, #d29a2a 40%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  border-bottom: 2px dashed rgba(189, 127, 11, 0.35);
  padding-bottom: 3px;
}
.dedication-card__body {
  max-width: 66ch;
  margin-inline: auto;
  color: var(--text-soft);
  font-size: clamp(14.5px, 1.7vw, 16.5px);
  line-height: 2.05;
}
.dedication-card__body p:last-child { margin-bottom: 0; }

.dedication-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(189, 127, 11, 0.18);
}
.dedication-card__sign {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gold);
}
.dedication-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-mute);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
}

/* ---------- 12. الباحثة والتواصل ---------- */
.researcher-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 40px);
  align-items: center;
  padding: clamp(26px, 4.5vw, 46px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.researcher-card__avatar {
  width: clamp(78px, 10vw, 108px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 32%;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  background: linear-gradient(140deg, var(--violet), var(--cyan));
  box-shadow: 0 18px 40px rgba(108, 92, 231, 0.28);
}
.researcher-card__name { font-size: clamp(1.25rem, 3vw, 1.75rem); margin: 0 0 4px; }
.researcher-card__role {
  font-size: 14.5px;
  color: var(--mint);
  font-weight: 700;
  margin: 0 0 14px;
}
.researcher-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 18px;
}
.researcher-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.7px;
  color: var(--text-soft);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.researcher-meta i { color: var(--violet); font-size: 11.5px; }

.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  transition: all 0.28s var(--ease);
}
.contact-btn i { font-size: 15px; }
.contact-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.5);
  box-shadow: var(--shadow-sm);
}
.contact-btn--mail { background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; border-color: transparent; }
.contact-btn--mail:hover { box-shadow: 0 14px 30px rgba(108, 92, 231, 0.32); }
.contact-btn--wa { color: #0b7a4b; border-color: rgba(11, 122, 75, 0.3); }

/* ---------- 13. المشروع الختامي ---------- */
.final-wrap { display: grid; gap: 22px; }

.final-placeholder {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 260px at 12% 0%, rgba(11, 143, 176, 0.10), transparent 70%),
    #fff;
  border: 1.5px dashed rgba(11, 143, 176, 0.38);
  box-shadow: var(--shadow-xs);
}
.final-placeholder__icon {
  width: clamp(66px, 9vw, 92px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 26px;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--cyan);
  background: rgba(11, 143, 176, 0.08);
  border: 1px solid rgba(11, 143, 176, 0.28);
  animation: badgePulse 6s ease-in-out infinite;
}
.final-placeholder h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin: 0 0 8px; }
.final-placeholder p { color: var(--text-soft); margin: 0 0 16px; font-size: 15px; }

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(189, 127, 11, 0.09);
  border: 1px solid rgba(189, 127, 11, 0.3);
}

.final-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.final-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.final-slot:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.final-slot__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 13px;
  font-size: 17px;
  color: var(--cyan);
  background: rgba(11, 143, 176, 0.08);
  border: 1px solid rgba(11, 143, 176, 0.22);
}
.final-slot strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.final-slot span { font-size: 12.7px; color: var(--text-mute); }

/* حالة المشروع عند إضافة رابط */
.final-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(10, 157, 116, 0.07), #fff);
  border: 1px solid rgba(10, 157, 116, 0.3);
  box-shadow: var(--shadow-sm);
}
.final-ready h3 { margin: 0 0 6px; }
.final-ready p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.final-ready__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 13ب. بطاقات ألعاب المشروع ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
@media (max-width: 880px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); }
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon body"
    "link link";
  gap: 18px 20px;
  align-items: start;
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%),
    #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.game-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #fff));
}
.game-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow);
}

.game-card__no {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 22%, #fff);
  pointer-events: none;
  user-select: none;
}

.game-card__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: clamp(62px, 8vw, 78px);
  height: clamp(62px, 8vw, 78px);
  border-radius: 27%;
  font-size: clamp(25px, 3.4vw, 32px);
  color: #fff;
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform 0.45s var(--ease);
}
.game-card:hover .game-card__icon { transform: rotate(-6deg) scale(1.06); }

.game-card__body { grid-area: body; display: grid; gap: 8px; align-content: start; min-width: 0; }

.game-card__tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.8px;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 78%, #12203a);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.game-card__tag i { font-size: 10.5px; }

.game-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.36rem);
  margin: 0;
  line-height: 1.5;
  color: var(--text);
}
.game-card__desc {
  margin: 0;
  font-size: 14.4px;
  line-height: 1.85;
  color: var(--text-soft);
}

.game-card__link {
  grid-area: link;
  justify-self: start;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 52%, #12203a));
  border: 0;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 30%, transparent);
  margin-top: 4px;
}

@media (max-width: 560px) {
  .game-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "body"
      "link";
    text-align: center;
    justify-items: center;
  }
  .game-card__no { inset-inline-start: auto; inset-inline-end: 20px; }
  .game-card__tag { justify-self: center; }
  .game-card__link { justify-self: center; width: 100%; justify-content: center; }
}

/* ---------- 14. الفوتر ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(38px, 5vw, 58px);
  background: linear-gradient(180deg, transparent, #eef3fb);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand strong { font-family: var(--font-display); font-size: 16px; display: block; color: var(--text); }
.footer-brand p { margin: 2px 0 0; font-size: 13px; color: var(--text-mute); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-soft);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
}
.footer-nav a:hover {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.footer-nav i { font-size: 12px; color: var(--mint); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: 12.7px; color: var(--text-mute); }
.footer-bottom__note { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom__note i { color: var(--gold); }

/* ---------- 15. النافذة المنبثقة (Modal) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 34px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.42);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 980px);
  max-height: min(92vh, 1000px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(22px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.35s var(--ease);
  overflow: hidden;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.modal__title-wrap { display: flex; align-items: flex-start; gap: 14px; }
.modal__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 18px;
  color: var(--violet);
  background: rgba(108, 92, 231, 0.10);
  border: 1px solid rgba(108, 92, 231, 0.26);
}
.modal__cat {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mint);
  margin: 0 0 2px;
}
.modal__head h2 { font-size: clamp(1.05rem, 2.3vw, 1.4rem); margin: 0; line-height: 1.5; }

.modal__close {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 17px;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.modal__close:hover {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
  transform: rotate(90deg);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-wrap: wrap;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.28s var(--ease);
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(10, 157, 116, 0.24);
}
.tab i { font-size: 13px; }

.modal__body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 28px) clamp(24px, 3.5vw, 34px);
  overscroll-behavior: contain;
  background: #fff;
}
.modal__body::-webkit-scrollbar { width: 9px; }
.modal__body::-webkit-scrollbar-track { background: var(--surface-2); }
.modal__body::-webkit-scrollbar-thumb {
  background: rgba(108, 92, 231, 0.28);
  border-radius: 9px;
}

/* --- محتوى العرض المبسّط --- */
.brief-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.brief-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.brief-pill i { color: var(--mint); font-size: 11.5px; }

.brief-summary {
  font-size: 15.5px;
  color: var(--text-soft);
  line-height: 1.95;
  padding: 18px 20px;
  border-inline-start: 3px solid var(--mint);
  border-radius: var(--radius-sm);
  background: rgba(10, 157, 116, 0.055);
  margin-bottom: 24px;
}

.brief-block + .brief-block { margin-top: 24px; }
.brief-block h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  margin: 0 0 14px;
  color: var(--text);
}
.brief-block h4 i { color: var(--violet); font-size: 14px; }

.tpoint-list { display: grid; gap: 10px; }
.tpoint {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
  align-items: flex-start;
}
.tpoint__num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--mint);
  margin-top: 2px;
}

.keyword-row { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.7px;
  color: var(--cyan);
  background: rgba(11, 143, 176, 0.08);
  border: 1px solid rgba(11, 143, 176, 0.24);
}

.brief-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

/* --- فتح الملف الأصلي (بدون رسم داخلي) --- */
.open-file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(108, 92, 231, 0.06), #fff);
  box-shadow: var(--shadow-xs);
}
.open-file__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 22px;
  color: var(--rose);
  background: rgba(217, 74, 122, 0.10);
  border: 1px solid rgba(217, 74, 122, 0.24);
}
.open-file__text { display: grid; gap: 3px; min-width: 0; }
.open-file__text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}
.open-file__text span { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; }

@media (max-width: 480px) {
  .open-file { flex-direction: column; text-align: center; }
  .open-file__icon { margin-inline: auto; }
}

/* --- العرض الكامل (Drive embed) --- */
.full-embed {
  position: relative;
  width: 100%;
  height: clamp(430px, 66vh, 720px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-xs);
}
.full-embed iframe,
.full-embed object,
.full-embed embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.full-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.2px;
  color: var(--text-mute);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.full-note i { color: var(--gold); margin-top: 4px; }

.full-missing {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: 54px 24px;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(189, 127, 11, 0.35);
  background: rgba(189, 127, 11, 0.045);
}
.full-missing i { font-size: 36px; color: var(--gold); opacity: 0.85; }
.full-missing p { margin: 0; color: var(--text-soft); font-size: 14.5px; max-width: 46ch; }
.full-missing code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--cyan);
  background: rgba(11, 143, 176, 0.09);
  padding: 3px 8px;
  border-radius: 6px;
  direction: ltr;
  display: inline-block;
}

/* ---------- 16. الظهور عند التمرير ---------- */
/* الحالة المخفية تُطبَّق فقط عند تفعيلها من JS (anim-ready)
   حتى يبقى المحتوى مرئيًا إذا تعطّلت JavaScript */
.anim-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .anim-ready .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. الاستجابة للشاشات ---------- */
@media (max-width: 1080px) {
  .nav { gap: 0; }
  .nav__link { padding: 9px 9px; font-size: 14.2px; }
  .header-actions .btn--sm { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset-inline: 16px;
    top: calc(var(--header-h) + 10px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    max-height: calc(100vh - var(--header-h) - 30px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 13px 16px; font-size: 15.5px; border-radius: 12px; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: rgba(10, 157, 116, 0.10); }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 320px; margin-inline: auto; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { text-align: start; }
  .hero__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__strip span:nth-child(3) { border-inline-start: 0; }

  .vision-grid { grid-template-columns: 1fr; }
  .vision-side { order: -1; }
  .vision-number { padding: 26px 20px; }

  .final-placeholder { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .final-ready { grid-template-columns: 1fr; }
  .final-ready__actions { justify-content: flex-start; }

  .researcher-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .researcher-meta, .contact-row { justify-content: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .header-inner { width: min(100% - 28px, 1320px); }
  .brand__text small { display: none; }

  .hero__stats { gap: 8px; padding-top: 16px; }
  .stat dt { font-size: 11.5px; }
  .hero__strip span { font-size: 12.8px; gap: 6px; padding: 4px 2px; }

  .reports-toolbar { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; width: 100%; }
  .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }

  .reports-grid { grid-template-columns: 1fr; }

  .pillar-grid { grid-template-columns: 1fr; }

  .dedication-card__footer { flex-direction: column; gap: 10px; }

  .modal { padding: 0; }
  .modal__dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
  .modal__head { padding: 16px 18px 14px; }
  .tabs { padding: 12px 18px; gap: 6px; }
  .tab { padding: 10px 16px; font-size: 13.5px; flex: 1; justify-content: center; }
  .full-embed { height: 60vh; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 1.85rem; }
  .report-card__actions { flex-direction: column; }
  .report-card__actions .btn { width: 100%; }
}

/* ---------- 18. الطباعة ---------- */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .hero__visual, .hero__strip, .site-footer,
  .reports-toolbar, .report-card__actions, .modal__close, .tabs { display: none !important; }
  .anim-ready .reveal { opacity: 1; transform: none; }
}
