/* ============================================================
   آفاق الغيث للاستشارات الهندسية — نظام التصميم الرئيسي
   المرجع: PROJECT_BRAIN.md §3 — لا ألوان خارج التوكنز
   ============================================================ */

/* ==== 1. التوكنز ==== */
:root {
  /* تركوازي (الأساسي) */
  --teal:#1a5f5a; --teal2:#247872; --teal3:#2d9e96; --teal-pale:#e6f4f3;
  /* ذهبي عتيق (أكسنت + أرقام مالية) */
  --gold:#b8952a; --gold2:#d4ac3a; --gold3:#f0ca60; --gold-pale:#fdf8ec;
  /* كحلي/حبر */
  --navy:#0d1f2d; --navy2:#152b3e; --ink:#1c2a35;
  /* محايدات */
  --muted:#5a6e7a; --light:#f4f8f7; --white:#ffffff; --border:#cdddd9;
  /* دلالي */
  --danger:#c0392b; --success:#1a8c6e; --warning:#d4892a;
  /* ظلال */
  --shadow:0 4px 24px rgba(13,31,45,.10); --shadow-lg:0 12px 48px rgba(13,31,45,.15);
  /* مسافات */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-6:24px;
  --sp-8:32px; --sp-12:48px; --sp-16:64px; --sp-24:96px;
  /* زوايا */
  --r-sm:8px; --r-md:14px; --r-lg:22px; --r-full:999px;
  /* خطوط */
  --f-head:'Cairo', sans-serif; --f-body:'Tajawal', sans-serif;
}

/* ==== 2. إعادة ضبط وأساسيات ==== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.35; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--ink); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal2); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0;
  background: var(--gold); color: var(--navy); padding: var(--sp-2) var(--sp-4);
  z-index: 200; border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { inset-inline-start: var(--sp-4); }

::selection { background: var(--teal-pale); color: var(--teal); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==== 3. الأزرار ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--f-head); font-weight: 700; font-size: 1rem;
  padding: 12px 28px; border-radius: var(--r-full);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  background: var(--teal); color: var(--white);
}
.btn:hover { background: var(--teal2); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold2); color: var(--navy); }

.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-pale); color: var(--teal); }

.btn-light { background: var(--white); color: var(--teal); }
.btn-light:hover { background: var(--teal-pale); color: var(--teal); }

.btn-pk { background: var(--pk, var(--teal)); color: var(--white); }
.btn-pk:hover { filter: brightness(1.1); color: var(--white); }

.btn-sm { padding: 8px 20px; font-size: .92rem; }
.btn-lg { padding: 15px 38px; font-size: 1.08rem; }

/* ==== 4. الهيدر والتنقل ==== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-3); }

.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--f-head); font-weight: 900; font-size: 1.15rem; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: .78rem; }

.main-nav ul { display: flex; gap: var(--sp-1); }
.main-nav a {
  display: block; padding: 8px 13px; border-radius: var(--r-sm);
  font-weight: 500; color: var(--ink); font-size: .98rem;
}
.main-nav a:hover { background: var(--teal-pale); color: var(--teal); }
.main-nav a.active { background: var(--teal); color: var(--white); }

.header-cta { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: var(--sp-2);
}
.nav-toggle span { width: 24px; height: 3px; background: var(--navy); border-radius: 2px; transition: .2s; }

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; top: 66px;
    background: var(--white); padding: var(--sp-6);
    transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: var(--sp-2); }
  .main-nav a { font-size: 1.1rem; padding: var(--sp-3) var(--sp-4); }
}

/* ==== 5. Hero البلوبرنت ==== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 55%, var(--teal) 130%);
  color: var(--white);
  padding-block: var(--sp-16) var(--sp-24);
}
.hero::before { /* شبكة بلوبرنت */
  content: ''; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image:
    linear-gradient(rgba(45,158,150,.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,158,150,.9) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero::after { /* قوس الأفق الذهبي */
  content: ''; position: absolute; inset-inline: -10%; bottom: -55%;
  height: 80%; border-radius: 50%;
  border-top: 2px solid rgba(184,149,42,.5);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: var(--sp-12); align-items: center; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--gold3); font-family: var(--f-head); font-weight: 700; font-size: .95rem;
  border: 1px solid rgba(240,202,96,.35); border-radius: var(--r-full);
  padding: 6px 16px; margin-bottom: var(--sp-4);
  background: rgba(184,149,42,.12);
}
.hero h1 { color: var(--white); margin-bottom: var(--sp-4); }
.hero h1 .gold { color: var(--gold3); }
.hero-lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 34rem; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero-creds { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }
.hero-creds span {
  font-size: .82rem; color: rgba(255,255,255,.65);
  border-inline-start: 3px solid var(--gold); padding-inline-start: var(--sp-2);
}

