.ap { --ap-tg:#2AABEE; --ap-ok:#12A97A; --ap-ring:34,211,238;
  position:relative; isolation:isolate; overflow:hidden; margin-bottom:24px; border:1px solid var(--line); border-radius:22px; background:var(--surface);
  box-shadow:0 1px 2px rgba(19,28,59,.04),0 34px 80px -46px rgba(19,28,59,.38); container-type:inline-size; }
.ap::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(460px 320px at 24% 58%,rgba(42,171,238,.10),transparent 70%),
    linear-gradient(rgba(61,107,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(61,107,255,.04) 1px,transparent 1px);
  background-size:auto,32px 32px,32px 32px;
  -webkit-mask-image:radial-gradient(ellipse 85% 75% at 50% 45%,#000 30%,transparent 88%); mask-image:radial-gradient(ellipse 85% 75% at 50% 45%,#000 30%,transparent 88%); }
.ap-head { padding:26px 28px 4px; }
.ap-kicker { display:inline-flex; align-items:center; gap:10px; margin:0; font:600 11.5px/1.5 'JetBrains Mono',monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
html[lang="ar"] .ap-kicker,html[lang="hi"] .ap-kicker { letter-spacing:0; font-family:inherit; font-size:13px; text-transform:none; }
.ap-kicker i { width:8px; height:8px; border-radius:50%; background:var(--ap-tg); animation:apPing 2.2s ease-out infinite; }
@keyframes apPing { 0% { box-shadow:0 0 0 0 rgba(42,171,238,.5); } 70%,100% { box-shadow:0 0 0 10px rgba(42,171,238,0); } }
.ap h2 { margin:8px 0 8px; font-size:clamp(22px,2.6cqi,30px); line-height:1.15; font-weight:650; letter-spacing:-.025em; color:var(--ink); }
.ap-lead { margin:0; max-width:68ch; font-size:15px; line-height:1.65; color:var(--ink-2); }

.ap-stage { display:grid; grid-template-columns:1fr; justify-items:center; gap:18px; margin:18px 20px 0; }

.ap-device { position:relative; width:clamp(196px,46cqi,236px); }
.ap-glow { position:absolute; inset:12% -30% 8%; z-index:-1; border-radius:50%; background:radial-gradient(closest-side,rgba(42,171,238,.28),transparent); filter:blur(8px); }
.ap-phone { position:relative; padding:9px; border-radius:40px; background:linear-gradient(160deg,#20263A,#0A0E1A 60%); box-shadow:0 0 0 1.5px rgba(255,255,255,.08) inset,0 30px 60px -28px rgba(10,14,26,.75),0 10px 22px -12px rgba(10,14,26,.5); }
.ap-notch { position:absolute; top:15px; left:50%; z-index:6; width:30%; height:19px; margin-left:-15%; border-radius:999px; background:#05070D; }
.ap-screen { position:relative; overflow:hidden; aspect-ratio:9/19.3; border-radius:31px; background:#EEF0F3; transform:translateZ(0); }
.ap-view { position:absolute; inset:0; overflow:hidden; background:#EEF0F3; transition:transform .75s cubic-bezier(.2,.8,.2,1), box-shadow .75s; }
.ap-view[data-v="1"] { transform:translateY(102%); box-shadow:0 -18px 40px rgba(10,14,26,.25); border-radius:18px 18px 0 0; }
.ap-view[data-v="1"].is-on { border-radius:0; transition:transform .75s cubic-bezier(.2,.8,.2,1), border-radius .4s .5s; }
.ap-view[data-v="2"] { opacity:0; transform:translateX(34%); box-shadow:-18px 0 40px rgba(10,14,26,.22); transition:transform .75s cubic-bezier(.2,.8,.2,1), opacity .45s ease; }
[dir="rtl"] .ap-view[data-v="2"] { transform:translateX(-34%); box-shadow:18px 0 40px rgba(10,14,26,.22); }
.ap-view.is-on { opacity:1; transform:none!important; }
.ap-shot { position:relative; width:100%; transform-origin:50% 53%; transition:transform 1.8s cubic-bezier(.45,0,.2,1); direction:ltr; }
.ap-shot img { display:block; width:100%; height:auto; max-width:none!important; -webkit-user-drag:none; user-select:none; }
.ap-shot.is-zoom { transform:scale(1.42); }
.ap-shot.is-pan { transform:translateY(-6%); transition:transform 4.2s linear; }

.ap-ring { position:absolute; border-radius:12px; box-shadow:0 0 0 3px rgba(var(--ap-ring),.95),0 0 0 10px rgba(var(--ap-ring),.22); opacity:0; transform:scale(1.06); transition:opacity .35s, transform .45s cubic-bezier(.34,1.56,.64,1); pointer-events:none; }
.ap-view[data-v="1"] .ap-ring { border-radius:999px; }
.ap-ring.is-on { opacity:1; transform:none; animation:apGlow 1.3s ease-in-out infinite; }
@keyframes apGlow { 50% { box-shadow:0 0 0 3px rgba(var(--ap-ring),.95),0 0 0 15px rgba(var(--ap-ring),.10); } }
.ap-tap { position:absolute; left:50%; top:50%; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%; background:rgba(255,255,255,.6); border:2px solid rgba(19,28,59,.35); box-shadow:0 6px 16px rgba(10,14,26,.3); opacity:0; transform:translate(26px,30px) scale(1.25); }
.ap-tap::after { content:''; position:absolute; inset:-2px; border-radius:50%; border:2px solid rgba(var(--ap-ring),.9); opacity:0; }
.ap-ring.is-on .ap-tap { opacity:.95; transform:translate(18px,22px) scale(1.15); transition:opacity .3s .2s, transform .6s ease .2s; }
.ap-ring.is-tap .ap-tap { animation:apPress .7s cubic-bezier(.3,.7,.3,1) forwards; }
.ap-ring.is-tap .ap-tap::after { animation:apRipple .8s ease-out .18s forwards; }
@keyframes apPress { 0% { opacity:.95; transform:translate(18px,22px) scale(1.15); } 45% { opacity:1; transform:translate(0,0) scale(1); } 62% { transform:translate(0,0) scale(.8); } 100% { opacity:.9; transform:translate(0,0) scale(.95); } }
@keyframes apRipple { 0% { opacity:1; transform:scale(1); } 100% { opacity:0; transform:scale(3.4); } }
.ap-coin { position:absolute; left:50%; top:20%; z-index:3; display:grid; place-items:center; width:30px; height:30px; margin:-15px 0 0 -15px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#5AA2F0,#2775CA 65%); box-shadow:0 8px 18px -6px rgba(39,117,202,.85); opacity:0; pointer-events:none; }
.ap-coin b { font:800 14px/1 Inter,sans-serif; color:#fff; }
.ap-coin.is-drop { animation:apDrop 1.5s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes apDrop { 0% { opacity:0; transform:translateY(-220px) scale(.8); } 15% { opacity:1; } 55% { opacity:1; transform:translateY(0) scale(1); } 70% { transform:translateY(0) scale(1.25); box-shadow:0 0 0 10px rgba(39,117,202,.18); } 100% { opacity:0; transform:translateY(0) scale(.6); box-shadow:0 0 0 22px rgba(39,117,202,0); } }
.ap-pulse { position:absolute; z-index:3; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; background:var(--ap-ok); border:2px solid #fff; opacity:0; transform:scale(.4); transition:opacity .3s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.ap-pulse.is-on { opacity:1; transform:none; animation:apBeat 1.4s ease-out infinite; }
@keyframes apBeat { 0% { box-shadow:0 0 0 0 rgba(18,169,122,.55); } 80%,100% { box-shadow:0 0 0 14px rgba(18,169,122,0); } }
.ap-live { position:absolute; left:50%; bottom:14px; z-index:5; display:inline-flex; align-items:center; gap:6px; padding:5px 11px 5px 9px; border-radius:999px; background:rgba(10,14,26,.82); color:#fff; font:600 11px/1 Inter,sans-serif; white-space:nowrap; opacity:0; transform:translate(-50%,10px); transition:opacity .35s, transform .45s cubic-bezier(.16,1,.3,1); }
html[lang="ar"] .ap-live,html[lang="hi"] .ap-live { font-family:inherit; font-size:12px; }
.ap-live i { width:7px; height:7px; border-radius:50%; background:#34D399; animation:apBeat 1.4s ease-out infinite; }
.ap-live.is-on { opacity:1; transform:translate(-50%,0); }

.ap-side { display:flex; flex-direction:column; gap:12px; width:100%; min-width:0; }
.ap-list { list-style:none; display:flex; flex-direction:column; gap:8px; margin:0; padding:0; }
.ap-list button { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:12px; row-gap:10px; align-items:start; width:100%; padding:12px 14px 10px; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink-2); font:inherit; text-align:start; cursor:pointer; opacity:.62; transition:opacity .35s, border-color .35s, box-shadow .35s, background .35s; }
.ap-list li.is-on button { opacity:1; border-color:color-mix(in srgb,var(--accent) 55%,var(--line)); box-shadow:0 0 0 4px rgba(61,107,255,.10),0 16px 34px -26px rgba(19,28,59,.5); }
.ap-list li.is-done button { opacity:.9; }
.ap-list button:hover { opacity:1; }
.ap-list button:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.ap-n { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; border:1.5px solid var(--line-2); font:700 12.5px/1 'JetBrains Mono',monospace; color:var(--ink-3); transition:background .3s, color .3s, border-color .3s; }
.ap-list li.is-on .ap-n { background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 0 0 4px rgba(61,107,255,.15); }
.ap-list li.is-done .ap-n { border-color:var(--accent); color:var(--accent); }
.ap-txt { display:flex; flex-direction:column; gap:3px; min-width:0; }
.ap-t { font-size:15px; font-weight:650; line-height:1.3; color:var(--ink); }
.ap-p { font-size:13.5px; line-height:1.55; color:var(--ink-2); }
.ap-p b { font-weight:650; color:var(--ink); background:linear-gradient(rgba(42,171,238,.28),rgba(42,171,238,.28)) no-repeat 0 88%/0% 42%; transition:background-size .6s cubic-bezier(.16,1,.3,1); }
.ap-p b+b,.ap-p b~b { transition-delay:.35s; }
.is-mark .ap-p b { background-size:100% 42%; }
.ap-bar { grid-column:1/-1; height:3px; border-radius:3px; background:var(--line); overflow:hidden; }
.ap-bar i { display:block; height:100%; background:linear-gradient(90deg,var(--ap-tg),var(--accent)); transform-origin:left; transform:scaleX(0); }
[dir="rtl"] .ap-bar i { transform-origin:right; }
.ap-chips { list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; }
.ap-chips li { display:inline-flex; align-items:center; gap:7px; padding:6px 12px 6px 7px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-size:12.5px; font-weight:600; line-height:1.3; color:var(--ink-2); opacity:.45; transition:opacity .35s, border-color .35s; }
[dir="rtl"] .ap-chips li { padding:6px 7px 6px 12px; }
.ap-chips li i { display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:var(--line); color:#fff; transition:background .3s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.ap-chips li i svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.ap-chips li.is-on { opacity:1; border-color:color-mix(in srgb,var(--ap-ok) 45%,var(--line)); }
.ap-chips li.is-on i { background:var(--ap-ok); transform:scale(1.08); }

.ap-foot-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; margin-top:16px; padding:14px 22px 16px; border-top:1px solid var(--line); background:var(--surface-alt); }
.ap-cap { flex:1 1 320px; min-height:3.1em; margin:0; font-size:14px; line-height:1.55; color:var(--ink-2); }
.ap-ctrl { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.ap-ctrl button { min-height:40px; padding:0 16px; border:1px solid var(--line-2); border-radius:999px; background:var(--surface); color:var(--ink); font:inherit; font-size:13.5px; font-weight:600; cursor:pointer; transition:border-color .2s, color .2s; }
.ap-ctrl button:hover { border-color:var(--accent); color:var(--accent); }
.ap-ctrl button:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.ap:not(.ap-on) .ap-device { opacity:0; translate:0 26px; }
.ap:not(.ap-on) .ap-side { opacity:0; translate:0 14px; }
.ap-device,.ap-side { transition:opacity .7s ease, translate .9s cubic-bezier(.16,1,.3,1); }
.ap-side { transition-delay:.12s; }

@container (min-width:700px) {
  .ap-stage { grid-template-columns:auto minmax(0,1fr); justify-items:stretch; align-items:center; gap:clamp(30px,5cqi,56px); max-width:900px; margin:22px auto 0; padding:0 28px; box-sizing:border-box; }
  .ap-device { width:clamp(230px,27cqi,268px); }
  .ap-foot-bar { padding:14px 28px 18px; }
}
@container (max-width:560px) {
  .ap-head { padding:22px 18px 2px; }
  .ap-stage { margin:16px 12px 0; }
  .ap-list button { padding:11px 12px 9px; column-gap:10px; }
  .ap-t { font-size:14px; }
  .ap-p { font-size:13px; }
  .ap-foot-bar { padding:12px 16px 14px; }
}
@media (prefers-reduced-motion:reduce) { .ap *,.ap::before { animation:none!important; transition:none!important; } }
html.nbx-rm .ap *,html.nbx-rm .ap::before { animation:none!important; transition:none!important; }
@media print { .ap { display:none!important; } }
