@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

/* ============ الهوية: أسود متدرج + أبيض (من الشعار) ============ */
:root {
  --bg: #0e0e0f;
  --bg-grad: linear-gradient(135deg, #3a3a3c 0%, #232324 28%, #131314 65%, #050505 100%);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f6f7;
  --muted: #a4a4aa;
  --accent: #ffffff;
  --accent-ink: #0d0d0e;
  --ring: rgba(255, 255, 255, 0.55);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f3f3f4;
  --bg-grad: linear-gradient(135deg, #ffffff 0%, #f0f0f1 45%, #dcdcde 100%);
  --surface: rgba(0, 0, 0, 0.035);
  --surface-2: rgba(0, 0, 0, 0.07);
  --line: rgba(0, 0, 0, 0.12);
  --text: #131314;
  --muted: #5d5d63;
  --accent: #141415;
  --accent-ink: #ffffff;
  --ring: rgba(0, 0, 0, 0.5);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Almarai', system-ui, sans-serif;
  background: var(--bg-grad) fixed, var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.4s var(--ease);
}
body.theme-anim * { transition: background-color 0.45s var(--ease), color 0.35s var(--ease), border-color 0.45s var(--ease) !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* الشعار كقناع ليتلوّن تلقائياً حسب الوضع */
.logo-mark { display: inline-block; background: currentColor; -webkit-mask: url(assets/logo.svg) center / contain no-repeat; mask: url(assets/logo.svg) center / contain no-repeat; }

/* ============ شاشة التحميل ============ */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #080808; transition: opacity 0.7s var(--ease), visibility 0.7s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader .logo-mark { width: 92px; height: 92px; color: #fff; animation: spin-in 1.4s var(--ease) both; }
@keyframes spin-in { from { opacity: 0; transform: rotate(-120deg) scale(0.6); } to { opacity: 1; transform: none; } }

/* ============ الشريط العلوي ============ */
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
header.top { position: fixed; inset: 14px 0 auto; z-index: 50; }
.bar {
  display: flex; align-items: center; gap: 18px; padding: 10px 14px 10px 18px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; }
.brand .logo-mark { width: 38px; height: 38px; transition: transform 0.6s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-18deg) scale(1.06); }
.brand small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.18em; margin-top: -6px; }
nav.main { margin-inline-start: auto; display: flex; gap: 4px; }
nav.main a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 0.95rem; position: relative; transition: color 0.3s, background 0.3s; }
nav.main a:hover, nav.main a.active { color: var(--text); background: var(--surface-2); }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); transition: transform 0.4s var(--ease), background 0.3s; }
.icon-btn:hover { background: var(--surface-2); transform: translateY(-2px); }
.theme-toggle .moon { display: none; }
:root[data-theme='light'] .theme-toggle .sun { display: none; }
:root[data-theme='light'] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px var(--accent); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-3px); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ============ البطل ============ */
.hero { position: relative; min-height: 100vh; display: grid; align-items: center; padding: 140px 0 80px; overflow: hidden; }
.hero-art { position: absolute; inset-inline-end: -8vw; top: 50%; width: min(62vw, 760px); aspect-ratio: 1; transform: translateY(-50%); color: var(--text); opacity: 0.07; pointer-events: none; }
.hero-art .logo-mark { width: 100%; height: 100%; animation: float 12s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-18px) rotate(3deg); } }
.hero-inner { position: relative; max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.25; font-weight: 800; margin: 22px 0 18px; letter-spacing: -0.01em; }
.hero h1 span { background: linear-gradient(100deg, var(--text), var(--muted) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.stats span { color: var(--muted); font-size: 0.9rem; }

/* ============ الأقسام ============ */
section.block { padding: 100px 0; position: relative; }
.head { max-width: 640px; margin-bottom: 44px; }
.head .kicker { color: var(--muted); letter-spacing: 0.2em; font-size: 0.78rem; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.head .kicker::before { content: ''; width: 34px; height: 1px; background: var(--text); }
.head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.35; font-weight: 800; margin: 10px 0; }
.head p { color: var(--muted); }

/* ظهور تدريجي عند التمرير */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============ المعرض ============ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: all 0.35s var(--ease); }
.chip:hover { color: var(--text); transform: translateY(-2px); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.work { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-align: start; padding: 0; transform: translateZ(0); animation: pop 0.7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(0.96); } }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s; }
.work:hover img { transform: scale(1.08); }
.work .cap { position: absolute; inset: auto 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); color: #fff; transform: translateY(12px); opacity: 0; transition: all 0.5s var(--ease); }
.work:hover .cap, .work:focus-visible .cap { transform: none; opacity: 1; }
.work .cap b { display: block; font-size: 1.05rem; }
.work .cap span { font-size: 0.82rem; opacity: 0.75; }
.work.ph { display: grid; place-items: center; color: var(--muted); }
.work.ph .logo-mark { width: 38%; aspect-ratio: 1; display: block; opacity: 0.2; transition: transform 0.9s var(--ease), opacity 0.4s; }
.work.ph:hover .logo-mark { transform: rotate(-24deg) scale(1.1); opacity: 0.4; }
.work.ph .cap { opacity: 1; transform: none; background: none; color: var(--text); text-align: center; padding: 0 0 22px; }
.note { margin-top: 22px; color: var(--muted); font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }

/* ============ الخدمات ============ */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s; }
.card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--surface-2), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { transform: translateY(-8px); border-color: var(--ring); }
.card:hover::after { opacity: 1; }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 20px; transition: transform 0.6s var(--ease); }
.card:hover .ico { transform: rotate(-10deg) scale(1.08); }
.card .ico .icon { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.93rem; min-height: 4.6em; }
.card .price { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--muted); }
.card .price b { color: var(--text); font-size: 1.05rem; }
.card .go { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; }
.card .go .icon { transition: transform 0.4s var(--ease); }
.card .go:hover .icon { transform: translateX(-6px); }

/* ============ من نحن ============ */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about p { color: var(--muted); margin-bottom: 14px; }
.team { display: grid; gap: 16px; }
.member { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform 0.5s var(--ease); }
.member:hover { transform: translateX(-8px); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.5rem; flex: none; }
.member b { display: block; font-size: 1.1rem; }
.member span { color: var(--muted); font-size: 0.9rem; }
.tag { display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 999px; background: var(--surface-2); font-size: 0.75rem; }

/* ============ التواصل ============ */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.panel { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.info-list { display: grid; gap: 16px; margin-top: 22px; }
.info-list a, .info-list div { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.info-list .icon { color: var(--text); }
.info-list a:hover { color: var(--text); }

/* ============ النماذج ============ */
form.f { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.fld { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.fld textarea { min-height: 120px; resize: vertical; }
.fld select option { color: #111; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--ring); background: var(--surface-2); box-shadow: 0 0 0 4px var(--surface); }
.fld input::placeholder, .fld textarea::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
.drop { display: grid; place-items: center; gap: 4px; padding: 22px; text-align: center; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); cursor: pointer; transition: all 0.3s; }
.drop:hover, .drop.over { border-color: var(--ring); background: var(--surface); color: var(--text); }
.drop input { display: none; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.files span { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: 0.8rem; }
.msg { min-height: 1.4em; font-size: 0.9rem; }
.msg.err { color: #ff7b7b; }
:root[data-theme='light'] .msg.err { color: #c52828; }
.msg.ok { color: var(--text); }
.hp { position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden; pointer-events: none; }

/* ============ النافذة (طلب تصميم) ============ */
dialog { border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; width: 100%; height: 100%; padding: 16px; margin: 0; overflow: auto; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); }
dialog[open] { display: grid; place-items: center; }
dialog[open] .modal { animation: modal-in 0.55s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
.modal { position: relative; width: min(620px, 100%); padding: 34px; border-radius: 28px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, #888); box-shadow: var(--shadow); }
.modal .close { position: absolute; inset: 16px auto auto 16px; }
.modal h3 { font-size: 1.5rem; margin-bottom: 4px; }
.modal > p { color: var(--muted); margin-bottom: 22px; }
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background 0.5s; }
.steps i.on { background: var(--text); }
.step:not(.on) { display: none !important; }
.step.on { display: block; animation: step-in 0.5s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(-22px); } }
.success { text-align: center; padding: 14px 0; }
.success .big { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); animation: pop 0.7s var(--ease) both; }
.success .big .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.code { display: inline-block; margin-top: 10px; padding: 6px 18px; border-radius: 999px; background: var(--surface-2); letter-spacing: 0.12em; font-weight: 800; }

/* طلباتي */
.orders { display: grid; gap: 10px; margin-top: 18px; }
.order { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.order small { color: var(--muted); display: block; }
.status { padding: 2px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.status.done { background: var(--accent); color: var(--accent-ink); }

/* عارض الصور */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(10px); }
.lightbox.on { display: grid; animation: step-in 0.4s var(--ease) both; }
.lightbox img { max-height: 82vh; border-radius: 18px; box-shadow: var(--shadow); }
.lightbox .cap { color: #fff; text-align: center; margin-top: 14px; }
.lightbox .icon-btn { position: absolute; top: 20px; inset-inline-start: 20px; color: #fff; }

footer { padding: 40px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
footer .brand .logo-mark { width: 30px; height: 30px; }

.toast { position: fixed; inset: auto 50% 26px auto; transform: translate(50%, 30px); z-index: 120; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; opacity: 0; pointer-events: none; transition: all 0.5s var(--ease); }
.toast.on { opacity: 1; transform: translate(50%, 0); }

/* ============ الجوال ============ */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .menu-btn { display: grid; }
  nav.main { position: absolute; inset: 70px 0 auto; flex-direction: column; padding: 14px; border-radius: 26px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, #777); backdrop-filter: blur(18px); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-14px); transition: all 0.45s var(--ease); }
  nav.main.open { opacity: 1; visibility: visible; transform: none; }
  nav.main a { padding: 12px 18px; }
  .bar { position: relative; }
  .bar-actions { margin-inline-start: auto; }
  .brand small { display: none; }
  .hero-art { opacity: 0.05; width: 110vw; inset-inline-end: -40vw; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .modal { padding: 26px 20px; }
  .hide-sm { display: none; }
  section.block { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
form.f > .btn { width: 100%; }

/* ===== تعديلات: شعار كبير بجانب العبارة ===== */
.brand .logo-mark { width: 46px; height: 46px; }
.hero-lockup { display: flex; align-items: center; gap: clamp(28px, 6vw, 80px); }
.hero-logo { flex: none; width: clamp(150px, 25vw, 320px); aspect-ratio: 1; color: var(--text); position: relative; }
.hero-logo::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, var(--surface-2), transparent); animation: pulse-soft 6s ease-in-out infinite; }
.hero-logo .logo-mark { position: relative; width: 100%; height: 100%; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 18px 36px rgba(0,0,0,.35)); }
@keyframes pulse-soft { 50% { transform: scale(1.08); opacity: .6; } }
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.hero h1 .grad { background: linear-gradient(100deg, var(--text), var(--muted) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 800px) { .hero-lockup { flex-direction: column; align-items: flex-start; gap: 18px; } .hero-logo { width: 130px; } }

/* ===== بطاقات المعرض كروابط ===== */
a.work { display: block; color: inherit; }
.work .count { position: absolute; inset: 14px 14px auto auto; padding: 3px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; backdrop-filter: blur(6px); }
.work .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; font-size: .8rem; }

/* ===== صفحة المشروع ===== */
.wk { padding: 130px 0 70px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.wk-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: 34px; }
.wk-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.3; font-weight: 800; margin: 12px 0; }
.wk-head p { color: var(--muted); font-size: 1.05rem; }
.meta { display: grid; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.meta div { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .92rem; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.meta div:last-of-type { border: 0; padding: 0; }
.meta b { color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: 0; cursor: zoom-in; aspect-ratio: 4/3; animation: pop .8s var(--ease) both; animation-delay: var(--d, 0s); }
.shot:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot.ph { display: grid; place-items: center; cursor: default; }
.shot.ph .logo-mark { width: 22%; aspect-ratio: 1; display: block; opacity: .2; }
.wk-nav { display: flex; justify-content: space-between; gap: 14px; margin: 44px 0 26px; }
.wk-nav a { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: transform .4s var(--ease), border-color .3s; }
.wk-nav a:hover { transform: translateY(-4px); border-color: var(--ring); }
.wk-nav small { color: var(--muted); }
.wk-nav .next { text-align: start; } .wk-nav .prev { text-align: end; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 34px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
.cta h3 { font-size: 1.4rem; } .cta p { color: var(--muted); }
@media (max-width: 800px) { .wk-head { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr; } .shot:first-child { aspect-ratio: 4/3; } .wk-nav { flex-direction: column; } }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; }
.lightbox .nav.l { inset-inline-start: 20px; } .lightbox .nav.r { inset-inline-end: 20px; }
.hero h1 span:not(.grad) { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; }

/* ===== محادثة الطلب ===== */
.order { width: 100%; text-align: start; cursor: pointer; transition: transform .35s var(--ease), border-color .3s; }
.order:hover { transform: translateY(-3px); border-color: var(--ring); }
.status.new-msg { background: var(--accent); color: var(--accent-ink); animation: pulse 2s infinite; }
#myOrdersBtn.dot { position: relative; }
#myOrdersBtn.dot::after { content: ''; position: absolute; top: 2px; inset-inline-end: 4px; width: 9px; height: 9px; border-radius: 50%; background: #ff5d5d; }
.chat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.chat-head small { margin-inline-start: 8px; }
.chat-msgs { display: flex; flex-direction: column; gap: 10px; height: min(380px, 48vh); overflow-y: auto; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.bub { max-width: 82%; padding: 10px 14px; border-radius: 18px; background: var(--surface-2); line-height: 1.7; animation: pop .4s var(--ease) both; }
.bub small { display: block; margin-top: 4px; font-size: .7rem; opacity: .6; }
.bub.client { align-self: flex-start; background: var(--accent); color: var(--accent-ink); border-end-start-radius: 4px; }
.bub.admin { align-self: flex-end; border-end-end-radius: 4px; }
.bub .dl { margin-top: 8px; padding: 8px 16px; font-size: .85rem; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.chat-form textarea { flex: 1; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); resize: none; max-height: 120px; }
.chat-form textarea:focus { outline: none; border-color: var(--ring); }

/* ===== قبل / بعد ===== */
.ba { position: relative; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; user-select: none; touch-action: pan-y; background: var(--surface); --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .top { clip-path: inset(0 0 0 var(--pos)); }
.ba .ln { position: absolute; top: 0; bottom: 0; inset-inline-start: auto; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 12px rgba(0,0,0,.5); }
.ba .knob { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); font-weight: 800; font-size: .8rem; }
.ba .lab { position: absolute; top: 14px; padding: 4px 14px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; backdrop-filter: blur(6px); }
.ba .lab.b { right: 14px; } .ba .lab.a { left: 14px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:focus-within .knob { outline: 3px solid var(--ring); }
@media (max-width: 800px) { .ba { aspect-ratio: 4/3; } }
[hidden] { display: none !important; }
