/* صفحة الزوار — غرفة مونتاج: شاشة معاينة + تايم لاين، والصفحة كلها مشاهد */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { overflow-x: hidden; }
em { font-style: normal; color: var(--c-video); }

/* ───── الشريط العلوي ───── */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(12,11,16,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top-in { height: 62px; display: flex; align-items: center; gap: 18px; }
.nav { display: none; gap: 6px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--mute); font: 500 15px/1 var(--f-display); padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--paper); background: var(--ink-3); }
.tc { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.scrub { position: relative; height: 4px; }
.scrub-segs { position: absolute; inset: 0; display: flex; gap: 2px; direction: ltr; }
.scrub-segs i { height: 100%; border-radius: 1px; opacity: .55; }
.scrub-ph { position: absolute; top: -3px; left: 0; width: 2px; height: 10px; background: var(--rec); border-radius: 1px; box-shadow: 0 0 8px var(--rec); will-change: transform; }
@media (min-width: 860px) { .nav { display: flex; } .tc { margin-inline-start: 18px; } }

/* ───── البداية ───── */
.hero { position: relative; min-height: 100svh; padding: 96px 0 48px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 80%; background: radial-gradient(50% 50% at 70% 40%, rgba(62,224,196,.16), transparent 70%), radial-gradient(40% 40% at 20% 60%, rgba(180,140,255,.14), transparent 70%); z-index: -1; }
.grain { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1fr 1.08fr; gap: 56px; } }
.hero-copy, .editor { min-width: 0; }

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 14px/1 var(--f-display); color: var(--mute); }
.eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--mute-2); }
.h1 { margin: 0; font: 900 clamp(52px, 13vw, 108px)/1.42 var(--f-display); letter-spacing: -.01em; }
.h1 > span { display: block; }
.h1 .l1 { color: var(--mute); font-weight: 700; font-size: .62em; }
.h1 .l3 { background: linear-gradient(90deg, var(--paper), #d8cffd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 22px 0 30px; font: 500 clamp(18px, 4.4vw, 22px)/1.6 var(--f-display); color: var(--mute); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* شاشة المعاينة */
.editor { display: grid; gap: 12px; }
.monitor { border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02); }
.mon-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font: 500 12px/1 var(--f-display); color: var(--mute); border-bottom: 1px solid var(--line); }
.mon-bar span:first-child { display: flex; align-items: center; gap: 8px; }
/* التايم لاين */
.tl { position: relative; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); padding: 8px 10px 10px; display: grid; gap: 5px; overflow: hidden; }
.tl-ruler { display: flex; justify-content: space-between; font-size: 10px; color: var(--mute-2); padding-inline-start: 46px; direction: ltr; }
.trk { display: grid; grid-template-columns: 40px 1fr; gap: 6px; align-items: center; }
.lbl { font: 500 10px/1 var(--f-display); color: var(--mute-2); font-style: normal; }
.lane { height: 20px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.025); direction: ltr; }
.belt { display: flex; gap: 3px; height: 100%; width: max-content; animation: belt 22s linear infinite; will-change: transform; }
.belt > * { display: block; height: 100%; width: calc(var(--w) * 4px); border-radius: 4px; flex: none; }
.b-v b { background: linear-gradient(180deg, color-mix(in srgb, var(--c-video) 75%, #fff), var(--c-video)); }
.b-t b { background: var(--c-text); }
.b-t u, .b-f u { background: transparent; }
.b-f b { background: var(--c-fx); border-radius: 50%; width: 20px; transform: scale(.7); }
.b-a { gap: 2px; align-items: center; }
.b-a i { width: 3px; border-radius: 2px; background: var(--c-audio); opacity: .85; flex: none; }
@keyframes belt { to { transform: translateX(-50%); } }
.tl-ph { position: absolute; top: 4px; bottom: 4px; left: calc(46px + (100% - 66px) * .42); width: 2px; background: var(--rec); box-shadow: 0 0 10px var(--rec); }
.tl-ph::before { content: ''; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--rec); }

/* ───── الأقسام ───── */
.sec { padding: 88px 0; position: relative; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--f-display); color: var(--mute); margin-bottom: 14px; }
.mark .mono { color: var(--ink); background: var(--paper); padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.h2 { margin: 0 0 34px; font: 900 clamp(34px, 8vw, 60px)/1.45 var(--f-display); }
.sub { color: var(--mute); font-size: 18px; max-width: 34ch; margin: -14px 0 0; }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.on { opacity: 1; transform: none; }

/* لوحة المؤثرات */
.sec-fx { background: linear-gradient(180deg, transparent, rgba(255,107,139,.05) 40%, transparent); }
.fx-in { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .fx-in { grid-template-columns: 1fr 1.1fr; } }
.fxpanel { border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.fx-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 700 14px/1 var(--f-display); color: var(--mute); }
.fxpanel ul { list-style: none; margin: 0; padding: 6px; }
.fxpanel li { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; font: 600 16px/1.4 var(--f-display); color: var(--mute); transition: background .4s, color .4s; }
.fx-ic { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; opacity: .35; transition: opacity .4s, box-shadow .4s; }
.sw { margin-inline-start: auto; width: 38px; height: 22px; border-radius: 11px; background: var(--ink-3); position: relative; flex: none; transition: background .35s; }
.sw::after { content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--mute-2); transition: transform .35s cubic-bezier(.3,1.4,.5,1), background .35s; }
.fxpanel li.on { color: var(--paper); background: rgba(255,255,255,.025); }
.fxpanel li.on .fx-ic { opacity: 1; box-shadow: 0 0 12px var(--c); }
.fxpanel li.on .sw { background: color-mix(in srgb, var(--c-video) 30%, var(--ink-3)); }
.fxpanel li.on .sw::after { transform: translateX(-16px); background: var(--c-video); }

/* الأعمال */
.filters { display: flex; gap: 8px; overflow-x: auto; margin: -10px -16px 22px; padding: 4px 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mute); font: 600 15px/1 var(--f-display); cursor: pointer; transition: all .2s; }
.filters button.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.works { columns: 2 170px; column-gap: 12px; }
@media (min-width: 900px) { .works { columns: 3 260px; column-gap: 16px; } }
.work { break-inside: avoid; margin-bottom: 12px; border-radius: 18px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); cursor: pointer; position: relative; display: block; text-decoration: none; transition: transform .3s, border-color .3s; }
@media (min-width: 900px) { .work { margin-bottom: 16px; } }
.work:hover { transform: translateY(-3px); border-color: var(--mute-2); }
.work-m { position: relative; background: #000; overflow: hidden; }
.work-m img, .work-m video { width: 100%; height: 100%; object-fit: cover; }
.work-m .ph-ratio { display: block; }
.work .play { position: absolute; inset: 0; display: grid; place-items: center; }
.work .play i { width: 54px; height: 54px; border-radius: 50%; background: rgba(12,11,16,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); }
.work .play svg { width: 20px; height: 20px; fill: #fff; transform: translateX(2px); }
.work .dur { position: absolute; bottom: 8px; left: 8px; font-size: 11px; background: rgba(0,0,0,.65); padding: 3px 7px; border-radius: 6px; }
.work-t { padding: 12px 14px 14px; }
.work-t b { display: block; font: 700 15px/1.55 var(--f-display); }
.work-t small { color: var(--mute); font-size: 13px; }
.work .kind { position: absolute; top: 8px; right: 8px; font: 600 11px/1 var(--f-display); padding: 6px 9px; border-radius: 999px; background: rgba(12,11,16,.7); color: var(--k, var(--c-video)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work[data-cat="deck"] { --k: var(--c-text); } .work[data-cat="design"] { --k: var(--c-fx); } .work[data-cat="site"] { --k: var(--c-amber); } .work[data-cat="system"] { --k: var(--c-audio); }
.wcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.wc { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--f-display); padding: 6px 9px; border-radius: 999px; background: var(--ink-3); color: var(--mute); }
.wc svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.work[data-cat="deck"] .work-m img { object-fit: cover; }
.work.site-card .work-m { padding: 16px 16px 0; background: radial-gradient(90% 80% at 50% 100%, rgba(255,194,74,.22), transparent 70%), var(--ink-3); }
.work.site-card .work-m img { border-radius: 12px 12px 0 0; aspect-ratio: 9 / 15; object-position: top; box-shadow: 0 -4px 30px rgba(0,0,0,.5); }
.empty { color: var(--mute); text-align: center; padding: 30px 0; }

/* الخطوات */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 22px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: '0' counter(s); position: absolute; top: 20px; left: 20px; font: 600 13px/1 ui-monospace, monospace; color: var(--mute-2); }
.st-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c-audio) 14%, transparent); margin-bottom: 16px; }
.st-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--c-audio); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps b { display: block; font: 800 20px/1.5 var(--f-display); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--mute); }
.transition-delay-1 { transition-delay: .12s; }