/* بطاقة «اعرف رقمك» داخل الهيرو */
.hero-estimator {
  background: var(--white); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-6); max-width: 430px; width: 100%;
  justify-self: center;
}
.hero-estimator h2 { font-size: 1.25rem; margin-bottom: var(--sp-1); }
.hero-estimator .est-sub { color: var(--muted); font-size: .9rem; margin-bottom: var(--sp-4); }

.est-field { margin-bottom: var(--sp-4); }
.est-field label { display: flex; justify-content: space-between; font-weight: 700; font-size: .92rem; margin-bottom: var(--sp-2); }
.est-field output { color: var(--gold); font-family: var(--f-head); font-weight: 800; }

input[type="range"] {
  width: 100%; accent-color: var(--teal); height: 6px; cursor: pointer;
}

.est-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.est-chip {
  border: 1.5px solid var(--border); background: var(--white); color: var(--ink);
  border-radius: var(--r-full); padding: 6px 16px; cursor: pointer;
  font-family: var(--f-body); font-size: .9rem; transition: .15s;
}
.est-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }

.est-result {
  background: var(--gold-pale); border: 1px dashed var(--gold);
  border-radius: var(--r-md); padding: var(--sp-4); text-align: center;
  margin-block: var(--sp-4);
}
.est-result .est-label { font-size: .85rem; color: var(--muted); }
.est-result .est-value {
  font-family: var(--f-head); font-weight: 900; font-size: 1.9rem; color: var(--gold);
  display: block; line-height: 1.3;
}
.est-result .est-range { font-size: .8rem; color: var(--muted); }
.est-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: var(--sp-3); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-estimator { justify-self: end; }
}

/* ==== 6. الأقسام العامة ==== */
.section { padding-block: var(--sp-16); }
.section-alt { background: var(--light); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.8); }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto var(--sp-12); }
.section-head .kicker {
  color: var(--gold); font-family: var(--f-head); font-weight: 700; font-size: .9rem;
  letter-spacing: .5px; display: block; margin-bottom: var(--sp-2);
}
.section-head p { color: var(--muted); margin-top: var(--sp-3); }

/* ==== 7. الكروت العامة ==== */
.card {
  background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: var(--sp-6);
  border: 1px solid var(--border);
}

.grid-3 { display: grid; gap: var(--sp-6); }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* رحلة القلق → المستثمر */
.journey { display: grid; gap: var(--sp-6); align-items: stretch; }
@media (min-width: 900px) { .journey { grid-template-columns: 1fr auto 1fr; } }
.journey-card { padding: var(--sp-8); border-radius: var(--r-lg); }
.journey-before { background: var(--white); border: 1.5px solid var(--border); }
.journey-before h3 { color: var(--danger); }
.journey-after { background: var(--teal); color: var(--white); box-shadow: var(--shadow-lg); }
.journey-after h3, .journey-after strong { color: var(--gold3); }
.journey-after p, .journey-after li { color: rgba(255,255,255,.88); }
.journey-card ul { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.journey-card li { padding-inline-start: var(--sp-6); position: relative; }
.journey-card li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%;
}
.journey-before li::before { background: var(--danger); opacity: .5; }
.journey-after li::before { background: var(--gold3); }
.journey-arrow {
  align-self: center; justify-self: center; color: var(--gold);
  font-size: 2rem; transform: rotate(0deg);
}
@media (max-width: 899px) { .journey-arrow { transform: rotate(90deg); } }

/* أرقام/عدّادات */
.stats { display: grid; gap: var(--sp-6); text-align: center; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--f-head); font-weight: 900; font-size: 2.4rem; color: var(--gold3);
  display: block; line-height: 1.2;
}
.stat-label { color: rgba(255,255,255,.75); font-size: .95rem; }

/* خدمات مختصرة */
.svc-icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: var(--teal-pale); color: var(--teal);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.card h3 { margin-bottom: var(--sp-2); }
.card .more { font-weight: 700; font-size: .92rem; display: inline-block; margin-top: var(--sp-3); }

/* شريط CTA */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal2) 100%);
  border-radius: var(--r-lg); padding: var(--sp-12) var(--sp-8);
  text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: .1;
  background-image:
    linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 38px 38px;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: var(--sp-6); }

/* ==== 8. كروت الباقات ==== */
.pkg-grid { display: grid; gap: var(--sp-6); align-items: stretch; }
@media (min-width: 640px)  { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }

.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-lg);
  border: 1.5px solid var(--border); border-top: 5px solid var(--pk);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard-featured { border-color: var(--gold); border-top-color: var(--gold); box-shadow: var(--shadow-lg); }

