/* ===== معرض الديكور — تصميم احترافي (مستوحى من متاجر الأثاث الكبرى) ===== */

/* ===== خطوط Lyon Arabic: Text للنصوص و Display للعناوين ===== */
@font-face { font-family: 'Lyon Arabic Text'; src: url('/fonts/lyon-text-regular.woff2') format('woff2'), url('/fonts/lyon-text-regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Text'; src: url('/fonts/lyon-text-semibold.woff2') format('woff2'), url('/fonts/lyon-text-semibold.otf') format('opentype'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Text'; src: url('/fonts/lyon-text-bold.woff2') format('woff2'), url('/fonts/lyon-text-bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Text'; src: url('/fonts/lyon-text-black.woff2') format('woff2'), url('/fonts/lyon-text-black.otf') format('opentype'); font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Text'; src: url('/fonts/lyon-text-slanted-regular.woff2') format('woff2'), url('/fonts/lyon-text-slanted-regular.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Text'; src: url('/fonts/lyon-text-slanted-semibold.woff2') format('woff2'), url('/fonts/lyon-text-slanted-semibold.otf') format('opentype'); font-weight: 500 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Text'; src: url('/fonts/lyon-text-slanted-bold.woff2') format('woff2'), url('/fonts/lyon-text-slanted-bold.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Text'; src: url('/fonts/lyon-text-slanted-black.woff2') format('woff2'), url('/fonts/lyon-text-slanted-black.otf') format('opentype'); font-weight: 800 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-light.woff2') format('woff2'), url('/fonts/lyon-display-light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-regular.woff2') format('woff2'), url('/fonts/lyon-display-regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-medium.woff2') format('woff2'), url('/fonts/lyon-display-medium.otf') format('opentype'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-bold.woff2') format('woff2'), url('/fonts/lyon-display-bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-black.woff2') format('woff2'), url('/fonts/lyon-display-black.otf') format('opentype'); font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-slanted-light.woff2') format('woff2'), url('/fonts/lyon-display-slanted-light.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-slanted-regular.woff2') format('woff2'), url('/fonts/lyon-display-slanted-regular.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-slanted-medium.woff2') format('woff2'), url('/fonts/lyon-display-slanted-medium.otf') format('opentype'); font-weight: 500 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-slanted-bold.woff2') format('woff2'), url('/fonts/lyon-display-slanted-bold.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lyon Arabic Display'; src: url('/fonts/lyon-display-slanted-black.woff2') format('woff2'), url('/fonts/lyon-display-slanted-black.otf') format('opentype'); font-weight: 800 900; font-style: italic; font-display: swap; }

:root {
  --font-text: 'Lyon Arabic Text', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-display: 'Lyon Arabic Display', 'Lyon Arabic Text', 'Segoe UI', Tahoma, Arial, sans-serif;
  /* ألوان البراند */
  --brand: #9f1d24;        /* أحمر البراند */
  --brand-dark: #6e1419;
  --accent: #9a5134;       /* تيراكوتا */
  --cream: #f4dac3;        /* بيج */
  --white: #fdfdfd;
  --dark: #291618;         /* بني غامق */
  --dark-2: #3a2124;
  /* درجات مشتقة */
  --gold: var(--accent);
  --cream-light: #fbf1e8;
  --cream-muted: rgba(244, 218, 195, .72);
  --line: #ecd9c8;
  --bg: #fdf8f3;
  --card: var(--white);
  --muted: #8c7471;
  --red: #c0392b;
  --green: #1faa55;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(41, 22, 24, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-text); background: var(--bg); color: var(--dark); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* الماوس على شكل لوجو المعرض مايل 45° زي السهم العادي (الموقع بس، مش لوحة التحكم).
   النقطة اللي بتدوس هي سن المثلث في الركن اللي فوق على الشمال */
.site-body { cursor: url('/images/cursor.svg?v=4') 0 0, auto; }
.site-body :is(a, button, label, select, summary, [role="button"], .eg-gov, .pin, .pd-slide, .pd-thumb, .mp-chip, .sub-chip, .chip) {
  cursor: url('/images/cursor-hover.svg?v=4') 0 0, pointer;
}
.site-body :is(input:not([type="submit"]):not([type="button"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), textarea) { cursor: text; }

/* لما الجافاسكريبت يشتغل: لوجو بيتحرك مع الماوس ولونه حسب غمقان اللي تحته:
   فاتح ← أحمر، متوسط ← بيج، غامق ← أبيض. الصور فوق بتفضل احتياطي لو الجافاسكريبت مش شغال */
.logo-cursor { display: none; }
.logo-cursor-on .site-body, .logo-cursor-on .site-body * { cursor: none !important; }
.logo-cursor-on .site-body :is(input:not([type="submit"]):not([type="button"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]), textarea) { cursor: text !important; }
.logo-cursor-on .logo-cursor {
  display: block; position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
  opacity: 0; will-change: transform;
}
.logo-cursor svg { display: block; width: 16px; height: 16px; fill: var(--brand); transform-origin: 0 0; transition: transform .18s ease, fill .2s ease; filter: drop-shadow(0 1px 1px rgba(41, 22, 24, .25)); }
.logo-cursor.on-mid svg { fill: var(--cream); }
.logo-cursor.on-dark svg { fill: #fff; }
.logo-cursor.show { opacity: 1; }
.logo-cursor.hover svg { transform: scale(1.3); }
.logo-cursor.down svg { transform: scale(.85); }
.logo-cursor.typing { opacity: 0; }
h1, h2, h3, h4, .logo { font-family: var(--font-display); letter-spacing: -.01em; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
[dir="ltr"] .arrow, [dir="ltr"] .link-arrow span, [dir="ltr"] .tile-arrow, [dir="ltr"] .card-go { display: inline-block; transform: scaleX(-1); }

/* ===== عناصر مشتركة ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: var(--cream); }
.lead { font-size: 1.12rem; line-height: 1.95; color: #5c4344; max-width: 560px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }
.empty.light { color: var(--cream-muted); }

.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--brand); font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.pill-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.pill-btn.lg { padding: 14px 28px; font-size: 1rem; }
.pill-btn.ghost { background: transparent; color: var(--dark); border-color: rgba(41, 22, 24, .18); }
.pill-btn.ghost:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.pill-btn.light { background: var(--cream); color: var(--dark); border-color: var(--cream); }
.pill-btn.light:hover { background: #fff; border-color: #fff; color: var(--dark); }
.pill-btn.outline-light { background: transparent; color: var(--cream); border-color: rgba(244, 218, 195, .45); }
.pill-btn.outline-light:hover { background: var(--cream); color: var(--dark); }
.pill-btn.whatsapp { background: #1faa55; border-color: #1faa55; }
.pill-btn.whatsapp:hover { background: #178a45; border-color: #178a45; }
.arrow { transition: transform .25s; }
.pill-btn:hover .arrow { transform: translateX(-4px); }

/* الأزرار القديمة (مستخدمة في صفحات تانية) */
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 11px 24px; border-radius: 999px; border: 0; cursor: pointer; font-size: .95rem; font-weight: 700; transition: background .2s; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.gold { background: var(--cream); color: var(--dark); }
.btn.secondary { background: var(--accent); }
.btn.whatsapp { background: var(--green); }

/* نقش اللوجو كخلفية بديلة للصور */
.tile-pattern { position: absolute; inset: 0; background-color: var(--cream); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' width='90' height='60'%3E%3Cpath fill='%239f1d24' fill-opacity='.09' d='M300 0L400 100H200Z M200 100L300 200H100Z M400 100L500 200H300Z M100 200L200 300H0Z M500 200L600 300H400Z M200 300L300 400H100Z M400 300L500 400H300Z'/%3E%3C/svg%3E"); background-size: 90px 60px; }
.tile-pattern.dark { background-color: var(--dark-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' width='90' height='60'%3E%3Cpath fill='%23f4dac3' fill-opacity='.07' d='M300 0L400 100H200Z M200 100L300 200H100Z M400 100L500 200H300Z M100 200L200 300H0Z M500 200L600 300H400Z M200 300L300 400H100Z M400 300L500 400H300Z'/%3E%3C/svg%3E"); }

/* ظهور تدريجي */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-media picture, .hero-media img, .hero-line, .hero-glow, .hero-badge, .hero-badge-dot, .hero-chip, .hero-caption, .hero-scroll, .hero-scroll span { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== الشريط العلوي ===== */
.topbar { background: var(--dark); color: var(--cream); font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--cream-muted); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .hotline { color: var(--cream); }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.lang-switch { border: 1px solid rgba(244, 218, 195, .3); padding: 2px 10px; border-radius: 999px; }

/* ===== الهيدر ===== */
.main-header { position: sticky; top: 0; z-index: 60; background: rgba(253, 248, 243, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.main-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(41, 22, 24, .06); }
.header-row { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); white-space: nowrap; flex-shrink: 0; }
.logo-mark { width: 50px; height: 34px; fill: var(--brand); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-weight: 900; font-size: 1.35rem; }
.logo-text small { font-weight: 700; font-size: .92rem; }
.logo-img { height: 46px; max-width: 210px; object-fit: contain; }
.main-nav { display: flex; gap: 4px; align-items: center; flex: 1; justify-content: center; }
.main-nav a { color: var(--dark); font-size: .93rem; padding: 8px 12px; border-radius: 999px; position: relative; transition: background .2s, color .2s; white-space: nowrap; }
.main-nav a:hover { background: var(--cream-light); color: var(--brand); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--dark); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--cream-light); border-color: var(--cream); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lang-btn { font-family: var(--font-display); font-weight: 800; font-size: .82rem; color: var(--dark); }
/* تسجيل الدخول: شخص جوه دايرة بألوان الهوية */
.account-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--brand); box-shadow: inset 0 0 0 1.5px rgba(159, 29, 36, .25); transition: background .2s, color .2s, transform .2s; }
.account-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.account-btn:hover { background: var(--brand); color: var(--cream); transform: translateY(-1px); }
.account-btn.signed-in { background: var(--brand); color: var(--cream); }
.account-btn.signed-in:hover { background: var(--brand-dark); }
.menu-toggle { display: none; }
.search-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; border-top: 1px solid transparent; }
.search-panel.open { max-height: 90px; border-top-color: var(--line); }
.search-panel .container { display: flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.search-panel input { flex: 1; margin: 0; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 20px; font-size: .95rem; }

/* ===== الواجهة الرئيسية ===== */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: max(600px, calc(100svh - 112px)); display: flex; align-items: flex-end; background: var(--dark); color: #fff; }
/* الصورة: دخول ناعم + زووم بطيء (Ken Burns) + بارالاكس بالسكرول */
.hero-media { position: absolute; inset: -6% 0; z-index: -3; will-change: transform; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media picture { animation: media-in 1.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-media img { object-fit: cover; object-position: 60% 35%; animation: kenburns 26s ease-in-out 1.8s infinite alternate; transform-origin: 75% 35%; }
@keyframes media-in { from { opacity: 0; transform: scale(1.12); filter: blur(8px) brightness(.6); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
/* تظليل من ناحية النص عشان الكلام يتقري */
/* التظليل من تحت (على الرصيف) عشان اليافطة تفضل باينة فوق */
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(to top, rgba(28, 13, 15, .92) 0%, rgba(28, 13, 15, .7) 30%, rgba(28, 13, 15, .15) 58%, transparent 75%), linear-gradient(to left, rgba(28, 13, 15, .45), transparent 55%); }
[dir="ltr"] .hero-shade { background: linear-gradient(to top, rgba(28, 13, 15, .92) 0%, rgba(28, 13, 15, .7) 30%, rgba(28, 13, 15, .15) 58%, transparent 75%), linear-gradient(to right, rgba(28, 13, 15, .45), transparent 55%); }
/* ضوء دافي بيتحرك ببطء على الصورة */
.hero-glow { position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; top: -20%; inset-inline-end: 0; border-radius: 50%; background: radial-gradient(circle, rgba(244, 196, 140, .32), transparent 62%); mix-blend-mode: soft-light; pointer-events: none; animation: glow-drift 14s ease-in-out infinite alternate; }
@keyframes glow-drift { from { transform: translate(0, 0) scale(1); opacity: .7; } to { transform: translate(-18vw, 22vh) scale(1.25); opacity: 1; } }

.hero-inner { width: 100%; padding-top: 72px; padding-bottom: 84px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: end; }
.hero-head .lead { margin: 0; }
.hero-side .hero-actions { margin-top: 0; }
.hero-copy h1 { font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.12; margin: 0 0 14px; font-weight: 900; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.hero-copy .lead { color: var(--cream); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 28px; }
.hero-stats { display: flex; gap: 44px; margin: 0; padding-top: 26px; border-top: 1px solid rgba(244, 218, 195, .22); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: #fff; line-height: 1.1; }
.hero-stats dd { margin: 0; font-size: .85rem; color: var(--cream-muted); }
/* دخول النصوص سطر ورا سطر */
.hero-line { animation: line-in 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* كروت عائمة على الصورة */
.hero-badge { position: absolute; top: 9%; inset-inline-end: 4%; display: flex; align-items: center; gap: 12px; background: rgba(253, 248, 243, .14); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; padding: 14px 20px; color: #fff; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .5); animation: pop .9s cubic-bezier(.2,.9,.3,1.2) var(--d, 1s) both, floaty 6s ease-in-out 2.2s infinite; }
.hero-badge b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.hero-badge small { color: var(--cream); font-size: .8rem; }
.hero-badge-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2s ease-out infinite; flex-shrink: 0; }
.hero-chip { position: absolute; top: calc(9% + 84px); inset-inline-end: 4%; background: var(--accent); color: #fff; font-weight: 700; font-size: .88rem; padding: 10px 20px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(154, 81, 53, .7); animation: pop .9s cubic-bezier(.2,.9,.3,1.2) var(--d, 1s) both, floaty 7s ease-in-out 2.4s infinite reverse; }
.hero-caption { position: absolute; bottom: 30px; inset-inline-start: max(24px, calc((100vw - 1240px) / 2 + 24px)); margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .7); letter-spacing: .02em; animation: line-in 1s ease var(--d, 1s) both; }
.hero-scroll { position: absolute; bottom: 24px; left: 50%; margin-left: -13px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; animation: line-in 1s ease 1.5s both; }
.hero-scroll span { width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 100% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== الشريط المتحرك ===== */
.marquee { background: var(--brand); color: var(--cream); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.marquee svg { width: 30px; height: 20px; fill: var(--cream); opacity: .55; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="ltr"] .marquee-track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== عناوين الأقسام ===== */
.section { padding: 88px 24px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 900; line-height: 1.2; color: var(--dark); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--dark); font-weight: 700; font-size: .95rem; padding-bottom: 4px; border-bottom: 1.5px solid var(--dark); transition: color .2s, border-color .2s; }
.link-arrow:hover { color: var(--brand); border-color: var(--brand); }

/* ===== الأقسام (Bento) ===== */
.bento-cats { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.cat-tile { position: relative; overflow: hidden; border-radius: 24px; color: var(--dark); display: flex; align-items: flex-end; isolation: isolate; }
.cat-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); z-index: -1; }
.cat-tile img + .cat-tile-body, .cat-tile:has(img) { color: #fff; }
.cat-tile:has(img)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(41, 22, 24, .7)); z-index: -1; }
.cat-tile .tile-pattern { z-index: -1; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.cat-tile.tone-1 .tile-pattern { background-color: #ecc9ad; }
.cat-tile.tone-2 .tile-pattern { background-color: var(--accent); }
.cat-tile.tone-3 .tile-pattern { background-color: var(--brand); }
.cat-tile.tone-2, .cat-tile.tone-3 { color: var(--cream); }
.cat-tile:hover img, .cat-tile:hover .tile-pattern { transform: scale(1.06); }
.cat-tile-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.cat-tile-body small { font-size: .78rem; opacity: .7; font-weight: 700; }
.cat-tile-body b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.cat-tile:nth-child(1) .cat-tile-body b { font-size: 2rem; }
.tile-arrow { position: absolute; top: 18px; inset-inline-end: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--dark); display: grid; place-items: center; font-size: 1.1rem; transform: scale(.8) rotate(45deg); opacity: 0; transition: transform .35s, opacity .35s; }
.cat-tile:hover .tile-arrow { transform: scale(1) rotate(45deg); opacity: 1; }
[dir="ltr"] .tile-arrow { transform: scaleX(-1) scale(.8) rotate(45deg); }
[dir="ltr"] .cat-tile:hover .tile-arrow { transform: scaleX(-1) scale(1) rotate(45deg); }

/* ===== كروت المنتجات ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; gap: 14px; color: var(--dark); }
.card .imgwrap { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--cream); }
.card .imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card .tile-pattern { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .imgwrap img, .card:hover .tile-pattern { transform: scale(1.05); }
.badge-cat { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(253, 248, 243, .9); backdrop-filter: blur(6px); color: var(--dark); font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge-off { position: absolute; top: 14px; inset-inline-end: 14px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: bold; padding: 5px 12px; border-radius: 999px; }
.card .body { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.card .body h3 { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { color: var(--brand); font-weight: 800; font-size: 1.1rem; font-family: var(--font-display); }
.price small { color: var(--muted); font-weight: 400; font-size: .78rem; font-family: var(--font-text); }
.price.muted { color: var(--muted); font-size: .9rem; font-weight: 600; }
.card-more { color: var(--muted); font-size: .88rem; transition: color .25s; }
.card:hover .card-more { color: var(--brand); }
.card-go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .95rem; transition: background .25s, color .25s, border-color .25s; }
.card:hover .card-go { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ===== أعمال المعرض ===== */
.portfolio-sec { background: var(--dark); color: var(--cream); margin-top: 96px; padding: 88px 0; }
.portfolio-sec .section-head h2 { color: #fff; }
.bento-work { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.work-item { position: relative; overflow: hidden; border-radius: 24px; display: flex; align-items: flex-end; isolation: isolate; background: var(--dark-2); }
.work-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.work-item:nth-child(4):last-child { grid-column: 1 / -1; }
.work-item:nth-child(5) { grid-column: span 2; }
.work-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work-item .tile-pattern { z-index: -2; }
.work-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20, 10, 11, .78)); z-index: -1; }
.work-item:hover img { transform: scale(1.05); }
.work-body { padding: 24px; }
.work-body small { color: var(--cream-muted); font-weight: 700; font-size: .78rem; }
.work-body h3 { margin: 4px 0 6px; color: #fff; font-size: 1.25rem; }
.work-item:nth-child(1) .work-body h3 { font-size: 1.9rem; }
.work-body p { margin: 0; color: var(--cream-muted); font-size: .9rem; line-height: 1.7; }
.work-gov { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(244, 218, 195, .14); color: var(--cream); }
.work-gov::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px rgba(244, 218, 195, .5); }

/* ===== خريطة المشاريع ===== */
.map-sec { padding: 88px 0 0; }
.map-intro { margin: 0; color: var(--muted); max-width: 340px; line-height: 1.8; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: stretch; }
.map-card { position: relative; background: radial-gradient(120% 90% at 30% 20%, var(--dark-2) 0%, var(--dark) 70%); border-radius: 32px; padding: 22px 22px 14px; overflow: hidden; isolation: isolate; }
.map-card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .05; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cpath fill='%23f4dac3' d='M300 0L400 100H200Z M200 100L300 200H100Z M400 100L500 200H300Z M100 200L200 300H0Z M500 200L600 300H400Z M200 300L300 400H100Z M400 300L500 400H300Z'/%3E%3C/svg%3E") 0 0 / 90px 60px; }
.map-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.map-zoom { font: inherit; font-size: .85rem; font-weight: 700; color: var(--cream); background: rgba(244, 218, 195, .1); border: 1px solid rgba(244, 218, 195, .25); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .25s, border-color .25s; }
.map-zoom:hover { background: rgba(244, 218, 195, .2); border-color: var(--cream); }
.map-zoom .z-out, .map-zoom[aria-pressed="true"] .z-in { display: none; }
.map-zoom[aria-pressed="true"] .z-out { display: inline; }
.map-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; color: var(--cream-muted); font-size: .78rem; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; border-radius: 4px; }
.map-legend .lg-0 { background: var(--cream); }
.map-legend .lg-2 { background: var(--brand); }
.map-legend .lg-pin { border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.map-credit { display: block; text-align: end; color: rgba(244, 218, 195, .4); font-size: .66rem; direction: ltr; }

.egmap { --ps: 1; display: block; width: 100%; height: auto; overflow: hidden; touch-action: manipulation; }
.eg-gov { fill: var(--cream); stroke: var(--dark); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; outline: none; transition: fill .3s, filter .3s; }
.eg-gov.lv-1 { fill: #c27a5c; }
.eg-gov.lv-2 { fill: var(--accent); }
.eg-gov.lv-3 { fill: var(--brand); }
.eg-gov:hover, .eg-gov:focus-visible { fill: #fff3e6; }
.eg-gov.lv-1:hover, .eg-gov.lv-2:hover, .eg-gov.lv-3:hover, .eg-gov[class*="lv-"]:not(.lv-0):focus-visible { fill: #c4323a; }
.eg-gov.on { fill: var(--brand); stroke: #fff; stroke-width: 2.4; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.eg-gov.lv-0.on { fill: #fff3e6; stroke: var(--brand); }

.eg-labels text { font-family: var(--font-display); font-weight: 700; font-size: calc(11px * var(--ps)); fill: var(--dark); text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(244, 218, 195, .85); stroke-width: calc(3px * var(--ps)); opacity: .8; transition: opacity .3s; }
.eg-labels .lb-delta, .eg-labels .lb-tiny, .egmap.compact .eg-labels .lb-mid { opacity: 0; }
.egmap.zoomed .eg-labels .lb-delta, .egmap.zoomed .eg-labels .lb-tiny { opacity: .85; font-size: calc(12px * var(--ps)); }
.egmap.zoomed .eg-labels .lb-main:not(.lb-tiny) { opacity: 0; }

.pin { cursor: pointer; }
.pin-s { transform: scale(calc(var(--ps) * .75)); transition: opacity .3s; }
.pin circle { fill: #fff; stroke: var(--brand); stroke-width: 3; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.pin-tail { fill: var(--brand); }
.pin text { font-family: var(--font-display); font-weight: 800; font-size: 17px; fill: var(--brand); text-anchor: middle; }
.pin-agg circle { fill: var(--brand); stroke: #fff; }
.pin-agg text { fill: #fff; font-size: 20px; }
.pin-delta .pin-s { opacity: 0; pointer-events: none; }
.egmap.zoomed .pin-delta .pin-s { opacity: 1; pointer-events: auto; }.egmap.zoomed .pin-agg .pin-s { opacity: 0; pointer-events: none; }
.pin-home { cursor: pointer; }
.pin-home .hit { fill: transparent; }
.pin-home:hover .dot, .pin-home:focus-visible .dot { fill: var(--brand); stroke: #fff; }
.pin-home:hover .home-lb { fill: var(--cream); }
.map-legend a { display: flex; align-items: center; gap: 6px; color: inherit; }
.map-legend a:hover { color: #fff; }
a.hero-caption { transition: color .2s; }
a.hero-caption:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pin-home .dot { fill: #fff; stroke: var(--brand); stroke-width: 3; }
.pin-home .ping { fill: rgba(255, 255, 255, .5); transform-box: fill-box; transform-origin: center; animation: map-ping 2.2s ease-out infinite; }
.pin-home .home-lb { font-family: var(--font-display); font-weight: 800; font-size: 16px; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: var(--dark); stroke-width: 3px; }
@keyframes map-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

/* رسم الخريطة أول ما تظهر */
.js .egmap .eg-gov { opacity: 0; transform: translateY(8px); transform-box: fill-box; }
.js .egmap.drawn .eg-gov { opacity: 1; transform: none; transition: opacity .6s calc(var(--i) * 28ms), transform .6s calc(var(--i) * 28ms) cubic-bezier(.2,.7,.2,1), fill .3s, filter .3s; }
.js .egmap .pin, .js .egmap .pin-home { opacity: 0; transition: opacity .5s 1s; }
.js .egmap.drawn .pin, .js .egmap.drawn .pin-home { opacity: 1; }

.map-tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: #fff; color: var(--dark); border-radius: 12px; padding: 7px 12px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); display: flex; gap: 8px; align-items: baseline; white-space: nowrap; font-size: .85rem; opacity: 0; transition: opacity .15s; }
.map-tip.show { opacity: 1; }
.map-tip b { font-family: var(--font-display); }
.map-tip span { color: var(--brand); font-weight: 700; font-size: .78rem; }

.map-panel { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 28px; display: flex; flex-direction: column; min-height: 100%; }
.map-panel [hidden] { display: none !important; }
.mp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.mp-stats div { background: var(--cream-light); border-radius: 20px; padding: 18px; }
.mp-stats b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--brand); line-height: 1; }
.mp-stats span { color: var(--muted); font-size: .85rem; }
.mp-select { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.mp-select span, .mp-label { font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0; }
.mp-select select { font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--dark); cursor: pointer; }
.mp-select select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.mp-label { margin-bottom: 10px; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-chip { font: inherit; font-size: .88rem; display: inline-flex; gap: 8px; align-items: center; padding: 7px 8px 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--dark); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
[dir="rtl"] .mp-chip { padding: 7px 14px 7px 8px; }
.mp-chip b { min-width: 24px; height: 24px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .75rem; }
.mp-chip:hover { border-color: var(--brand); background: var(--cream-light); transform: translateY(-2px); }
.mp-empty { color: var(--muted); line-height: 1.8; }

.mp-detail { display: flex; flex-direction: column; gap: 6px; flex: 1; animation: mp-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes mp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mp-back { align-self: flex-start; font: inherit; font-size: .85rem; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 6px; }
.mp-back:hover { color: var(--brand); }
[dir="ltr"] .mp-back span { transform: scaleX(-1); display: inline-block; }
.mp-detail h3 { margin: 10px 0 0; font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--dark); }
.mp-count { margin: 0 0 12px; color: var(--accent); font-weight: 700; }
.mp-count.first { color: var(--brand); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.6; padding: 14px 16px; border-radius: 16px; background: var(--cream-light); border: 1px dashed rgba(159, 29, 36, .35); }
.mp-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow: auto; }
.mp-list li { animation: mp-in .45s calc(var(--i) * 70ms) both; }
.mp-list a { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--cream-light); border: 1px solid transparent; transition: border-color .25s, background .25s, transform .25s; }
.mp-list a:hover, .mp-list a:focus-visible { border-color: var(--brand); background: #fff; transform: translateY(-2px); }
.mp-txt { flex: 1; min-width: 0; }
.mp-go { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--brand); border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s; }
.mp-list a:hover .mp-go { background: var(--brand); border-color: var(--brand); color: #fff; }
[dir="ltr"] .mp-go { transform: scaleX(-1); }
.mp-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--brand); display: grid; place-items: center; }
.mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-thumb svg { width: 34px; fill: var(--cream); opacity: .85; }
.mp-list b { display: block; color: var(--dark); line-height: 1.5; }
.mp-list small { color: var(--muted); line-height: 1.6; }
.mp-detail .pill-btn { margin-top: auto; align-self: flex-start; }

/* ===== خطوات الشغل ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(41, 22, 24, .3); border-color: var(--cream); }
.step-no { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; color: var(--cream); line-height: 1; margin-bottom: 18px; -webkit-text-stroke: 1px var(--accent); }
.step b { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); line-height: 1.8; font-size: .93rem; }

/* ===== بانر الدعوة ===== */
.cta-band { position: relative; overflow: hidden; margin-top: 88px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); border-radius: 32px; color: #fff; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; isolation: isolate; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; }
.cta-band p { margin: 0; color: var(--cream); font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-mark { position: absolute; width: 380px; inset-inline-end: -60px; bottom: -110px; fill: rgba(244, 218, 195, .08); z-index: -1; }

/* ===== من نحن ===== */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; padding-bottom: 96px; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; font-weight: 900; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: .88rem; }
.contact-list a, .contact-list b { font-family: var(--font-display); font-size: 1.15rem; color: var(--dark); font-weight: 700; }
.contact-list a:hover { color: var(--brand); }

/* ===== صفحة المنتجات ===== */
.page-head { padding: 56px 0 40px; background: radial-gradient(700px 300px at 85% 0%, rgba(244, 218, 195, .8), transparent 70%), var(--bg); }
.page-head h1 { margin: 6px 0 8px; font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 900; }
.page-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0; padding-top: 4px; }
.container > .crumbs { margin: 28px 0 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; opacity: .5; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); position: sticky; top: 78px; z-index: 30; background: rgba(253, 248, 243, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: transparent; border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; font-size: .88rem; color: var(--dark); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--dark); }
.chip.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.search-inline { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; min-width: 260px; }
.search-inline input { border: 0; margin: 0; background: transparent; padding: 8px 14px; outline: none; }
.search-inline input:focus { outline: none; }
.search-inline button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.search-inline svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.result-count { color: var(--muted); font-size: .88rem; margin: 22px 0; }
.sub-chips { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; }
.sub-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; min-height: 48px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--dark); font-weight: 700; font-size: .92rem; transition: border-color .2s, background .2s, color .2s; }
[dir="rtl"] .sub-chip { padding: 6px 6px 6px 18px; }
.sub-chip:first-child { padding-inline: 18px; }
.sub-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sub-chip:hover { border-color: var(--brand); }
.sub-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-grid { margin-bottom: 96px; }

/* ===== تفاصيل المنتج ===== */
.pd { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; margin-bottom: 96px; align-items: start; }
.pd-gallery { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--cream); position: sticky; top: 100px; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* معرض صور المنتج */
.pd-media { position: sticky; top: 100px; min-width: 0; }
.pd-stage { position: relative; border-radius: 28px; overflow: hidden; background: var(--cream); }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3.3; outline: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(253, 248, 243, .9); color: var(--dark); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(41, 22, 24, .45); transition: background .2s, color .2s, opacity .2s; opacity: .85; }
.pd-nav:hover { background: var(--brand); color: #fff; opacity: 1; }
.pd-nav.prev { inset-inline-start: 14px; }
.pd-nav.next { inset-inline-end: 14px; }
.pd-count, .pd-zoom { position: absolute; bottom: 14px; background: rgba(41, 22, 24, .7); color: #fff; border-radius: 999px; font-size: .82rem; font-weight: 700; padding: 5px 12px; pointer-events: none; backdrop-filter: blur(6px); }
.pd-count { inset-inline-start: 14px; unicode-bidi: isolate; }
.pd-zoom { inset-inline-end: 14px; padding: 5px 10px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pd-thumb { flex: 0 0 84px; height: 64px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--cream); cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.on { opacity: 1; border-color: var(--brand); }
.pd-photos-note { color: var(--accent); font-weight: 700; font-size: .9rem; margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 10, 11, .94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); animation: lb-in .3s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-close, .lb-nav { position: absolute; border: 0; border-radius: 50%; background: rgba(253, 248, 243, .12); color: #fff; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--brand); }
.lb-close { top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; font-size: 1.1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lb-nav.prev { inset-inline-start: 14px; }
.lb-nav.next { inset-inline-end: 14px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--cream); font-weight: 700; font-size: .9rem; direction: ltr; }

/* صور معرض المنتج في لوحة التحكم */
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.admin-gallery-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.admin-gallery-item img { width: 100%; height: 100px; object-fit: cover; display: block; }
.admin-gallery-item div { display: flex; gap: 6px; justify-content: center; padding: 8px; }
.gov-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; margin-bottom: 16px; }
.gov-counts label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; }
.gov-counts small { color: #999; font-weight: 400; }
.gov-counts input { margin: 0; }
.pd-info { padding-top: 12px; }
.pd-info h1 { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; line-height: 1.2; }
.pd-price { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.pd-price .price { font-size: 2rem; }
.pd-desc { line-height: 2; color: #5c4344; font-size: 1.05rem; }
.pd-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.pd-perks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pd-perks li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.pd-perks b { font-family: var(--font-display); }
.pd-perks span { color: var(--muted); font-size: .85rem; }

/* ===== صفحة تفاصيل المشروع ===== */
.work-pd { margin-bottom: 72px; }
.work-pd .pd-gallery { aspect-ratio: 4 / 3.4; }
.work-pd-gov { position: absolute; bottom: 18px; inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(253, 248, 243, .92); backdrop-filter: blur(8px); color: var(--dark); font-weight: 700; font-size: .9rem; }
.work-pd-gov i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(159, 29, 36, .2); }
.work-back { margin-top: 30px; }
.work-more { margin-bottom: 96px; }
.work-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-mini { display: flex; flex-direction: column; gap: 6px; color: var(--dark); }
.work-mini-img { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--cream); margin-bottom: 8px; }
.work-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work-mini-img .tile-pattern { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work-mini:hover .work-mini-img img, .work-mini:hover .tile-pattern { transform: scale(1.05); }
.work-mini small { color: var(--accent); font-weight: 700; font-size: .8rem; }
.work-mini b { font-size: 1.1rem; transition: color .25s; }
.work-mini:hover b { color: var(--brand); }
.work-item { color: inherit; }
.work-item:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

/* ===== المزايا (مستخدمة في صفحات تانية) ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 26px 0; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; gap: 12px; align-items: center; }
.feature b { display: block; }
.feature small { color: var(--muted); }

/* ===== صفحة الصيانة ===== */
.maint-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--dark), var(--brand-dark)); padding: 20px; }
.maint-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 48px 40px; text-align: center; max-width: 520px; }
.maint-card h1 { margin: 16px 0 8px; }
.maint-card p { color: #5c4344; line-height: 1.9; }

/* ===== الدخول (صفحة كاملة: صورة المعرض + فورم) ===== */
.auth-body { margin: 0; background: var(--bg); }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; animation: auth-zoom 18s ease-out both; }
@keyframes auth-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.auth-visual-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(28, 13, 15, .94) 0%, rgba(28, 13, 15, .55) 45%, rgba(28, 13, 15, .2) 100%); }
.auth-visual-copy { position: absolute; inset-inline: 56px; bottom: 56px; color: #fff; max-width: 520px; animation: auth-up .8s .2s cubic-bezier(.2,.7,.2,1) both; }
.auth-mark { width: 64px; fill: var(--cream); margin-bottom: 22px; }
.auth-kicker { margin: 0 0 10px; color: var(--cream); font-weight: 700; font-size: .9rem; letter-spacing: .03em; }
.auth-visual-copy h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 900; line-height: 1.35; }

.auth-panel { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); background:
  radial-gradient(600px 400px at 100% 0%, rgba(244, 218, 195, .55), transparent 70%), var(--bg); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-logo { display: flex; align-items: center; gap: 10px; color: var(--brand); }
.auth-logo svg { width: 44px; fill: var(--brand); }
.auth-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.auth-logo b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 900; }
.auth-logo small { font-size: .78rem; color: var(--accent); font-weight: 700; }
.auth-lang { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--dark); font-family: var(--font-display); font-weight: 800; font-size: .82rem; transition: background .2s; }
.auth-lang:hover { background: var(--cream-light); }

.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 40px 0; animation: auth-up .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes auth-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.auth-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--brand); box-shadow: 0 0 0 8px rgba(244, 218, 195, .45); margin-bottom: 22px; }
.auth-avatar svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.auth-card h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 900; color: var(--dark); }
.auth-sub { margin: 0 0 28px; color: var(--muted); }
.auth-error { display: flex; gap: 10px; align-items: center; background: #fbe9e9; color: var(--brand-dark); border: 1px solid rgba(159, 29, 36, .2); border-radius: 14px; padding: 12px 14px; margin-bottom: 18px; font-weight: 700; font-size: .92rem; animation: auth-shake .4s; }
.auth-error svg { width: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes auth-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field > span:first-child { display: block; font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.auth-input { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.auth-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(159, 29, 36, .12); }
.auth-input > svg { width: 20px; margin-inline: 16px 0; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 14px; font: inherit; font-size: 1rem; color: var(--dark); outline: none; text-align: start; }
.auth-input input::placeholder { color: #c9b3a4; }
/* الإطار الخارجي هو اللي بيبيّن التركيز: من غير مربع تاني جوه الخانة */
.auth-input input:focus, .auth-input input:focus-visible { outline: none; border: 0; box-shadow: none; }
.auth-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--dark); }
.auth-eye { border: 0; background: none; padding: 0 14px; height: 100%; color: var(--muted); display: grid; place-items: center; }
.auth-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.auth-eye .eye-closed, .auth-eye[aria-pressed="true"] .eye-open { display: none; }
.auth-eye[aria-pressed="true"] .eye-closed { display: block; }
.auth-eye:hover { color: var(--brand); }
.auth-submit { margin-top: 6px; display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 16px; border: 0; border-radius: 999px; font: inherit; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-dark)); box-shadow: 0 16px 34px -14px rgba(159, 29, 36, .7); transition: transform .2s, box-shadow .2s; }
.auth-submit svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(159, 29, 36, .8); }
.auth-submit:hover svg { transform: translateX(-4px); }
[dir="ltr"] .auth-submit:hover svg { transform: translateX(4px); }
.auth-submit.loading { opacity: .75; pointer-events: none; }
.auth-back { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.auth-back:hover { color: var(--brand); }
.auth-foot { margin: 0; text-align: center; color: var(--muted); font-size: .78rem; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { min-height: 230px; }
  .auth-visual-copy { inset-inline: 22px; bottom: 22px; }
  .auth-visual-copy h2 { font-size: 1.3rem; }
  .auth-mark { width: 44px; margin-bottom: 12px; }
  .auth-kicker { display: none; }
  .auth-panel { padding-top: 22px; }
  .auth-card { padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) { .auth-visual img, .auth-visual-copy, .auth-card, .auth-error { animation: none; } }

.alert { background: #fde8e8; color: #a33; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; }

/* ===== الفوتر ===== */
footer.site { background: var(--dark); color: var(--cream-muted); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-mark { width: 64px; height: 43px; fill: var(--brand); margin-bottom: 16px; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: #fff; margin: 0 0 10px; }
.footer-brand p:last-child { font-size: .92rem; line-height: 1.9; max-width: 340px; margin: 0; }
footer.site h4 { color: #fff; margin: 0 0 16px; font-size: 1rem; }
footer.site a, .footer-addr { color: var(--cream-muted); display: block; margin-bottom: 10px; font-size: .92rem; transition: color .2s; }
footer.site a:hover { color: #fff; }
footer.site .bottom { border-top: 1px solid rgba(244, 218, 195, .12); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 22px; font-size: .82rem; color: #b98f7d; }

/* ===== الموبايل والتابلت ===== */
@media (max-width: 1080px) {
  .main-nav { position: absolute; top: 100%; inset-inline: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; border-bottom: 1px solid transparent; }
  .main-header.menu-open .main-nav { max-height: 520px; padding: 10px 24px 20px; border-bottom-color: var(--line); }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:hover { background: transparent; }
  .nav-cta-mobile { display: block; color: var(--brand) !important; font-weight: 700; border-bottom: 0 !important; }
  .menu-toggle { display: grid; }
  .header-row { justify-content: space-between; }
  .hero-copy { grid-template-columns: 1fr; gap: 0; }
  .hero-side .hero-actions { margin-top: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .pd, .about { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: relative; top: 0; }
  .bento-cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .bento-work { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .cta-band { padding: 36px 28px; border-radius: 26px; }
  .filter-bar { position: static; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 16px 0; }
  .topbar .hotline { font-size: .75rem; }
  .header-row { height: 70px; gap: 10px; }
  .header-actions .pill-btn { display: none; }
  .logo-mark { width: 42px; height: 28px; }
  .logo-text b { font-size: 1.15rem; }
  .logo-text small { font-size: .8rem; }
  .hero { min-height: calc(100svh - 104px); align-items: flex-end; }
  /* على الموبايل الصورة فوق بس، عشان اليافطة تبان كاملة والكلام تحتها */
  .hero-media { inset: 0 0 auto 0; height: 58%; }
  .hero-media img { object-position: 74% 42%; }
  .hero-shade, [dir="ltr"] .hero-shade { background: linear-gradient(to top, var(--dark) 0%, var(--dark) 42%, rgba(41, 22, 24, .55) 52%, transparent 66%); }
  .hero-inner { padding-top: 140px; padding-bottom: 44px; }
  .hero-copy h1 { font-size: 2.3rem; }
  .hero-copy .lead { font-size: 1rem; }
  .hero-actions { margin: 22px 0 28px; }
  .hero-stats { gap: 22px; }
  .hero-stats dt { font-size: 1.45rem; }
  .hero-actions .pill-btn { flex: 1; }
  .hero-badge { top: 22px; bottom: auto; inset-inline-start: 16px; inset-inline-end: auto; padding: 10px 14px; }
  .hero-chip, .hero-caption, .hero-scroll { display: none; }
  .marquee span { font-size: 1.1rem; }
  .bento-work { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .work-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .card .body h3 { font-size: .95rem; }
  .card-go { display: none; }
  .steps { grid-template-columns: 1fr; }
  .portfolio-sec { margin-top: 64px; padding: 64px 0; }
  .map-sec { padding-top: 64px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-card { border-radius: 24px; padding: 16px 12px 10px; }
  .map-panel { border-radius: 24px; padding: 22px; }
  .cta-band { margin-top: 64px; }
  .about { padding-bottom: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .search-inline { min-width: 0; width: 100%; }
  .pd-perks { grid-template-columns: 1fr; }
}

/* ===== لوحة التحكم — هادية وعصرية بنفس روح الموقع ===== */
.admin-body { background: #f8f1ea; min-height: 100vh; }
.adm { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }

/* القائمة الجانبية */
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: var(--dark); color: var(--cream); overflow-y: auto; isolation: isolate; }
.adm-side::before { content: ''; position: absolute; inset: auto 0 0; height: 260px; z-index: -1; opacity: .06; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cpath fill='%23f4dac3' d='M300 0L400 100H200Z M200 100L300 200H100Z M400 100L500 200H300Z M100 200L200 300H0Z M500 200L600 300H400Z M200 300L300 400H100Z M400 300L500 400H300Z'/%3E%3C/svg%3E") 0 0 / 84px 56px; }
.adm-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 6px; color: #fff; }
.adm-brand svg { width: 44px; fill: #fff; flex-shrink: 0; }
.adm-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.adm-brand b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; color: #fff; }
.adm-brand small { color: #fff; opacity: .75; font-size: .76rem; }
.adm-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.adm-nav-label { margin: 14px 12px 6px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: rgba(244, 218, 195, .45); }
.adm-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: rgba(244, 218, 195, .82); font-size: .93rem; font-weight: 600; transition: background .2s, color .2s; }
.adm-nav a svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-nav a span { flex: 1; }
.adm-nav a:hover { background: rgba(244, 218, 195, .08); color: #fff; }
.adm-nav a.active { background: var(--cream); color: var(--brand); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.nav-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.adm-nav a.active .nav-badge { background: var(--brand); }
.adm-me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(244, 218, 195, .07); }
.adm-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; }
.adm-me-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.adm-me-txt b { color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-me-txt small { color: var(--cream-muted); font-size: .74rem; }
.adm-icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.adm-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adm-me .adm-icon-btn:hover { background: rgba(244, 218, 195, .12); color: #fff; }
.adm-scrim { display: none; }

/* الجزء الرئيسي */
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 18px clamp(16px, 3vw, 36px); background: rgba(248, 241, 234, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(236, 217, 200, .7); }
.adm-burger { display: none; color: var(--dark); background: #fff; border: 1px solid var(--line); }
.adm-title { flex: 1; min-width: 0; }
.adm-title h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 900; color: var(--dark); line-height: 1.3; }
.adm-title p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.adm-top-actions { display: flex; gap: 8px; }
.adm-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--dark); font-size: .85rem; font-weight: 700; transition: border-color .2s, color .2s; }
.adm-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.adm-chip:hover { border-color: var(--brand); color: var(--brand); }
.adm-content { padding: 26px clamp(16px, 3vw, 36px) 48px; max-width: 1280px; width: 100%; }

/* الكروت والجداول */
.admin-body .panel { background: #fff; border-radius: 24px; border: 1px solid rgba(236, 217, 200, .8); box-shadow: 0 18px 40px -30px rgba(41, 22, 24, .35); margin-bottom: 22px; overflow: hidden; }
.admin-body .panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-body .panel-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; color: var(--dark); }
.admin-body .panel-body { padding: 22px; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { background: transparent; color: var(--muted); font-size: .78rem; font-weight: 700; padding: 12px 16px; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data td { padding: 14px 16px; border-bottom: 1px solid #f3e7dc; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fdf8f3; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 14px; display: block; }
.thumb-ph { width: 54px; height: 54px; border-radius: 14px; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.admin-body .btn { border-radius: 999px; padding: 11px 22px; font-weight: 800; box-shadow: 0 10px 22px -14px rgba(159, 29, 36, .8); }
.admin-body .btn.secondary { background: #fff; color: var(--dark); border: 1px solid var(--line); box-shadow: none; }
.admin-body .btn.secondary:hover { border-color: var(--dark); background: #fff; color: var(--dark); }
.btn-danger { background: #fff !important; color: #b42318 !important; border: 1px solid #f3c9c4 !important; box-shadow: none !important; }
.btn-danger:hover { background: #fdecea !important; }
.btn-sm { padding: 7px 14px !important; font-size: .82rem; }
.admin-body input, .admin-body select, .admin-body textarea { width: 100%; padding: 12px 14px; margin: 6px 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: .95rem; color: var(--dark); transition: border-color .2s, box-shadow .2s; }
.admin-body input:focus, .admin-body select:focus, .admin-body textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(159, 29, 36, .1); }
.admin-body input[type="file"] { padding: 10px; background: #fdf8f3; border-style: dashed; }
.admin-body form.inline select { margin: 0; }

/* الأدوار */
.role { display: inline-block; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.role.admin { background: var(--brand); color: #fff; }
.role.editor { background: var(--accent); color: #fff; }
.role.viewer { background: #efe4da; color: var(--dark); }
.role.staff { background: var(--cream); color: var(--brand-dark); }

/* أرقام سريعة في الصفحة الرئيسية */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(236, 217, 200, .8); border-radius: 24px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; color: var(--dark); transition: transform .2s, box-shadow .2s; }
a.kpi:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(41, 22, 24, .45); }
.kpi b { font-family: var(--font-display); font-size: 2.3rem; font-weight: 900; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.kpi.hot { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border: 0; color: #fff; }
.kpi.hot span { color: var(--cream); }
.kpi.warm { background: var(--cream); border: 0; }
.kpi svg { position: absolute; inset-inline-end: -12px; bottom: -14px; width: 92px; opacity: .1; fill: currentColor; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.new { background: #fdecea; color: var(--brand); }
.status-pill.contacted { background: #fff3e0; color: #b45309; }
.status-pill.scheduled { background: #e8f0fe; color: #1d4ed8; }
.status-pill.done { background: #e7f6ec; color: #15803d; }
.status-pill.cancelled { background: #f1ece8; color: #7a6a62; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3e7dc; }
.team-row:last-child { border-bottom: 0; }
.team-row .adm-avatar { width: 38px; height: 38px; font-size: .95rem; }
.team-row b { flex: 1; }
.team-row small { color: var(--muted); }
.empty-note { color: var(--muted); text-align: center; padding: 26px 10px; margin: 0; }

/* طلبات المعاينة (الإدارة) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.filter-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--dark); font-size: .86rem; font-weight: 700; transition: border-color .2s, background .2s; }
.filter-tabs a em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f6ece3; display: grid; place-items: center; font-size: .74rem; }
.filter-tabs a:hover { border-color: var(--brand); }
.filter-tabs a.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.filter-tabs a.on em { background: var(--brand); color: #fff; }
.filter-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.req-list, .task-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.req-card, .task-card { position: relative; background: #fff; border: 1px solid rgba(236, 217, 200, .8); border-radius: 24px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px -32px rgba(41, 22, 24, .4); }
.req-card::before, .task-card::before { content: ''; position: absolute; inset-block: 22px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--line); }
[dir="rtl"] .req-card::before, [dir="rtl"] .task-card::before { border-radius: 4px 0 0 4px; }
.req-card.new::before, .task-card.new::before { background: var(--brand); }
.req-card.contacted::before, .task-card.contacted::before { background: #d97706; }
.req-card.scheduled::before, .task-card.scheduled::before { background: #2563eb; }
.req-card.done::before { background: #16a34a; }
.req-head { display: flex; align-items: center; gap: 10px; }
.req-id { font-family: var(--font-display); font-weight: 900; color: var(--muted); }
.req-date { margin-inline-start: auto; color: var(--muted); }
.req-card h3, .task-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; color: var(--dark); }
.req-meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.req-meta li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.req-meta li.wide { grid-column: 1 / -1; }
.req-meta span { font-size: .74rem; color: var(--muted); font-weight: 700; }
.req-meta b, .req-meta a { font-size: .92rem; font-weight: 600; color: var(--dark); overflow-wrap: anywhere; }
.req-meta a { color: var(--brand); text-align: start; }
.req-meta li.note b { background: #fdf8f3; border-radius: 12px; padding: 8px 10px; }
.req-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px solid #f3e7dc; margin-top: auto; }
.req-assign { flex: 1; min-width: 140px; }
.req-assign label { display: flex; flex-direction: column; gap: 4px; }
.req-assign label span { font-size: .74rem; font-weight: 700; color: var(--muted); }
.admin-body .req-assign select { margin: 0; padding: 9px 12px; }
.adm-chip.wa { color: #15803d; border-color: #bfe5cb; }
.adm-chip.wa:hover { background: #e7f6ec; color: #15803d; }
/* مسح طلبات المعاينة: زرار أحمر هادي */
button.adm-chip { cursor: pointer; font-family: inherit; }
.adm-chip.danger { color: #b42318; border-color: #f3c9c4; }
.adm-chip.danger:hover { background: #fdecea; color: #b42318; border-color: #e9a59d; }
.adm-chip.danger em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fdecea; display: grid; place-items: center; font-size: .74rem; }
.req-del { margin-inline-start: auto; }
.req-bulk-del { margin-inline-start: auto; }
.req-bulk-del .adm-chip { height: 38px; }
.req-assigned { margin: 0; font-size: .8rem; color: var(--muted); }
.req-who { color: var(--muted); font-weight: 700; flex: 1; }

/* تقرير اليوم */
.report-date { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.report-date label { display: flex; flex-direction: column; gap: 2px; }
.report-date label span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.admin-body .report-date input { margin: 0; width: auto; }
.report-msg { margin: 0; white-space: pre-wrap; font-family: var(--font-text); font-size: .95rem; line-height: 1.9; color: var(--dark); background: #fdf8f3; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.report-send { display: flex; flex-direction: column; gap: 10px; }
.report-send p { margin: 0 0 4px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.report-wa { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: #25D366; color: #fff; box-shadow: 0 12px 26px -16px rgba(37, 211, 102, .9); transition: transform .2s, background .2s; }
.report-wa:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.report-wa svg { width: 30px; height: 30px; flex-shrink: 0; }
.report-wa span { display: flex; flex-direction: column; line-height: 1.3; }
.report-wa small { font-size: .9rem; opacity: .95; text-align: start; }
.report-edit { align-self: flex-start; font-size: .85rem; color: var(--muted); }
.report-edit:hover { color: var(--brand); }

/* مهامي (الموظف) */
.tasks-empty { text-align: center; padding: 50px 20px; }
.tasks-empty svg { width: 90px; fill: var(--cream); margin-bottom: 14px; }
.tasks-empty h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.5rem; }
.tasks-empty p { margin: 0; color: var(--muted); }
.task-when, .task-where { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--dark); line-height: 1.6; }
.task-when svg, .task-where svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; }
.task-when { font-weight: 800; font-size: 1.02rem; }
.task-notes { margin: 0; padding: 10px 12px; border-radius: 14px; background: #fdf8f3; color: #5c4344; font-size: .9rem; line-height: 1.7; }
.task-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.task-contact .btn { display: inline-flex; gap: 6px; align-items: center; }
.task-form { padding-top: 12px; border-top: 1px solid #f3e7dc; }
.task-steps-label { margin: 0 0 8px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.task-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.task-steps label { position: relative; cursor: pointer; }
.task-steps input { position: absolute; opacity: 0; pointer-events: none; }
.task-steps span { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px 8px; border-radius: 14px; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 800; color: var(--dark); transition: border-color .2s, background .2s, color .2s; }
.task-steps label:hover span { border-color: var(--brand); }
.task-steps label.on span { background: var(--brand); border-color: var(--brand); color: #fff; }
.admin-body .task-form textarea { margin: 12px 0; }
.task-save { display: flex; gap: 8px; }
@media (max-width: 600px) {
  .req-list, .task-list { grid-template-columns: 1fr; }
  .req-meta { grid-template-columns: 1fr; }
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 9px 10px; margin: 5px 0 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
label.lbl { font-size: .82rem; color: #5c4344; font-weight: 600; }
.cat-badge { background: var(--cream); color: var(--brand-dark); font-size: .75rem; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.quick-actions a { background: #fdf8f3; border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px; text-align: center; color: var(--dark); font-size: .9rem; font-weight: 700; transition: border-color .2s, transform .2s, background .2s; }
.quick-actions a:hover { border-color: var(--brand); background: #fff; transform: translateY(-2px); }
.quick-actions a span { font-size: 1.5rem; display: block; margin-bottom: 6px; }

@media (max-width: 960px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 60; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); box-shadow: 0 0 60px rgba(0, 0, 0, .35); }
  [dir="ltr"] .adm-side { transform: translateX(-100%); }
  .adm.side-open .adm-side { transform: none; }
  .adm-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(28, 13, 15, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .adm.side-open .adm-scrim { opacity: 1; pointer-events: auto; }
  .adm-burger { display: grid; }
  .adm-chip span { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .adm-content { padding-top: 18px; }
}

@media (max-width: 800px) {
  .slide h1 { font-size: 1.7rem; }
  .slide { min-height: 330px; }
  .about, .pd { grid-template-columns: 1fr; }
  .work-pd { gap: 28px; }
  .pd-media { position: static; }
  .pd-stage { border-radius: 20px; }
  .pd-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .pd-thumb { flex-basis: 70px; height: 54px; }
  .lb-nav { width: 42px; height: 42px; }
  .work-pd .pd-gallery { position: relative; top: 0; }
  .work-more-grid { grid-template-columns: 1fr 1fr; }
  .main-header .row { flex-wrap: wrap; }
  .search-bar { order: 3; flex-basis: 100%; max-width: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .aside { position: static; }
  .menu { display: flex; overflow-x: auto; gap: 4px; }
  .menu a { white-space: nowrap; border-inline-start: 0; border-bottom: 3px solid transparent; }
  .menu a.active { border-bottom-color: var(--gold); }
  .aside-label, .aside-user { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}


/* ===== أزرار التواصل العائمة ===== */
.floating-contact-actions { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.floating-whatsapp { width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s; }
.floating-whatsapp svg { width: 34px; height: 34px; }
.floating-whatsapp:hover { color: #fff; transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 32px rgba(0,0,0,.27); }
/* فيسبوك: نفس شكل الواتساب في الركن التاني */
.floating-facebook { position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 120; width: 60px; height: 60px; border-radius: 50%; background: #1877F2; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s; }
.floating-facebook svg { width: 32px; height: 32px; }
.floating-facebook:hover { color: #fff; transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 32px rgba(0,0,0,.27); }
.floating-inspection { min-height: 48px; display: flex; align-items: center; gap: 9px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 14px; font-weight: 800; box-shadow: 0 9px 24px rgba(0,0,0,.18); transition: transform .2s, background .2s; }
.floating-inspection:hover { color: #fff; background: var(--brand-dark); transform: translateY(-2px); }
.floating-inspection-icon { width: 28px; height: 28px; display: grid; place-items: center; background: rgba(255,255,255,.15); border-radius: 8px; font-size: 1.15rem; }
@keyframes visit-pulse {
  0% { box-shadow: 0 12px 28px -6px rgba(159, 29, 36, .55), 0 0 0 0 rgba(159, 29, 36, .45); }
  70%, 100% { box-shadow: 0 12px 28px -6px rgba(159, 29, 36, .55), 0 0 0 14px rgba(159, 29, 36, 0); }
}
@keyframes visit-shine {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-inspection, .floating-inspection::after { animation: none !important; }
}

/* ===== صفحة طلب المعاينة ===== */
.inspection-page { min-height: 70vh; padding: 54px 0 66px; background: radial-gradient(circle at 15% 20%, rgba(154, 81, 53,.12), transparent 32%), linear-gradient(135deg, var(--cream-light), var(--cream-light)); }
.inspection-container { display: grid; grid-template-columns: minmax(0,.85fr) minmax(520px,1.15fr); gap: 34px; align-items: start; }
.inspection-intro { padding: 34px 10px; position: sticky; top: 110px; }
.inspection-kicker { display: inline-flex; background: rgba(159, 29, 36,.1); color: var(--brand); padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem; margin-bottom: 12px; }
.inspection-intro h1 { font-size: 2.25rem; line-height: 1.3; margin: 0 0 14px; color: var(--dark); }
.inspection-intro p { line-height: 2; color: #5c4344; margin: 0 0 18px; }
.inspection-points { display: grid; gap: 8px; color: #5c4344; font-size: .92rem; }
.inspection-points span::first-letter { color: var(--green); }
.inspection-card { background: #fff; border-radius: 22px; padding: 28px; box-shadow: 0 16px 45px rgba(41, 22, 24,.1); border: 1px solid rgba(154, 81, 53,.22); }
.inspection-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.inspection-card-head h2 { margin: 0; font-size: 1.25rem; }
.inspection-card-head small { color: var(--muted); }
.inspection-form input, .inspection-form select, .inspection-form textarea { background: var(--cream-light); border: 1px solid var(--line); padding: 11px 12px; }
.upload-zone { border: 1.5px dashed var(--line); background: var(--cream-light); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 132px; cursor: pointer; transition: border-color .2s, background .2s; text-align: center; }
.upload-zone:hover { border-color: var(--brand); background: #fff8f5; }
.upload-zone .upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.35rem; margin-bottom: 7px; }
.upload-zone small { color: var(--muted); margin-top: 4px; }
.image-file-names { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.image-file-names span { font-size: .75rem; background: var(--cream-light); padding: 5px 8px; border-radius: 8px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inspection-submit { width: 100%; padding: 13px 20px; font-weight: 800; font-size: 1rem; margin-top: 4px; }
.privacy-note { color: #8a857c; font-size: .75rem; text-align: center; margin: 10px 0 0; }
.form-error { background: #fff0ef; color: #a22b22; border: 1px solid #f0cbc7; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.inspection-success { text-align: center; padding: 24px 10px; }
.success-mark { width: 76px; height: 76px; border-radius: 50%; background: #e7f8ec; color: #1faa55; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; margin: 0 auto 15px; }
.inspection-success h2 { margin: 0 0 10px; }
.inspection-success p { color: #5c4344; line-height: 1.8; }
.success-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.inspection-admin-images { display: flex; gap: 4px; flex-wrap: wrap; width: 120px; }
.inspection-admin-images img { width: 38px; height: 38px; object-fit: cover; border-radius: 7px; border: 1px solid #ddd; }

@media (max-width: 900px) {
  .inspection-container { grid-template-columns: 1fr; }
  .inspection-intro { position: static; padding: 8px 0 0; }
  .inspection-intro h1 { font-size: 1.75rem; }
}
@media (max-width: 600px) {
  .floating-contact-actions { inset-inline-end: 14px; bottom: 14px; }
  /* الواتساب والفيسبوك نفس مقاس زرار المعاينة (56) وعلى نفس السطر بالظبط */
  .floating-whatsapp, .floating-facebook { width: 56px; height: 56px; }
  .floating-whatsapp svg { width: 32px; height: 32px; }
  .floating-facebook svg { width: 30px; height: 30px; }
  .floating-facebook { inset-inline-start: 14px; bottom: 16px; }
  /* الموبايل: زرار طلب المعاينة كبير في نص الشاشة تحت، والواتساب في الركن على نفس السطر */
  .floating-inspection {
    position: fixed; left: 50%; translate: -50% 0; bottom: 16px;
    width: min(300px, calc(100vw - 168px)); min-height: 56px; justify-content: center;
    padding: 10px 18px; border-radius: 999px; font-size: 1.02rem; letter-spacing: 0;
    overflow: hidden; isolation: isolate;
    box-shadow: 0 12px 28px -6px rgba(159, 29, 36, .55);
    animation: visit-pulse 2.6s ease-out infinite;
  }
  .floating-inspection-icon { width: 30px; height: 30px; border-radius: 50%; }
  /* لمعة خفيفة بتعدّي على الزرار */
  .floating-inspection::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%);
    transform: translateX(-120%); animation: visit-shine 3.6s ease-in-out infinite;
  }
  .floating-inspection:hover, .floating-inspection:active { transform: scale(.97); }
  .floating-contact-actions { bottom: 16px; }
  .inspection-page { padding: 30px 0 48px; }
  .inspection-card { padding: 18px 14px; border-radius: 17px; }
  .inspection-card-head { align-items: flex-start; flex-direction: column; }
}

/* كارت الخبرة: زي «معاينة في بيتك» بس بعلامة + حمرا بتنبض */
.hero-exp2 { top: calc(9% + 88px); }
.hero-exp2-plus { width: 10px; height: 10px; border-radius: 50%; background: #e0242d; font-size: 0; color: transparent; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 0 rgba(255, 70, 70, .75); animation: ping-red 2s ease-out infinite; }
@keyframes ping-red { 0% { box-shadow: 0 0 0 0 rgba(255, 70, 70, .75); } 100% { box-shadow: 0 0 0 12px rgba(255, 70, 70, 0); } }
@media (max-width: 700px) { .hero-exp2 { top: 86px; } }
@media (prefers-reduced-motion: reduce) { .hero-exp2-plus { animation: none !important; } }
/* منسّق المعاينات: لونين (أزرق وتركواز) */
.role.dispatcher { background: linear-gradient(135deg, #e0ecff 0 50%, #d4f5ee 50% 100%); color: #1d4ed8; border: 1px solid #9cc3f5; }

/* كروت الأقسام المصممة (فيها الاسم والرقم): نخفي الاسم المكرر والتظليل */
.cat-tile:has(img[src*="/uploads/cat2-"])::after { display: none; }
.cat-tile:has(img[src*="/uploads/cat2-"]) .cat-tile-body { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }

/* ===== دلالة إن الأقسام بتتداس: زرار "تصفّح" على كل كارت + سطر توضيحي ===== */
.cats-hint { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; font-size: .95rem; }
.cats-hint-tap { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.cats-hint-tap::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: tap-ring 1.8s ease-out infinite; }
@keyframes tap-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }
.tile-cta { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 14px 7px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800; color: var(--dark);
  background: rgba(255,255,255,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(41,22,24,.14); transition: background .3s, color .3s, box-shadow .3s; }
.tile-cta i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .8rem; animation: cta-nudge 1.6s ease-in-out infinite; }
@keyframes cta-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
[dir="ltr"] .tile-cta i { transform: scaleX(-1); animation: none; }
.cat-tile:hover .tile-cta { background: var(--dark); color: #fff; box-shadow: 0 8px 22px rgba(41,22,24,.35); }
.cat-tile:hover .tile-cta i { background: #fff; color: var(--brand); }
.cat-tile { transition: transform .35s, box-shadow .35s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(41,22,24,.16); }
.cat-tile:nth-child(1) .tile-cta { bottom: 18px; font-size: .95rem; padding: 9px 18px 9px 12px; }
@media (hover: none) { .tile-arrow { display: none; } }
@media (max-width: 700px) { .tile-cta { font-size: .72rem; padding: 5px 10px 5px 7px; bottom: 8px; gap: 6px; } .tile-cta i { width: 18px; height: 18px; } .cats-hint { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .tile-cta i, .cats-hint-tap::after { animation: none; } }

/* ===== glass-ios: زجاج زي الآيفون على العناصر العائمة بس (الهيدر، الأزرار، الشارات، الخريطة) ===== */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .main-header { background: rgba(253, 248, 243, .62); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); border-bottom: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 1px 0 rgba(41, 22, 24, .06), 0 10px 30px rgba(41, 22, 24, .06); }
  .header-actions .icon-btn, .header-actions .lang-btn, .header-actions .menu-toggle { background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 8px rgba(41, 22, 24, .06); }
  .pill-btn:not(.outline-light):not(.light) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px rgba(159, 29, 36, .22); }
  .pill-btn.outline-light { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-color: rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
  .hero-stats { background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px; padding: 14px 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
  .hero-badge { border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px rgba(0, 0, 0, .15); }
  .badge-cat { background: rgba(253, 248, 243, .55); -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .6); }
  .card-go { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .8); }
  .map-panel { background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 18px 40px rgba(41, 22, 24, .1); }
  .mp-chip { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .8); }
  .search-panel { -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
  .floating-inspection { background: rgba(159, 29, 36, .78); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px rgba(159, 29, 36, .3); }
  .floating-whatsapp { background: rgba(37, 211, 102, .82); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px rgba(37, 211, 102, .3); }
  .floating-facebook { background: rgba(24, 119, 242, .8); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px rgba(24, 119, 242, .3); }
  @media (max-width: 900px) { .main-nav { background: rgba(253, 248, 243, .78); -webkit-backdrop-filter: saturate(1.8) blur(26px); backdrop-filter: saturate(1.8) blur(26px); } }
}

/* ===== المشاريع المثبّتة: أول القائمة في الخريطة + شارة «مميز» ===== */
.mp-pin { display: inline-block; font-style: normal; font-size: .68rem; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 8px; margin-inline-end: 6px; vertical-align: middle; box-shadow: 0 3px 8px rgba(159,29,36,.25); }
.mp-list li.is-pinned > a { background: rgba(159, 29, 36, .06); border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(159, 29, 36, .35); }
.pf-pin-tag { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--brand); background: rgba(159,29,36,.08); border-radius: 999px; padding: 1px 8px; margin-bottom: 3px; }
.pf-row-pinned { background: rgba(159, 29, 36, .04); }
.btn.pf-pinned { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== أعمالنا: إجراءات جماعية ===== */
.pf-bulk { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(253, 248, 243, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); opacity: .55; transition: opacity .2s, box-shadow .2s; }
.pf-bulk.on { opacity: 1; box-shadow: 0 10px 24px rgba(41, 22, 24, .12); border-color: rgba(159, 29, 36, .35); }
.pf-bulk-n { font-weight: 800; margin-inline-end: 6px; }
.pf-bulk-n b { color: var(--brand); }
.pf-bulk-gov { display: inline-flex; gap: 6px; align-items: center; }
.pf-bulk-gov select { font: inherit; padding: 5px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.pf-cb { width: 34px; text-align: center; }
.pf-cb input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }

/* ===== حركة صورة المعرض في الواجهة: زوم بطيء + تتبع الماوس/ميلان الموبايل + زوم مع السكرول ===== */
.hero-media { overflow: hidden; }
.hero-media picture { translate: var(--mx, 0px) var(--my, 0px); scale: 1.05; will-change: translate; }
.hero-media img { scale: var(--hz, 1); }
@media (prefers-reduced-motion: reduce) { .hero-media picture { translate: none; scale: none; } .hero-media img { scale: none; } }

/* ===== المنتجات المميزة (مثبّتة من لوحة التحكم) ===== */
.imgwrap .badge-featured { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; font-size: .74rem; font-weight: 800; color: #fff; background: rgba(159, 29, 36, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 10px; box-shadow: 0 4px 12px rgba(159,29,36,.3); }
.pd-cat-filter { font: inherit; font-weight: 700; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pd-pin-hint { margin: 0 0 10px; font-size: .85rem; color: #8a6d63; }

/* ===== صور كتير للمشروع: عدد الصور + شريط صغير في الخريطة ===== */
.mp-list .mp-thumb{position:relative}
.mp-n{position:absolute;inset-inline-start:4px;bottom:4px;font-style:normal;font-size:10px;font-weight:700;line-height:1;padding:3px 6px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.mp-strip{display:flex;align-items:center;gap:3px;margin-top:6px;flex-wrap:nowrap;overflow:hidden}
.mp-strip img{flex:0 0 auto;width:26px;height:26px;object-fit:cover;border-radius:8px;border:1px solid rgba(0,0,0,.08)}
.mp-strip i{white-space:nowrap;font-style:normal;font-size:11px;font-weight:700;opacity:.75;margin-inline-start:2px}
.pf-n{display:inline-block;font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:#eef2ff;color:#1d4ed8;text-decoration:none;margin-top:4px}

/* ===== الماوس = علامة السهم + صورة الواجهة ثابتة على الموبايل ===== */
.logo-cursor svg { width: 20px; height: 20px; }
@media (hover: none), (pointer: coarse) {
  .hero-media { transform: none !important; will-change: auto; }
  .hero-media picture { translate: none; scale: none; }
  .hero-media img { scale: none; animation: none; }
}

/* ===== صفحة تأكيد طلب المعاينة + صور المكان ===== */
.inspection-success .success-motto { font-size: clamp(1.45rem, 3.2vw, 2.1rem); line-height: 1.5; margin: 6px 0 20px; }
.success-code { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--bg); }
.success-code span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.success-code b { font-size: 1.35rem; letter-spacing: .04em; color: var(--brand); }
.ir-photos { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.ir-photos:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.ir-photos input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ir-photos-cta { font-weight: 700; color: var(--brand); padding: 8px 16px; border-radius: 999px; background: var(--bg); }
.ir-photos-prev { display: flex; gap: 8px; }
.ir-photos-prev img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ===== نقل المنتجات بين الأقسام ===== */
.pd-move-sel { font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; max-width: 210px; }
#pd-bulk select { font: inherit; font-size: .85rem; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }

/* ===== خانة «بدون قسم» في الأقسام ===== */
.cat-none-row td { background: #faf6f1; }
.cat-none-count { display: inline-block; margin-inline-start: 6px; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eee; color: #777; }
.cat-none-row.has-items td { background: #fff4e5; }
.cat-none-row.has-items .cat-none-count { background: #b45309; color: #fff; }

/* ===== صورة المعرض (الواجهة) خلف صفحة تأكيد طلب المعاينة ===== */
.inspection-page.is-success { background: linear-gradient(180deg, rgba(41, 22, 24, .55), rgba(41, 22, 24, .78)), url('/images/storefront-bg.webp') center 40% / cover no-repeat; }
.inspection-page.is-success .inspection-intro,
.inspection-page.is-success .inspection-intro h1,
.inspection-page.is-success .inspection-intro p,
.inspection-page.is-success .inspection-points span { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.inspection-page.is-success .inspection-card { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

/* ===== أرقام التواصل: خدمة العملاء / المبيعات / سعيد شوال ===== */
.contact-list .cl-nums { display: flex; flex-direction: column; gap: 4px; }
.contact-list .cl-nums a { display: block; }
footer.site .ft-label { display: block; margin-top: 10px; font-size: .78rem; font-weight: 700; opacity: .7; letter-spacing: .01em; }
footer.site .ft-label:first-of-type { margin-top: 0; }
footer.site a[href^="tel:"] { unicode-bidi: isolate; text-align: start; }

/* ===== أيقونات السوشيال في آخر الموقع (فيسبوك / إنستجرام / تيك توك / واتساب) ===== */
footer.site .ft-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
footer.site .ft-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); background: rgba(244, 218, 195, .08); border: 1px solid rgba(244, 218, 195, .2); transition: transform .25s, background .25s, color .25s, border-color .25s; padding: 0; }
footer.site .ft-social svg { width: 20px; height: 20px; display: block; }
footer.site .ft-social a:hover, footer.site .ft-social a:focus-visible { transform: translateY(-3px); color: #fff; border-color: transparent; }
footer.site .ft-social a.s-fb:hover { background: #1877f2; }
footer.site .ft-social a.s-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
footer.site .ft-social a.s-tt:hover { background: #111; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
footer.site .ft-social a.s-wa:hover { background: #25d366; }

/* أرقام الفوتر على نفس جهة عناوينها (يمين) */
footer.site a[href^="tel:"] { text-align: right; }
html[lang="en"] footer.site a[href^="tel:"] { text-align: left; }

/* ===== التيك توك: قايمة باختيارين (أحمد شوال للديكور / سعيد شوال) ===== */
footer.site .ft-social .tt-wrap { position: relative; }
footer.site .ft-social button.s-tt { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); background: rgba(244, 218, 195, .08); border: 1px solid rgba(244, 218, 195, .2); cursor: pointer; padding: 0; transition: transform .25s, background .25s, color .25s, box-shadow .25s; }
footer.site .ft-social button.s-tt svg { width: 20px; height: 20px; display: block; }
footer.site .ft-social button.s-tt:hover, footer.site .tt-wrap.open button.s-tt { transform: translateY(-3px); color: #fff; background: #111; border-color: transparent; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }
footer.site .tt-menu { position: absolute; bottom: calc(100% + 12px); inset-inline-start: 50%; transform: translateX(50%); min-width: 220px; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); z-index: 30; animation: tt-in .2s ease-out; }
html[dir="ltr"] footer.site .tt-menu, html[lang="en"] footer.site .tt-menu { transform: translateX(-50%); }
footer.site .tt-menu::after { content: ''; position: absolute; top: 100%; inset-inline-start: 50%; margin-inline-start: -7px; border: 7px solid transparent; border-top-color: #fff; }
footer.site .tt-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; color: var(--dark); font-weight: 700; font-size: .92rem; white-space: nowrap; width: auto; height: auto; background: none; border: 0; }
footer.site .tt-menu a:hover { background: #f6efe8; color: var(--brand); transform: none; }
footer.site .tt-menu .tt-mini { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes tt-in { from { opacity: 0; margin-bottom: -6px; } to { opacity: 1; margin-bottom: 0; } }

/* موبايل: «تابعنا» وأيقونات السوشيال تطلع فوق، تحت اللوجو والنبذة على طول */
@media (max-width: 760px) {
  footer.site .footer-grid > .footer-brand { order: 0; }
  footer.site .footer-grid > div:nth-child(4) { order: 1; }
  footer.site .footer-grid > div:nth-child(2), footer.site .footer-grid > div:nth-child(3) { order: 2; }
  footer.site .ft-social { gap: 12px; }
  footer.site .ft-social a, footer.site .ft-social button.s-tt { width: 48px; height: 48px; }
  footer.site .ft-social svg { width: 22px; height: 22px; }
}

/* ===== مراحل المعاينة: المندوب ← تأكيد المنسّق + الشيتات ===== */
.stage-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.stage-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stage-pill.rep-in_progress { background: #e0e9ff; color: #1d4ed8; }
.stage-pill.rep-inspected { background: #ede4ff; color: #7c3aed; }
.stage-pill.rep-client_cancelled { background: #eceef1; color: #4b5563; }
.stage-pill.final-agreed { background: #dcf5e3; color: #15803d; }
.stage-pill.final-postponed { background: #fdf0d9; color: #b45309; }
.stage-pill.final-cancelled { background: #fbe2e2; color: #991b1b; }
.stage-note { margin: 2px 0 8px; font-size: .85rem; font-weight: 700; color: #7c3aed; }
.task-steps label.step-in_progress.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.task-steps label.step-inspected.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.task-steps label.step-client_cancelled.on { background: #4b5563; border-color: #4b5563; color: #fff; }
.req-meta li.note.final b { border-inline-start: 3px solid #15803d; padding-inline-start: 8px; }
.filter-tabs .review-tab em { background: #7c3aed; color: #fff; }
.filter-tabs .sheets-link { margin-inline-start: auto; font-weight: 700; color: var(--brand); }
.final-form { margin-top: 14px; padding: 14px; border-radius: 16px; background: #faf6f1; border: 1px solid var(--line); display: grid; gap: 10px; }
.final-form.pending { background: #f5f0ff; border-color: #c9b6f5; box-shadow: 0 0 0 3px rgba(124, 58, 237, .08); }
.final-title { margin: 0; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.final-title em { font-style: normal; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #7c3aed; color: #fff; }
.final-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.final-choices label { cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.final-choices input { position: absolute; opacity: 0; pointer-events: none; }
.final-choices label.final-agreed { color: #15803d; border-color: #9fdcb3; }
.final-choices label.final-postponed { color: #b45309; border-color: #f2cf96; }
.final-choices label.final-cancelled { color: #991b1b; border-color: #efb1b1; }
.final-choices label.on.final-agreed { background: #15803d; color: #fff; border-color: #15803d; }
.final-choices label.on.final-postponed { background: #b45309; color: #fff; border-color: #b45309; }
.final-choices label.on.final-cancelled { background: #991b1b; color: #fff; border-color: #991b1b; }
.final-form textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; resize: vertical; }
.final-form .btn { justify-self: start; }
.sheets-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.sheets-bar .filter-tabs { margin: 0; }
.sheets-dl { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; background: #15803d; }
.sheets-dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.filter-tabs .sheet-tab-agreed.on { background: #15803d; border-color: #15803d; }
.filter-tabs .sheet-tab-postponed.on { background: #b45309; border-color: #b45309; }
.filter-tabs .sheet-tab-cancelled.on { background: #991b1b; border-color: #991b1b; }
.sheet-panel { padding: 0; overflow: hidden; }
.sheet-scroll { overflow: auto; max-height: 70vh; }
.sheet-table { min-width: 1500px; font-size: .88rem; }
.sheet-table thead th { position: sticky; top: 0; z-index: 1; background: var(--brand); color: #fff; white-space: nowrap; }
.sheet-table td { vertical-align: top; }
.sheet-table td.col-repNote, .sheet-table td.col-finalNote, .sheet-table td.col-notes, .sheet-table td.col-address { min-width: 220px; white-space: pre-wrap; }
.sheet-table tbody tr:nth-child(even) td { background: #fbf7f3; }


/* ===== تعليقات المنتجات (صفحة المنتج + لوحة التحكم) ===== */
.pc { margin: -40px 0 96px; padding-top: 40px; border-top: 1px solid var(--line); }
.pc-head h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; color: var(--dark); }
.pc-head h2 span { color: var(--muted); font-weight: 700; font-size: .8em; }
.pc-head p { margin: 0 0 24px; color: var(--muted); }
.pc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.pc-form { display: flex; flex-direction: column; gap: 12px; background: var(--cream-light); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.pc-form input[type="text"], .pc-form textarea { width: 100%; box-sizing: border-box; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; color: var(--dark); }
.pc-form textarea { resize: vertical; min-height: 110px; }
.pc-form input:focus, .pc-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.pc-who { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-who label { position: relative; flex: 1 1 140px; }
.pc-who input { position: absolute; opacity: 0; pointer-events: none; }
.pc-who span { display: block; text-align: center; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 700; color: var(--dark); transition: background .2s, color .2s, border-color .2s; }
.pc-who input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.pc-who input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pc-send { align-self: flex-start; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 800; padding: 12px 26px; transition: background .2s; }
.pc-send:hover { background: var(--brand-dark); }
.pc-msg.ok { background: #effaf3; color: #1d7a43; border: 1px solid #c4ead3; padding: 10px 12px; border-radius: 10px; }
.pc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pc-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.pc-av { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.pc-av.anon { background: var(--cream); color: var(--dark); }
.pc-list li > div { min-width: 0; flex: 1; }
.pc-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pc-meta b { color: var(--dark); }
.pc-meta small { color: var(--muted); }
.pc-list p { margin: 6px 0 0; color: var(--dark-2); line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.pc-empty { margin: 0; padding: 30px 10px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
@media (max-width: 860px) { .pc { margin-top: -50px; } .pc-grid { grid-template-columns: 1fr; gap: 24px; } }

.cm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-filters a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--dark); text-decoration: none; font-size: .88rem; font-weight: 700; }
.cm-filters a.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.cm-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.cm-st.pending { background: #fff4e0; color: #9a5b00; }
.cm-st.approved { background: #e7f6ed; color: #1d7a43; }
.cm-anon { color: var(--muted); font-style: italic; }
.cm-body { min-width: 220px; max-width: 420px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.7; }
.cm-table tr.cm-new td { background: #fffaf2; }

/* ===== تفاصيل المنتج (بنود تحت الوصف) ===== */
.pd-details { margin: 6px 0 22px; padding: 18px 20px; background: var(--cream-light); border: 1px solid var(--line); border-radius: 18px; }
.pd-details h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 900; color: var(--dark); }
.pd-details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-details li { position: relative; padding-inline-start: 22px; color: var(--dark-2); line-height: 1.7; }
.pd-details li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ===== الموكيت: علامة «الكمية محدودة» حمرا بتنور وتطفي ===== */
.limited-sign { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 999px; background: #e0101b; color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.3; white-space: nowrap; animation: limited-blink 1.2s ease-in-out infinite; }
.limited-sign i { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.limited-banner { text-align: center; margin: 18px 0 14px; }
.limited-banner .limited-sign { font-size: clamp(1.1rem, 3.4vw, 1.5rem); padding: 11px 28px; }
.limited-line { margin: 10px 0 14px; }
.limited-sign.on-card { position: absolute; z-index: 3; bottom: 12px; inset-inline-start: 12px; font-size: .82rem; padding: 5px 12px; gap: 7px; pointer-events: none; }
.limited-sign.on-card i { width: 8px; height: 8px; }
@keyframes limited-blink { 0%, 45%, 100% { opacity: 1; box-shadow: 0 0 22px 3px rgba(224, 16, 27, .6); } 70%, 80% { opacity: .22; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .limited-sign { animation: none; } }

/* ===== إصلاح عرض صفحة المنتج على الموبايل: خانة منع السبام كانت بتعرّض الصفحة لـ 10000 بكسل ===== */
.pc-form { position: relative; }
.pc-form .pc-hp { position: absolute !important; left: 0 !important; right: auto !important; top: 0 !important; width: 1px !important; height: 1px !important; min-width: 0; min-height: 0; margin: 0; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
html, body.site-body { max-width: 100%; }
@supports (overflow: clip) { body.site-body { overflow-x: clip; } }
/* قايمة الموبايل: خلفية صلبة عشان الكلام يبقى مقروء */
@media (max-width: 1080px) { .main-header .main-nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* رد المعرض على التعليقات */
.pc-reply { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--cream-light); border-inline-start: 4px solid var(--brand); }
.pc-reply .pc-meta { align-items: center; }
.pc-reply-av { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.pc-reply-av svg { width: 22px; fill: var(--brand); }
.pc-reply .pc-meta b { color: var(--brand); }
.pc-reply .pc-meta em { font-style: normal; font-size: .74rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.cm-reply-cell { min-width: 220px; }
.cm-reply-now { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: #fdf3ea; border-inline-start: 3px solid var(--brand); white-space: pre-line; overflow-wrap: anywhere; }
.cm-reply-now b { color: var(--brand); font-size: .8rem; }
.cm-reply { width: 100%; }
.cm-reply summary { display: inline-flex; list-style: none; cursor: pointer; }
.cm-reply summary::-webkit-details-marker { display: none; }
.cm-reply form { margin-top: 8px; }
.admin-body .cm-reply textarea { margin: 0 0 8px; }
