/* جولة لوحة التحكم — شاشة مثبّتة: لوحة متحركة ← ميزات ← آيفون بالثيمات */
.sc { position: relative; height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 520px; }
.sc-stage { position: relative; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 18px; max-width: 1440px; margin: 0 auto; overflow: hidden; }
.sc-stage::before { content: ""; position: absolute; inset: 10% 15% auto; height: 60%; background: radial-gradient(closest-side, rgba(139,92,246,.16), transparent 70%); filter: blur(40px); pointer-events: none; opacity: .8; }
html[data-theme="light"] .sc-stage::before { opacity: .45; }

.sc-head { position: relative; z-index: 2; text-align: center; flex: none; }
.sc-head .eyebrow { margin-bottom: 4px; }
.sc-title { position: relative; height: 1.4em; font-size: clamp(1.25rem, 2.6vw, 2.1rem); line-height: 1.4; font-weight: 700; letter-spacing: -.03em; }
.sc-title span { position: absolute; inset: 0; white-space: nowrap; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .55s var(--ease), transform .7s cubic-bezier(.16,1,.3,1), filter .55s var(--ease); }
.sc-title span.on { opacity: 1; transform: none; filter: none; }

.sc-view { position: relative; flex: 1; min-height: 0; }

/* ===== اللوحة ===== */
.sc-dash { position: absolute; top: 50%; left: 50%; width: 1000px; transform: translate(-50%,-50%); transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity .8s var(--ease), filter .8s var(--ease); }
.sc-dash::after { content: ""; position: absolute; inset: -1px; border-radius: 25px; pointer-events: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px rgba(0,0,0,.55), 0 0 80px rgba(139,92,246,.12); }
html[data-theme="light"] .sc-dash::after { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 90px rgba(20,20,30,.22); }
.sc.is-burst .sc-dash { filter: blur(6px) brightness(.55); transform: translate(-50%,-50%) scale(.97); }
.sc.is-phone .sc-dash { opacity: 0; transform: translate(-50%,-50%) scale(.82) rotateX(14deg); filter: blur(8px); pointer-events: none; }