.pcard-badge {
  position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--gold); color: var(--navy);
  font-family: var(--f-head); font-weight: 800; font-size: .82rem;
  padding: 4px 18px; border-radius: var(--r-full); white-space: nowrap;
}

.pcard-head { text-align: center; margin-bottom: var(--sp-4); }
.pcard-icon {
  width: 56px; height: 56px; margin: 0 auto var(--sp-3);
  border-radius: var(--r-md); display: grid; place-items: center;
  background: color-mix(in srgb, var(--pk) 12%, white); color: var(--pk);
}
.pcard-name { color: var(--pk); font-size: 1.3rem; }
.pcard-tagline { color: var(--muted); font-size: .9rem; }

.pcard-price {
  text-align: center; padding-block: var(--sp-3);
  border-block: 1px dashed var(--border); margin-bottom: var(--sp-4);
}
.pcard-price small { color: var(--muted); font-size: .82rem; }
.pcard-amount { font-family: var(--f-head); font-weight: 900; font-size: 1.7rem; color: var(--gold); display: inline-block; margin-inline: var(--sp-1); }

.pcard-features { flex: 1; display: grid; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.pcard-features li { position: relative; padding-inline-start: var(--sp-6); font-size: .95rem; }
.pcard-features li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--pk); font-weight: 900;
}
.pcard-cta { width: 100%; }

/* جدول مقارنة الباقات */
.pkg-compare-wrap { overflow-x: auto; margin-top: var(--sp-12); }
.pkg-compare { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.pkg-compare th, .pkg-compare td { padding: var(--sp-3) var(--sp-4); text-align: center; border-bottom: 1px solid var(--border); font-size: .93rem; }
.pkg-compare thead th { background: var(--navy); color: var(--white); font-family: var(--f-head); }
.pkg-compare tbody th { text-align: start; font-weight: 500; color: var(--ink); background: var(--light); }
.pkg-compare .yes { color: var(--success); font-weight: 900; }
.pkg-compare .no { color: var(--border); }

/* ==== 9. الفوتر ==== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); margin-top: var(--sp-16); }
.footer-grid { display: grid; gap: var(--sp-8); padding-block: var(--sp-12); }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-col h3 { color: var(--white); font-size: 1.15rem; margin-block: var(--sp-3) var(--sp-2); }
.footer-col h4 { color: var(--gold3); font-size: 1rem; margin-bottom: var(--sp-4); }
.footer-tagline { color: rgba(255,255,255,.65); font-size: .92rem; margin-bottom: var(--sp-4); }
.footer-creds { display: grid; gap: var(--sp-1); font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-links { display: grid; gap: var(--sp-2); }
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color: var(--gold3); }
.footer-team-name { color: var(--white); font-weight: 700; }
.footer-contact li { font-size: .92rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--sp-4); font-size: .85rem; text-align: center; color: rgba(255,255,255,.5); }

/* زر واتساب العائم */
.wa-float {
  position: fixed; bottom: var(--sp-6); inset-inline-start: var(--sp-6); z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--success); color: var(--white);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); color: var(--white); }

/* ==== 10. صفحات «قريباً» ==== */
.soon-hero { padding-block: var(--sp-24); background: var(--light); text-align: center; }
.soon-inner { max-width: 36rem; }
.soon-mark { color: var(--teal); margin-bottom: var(--sp-4); display: inline-block; }
.soon-desc { color: var(--muted); margin-block: var(--sp-3); font-size: 1.1rem; }
.soon-phase {
  display: inline-block; background: var(--gold-pale); color: var(--gold);
  border: 1px solid var(--gold2); border-radius: var(--r-full);
  padding: 4px 18px; font-size: .85rem; font-weight: 700; margin-bottom: var(--sp-6);
}
.soon-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ==== 11. صفحة التواصل ==== */
.page-hero {
  background: linear-gradient(150deg, var(--navy), var(--navy2));
  color: var(--white); padding-block: var(--sp-12); text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.75); max-width: 38rem; margin: var(--sp-3) auto 0; }

.team-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card { text-align: center; }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto var(--sp-4);
  background: var(--teal-pale); color: var(--teal);
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 900; font-size: 1.6rem;
}
.team-role { color: var(--gold); font-weight: 700; font-size: .9rem; margin-bottom: var(--sp-3); }
.team-actions { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }

.contact-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { text-align: center; }
.contact-card .svc-icon { margin-inline: auto; }
.contact-card a.big { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; }

/* ==== 12. النماذج العامة ==== */
.field { display: grid; gap: var(--sp-1); }
.field > label { font-weight: 700; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .8rem; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 16px; font-family: var(--f-body); font-size: 1rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--white);
  color: var(--ink); transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-pale); }