/* الأسعار */
.prices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.price { position: relative; padding: 24px 22px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; --k: var(--c-video); }
.price[data-cat="deck"] { --k: var(--c-text); } .price[data-cat="design"] { --k: var(--c-fx); } .price[data-cat="site"] { --k: var(--c-amber); }
.price.hl { border-color: color-mix(in srgb, var(--k) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 30%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--k) 45%, transparent); }
.price .badge { position: absolute; top: -12px; right: 20px; font: 700 12px/1 var(--f-display); padding: 7px 12px; border-radius: 999px; background: var(--k); color: var(--ink); }
.price h3 { margin: 0; font: 800 20px/1.5 var(--f-display); display: flex; align-items: center; gap: 10px; }
.price h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.price .amt { font: 900 30px/1.35 var(--f-display); }
.price .amt small { font: 500 14px/1 var(--f-display); color: var(--mute); margin-inline-start: 6px; }
.price .amt.ask { font-size: 20px; color: var(--mute); }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--mute); }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: color-mix(in srgb, var(--k) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23f4f1ea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.price .note { font-size: 13px; color: var(--mute-2); margin: 0; }
.price .btn { margin-top: auto; }
.price-ask { text-align: center; align-items: center; padding: 36px 22px; }
.price-ask p { margin: 0; color: var(--mute); font-size: 18px; }

/* الختام */
.end { padding: 100px 0 30px; position: relative; overflow: hidden; }
.end::before { content: ''; position: absolute; inset: auto -20% -40%; height: 90%; background: radial-gradient(50% 50% at 50% 50%, rgba(180,140,255,.18), transparent 70%); z-index: -1; }
.end-in { text-align: center; display: grid; justify-items: center; gap: 30px; }
.end-h { margin: 0; font: 900 clamp(40px, 10vw, 84px)/1.42 var(--f-display); }
.btn-big { min-height: 62px; padding: 0 32px; font-size: 19px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 90px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-tc { font-size: 11px; color: var(--mute-2); }

/* المشاهدة الكبيرة */
/* المشاهدة الكبيرة: شاشة كاملة، تكبير للصور، تشغيل للفيديو، تقليب للشرائح، وزر للموقع الأصلي */
.lb { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6,5,9,.96); color: var(--paper); display: none; grid-template-rows: auto 1fr auto; overflow: hidden; }
.lb[open] { display: grid; }
.lb::backdrop { background: rgba(5,4,8,.9); }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.lb-h { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lb-k { font: 600 12px/1.4 var(--f-display); color: var(--c-video); }
.lb-t { margin: 0; font: 800 17px/1.5 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-n { font-size: 12px; color: var(--mute); direction: ltr; }
.lb-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.lb-x svg, .lb-nav svg { width: 18px; height: 18px; stroke: var(--paper); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 12px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb-stage > * { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background: #000; animation: lbIn .35s ease-out; }
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } }
.lb-stage img { cursor: zoom-in; -webkit-user-select: none; user-select: none; }
.lb-stage video { width: 100%; height: 100%; }
.lb-stage .cap { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 999px; font: 600 12px/1 var(--f-display); animation: none; }
.lb-stage.zoom { overflow: auto; place-items: start center; touch-action: auto; }
.lb-stage.zoom img { max-width: none; max-height: none; width: min(var(--nw), 240%); cursor: zoom-out; border-radius: 0; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(20,19,27,.8); cursor: pointer; display: grid; place-items: center; }
.lb-next { right: 14px; } .lb-prev { left: 14px; }
.lb-nav[hidden] { display: none; }
.lb-foot { display: grid; gap: 10px; padding: 10px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 64px; height: 40px; padding: 0; border-radius: 6px; border: 2px solid transparent; background: #000 center / cover; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.lb-thumbs button.on { opacity: 1; border-color: var(--c-video); }
.lb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lb-d { flex: 1 1 220px; margin: 0; color: var(--mute); font: 500 14px/1.6 var(--f-display); }
.lb-act { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-act .btn { min-height: 44px; font-size: 15px; }
.lb-act .chip { height: 44px; }
.chip svg, .lb-act .btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* الحساب بالتكبير يمشي من اليسار (الصورة ما تهمها الجهة) */
.lb-stage { direction: ltr; }
.lb-stage .cap { direction: rtl; }
