.sc{display:block;width:100%;height:100%}
.sc .ln{stroke:#3be3d3;stroke-width:4;stroke-dasharray:1;stroke-dashoffset:1}.sc .ln.b{stroke:#8ff0e6;stroke-width:3}.sc .ln.c{stroke:#7fd6cf;stroke-width:3}
.sc.s1 .ln{animation:sdraw 1.1s calc(var(--i)*.18s) cubic-bezier(.5,0,.2,1) forwards}
.sc .lns{transform-origin:240px 150px}
.sc.s2 .lns{animation:scol .85s cubic-bezier(.6,0,.9,.4) forwards}
.sc .scan{fill:#fff;opacity:0;offset-distance:0%}
@supports (offset-path:path("M0 0")){.sc.s1:not(.s2) .scan{animation:sscan 1.4s .25s ease-in-out forwards}}
.sc .beam{fill:none;stroke:#E8A317;stroke-width:2.5;opacity:0;transform-origin:240px 150px}
.sc.s2 .beam{animation:sbeam .85s ease-in forwards}
.sc .rip circle{fill:none;stroke:#E8A317;stroke-width:3;opacity:0;transform-origin:240px 150px}
.sc.s3 .rip circle{animation:srip 1.6s calc(var(--r)*.45s) ease-out infinite}
.sc .pinin{opacity:0}.sc.s3 .pinin{animation:pdrop .85s cubic-bezier(.3,1.2,.5,1) forwards;filter:drop-shadow(0 6px 6px rgba(0,0,0,.4))}
.sc .tagin{opacity:0}.sc.s3 .tagin{animation:tagin .5s .75s ease-out forwards}
@keyframes sdraw{to{stroke-dashoffset:0}}
@keyframes sscan{0%{opacity:1;offset-distance:0%}100%{opacity:1;offset-distance:48%}}
@keyframes scol{to{transform:scale(.03);opacity:0}}
@keyframes sbeam{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(.05)}}
@keyframes srip{0%{opacity:.85;transform:scale(.6)}100%{opacity:0;transform:scale(9)}}
@keyframes pdrop{0%{opacity:0;transform:translateY(-110px)}55%{opacity:1;transform:translateY(0)}72%{transform:translateY(-14px)}100%{opacity:1;transform:none}}
@keyframes tagin{from{opacity:0;transform:translateY(10px) scale(.8)}to{opacity:1;transform:none}}
/* ===== نافذة الرسم ===== */
.ovl{background:rgba(7,22,33,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:ovIn .35s both}
@keyframes ovIn{from{opacity:0}}
.dbox{background:linear-gradient(160deg,#10344a,#0b2233)!important;color:#fff;max-width:580px!important;padding:0!important;overflow:hidden;border-radius:24px!important;border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 80px rgba(0,0,0,.55);animation:boxIn .55s cubic-bezier(.2,1.3,.4,1) both;--c:#2BB5AB}
@keyframes boxIn{from{opacity:0;transform:translateY(40px) scale(.9)}}
.dscene{height:250px;overflow:hidden;position:relative;transition:height .6s cubic-bezier(.6,0,.2,1),opacity .4s}
.dscene::after{content:"";position:absolute;inset:0;box-shadow:inset 0 -60px 50px -30px #0d2b3e;pointer-events:none}
.dbox.fin .dscene{height:0;opacity:0}
.dbody{padding:20px 26px 24px}
.dbox h2{margin:0 0 4px;font-size:1.35rem;text-align:center}
.dbox .now{text-align:center;color:#9fc3d3;font-size:.9rem;min-height:1.6em;margin-bottom:12px}
.steps{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.steps li{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:.8rem;color:#6f93a6;transition:color .4s}
.steps i{width:34px;height:34px;border-radius:50%;border:2px solid #2d5568;display:grid;place-items:center;font-style:normal;font-weight:700;transition:all .4s cubic-bezier(.3,1.6,.5,1)}
.steps li.on{color:#fff}.steps li.on i{border-color:#E8A317;color:#E8A317;transform:scale(1.18);box-shadow:0 0 0 6px rgba(232,163,23,.18);animation:stp 1.2s infinite}
.steps li.done{color:#8fe3cc}.steps li.done i{background:#2BB5AB;border-color:#2BB5AB;color:#06222b}
@keyframes stp{50%{box-shadow:0 0 0 10px rgba(232,163,23,0)}}
.dbox .track{height:8px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden}
.dbox .track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2BB5AB,#E8A317);background-size:200% 100%;animation:bar 1.6s linear infinite;transition:width .5s}
@keyframes bar{to{background-position:-200% 0}}
.dbox #ovTxt{text-align:center;margin:8px 0 0;color:#cfe3ec}
.dbox .fails{color:#ff9d93}.dbox .fails li{border-color:rgba(255,255,255,.1)}
.dbox .actions{display:flex;justify-content:center;gap:10px;margin-top:14px}
.dbox .btn.ghost{color:#fff;border-color:rgba(255,255,255,.3)}
.dok{display:none;flex-direction:column;align-items:center;padding:34px 0 4px;position:relative}
.dbox.fin .dok{display:flex}
.ck{width:130px;height:130px;overflow:visible}
.ck .ring{fill:none;stroke:var(--c);stroke-width:5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transform-origin:center;transform:rotate(-90deg);animation:sdraw .7s ease-out .1s forwards}
.ck .fillc{fill:var(--c);opacity:0;transform-origin:center;animation:fpop .5s .65s cubic-bezier(.3,1.7,.5,1) forwards}
.ck .tick{fill:none;stroke:#fff;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:sdraw .45s 1s ease-out forwards}
@keyframes fpop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(.86)}}
.burst{position:absolute;top:99px;left:50%;width:0;height:0}
.burst i{position:absolute;width:6px;height:18px;border-radius:4px;background:var(--c);opacity:0;transform:rotate(var(--a)) translateY(-70px);animation:ray .8s 1.05s ease-out forwards}
.burst i:nth-child(3n){background:#E8A317}.burst i:nth-child(3n+1){background:#fff}
@keyframes ray{0%{opacity:1;transform:rotate(var(--a)) translateY(-62px) scaleY(.4)}100%{opacity:0;transform:rotate(var(--a)) translateY(-120px) scaleY(1)}}
.dbox.ok{--c:#22c07a}.dbox.part{--c:#E8A317}.dbox.err{--c:#e0554a}.dbox.stop{--c:#7f9bad}
.dbox.fin .steps,.dbox.fin .track{display:none}
.dbox.fin h2{animation:rise .5s 1.2s both;font-size:1.5rem}
.dbox.fin #ovTxt,.dbox.fin .fails,.dbox.fin .actions{animation:rise .5s 1.4s both}
.dbox.fin .now{display:none}
@media(prefers-reduced-motion:reduce){.sc .ln{stroke-dashoffset:0}}