.form-msg { border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); font-weight: 700; display: none; }
.form-msg.ok { display: block; background: var(--teal-pale); color: var(--success); }
.form-msg.err { display: block; background: var(--gold-pale); color: var(--danger); }

/* ==== 13. الحاسبات (tools) ==== */
.tool-layout { display: grid; gap: var(--sp-8); align-items: start; }
@media (min-width: 992px) { .tool-layout { grid-template-columns: 1fr 1.1fr; } }
.tool-form { display: grid; gap: var(--sp-5, 20px); }
.tool-result { position: sticky; top: 90px; }

.num-strip {
  background: var(--navy); color: var(--white); border-radius: var(--r-md);
  padding: var(--sp-6); text-align: center; margin-bottom: var(--sp-4);
}
.num-strip .label { color: rgba(255,255,255,.7); font-size: .9rem; }
.num-strip .value {
  font-family: var(--f-head); font-weight: 900; font-size: 2.2rem; color: var(--gold3);
  display: block; line-height: 1.4;
}
.num-strip .sub { color: rgba(255,255,255,.6); font-size: .82rem; }

.breakdown { width: 100%; border-collapse: collapse; }
.breakdown th, .breakdown td { padding: 9px var(--sp-3); border-bottom: 1px solid var(--border); font-size: .92rem; text-align: start; }
.breakdown td:last-child { text-align: end; font-family: var(--f-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.breakdown tfoot td { font-weight: 900; color: var(--gold); border-top: 2px solid var(--navy); font-size: 1rem; }
.breakdown .bar { height: 5px; border-radius: 3px; background: var(--teal-pale); overflow: hidden; margin-top: 4px; }
.breakdown .bar i { display: block; height: 100%; background: var(--teal3); }

.kpi-row { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.kpi {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: var(--sp-4); text-align: center;
}
.kpi .k-val { font-family: var(--f-head); font-weight: 900; font-size: 1.35rem; color: var(--teal); display: block; }
.kpi.gold .k-val { color: var(--gold); }
.kpi.ok .k-val { color: var(--success); }
.kpi.bad .k-val { color: var(--danger); }
.kpi .k-lbl { color: var(--muted); font-size: .8rem; }

.tools-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.tool-card .svc-icon { margin-bottom: 0; }
.tool-card p { flex: 1; color: var(--muted); font-size: .95rem; }

/* مودال lead */
.modal-back {
  position: fixed; inset: 0; background: rgba(13,31,45,.55); z-index: 150;
  display: none; align-items: center; justify-content: center; padding: var(--sp-4);
}
.modal-back.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: min(440px, 100%); padding: var(--sp-6); display: grid; gap: var(--sp-4);
  max-height: 90vh; overflow-y: auto;
}
.modal h3 { color: var(--teal); }
.modal-close { justify-self: end; background: none; border: 0; font-size: 1.4rem; color: var(--muted); cursor: pointer; }

/* ==== 14. مركز المعرفة ==== */
.acc { border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.acc + .acc { margin-top: var(--sp-3); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5, 20px); font-family: var(--f-head); font-weight: 800; color: var(--navy);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; margin-inline-start: auto; font-size: 1.4rem; color: var(--gold); transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 var(--sp-5, 20px) var(--sp-5, 20px); color: var(--ink); }
.acc .acc-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal); color: var(--white); display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 800; font-size: .95rem;
}

.vs-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .vs-grid { grid-template-columns: 1fr 1fr; } }
.vs-card { border-radius: var(--r-lg); padding: var(--sp-6); }
.vs-card.bone { background: var(--navy); color: var(--white); }
.vs-card.bone h3, .vs-card.bone strong { color: var(--teal3); }
.vs-card.bone li, .vs-card.bone p { color: rgba(255,255,255,.85); }
.vs-card.finish { background: var(--gold-pale); border: 1.5px solid var(--gold2); }
.vs-card.finish h3 { color: var(--gold); }
.vs-card ul { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.vs-card li { padding-inline-start: var(--sp-5, 20px); position: relative; font-size: .95rem; }
.vs-card li::before { content: '◆'; position: absolute; inset-inline-start: 0; font-size: .7rem; top: .4em; color: var(--gold); }

.flag-list { display: grid; gap: var(--sp-3); }
.flag {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--white); border: 1.5px solid var(--border); border-inline-start: 4px solid var(--danger);
  border-radius: var(--r-sm); padding: var(--sp-4);
}
.flag strong { color: var(--danger); display: block; }
.flag p { font-size: .92rem; color: var(--muted); }

/* ==== 15. الترفيه الهندسي ==== */
.game-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; margin-bottom: var(--sp-8); }
.game-tab {
  font-family: var(--f-head); font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 10px 24px; border-radius: var(--r-full); border: 2px solid var(--border); background: var(--white); color: var(--ink);
}
.game-tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.game-panel { display: none; }
.game-panel.active { display: block; }