.dm-wrap { --side:#1c1c1e; --card:#1c1c1e; --mut:#9b9ba3; --acc:#8b5cf6; --green:#22c55e;
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 24px; background: #000;
  font-family: 'IBM Plex Sans Arabic', Tahoma, sans-serif; color: #f5f5f7; direction: rtl; line-height: normal; user-select: none; }
.dm-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.dm-stage { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: top left; display: flex; background: #000; }
.dm-r { opacity: 0; transform: translateY(26px); }
.dm-stage.in .dm-r { opacity: 1; transform: none; transition: opacity .7s ease var(--d,0s), transform 1s cubic-bezier(.16,1,.3,1) var(--d,0s); }

.dm-side { width: 360px; flex: none; background: var(--side); display: flex; flex-direction: column; position: relative; transform: translateX(60px); opacity: 0; }
.dm-stage.in .dm-side { transform: none; opacity: 1; transition: all 1s cubic-bezier(.16,1,.3,1); }
.dm-side-ttl { font-size: 23px; font-weight: 700; padding: 34px 26px 18px; }
.dm-sv { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(#000 92%,transparent); mask-image: linear-gradient(#000 92%,transparent); }
.dm-sl { position: absolute; top: 0; right: 0; left: 0; padding: 4px 18px 40px 30px; will-change: transform; }
.dm-sec { color: #8e8e96; font-size: 15px; font-weight: 600; padding: 20px 14px 8px; }
.dm-nav { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 14px; border-radius: 16px; font-size: 19px; font-weight: 600; color: #f2f2f4; position: relative; transition: background .25s ease, transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s; }
.dm-nav svg { width: 24px; height: 24px; flex: none; }
.dm-nav.sub { height: 46px; font-size: 17px; padding-right: 38px; gap: 18px; }
.dm-nav.sub svg { width: 19px; height: 19px; }
.dm-nav .dm-chev { position: absolute; left: 14px; width: 14px; height: 14px; opacity: .5; }
.dm-nav.hover { background: rgba(255,255,255,.06); }
.dm-nav.on { background: #000; }
.dm-nav.focus { background: rgba(139,92,246,.2); transform: scale(1.07); transform-origin: right center; box-shadow: 0 0 0 1.5px rgba(167,139,250,.7), 0 12px 34px rgba(139,92,246,.35); z-index: 2; }
.dm-nav.focus::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #a78bfa; animation: dm-ping 1.2s ease-out infinite; }
@keyframes dm-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.12,1.5); } }
.dm-thumb { position: absolute; left: 6px; top: 0; width: 6px; height: 170px; border-radius: 9px; background: var(--acc); will-change: transform; }
.dm-user { display: flex; align-items: center; gap: 14px; padding: 16px 22px 20px; border-top: 1px solid #26262a; }
.dm-av { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#f5f5f5,#9ca3af); position: relative; }
.dm-av::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--acc); border: 3px solid var(--side); }
.dm-user b { font-size: 18px; display: block; } .dm-user small { color: var(--mut); font-size: 14px; }
.dm-lo { margin-right: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(239,68,68,.15); display: grid; place-items: center; }

.dm-main { flex: 1; min-width: 0; padding: 22px 62px 0 78px; display: flex; flex-direction: column; }
.dm-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.dm-top .dm-t { display: flex; align-items: center; gap: 22px; font-size: 34px; font-weight: 700; }
.dm-circ { width: 52px; height: 52px; border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; }
.dm-tools { display: flex; gap: 12px; align-items: center; }
.dm-search { width: 375px; height: 52px; border-radius: 99px; background: #1c1c1e; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 10px; color: #8e8e96; font-size: 18px; }
.dm-kbd { background: #000; border-radius: 99px; padding: 6px 10px; font-size: 13px; color: #ccc; direction: ltr; }
.dm-mode { display: flex; background: #1c1c1e; border-radius: 99px; padding: 6px; gap: 4px; }
.dm-mode i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; } .dm-mode i:first-child { background: #2c2c30; }
.dm-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 52px 0 22px; }
.dm-head small { color: var(--mut); font-size: 15px; } .dm-head h1 { font-size: 38px; font-weight: 700; margin-top: 6px; }
.dm-acts { display: flex; gap: 12px; align-items: center; }
.dm-btn { height: 48px; padding: 0 18px; border-radius: 99px; background: #1c1c1e; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; transition: transform .2s, background .2s; }
.dm-btn.w { background: #fff; color: #000; height: 58px; padding: 0 30px; font-size: 20px; }
.dm-btn.hover { background: #2a2a2f; } .dm-btn.w.hover { background: #e9e9ee; }
.dm-btn.w svg.spin { animation: dm-spin .8s cubic-bezier(.5,0,.3,1); }
@keyframes dm-spin { to { transform: rotate(-360deg); } }
.dm-seg { display: flex; background: #1c1c1e; border-radius: 99px; padding: 6px; position: relative; gap: 2px; }
.dm-seg span { position: relative; z-index: 1; padding: 10px 18px; font-size: 17px; font-weight: 600; color: #8e8e96; transition: color .4s; }
.dm-seg span.on { color: #fff; }
.dm-seg .dm-pill { position: absolute; top: 6px; bottom: 6px; border-radius: 99px; background: #000; transition: left .7s cubic-bezier(.16,1,.3,1), width .7s cubic-bezier(.16,1,.3,1); }

.dm-kpis, .dm-row2 { display: grid; grid-template-columns: 560px 1fr 1fr; gap: 16px; }
.dm-row2 { margin-top: 16px; flex: 1; min-height: 0; padding-bottom: 26px; }
.dm-card { background: var(--card); border-radius: 28px; padding: 24px 22px; position: relative; overflow: hidden; transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s; }
.dm-card.hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(139,92,246,.45), 0 20px 50px rgba(139,92,246,.15); }
.dm-lbl { font-size: 16px; color: #d4d4d8; }
.dm-num { direction: ltr; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.dm-big .dm-num { font-size: 50px; margin-top: 6px; }
.dm-sm .dm-num { font-size: 30px; margin-top: 14px; }
.dm-bal { display: flex; gap: 8px; margin-top: 12px; font-size: 16px; color: #cfcfd4; } .dm-bal b { direction: ltr; color: #fff; }
.dm-krow { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.dm-pb { height: 58px; border-radius: 99px; padding: 0 26px; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; background: #28282c; }
.dm-pb.w { background: #fff; color: #000; } .dm-pb.c { width: 54px; padding: 0; justify-content: center; }
.dm-trk { position: absolute; right: 22px; left: 22px; bottom: 22px; height: 14px; border-radius: 99px; background: #2e2e33; overflow: hidden; direction: ltr; }
.dm-trk b { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg,#a78bfa,#8b5cf6); transition: width 2.6s cubic-bezier(.16,1,.3,1); }
.dm-bars { position: absolute; right: 24px; left: 24px; bottom: 20px; height: 110px; display: flex; align-items: flex-end; gap: 8px; direction: ltr; }
.dm-bars i { flex: 1; height: 0; border-radius: 6px 6px 3px 3px; background: var(--acc); transition: height 1.4s cubic-bezier(.16,1,.3,1); }
.dm-tr { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--green); background: rgba(34,197,94,.12); border-radius: 99px; padding: 3px 10px; direction: ltr; }
.dm-card h4 { font-size: 20px; font-weight: 700; } .dm-card p.s { font-size: 15px; color: var(--mut); margin-top: 4px; }
.dm-ch svg { width: 100%; height: 380px; margin-top: 18px; overflow: visible; }
.dm-ch .ln { fill: none; stroke-width: 4; stroke-linecap: round; }
.dm-ch .ar { opacity: 0; transition: opacity 1.2s ease .8s; } .dm-ch.go .ar { opacity: 1; }
.dm-ch text { fill: #8e8e96; font-size: 14px; font-family: inherit; }
.dm-lg { display: flex; justify-content: center; gap: 26px; font-size: 15px; color: #cfcfd4; margin-top: 6px; }
.dm-lg i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-left: 8px; vertical-align: middle; }
.dm-hm { display: grid; grid-template-columns: 50px repeat(7,1fr); gap: 7px; margin-top: 22px; align-items: center; }
.dm-hm .dl, .dm-hm .hl { font-size: 13px; color: #cfcfd4; text-align: center; }
.dm-hm i { height: 54px; border-radius: 8px; background: #2a2a2e; transition: background .5s ease; }
.dm-tx { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.dm-tx > div { display: flex; align-items: center; justify-content: space-between; background: #2a2a2e; border-radius: 16px; height: 58px; padding: 0 16px; transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .6s; }
.dm-tx > div.new { opacity: 0; transform: translateY(-20px) scale(.96); }
.dm-tx .n { display: flex; align-items: center; gap: 12px; }
.dm-tx .d { width: 9px; height: 9px; border-radius: 50%; }
.dm-tx b { font-size: 16px; font-weight: 600; } .dm-tx small { display: block; font-size: 13px; color: var(--mut); }
.dm-tx .a { direction: ltr; font-weight: 700; font-size: 16px; }
.dm-rf { position: absolute; left: 20px; top: 22px; width: 46px; height: 46px; border-radius: 50%; background: #2a2a2e; display: grid; place-items: center; }

.dm-dim { position: absolute; top: 0; left: 0; width: 1560px; height: 1080px; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .6s ease; z-index: 20; }
.dm-dim.on { opacity: 1; }
.dm-tip { position: absolute; left: 0; top: 0; width: 470px; z-index: 30; pointer-events: none; opacity: 0; transform: translateX(30px) scale(.92); transform-origin: right center; transition: opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.dm-tip.on { opacity: 1; transform: none; }
.dm-wrap.is-small .dm-tip { display: none; }
.dm-tip .bx { background: rgba(30,30,34,.94); border: 1px solid rgba(167,139,250,.45); border-radius: 24px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(139,92,246,.18); position: relative; }
.dm-tip .bx::after { content: ""; position: absolute; right: -9px; top: var(--ay,50%); width: 16px; height: 16px; margin-top: -8px; background: #1e1e22; border-top: 1px solid rgba(167,139,250,.45); border-right: 1px solid rgba(167,139,250,.45); transform: rotate(45deg); }
.dm-tip .hd { display: flex; align-items: center; gap: 14px; }
.dm-tip .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.dm-tip .ic svg { width: 26px; height: 26px; }
.dm-tip h5 { font-size: 24px; font-weight: 700; }
.dm-tip .k { font-size: 13px; color: #a78bfa; font-weight: 600; }
.dm-tip p { font-size: 18px; color: #cfcfd6; line-height: 1.7; margin-top: 12px; }
.dm-tip .cp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dm-tip .cp span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(139,92,246,.14); color: #ddd6fe; }
.dm-tip .cp span, .dm-tip p, .dm-tip .hd { opacity: 0; transform: translateY(8px); }
.dm-tip.on .hd, .dm-tip.on p, .dm-tip.on .cp span { opacity: 1; transform: none; transition: all .5s cubic-bezier(.16,1,.3,1); }
.dm-tip.on p { transition-delay: .08s; } .dm-tip.on .cp span { transition-delay: calc(.15s + var(--i)*.06s); }

.dm-cur { position: absolute; top: 0; left: 0; width: 34px; height: 34px; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .5s; will-change: transform; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.dm-wrap.is-small .dm-cur { width: 70px; height: 70px; }
.dm-cur.on { opacity: 1; }
.dm-cur svg { width: 100%; height: 100%; transition: transform .15s ease; transform-origin: 4px 3px; }
.dm-cur.press svg { transform: scale(.82); }
.dm-rip { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); pointer-events: none; z-index: 49; animation: dm-rip .6s ease-out forwards; }
@keyframes dm-rip { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

/* شرح الخطوة تحت اللوحة (للشاشات الصغيرة) */
.sc-caption { position: relative; z-index: 3; flex: none; display: none; min-height: 118px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: opacity .4s var(--ease), transform .5s cubic-bezier(.16,1,.3,1); }
.sc.is-small .sc-caption { display: block; }
.sc.is-burst .sc-caption, .sc.is-phone .sc-caption { opacity: 0; transform: translateY(10px); }
.sc-caption b { display: block; font-size: 16px; font-weight: 700; }
.sc-caption p { margin-top: 4px; color: var(--text-soft); font-size: 13.5px; line-height: 1.7; }
.sc-caption .k { font-size: 12px; color: #8b5cf6; font-weight: 600; }
html[data-theme="light"] .sc-caption .k { color: #6d3fe0; }

/* ===== لحظات الميزات ===== */
.sc-burst { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.sc-burst::before { content: ""; position: absolute; inset: 0; border-radius: 28px; background: radial-gradient(ellipse at 50% 42%, rgba(46,26,96,.9), rgba(6,6,9,.95) 72%); opacity: 0; transition: opacity .6s var(--ease); }
.sc.is-burst .sc-burst::before { opacity: 1; }
.sc.is-static .sc-burst::before { display: none; }
.sc-bs { position: absolute; width: min(760px, 100%); padding: 0 12px; text-align: center; opacity: 0; transform: scale(.82); filter: blur(14px); transition: opacity .5s var(--ease), transform .9s cubic-bezier(.16,1.3,.3,1), filter .6s var(--ease); }
.sc-bs.on { opacity: 1; transform: none; filter: none; }
.sc-bs.out { opacity: 0; transform: scale(1.12); filter: blur(10px); transition-duration: .45s; }
.sc-bs::before { content: ""; position: absolute; left: 50%; top: 42%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; border: 1px solid rgba(167,139,250,.55); opacity: 0; pointer-events: none; }
.sc-bs.on::before { animation: sc-shock 1.3s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes sc-shock { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(3.4); } }
.sc-bs-k { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(139,92,246,.16); color: #c4b5fd; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(167,139,250,.35); }
.sc-bs h3 { margin-top: 14px; font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.2; font-weight: 700; letter-spacing: -.04em; color: #fff; text-shadow: 0 10px 50px rgba(139,92,246,.45); }
.sc-bs p { max-width: 560px; margin: 14px auto 0; color: rgba(255,255,255,.72); font-size: clamp(14px, 1.5vw, 17px); line-height: 1.8; }
html[data-theme="light"] .sc.is-burst .sc-view { --burst-text: #fff; }

.sc-graph { width: min(420px, 86%); height: auto; margin: 0 auto 6px; display: block; overflow: visible; }
.sc-graph .lk { fill: none; stroke: rgba(167,139,250,.75); stroke-width: 1.6; stroke-dasharray: 6 6; stroke-dashoffset: 120; opacity: 0; }
.sc-bs.on .sc-graph .lk { animation: sc-link 1.2s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(.35s + var(--i)*.18s); }
@keyframes sc-link { to { stroke-dashoffset: 0; opacity: 1; } }
.sc-graph .nd { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); }
.sc-bs.on .sc-graph .nd { animation: sc-pop .7s cubic-bezier(.16,1.5,.3,1) forwards; animation-delay: calc(.2s + var(--i)*.18s); }
@keyframes sc-pop { to { opacity: 1; transform: none; } }
.sc-graph text { fill: #e9e5ff; font: 600 13px var(--font); }
.sc-graph .tg { fill: rgba(167,139,250,.95); font-size: 11px; }

.sc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; margin-bottom: 4px; }
.sc-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 18px; background: rgba(28,28,30,.92); color: #fff; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 14px 40px rgba(0,0,0,.4); opacity: 0; transform: translateY(18px) scale(.9); }
.sc-chips span i { width: 22px; height: 22px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; transform: scale(0); }
.sc-chips span i svg { width: 13px; height: 13px; }
.sc-bs.on .sc-chips span { animation: sc-pop .7s cubic-bezier(.16,1.4,.3,1) forwards; animation-delay: calc(.25s + var(--i)*.14s); }
.sc-bs.on .sc-chips span i { animation: sc-pop .5s cubic-bezier(.16,1.8,.3,1) forwards; animation-delay: calc(.75s + var(--i)*.14s); transform: scale(0); opacity: 1; }
.sc-count { display: block; font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: 1; font-weight: 700; letter-spacing: -.05em; color: #fff; direction: ltr; font-variant-numeric: tabular-nums; background: linear-gradient(180deg,#fff 30%,#a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== الآيفون ===== */
.sc-phone { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(28px, 7vw, 110px); opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.sc.is-phone .sc-phone { opacity: 1; pointer-events: auto; }
.ph-scene { --pw: 290px; position: relative; width: var(--pw); height: calc(var(--pw) * 2.06); perspective: 1800px; flex: none; transform: translateY(40px) scale(.9); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.sc.is-phone .ph-scene { transform: none; }
.ph-float { position: absolute; inset: 0; transform-style: preserve-3d; animation: ph-float 6s ease-in-out infinite; }
@keyframes ph-float { 0%,100% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-10px) rotateX(2deg); } }
.ph { --ry: 0deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: scale(var(--zs, 1)) rotateX(6deg) rotateY(calc(var(--ry) - 16deg)) rotateZ(-1deg); will-change: transform; }
.sc-phone, .sc-phone img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.ph-scene img { pointer-events: none; }
.ph-layer, .ph-front, .ph-back { position: absolute; inset: 0; border-radius: calc(var(--pw) * .165); }
.ph-layer { background: linear-gradient(90deg,#3a3a3e,#8a8a90 18%,#5a5a60 50%,#9a9aa0 82%,#3a3a3e); }
.ph-layer.btns::before, .ph-layer.btns::after { content: ""; position: absolute; width: 4px; border-radius: 3px; background: #6c6c72; }
.ph-layer.btns::before { right: -3px; top: 27%; height: 13%; }
.ph-layer.btns::after { left: -3px; top: 20%; height: 8%; box-shadow: 0 calc(var(--pw) * .12) 0 #6c6c72, 0 calc(var(--pw) * .24) 0 #6c6c72; }
.ph-front { padding: calc(var(--pw) * .028); background: linear-gradient(145deg,#a3a3a8,#4a4a4f 40%,#8c8c92); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ph-bezel { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .14); background: #050505; padding: calc(var(--pw) * .035); }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .11); overflow: hidden; background: #000; }
.ph-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .25s; }
.ph-island { position: absolute; top: 2.4%; left: 50%; width: 31%; height: 4.1%; transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 2; }
.ph-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.04) 28%, transparent 46%); mix-blend-mode: screen; }
.ph-back { transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(150deg,#55555b,#2b2b30 45%,#46464c); box-shadow: inset 0 0 0 calc(var(--pw) * .02) #7c7c82; }
.ph-cam { position: absolute; top: 4%; left: 6%; width: 40%; aspect-ratio: 1; border-radius: 26%; background: linear-gradient(145deg,#4e4e54,#2a2a2e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.4); }
.ph-cam i { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3b4a6b 0 12%, #0b0b10 30%, #000 60%); box-shadow: 0 0 0 3px #1c1c20, 0 0 0 4px #5a5a60; }
.ph-cam i:nth-child(1) { top: 7%; left: 7%; } .ph-cam i:nth-child(2) { bottom: 7%; left: 7%; } .ph-cam i:nth-child(3) { top: 30%; right: 7%; }
.ph-back-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 26%; opacity: .5; filter: brightness(0) invert(1); }
.ph-shadow { position: absolute; left: 10%; right: 10%; bottom: -8%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(8px); animation: ph-shadow 6s ease-in-out infinite; }
html[data-theme="light"] .ph-shadow { background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); }
@keyframes ph-shadow { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .75; } }

.ph-info { width: min(330px, 40%); }
.ph-info .eyebrow { margin-bottom: 6px; }
.ph-name { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; min-height: 1.25em; }
.ph-style { color: var(--text-soft); font-size: 15px; margin-top: 4px; min-height: 1.75em; }
.ph-name, .ph-style { transition: opacity .3s var(--ease), transform .45s cubic-bezier(.16,1,.3,1); }
.ph-info.swap .ph-name, .ph-info.swap .ph-style { opacity: 0; transform: translateY(8px); }
.ph-list { list-style: none; display: grid; gap: 8px; margin-top: 22px; }
.ph-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text-soft); font-size: 14px; font-weight: 600; cursor: pointer; text-align: start; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.ph-list button:hover { color: var(--text); }
.ph-list img { width: 30px; height: 44px; object-fit: cover; object-position: top; border-radius: 7px; flex: none; }
.ph-list button.on { color: var(--text); border-color: var(--text-faint); background: var(--surface-soft); transform: translateX(-4px); }
.ph-list .ph-n { margin-inline-start: auto; color: var(--text-faint); font-size: 12px; direction: ltr; }

/* ===== تكبير الآيفون بعد انتهاء الجولة ===== */
.ph-zoom { position: absolute; left: 50%; bottom: -54px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .4s var(--ease), transform .5s cubic-bezier(.16,1,.3,1), background .15s; }
.ph-zoom svg { width: 17px; height: 17px; }
.ph-zoom:hover { background: var(--surface-soft); }
.sc.is-done .ph-zoom { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.sc.is-done .ph-scene { cursor: zoom-in; }
.ph-close { position: absolute; top: 18px; left: 18px; z-index: 5; width: 46px; height: 46px; display: none; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.ph-close svg { width: 20px; height: 20px; }
.sc.is-zoom .sc-phone { position: fixed; inset: 0; z-index: 200; overflow: hidden; padding: 24px; background: rgba(6,6,9,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: ph-zoom-in .45s var(--ease); }
@keyframes ph-zoom-in { from { opacity: 0; } }
.sc.is-zoom .ph-scene { animation: ph-pop .75s cubic-bezier(.16,1,.3,1); }
@keyframes ph-pop { from { opacity: .2; transform: scale(.72) translateY(30px); } }
.sc.is-zoom .ph-info { animation: ph-info-in .7s cubic-bezier(.16,1,.3,1) .08s both; }
@keyframes ph-info-in { from { opacity: 0; transform: translateY(14px); } }
.sc.is-zoom .ph-close { display: grid; }
.sc.is-zoom .ph-zoom { display: none; }
.sc.is-zoom .ph-scene { cursor: grab; touch-action: none; }
.sc.is-zoom .ph-scene.is-drag { cursor: grabbing; }
.sc.is-zoom .ph-info { --text: #f5f5f5; --text-soft: #a3a3a3; --text-faint: #747474; --surface: #151515; --surface-soft: #232323; --line: #2a2a2a; color: var(--text); }
.ph-drag-hint { display: none; margin-top: 10px; color: rgba(255,255,255,.5); font-size: 12.5px; }
.sc.is-zoom .ph-drag-hint { display: block; }

/* ===== الشريط السفلي ===== */
.sc-foot { position: relative; z-index: 3; flex: none; display: flex; align-items: center; gap: 14px; }
.sc-bar { flex: 1; height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--text); transition: width .6s var(--ease); }
.sc-hint { color: var(--text-faint); font-size: 12.5px; white-space: nowrap; }
.sc.is-done .sc-hint::after { content: " ↓"; }

/* القفل نفسه بالـ JS (منع العجلة/اللمس/الأسهم + تثبيت الموضع)، بدون overflow حتى ما يختفي شريط التمرير ويتزحزح التصميم */
html.sc-locked { overscroll-behavior: none; }
html.sc-locked { scroll-behavior: auto; }

@media (max-width: 860px) {
  .sc-stage { padding: 14px 16px 14px; gap: 10px; }
  .sc-phone { flex-direction: column; gap: 18px; justify-content: center; }
  .ph-info { width: 100%; text-align: center; }
  .ph-list { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .ph-list button { width: auto; padding: 5px; border-radius: 12px; }
  .ph-list button span { display: none; }
  .ph-list button.on { transform: translateY(-3px); }
  .ph-list img { width: 26px; height: 38px; }
  .ph-style { font-size: 13.5px; }
  .sc-hint { display: none; }
}
@media (max-width: 560px) {
  .sc-title { height: 2.8em; } .sc-title span { white-space: normal; }
  .sc-bs h3 { font-size: 1.75rem; }
  .sc-chips span { padding: 9px 13px; font-size: 13px; }
}

/* بدون حركة: كل شيء ظاهر بلا قفل */
.sc.is-static { height: auto; min-height: 0; }
.sc.is-static .sc-stage { height: auto; overflow: visible; padding-top: 70px; padding-bottom: 40px; }
.sc.is-static .sc-view { flex: none; display: grid; gap: 28px; }
.sc.is-static .sc-dash, .sc.is-static .sc-burst, .sc.is-static .sc-phone, .sc.is-static .sc-bs { position: relative; inset: auto; top: auto; left: auto; transform: none; opacity: 1; filter: none; pointer-events: auto; }
.sc.is-static .sc-dash { width: 100% !important; }
.sc.is-static .sc-burst { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sc.is-static .sc-bs { width: auto; padding: 22px; border-radius: var(--r-card); background: #111; }
.sc.is-static .sc-bs h3 { font-size: 1.4rem; }
.sc.is-static .sc-bs *, .sc.is-static .sc-graph * { opacity: 1 !important; transform: none !important; animation: none !important; stroke-dashoffset: 0 !important; }
.sc.is-static .ph-scene { transform: none; }
.sc.is-static .ph-float, .sc.is-static .ph-shadow { animation: none; }
.sc.is-static .sc-title span:not(:first-child) { display: none; }
.sc.is-static .sc-title span:first-child { position: static; opacity: 1; transform: none; filter: none; white-space: normal; }
.sc.is-static .sc-title { height: auto; }
.sc.is-static .sc-foot { display: none; }