.q-card { max-width: 620px; margin-inline: auto; text-align: center; }
.q-card .q-text { font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); margin-bottom: var(--sp-6); }
.q-opts { display: grid; gap: var(--sp-3); }
.q-opt {
  padding: var(--sp-4); border: 2px solid var(--border); border-radius: var(--r-md);
  background: var(--white); cursor: pointer; font-family: var(--f-body); font-size: 1rem; text-align: center;
  transition: .15s;
}
.q-opt:hover { border-color: var(--teal3); }
.q-opt.correct { border-color: var(--success); background: var(--teal-pale); font-weight: 700; }
.q-opt.wrong { border-color: var(--danger); background: var(--gold-pale); }
.q-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin-bottom: var(--sp-4); }
.q-progress { height: 6px; background: var(--teal-pale); border-radius: 3px; overflow: hidden; margin-bottom: var(--sp-6); }
.q-progress i { display: block; height: 100%; background: var(--gold); transition: width .3s; }

.badge-card {
  text-align: center; background: linear-gradient(150deg, var(--navy), var(--navy2));
  color: var(--white); border-radius: var(--r-lg); padding: var(--sp-12) var(--sp-6);
}
.badge-medal {
  width: 110px; height: 110px; margin: 0 auto var(--sp-4); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold3), var(--gold));
  display: grid; place-items: center; color: var(--navy);
  font-family: var(--f-head); font-weight: 900; font-size: 2.2rem;
  box-shadow: 0 0 0 8px rgba(184,149,42,.25), var(--shadow-lg);
}
.badge-card h3 { color: var(--gold3); font-size: 1.5rem; margin-bottom: var(--sp-2); }
.badge-card p { color: rgba(255,255,255,.8); }

.score-pill {
  position: fixed; bottom: var(--sp-6); inset-inline-end: var(--sp-6); z-index: 90;
  background: var(--navy); color: var(--gold3); font-family: var(--f-head); font-weight: 800;
  border-radius: var(--r-full); padding: 10px 22px; box-shadow: var(--shadow-lg); font-size: .95rem;
}

/* شريط تخمين */
.guess-photo {
  border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--sp-4);
  background: var(--teal-pale); text-align: center; padding: var(--sp-6);
}
.guess-specs { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-4); }
.guess-specs span { background: var(--light); border: 1px solid var(--border); border-radius: var(--r-full); padding: 4px 14px; font-size: .85rem; }

/* ==== 16. ويزارد الاستشارة ==== */
.wizard { max-width: 640px; margin-inline: auto; }
.wiz-steps { display: flex; justify-content: space-between; margin-bottom: var(--sp-8); position: relative; }
.wiz-steps::before { content: ''; position: absolute; top: 17px; inset-inline: 30px; height: 3px; background: var(--border); z-index: 0; }
.wiz-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.wiz-dot {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto var(--sp-1);
  background: var(--white); border: 3px solid var(--border); color: var(--muted);
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: .95rem;
}
.wiz-step.active .wiz-dot { border-color: var(--teal); color: var(--teal); }
.wiz-step.done .wiz-dot { background: var(--teal); border-color: var(--teal); color: var(--white); }
.wiz-step small { color: var(--muted); font-size: .78rem; display: none; }
@media (min-width: 640px) { .wiz-step small { display: block; } }

.wiz-pane { display: none; animation: wizIn .25s ease; }
.wiz-pane.active { display: grid; gap: var(--sp-4); }
@keyframes wizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wiz-nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); }

.choice-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice {
  border: 2px solid var(--border); border-radius: var(--r-md); background: var(--white);
  padding: var(--sp-4); text-align: center; cursor: pointer; font-family: var(--f-body); font-size: .95rem;
  transition: .15s;
}
.choice[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-pale); font-weight: 700; color: var(--teal); }

/* ==== 17. الخريطة والمشاريع ==== */
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
#site-map { height: 540px; width: 100%; background: var(--teal-pale); }
.map-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-6); }

.pin-marker {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--teal); border: 3px solid var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.pin-marker span { transform: rotate(45deg); font-size: 14px; }
.pin-marker.buy { background: var(--gold); }

.leaflet-popup-content-wrapper { border-radius: var(--r-md) !important; font-family: var(--f-body) !important; direction: rtl; }
.map-pop { text-align: center; min-width: 180px; }
.map-pop strong { font-family: var(--f-head); color: var(--navy); display: block; margin-bottom: 4px; }
.map-pop small { color: var(--muted); display: block; margin-bottom: 8px; }

.proj-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }

.proj-card {
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
  border: 1.5px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.proj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.proj-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--teal-pale); position: relative; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-flag {
  position: absolute; top: var(--sp-3); inset-inline-start: var(--sp-3);
  background: var(--gold); color: var(--navy); font-family: var(--f-head); font-weight: 800;
  font-size: .78rem; padding: 4px 12px; border-radius: var(--r-full);
}
.proj-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.proj-body h3 { font-size: 1.1rem; }
.proj-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: .8rem; color: var(--muted); }
.proj-meta span { background: var(--light); border-radius: var(--r-full); padding: 2px 10px; }
.proj-roi { color: var(--gold); font-size: .85rem; font-weight: 700; margin-top: auto; }

/* معرض Masonry + لايت بوكس */
.masonry { columns: 1; column-gap: var(--sp-4); }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 992px) { .masonry { columns: 3; } }
.masonry figure {
  break-inside: avoid; margin-bottom: var(--sp-4); border-radius: var(--r-md);
  overflow: hidden; cursor: zoom-in; position: relative; box-shadow: var(--shadow);
}
.masonry img { width: 100%; display: block; transition: transform .3s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: var(--sp-2) var(--sp-3);
  background: linear-gradient(transparent, rgba(13,31,45,.85)); color: var(--white); font-size: .82rem;
}
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(13,31,45,.92);
  display: none; align-items: center; justify-content: center; padding: var(--sp-6); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-md); }
.lightbox figcaption { position: absolute; bottom: var(--sp-6); color: var(--white); text-align: center; width: 100%; }

.proj-side { display: grid; gap: var(--sp-3); }
.proj-side .kpi { text-align: start; }

/* الخط الزمني */
.timeline { position: relative; max-width: 720px; margin-inline: auto; padding-inline-start: 34px; }
.timeline::before {
  content: ''; position: absolute; inset-block: 8px; inset-inline-start: 10px;
  width: 3px; background: linear-gradient(var(--teal3), var(--gold));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: var(--sp-8); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; inset-inline-start: -31px; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--teal);
}
.tl-item:last-child::before { border-color: var(--gold); }
.tl-year { font-family: var(--f-head); font-weight: 900; color: var(--gold); font-size: 1.1rem; }
.tl-item h3 { margin-block: 2px var(--sp-1); }
.tl-item p { color: var(--muted); font-size: .95rem; }

/* الشهادات */
.testi-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
.testi {
  background: var(--white); border-radius: var(--r-lg); padding: var(--sp-6);
  border: 1.5px solid var(--border); box-shadow: var(--shadow); position: relative;
}
.testi::before {
  content: '❝'; position: absolute; top: var(--sp-3); inset-inline-end: var(--sp-4);
  font-size: 2.6rem; color: var(--gold2); opacity: .5; line-height: 1;
}
.testi p { font-size: 1rem; margin-bottom: var(--sp-4); }
.testi footer { display: flex; align-items: center; gap: var(--sp-3); }
.testi .t-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-pale); color: var(--teal); display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 800;
}
.testi .t-name { font-weight: 700; color: var(--navy); font-size: .95rem; }
.testi .t-sub { color: var(--muted); font-size: .8rem; }

/* ==== 18. لوحات الإدارة (portal/admin) ==== */
.panel-body { background: var(--light); min-height: 100vh; }
.panel-layout { display: grid; min-height: 100vh; }
@media (min-width: 992px) { .panel-layout { grid-template-columns: 250px 1fr; } }

.panel-side {
  background: var(--navy); color: rgba(255,255,255,.85); padding: var(--sp-6) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-6);
}
.panel-side .brand-text strong { color: var(--white); }
.panel-side .brand-text small { color: rgba(255,255,255,.55); }
.panel-nav { display: grid; gap: 4px; }
.panel-nav a {
  color: rgba(255,255,255,.8); padding: 10px var(--sp-3); border-radius: var(--r-sm);
  font-weight: 500; font-size: .95rem; display: flex; gap: var(--sp-2); align-items: center;
}
.panel-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.panel-nav a.active { background: var(--teal); color: var(--white); }
.panel-nav .sep { border-top: 1px solid rgba(255,255,255,.12); margin-block: var(--sp-2); }
.panel-user { margin-top: auto; font-size: .85rem; color: rgba(255,255,255,.6); }
.panel-user strong { color: var(--gold3); display: block; }

.panel-main { padding: var(--sp-6); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.panel-head h1 { font-size: 1.5rem; }

.kpi-cards { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: var(--sp-6); }
.kpi-card {
  background: var(--white); border-radius: var(--r-md); padding: var(--sp-5, 20px);
  border-inline-start: 5px solid var(--teal); box-shadow: var(--shadow);
}
.kpi-card.gold { border-color: var(--gold); }
.kpi-card.success { border-color: var(--success); }
.kpi-card.danger { border-color: var(--danger); }
.kpi-card .v { font-family: var(--f-head); font-weight: 900; font-size: 1.7rem; color: var(--navy); display: block; }
.kpi-card .l { color: var(--muted); font-size: .85rem; }

.tbl-wrap { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th, .tbl td { padding: 12px var(--sp-4); text-align: start; border-bottom: 1px solid var(--border); font-size: .92rem; }
.tbl thead th { background: var(--teal-pale); color: var(--teal); font-family: var(--f-head); white-space: nowrap; }
.tbl tr:hover td { background: var(--light); }
.tbl .actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.chip { display: inline-block; border-radius: var(--r-full); padding: 3px 12px; font-size: .78rem; font-weight: 700; }
.chip.teal { background: var(--teal-pale); color: var(--teal); }
.chip.gold { background: var(--gold-pale); color: var(--gold); }
.chip.ok { background: #e4f5ef; color: var(--success); }
.chip.bad { background: #fdecea; color: var(--danger); }
.chip.mut { background: var(--light); color: var(--muted); }

.panel-form { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow); padding: var(--sp-6); display: grid; gap: var(--sp-4); }
.form-row { display: grid; gap: var(--sp-4); }
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(var(--cols, 2), 1fr); } }

.flash { border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); font-weight: 700; margin-bottom: var(--sp-4); }
.flash.ok { background: #e4f5ef; color: var(--success); }
.flash.err { background: #fdecea; color: var(--danger); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-4);
  background: linear-gradient(150deg, var(--navy), var(--navy2)); }
.login-card { width: min(420px, 100%); background: var(--white); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-lg); display: grid; gap: var(--sp-4); }

.thumb-sm { width: 74px; height: 54px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--border); }
.repeat-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: var(--sp-2); align-items: center; }

@media print {
  .panel-side, .panel-head .btn, .no-print { display: none !important; }
  .panel-layout { grid-template-columns: 1fr; }
  .panel-body, .panel-main { background: #fff; padding: 0; }
}

/* ==== 19. اللمسات: وضع البلوبرنت + ميزان الماء + البارومتر ==== */

/* --- وضع البلوبرنت: الموقع كله يتحول للوحة مخططات --- */
body.blueprint {
  --white:#102b3a; --light:#0d2331; --ink:#dcefec; --muted:#8fb3ac;
  --border:#1e4a44; --teal-pale:#123a36; --gold-pale:#2b2410;
  --shadow:0 4px 24px rgba(0,0,0,.45); --shadow-lg:0 12px 48px rgba(0,0,0,.55);
  background:#0d1f2d;
}
body.blueprint::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .1;
  background-image:
    linear-gradient(rgba(45,158,150,.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,158,150,.9) 1px, transparent 1px);
  background-size: 46px 46px;
}
body.blueprint h1, body.blueprint h2, body.blueprint h3, body.blueprint h4 { color:#e6f4f3; }
body.blueprint .site-header { background: rgba(13,31,45,.92); border-color:#1e4a44; }
body.blueprint .brand-text strong { color:#e6f4f3; }
body.blueprint .main-nav a { color:#c9e2de; }
body.blueprint .journey-before { background:#102b3a; }
body.blueprint .testi::before { opacity:.3; }
body.blueprint img:not(.thumb-sm) { filter: saturate(.9); }
body.blueprint .pcard, body.blueprint .card, body.blueprint .proj-card, body.blueprint .testi,
body.blueprint .acc, body.blueprint .flag { outline: 1px solid rgba(45,158,150,.25); }

.bp-toggle {
  background: none; border: 1.5px solid var(--border); border-radius: var(--r-full);
  width: 38px; height: 38px; cursor: pointer; font-size: 1.05rem; line-height: 1;
  display: grid; place-items: center; transition: .2s; color: var(--ink);
}
.bp-toggle:hover { border-color: var(--teal); background: var(--teal-pale); }
body.blueprint .bp-toggle { border-color: var(--gold); background: var(--gold-pale); }

/* --- ميزان الماء: مؤشر تقدم القراءة أعلى الصفحة --- */
.level-bar {
  position: fixed; top: 0; inset-inline: 0; height: 5px; z-index: 120;
  background: linear-gradient(90deg, rgba(184,149,42,.15), rgba(45,158,150,.15));
  pointer-events: none;
}
.level-bar .lvl-fill {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 0;
  background: linear-gradient(90deg, var(--teal3), var(--gold));
  transition: width .1s linear;
}
.level-bar .lvl-bubble {
  position: absolute; top: -4px; inset-inline-start: 0; width: 13px; height: 13px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold3), var(--gold));
  border: 2px solid var(--white); box-shadow: var(--shadow);
  transform: translateX(50%); transition: inset-inline-start .1s linear;
}

/* --- بارومتر أسعار القصيم --- */
.baro {
  background: var(--navy); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-6);
  color: var(--white); display: grid; gap: var(--sp-4); position: relative; overflow: hidden;
}
.baro::before {
  content: ''; position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 34px 34px;
}
.baro > * { position: relative; }
.baro-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
.baro-head h3 { color: var(--gold3); font-size: 1.1rem; }
.baro-head small { color: rgba(255,255,255,.55); }
.baro-row { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .baro-row { grid-template-columns: repeat(3, 1fr); } }
.baro-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(45,158,150,.3);
  border-radius: var(--r-md); padding: var(--sp-4); text-align: center;
}
.baro-item .b-name { color: rgba(255,255,255,.75); font-size: .88rem; }
.baro-item .b-val { font-family: var(--f-head); font-weight: 900; font-size: 1.35rem; color: var(--gold3); display: block; }
.baro-item .b-trend { font-size: .78rem; }
.baro-item .b-trend.up { color: var(--warning); }
.baro-item .b-trend.flat { color: var(--success); }

/* زر بطاقة المشاركة */
.share-card-btn { width: 100%; margin-top: var(--sp-2); }

/* --- جناح التصميم والمتابعة (الاستمارة الشاملة + بوابة المالك) --- */
.suite-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .suite-grid { grid-template-columns: 1.15fr .85fr; } }
.suite-card {
  border-radius: var(--r-lg); padding: var(--sp-8); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.suite-main {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 70%, var(--teal) 160%);
  color: var(--white); box-shadow: var(--shadow-lg);
}
.suite-main::before {
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(rgba(45,158,150,.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,158,150,.9) 1px, transparent 1px);
  background-size: 42px 42px;
}
.suite-main > * { position: relative; }
.suite-main h3 { color: var(--gold3); font-size: 1.5rem; }
.suite-main p { color: rgba(255,255,255,.82); }
.suite-steps { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.suite-steps span {
  background: rgba(255,255,255,.08); border: 1px solid rgba(45,158,150,.4);
  border-radius: var(--r-full); padding: 5px 14px; font-size: .82rem; color: var(--teal-pale);
}
.suite-side { background: var(--gold-pale); border: 1.5px solid var(--gold2); }
.suite-side h3 { color: var(--gold); font-size: 1.3rem; }
.suite-side p { color: var(--muted); }
.suite-card .btn { align-self: flex-start; margin-top: auto; }

/* شريط بوابة الفريق */
.staff-band {
  margin-top: var(--sp-6); border-radius: var(--r-lg);
  background: var(--light); border: 1.5px dashed var(--border);
  padding: var(--sp-5, 20px) var(--sp-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}
.staff-band .sb-text strong { font-family: var(--f-head); color: var(--navy); display: block; }
.staff-band .sb-text small { color: var(--muted); }
.staff-roles { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.staff-roles span {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-full);
  padding: 5px 14px; font-size: .82rem; color: var(--teal); font-weight: 700;
}

/* ==== 20. خط المشاريع: صفحة سينمائية + مؤشر اكتمال + خرائط مصغرة ==== */

/* هيرو المشروع بصورة الغلاف */
.proj-hero {
  position: relative; min-height: 380px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: var(--white);
}
.proj-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,31,45,.25) 0%, rgba(13,31,45,.85) 100%);
}
.proj-hero .container { position: relative; padding-block: var(--sp-8); }
.proj-hero h1 { color: var(--white); margin-bottom: var(--sp-2); }
.proj-hero .ph-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.proj-hero .ph-meta span {
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-full);
  padding: 4px 14px; font-size: .85rem;
}
.preview-banner {
  background: var(--warning); color: var(--navy); text-align: center;
  padding: var(--sp-2) var(--sp-4); font-weight: 800; font-family: var(--f-head);
}

.mini-map { height: 260px; border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--border); }
.mini-map-sm { height: 220px; }

.share-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.share-row .btn { flex: 1; min-width: 110px; }

/* مؤشر اكتمال ملف المشروع (بوابة الموظف) */
.readiness { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
.readiness .r-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.readiness .r-pct { font-family: var(--f-head); font-weight: 900; font-size: 1.3rem; }
.readiness .r-bar { height: 10px; border-radius: 5px; background: var(--teal-pale); overflow: hidden; margin-bottom: var(--sp-3); }
.readiness .r-bar i { display: block; height: 100%; transition: width .4s; }
.readiness ul { display: grid; gap: 4px; font-size: .88rem; }
.readiness li.ok { color: var(--success); }
.readiness li.no { color: var(--muted); }

/* ==== 21. حركة الظهور ==== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
