/* =========================================================
   رحلة بناء مسجد (Parallax) — النموذج الثاني «إرث»
   ========================================================= */

.px-layer { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.btn--line-dark { border: 1px solid var(--line); color: var(--navy); margin-top: 10px; }
.btn--line-dark::before { background: var(--cream-2); }

/* ---------- 1. المشهد الافتتاحي ---------- */
.px-intro { position: relative; height: 230vh; background: #061b2c; }
.px-intro__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.px-sky { background: radial-gradient(1200px 500px at 50% 100%, rgba(251, 192, 6, .28), transparent 60%), linear-gradient(180deg, #04121f 0%, #0a2f48 45%, #155f8f 85%, #2a7cb0 100%); }
.px-stars { background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent), radial-gradient(1.6px 1.6px at 44% 22%, #fff, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent), radial-gradient(1.4px 1.4px at 78% 26%, #fff, transparent), radial-gradient(1px 1px at 90% 9%, #fff, transparent), radial-gradient(1px 1px at 6% 34%, #fff, transparent), radial-gradient(1.2px 1.2px at 36% 38%, #fff, transparent), radial-gradient(1px 1px at 70% 40%, #fff, transparent), radial-gradient(1.3px 1.3px at 55% 4%, #fff, transparent); background-size: 100% 100%; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .45; } }
.px-moon i { position: absolute; top: 13%; left: 18%; width: 96px; height: 96px; border-radius: 50%; box-shadow: -22px 12px 0 0 #fff3c4; filter: drop-shadow(0 0 30px rgba(251, 192, 6, .55)); transform: rotate(-20deg); }
.px-dunes { width: 100%; height: 40%; top: auto; bottom: 0; }
.px-dunes--far path { fill: #134a72; }
.px-dunes--mid path { fill: #0e3c5d; }
.px-dunes--near { height: 30%; }
.px-dunes--near path { fill: #082740; }
.px-city { display: flex; align-items: flex-end; justify-content: center; gap: 2vw; top: auto; bottom: 26%; height: 22vh; opacity: .9; }
.px-city .mosque-svg { height: 100%; width: auto; }
.px-city .mosque-svg:nth-child(odd) { height: 70%; }
.px-hero-mosque { display: grid; place-items: end center; top: auto; bottom: 9%; height: 40vh; }
.px-hero-mosque .mosque-svg { height: 100%; width: auto; max-width: 96vw; filter: drop-shadow(0 0 40px rgba(251, 192, 6, .25)); }
.px-hero-mosque .m-win { animation: flicker 3s ease-in-out infinite alternate; }
@keyframes flicker { to { opacity: .75; } }
.px-palms svg { position: absolute; bottom: -2%; height: 62vh; width: auto; fill: none; stroke: #051a2a; stroke-width: 7; stroke-linecap: round; }
.palm--r { right: -2%; }
.palm--l { left: -3%; transform: scaleX(-1); height: 52vh !important; }
.px-title { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 15vh; text-align: center; color: #fff; }
.px-title .kicker { color: var(--gold); }
.px-title__h { font-family: var(--f-serif); font-weight: 700; line-height: 1.1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.px-title__h span { font-size: clamp(54px, 9vw, 128px); }
.px-title__h em { font-style: normal; color: var(--gold); font-size: clamp(26px, 3.6vw, 48px); font-weight: 600; }
.px-title p { margin-top: 16px; font-size: 19px; color: rgba(255, 255, 255, .75); }
.px-title > * { animation: titleIn 1.4s var(--ease) both; }
.px-title > :nth-child(2) { animation-delay: .15s; }
.px-title > :nth-child(3) { animation-delay: .3s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(40px); filter: blur(8px); } }
.px-gate { position: absolute; inset: 0; pointer-events: none; will-change: transform, opacity; transform-origin: 50% 46%; }
.px-gate svg { width: 100%; height: 100%; }
.px-down { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-family: var(--f-ui); font-size: 14px; z-index: 5; }
.px-down i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drop 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. رحلة البناء ---------- */
.px-build { position: relative; height: 560vh; --p: 0; --rp: 0; }
.px-build__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.px-build__sky { position: absolute; inset: 0; background: linear-gradient(180deg, #071f31 0%, #0f4467 55%, #1c5f8c 100%); }
.px-build__sky::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1c79b5 0%, #f2b866 72%, #f8dca8 100%); opacity: clamp(0, calc(var(--p) * 3 - .5), 1); }
.px-build__sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #5fb0e2 0%, #cfe7f6 60%, #f8f4ea 100%); opacity: clamp(0, calc(var(--p) * 2.6 - 1.4), 1); }
.px-sun { position: absolute; z-index: 1; left: 22%; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, #fff8e0 0%, var(--gold) 50%, rgba(251, 192, 6, 0) 72%); top: calc(88% - var(--p) * 74%); opacity: clamp(0, calc(var(--p) * 4 - .4), 1); }
.px-build .hero__pattern { opacity: calc(.08 - var(--p) * .06); z-index: 1; }
.px-build__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 380px 1fr 60px; gap: 40px; align-items: center; width: min(100% - 32px, 1320px); }
.px-steps { position: relative; height: 340px; }
.px-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 30px 32px; background: rgba(248, 244, 234, .92); backdrop-filter: blur(10px); border-top: 3px solid var(--gold); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.px-step.is-on { opacity: 1; transform: none; }
.px-step.is-past { transform: translateY(-40px); }
.px-step > span { font-family: var(--f-serif); font-size: 22px; color: var(--blue); }
.px-step h3 { font-family: var(--f-serif); font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.2; margin: 2px 0 10px; }
.px-step p { color: var(--ink-2); font-size: 17px; margin-bottom: 18px; }
.px-step b { font-family: var(--f-serif); font-size: 54px; line-height: 1; color: var(--navy); }
.px-step small { color: var(--muted); font-size: 15px; }
.px-build__art { position: relative; height: 70vh; display: flex; align-items: flex-end; justify-content: center; }
.px-build__mosque { position: relative; width: 100%; max-width: 820px; aspect-ratio: 580 / 300; z-index: 1; }
.px-bp, .px-real { position: absolute; inset: 0; }
.px-bp .mosque-svg, .px-real .mosque-svg { width: 100%; height: 100%; display: block; }
.px-bp .mosque-svg * { fill: none !important; stroke: rgba(251, 192, 6, .7); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.px-bp { opacity: calc(1 - var(--rp) * .9); }
.px-real { clip-path: inset(calc(100% - var(--rp) * 100%) 0 0 0); }
.px-real .m-win { transition: fill 1s; }
.px-build.is-lit .px-real .m-win { fill: #fbc006; filter: drop-shadow(0 0 6px rgba(251, 192, 6, .9)); }
.px-build__ground { position: absolute; bottom: 0; inset-inline: -10%; height: 16%; background: radial-gradient(ellipse at 50% 0%, rgba(15, 68, 103, .5), transparent 70%); }
.px-meter { position: relative; height: 50vh; width: 3px; background: rgba(255, 255, 255, .25); justify-self: center; }
.px-meter i { position: absolute; top: 0; inset-inline: 0; height: calc(var(--p) * 100%); background: var(--gold); }
.px-meter span { position: absolute; top: calc(var(--p) * 100%); left: 50%; translate: -50% 8px; font-family: var(--f-ui); font-size: 13px; font-weight: 700; color: var(--gold); background: var(--navy); padding: 2px 8px; white-space: nowrap; }

/* ---------- 3. معرض الدول ---------- */
.px-countries { position: relative; background: var(--cream); }
.px-countries__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 60px; }
.px-countries__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.px-countries__head .sec__sub { margin: 0; }
.px-track-wrap { overflow: visible; }
.px-track { display: flex; gap: 26px; padding-inline: max(16px, calc((100vw - 1280px) / 2)); will-change: transform; width: max-content; }
.pc { position: relative; flex: none; width: 290px; height: min(440px, 56vh); border-radius: 160px 160px 0 0; overflow: hidden; color: #fff; text-align: start; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s; box-shadow: 0 30px 50px -30px rgba(15, 68, 103, .6); }
.pc:hover { transform: translateY(-10px); }
.pc__flag { position: absolute; inset: -10% -30%; z-index: -2; will-change: transform; }
.pc__flag .flag { width: 100%; height: 100%; display: block; }
.pc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 68, 103, .15) 0%, rgba(15, 68, 103, .55) 45%, rgba(10, 47, 72, .96) 80%); transition: background .5s; }
.pc::after { content: ""; position: absolute; inset: 12px 12px 0; border: 1px solid rgba(251, 192, 6, .55); border-bottom: 0; border-radius: inherit; transition: inset .4s var(--ease), border-color .3s; }
.pc__body { position: absolute; inset: auto 0 0; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 2px; }
.pc__n { font-family: var(--f-ui); font-size: 13px; color: var(--gold); }
.pc__name { font-family: var(--f-serif); font-size: 38px; font-weight: 700; line-height: 1.15; }
.pc__en { font-size: 14px; color: rgba(255, 255, 255, .7); direction: ltr; text-align: right; }
.pc__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; }
.pc__meta b { color: var(--gold); }
.pc__check { position: absolute; top: 26px; left: 50%; translate: -50% 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.pc__check .ic { stroke-width: 3; }
.pc.is-selected::after { inset: 6px 6px 0; border-color: var(--gold); border-width: 2px; }
.pc.is-selected .pc__check { transform: scale(1); }
.pc.is-selected::before { background: linear-gradient(180deg, rgba(251, 192, 6, .1) 0%, rgba(15, 68, 103, .5) 45%, rgba(10, 47, 72, .97) 80%); }
.px-countries__bar { display: flex; align-items: center; gap: 18px; font-family: var(--f-ui); font-size: 14px; color: var(--muted); }
.px-progress { flex: 1; height: 2px; background: var(--sand); }
.px-progress i { display: block; height: 100%; width: 0; background: var(--navy); }

/* ---------- 4. صمّم ---------- */
.px-design { position: relative; padding: clamp(80px, 9vw, 120px) 0; background: var(--cream-2); overflow: clip; }
.px-design__bg { position: absolute; inset: -20% 0; background: url("../assets/img/pattern.svg") 0 0 / 120px; opacity: .06; pointer-events: none; }
.px-design__grid { position: relative; display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.px-design__head { margin-bottom: 28px; }
.px-wsteps, .px-wiz, .px-block--country { display: none; }
.px-block { background: #fffdf8; border: 1px solid var(--line); padding: 26px 28px; margin-bottom: 20px; }
.px-block__h { display: flex; align-items: center; gap: 12px; font-family: var(--f-serif); font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.px-block__h span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px 999px 0 0; background: var(--navy); color: var(--gold); font-size: 20px; }
.px-block__h small { font-size: 14px; font-weight: 400; color: var(--muted); }
.px-caps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.px-cap { padding: 12px 4px 10px; border: 1px solid var(--line); text-align: center; transition: .3s var(--ease); line-height: 1.2; position: relative; overflow: hidden; }
.px-cap b { display: block; font-family: var(--f-serif); font-size: 24px; color: var(--navy); }
.px-cap small { font-size: 11.5px; color: var(--muted); }
.px-cap::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.px-cap:hover:not(:disabled) { background: var(--cream); }
.px-cap.is-active { background: var(--navy); border-color: var(--navy); }
.px-cap.is-active b, .px-cap.is-active small { color: #fff; }
.px-cap.is-active::before { transform: scaleX(1); }
.px-cap:disabled { opacity: .35; cursor: not-allowed; }
.px-specs { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-bottom: 14px; }
.px-specs div { padding: 12px 4px; text-align: center; }
.px-specs div + div { border-inline-start: 1px solid var(--line); }
.px-specs b { display: block; font-family: var(--f-serif); font-size: 26px; color: var(--navy); line-height: 1.2; }
.px-specs small { font-size: 12.5px; color: var(--muted); }
.px-desc { color: var(--ink-2); line-height: 1.95; font-size: 15.5px; }
.px-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.px-list li { list-style: none; }
.px-row { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: start; transition: background .3s; }
.px-row:hover { background: var(--cream); }
.px-check { width: 22px; height: 22px; border: 1.5px solid var(--navy); border-radius: 4px 4px 0 0; display: grid; place-items: center; transition: .3s; }
.px-check svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .4s; }
.px-row.is-on .px-check { background: var(--navy); }
.px-row.is-on .px-check svg { stroke-dashoffset: 0; }
.px-row__name { font-family: var(--f-serif); font-size: 18.5px; font-weight: 600; color: var(--navy); }
.px-row__price { font-size: 13.5px; color: var(--muted); }
.px-row.is-on .px-row__price { color: var(--blue); font-weight: 600; }
.px-list--gold .px-row.is-on .px-check { background: var(--gold); border-color: var(--gold); }
.px-list--gold .px-row.is-on .px-check svg { stroke: var(--navy); }

.px-card { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; scrollbar-width: none; }
.px-card::-webkit-scrollbar { display: none; }
.px-card__arch { position: relative; height: clamp(200px, calc(100vh - 480px), 320px); border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(15, 68, 103, .7); }
.px-card__sky { position: absolute; inset: 0; background: linear-gradient(180deg, #4aa3dc 0%, #bfe1f6 65%, #f8f4ea 100%); }
.px-card__sky::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; top: 18%; left: 20%; background: radial-gradient(circle, #fff8e0, var(--gold) 55%, transparent 72%); }
.px-card__arch::after { content: ""; position: absolute; inset: 10px 10px 0; border: 1px solid rgba(251, 192, 6, .55); border-bottom: 0; border-radius: inherit; pointer-events: none; }
.px-card__svg { position: absolute; inset: 0; display: grid; place-items: end center; }
.px-card__svg .mosque-svg { width: 112%; height: auto; margin-bottom: -6px; }
.px-card__pin { position: absolute; top: 30px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--cream); color: var(--navy); font-family: var(--f-ui); font-weight: 600; font-size: 13px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); z-index: 2; }
.px-card__pin .flag { width: 22px; height: 22px; border-radius: 50%; }
.px-card__body { background: #fffdf8; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 18px 22px 20px; }
.px-card__title { font-family: var(--f-serif); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.px-card__rows div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-2); }
.px-card__rows b { color: var(--navy); }
.px-card__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 14px; }
.px-card__total span { color: var(--blue); font-weight: 600; }
.px-card__total b { font-family: var(--f-serif); font-size: 42px; line-height: 1; color: var(--navy); display: flex; gap: 6px; align-items: baseline; }
.px-card__total small { font-size: 14px; color: var(--muted); }
.px-card__total.is-bump b { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); color: var(--blue); } }

/* ---------- 5. آية ---------- */
.px-verse { position: relative; padding: 140px 0; background: linear-gradient(160deg, var(--blue-dark), var(--navy)); color: #fff; text-align: center; overflow: hidden; }
.px-verse__pattern { position: absolute; inset: -30% 0; background: url("../assets/img/pattern.svg") 0 0 / 96px; opacity: .1; }
.px-verse__moon { position: absolute; top: 20%; left: 12%; width: 160px; height: 160px; border-radius: 50%; box-shadow: -34px 18px 0 0 rgba(255, 243, 196, .9); filter: drop-shadow(0 0 40px rgba(251, 192, 6, .4)); }
.px-verse blockquote { position: relative; margin-inline: auto; font-family: var(--f-serif); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.8; max-width: 980px; }
.px-verse cite { display: block; font-style: normal; color: var(--gold); font-size: 15px; margin-top: 14px; }

/* ---------- 6. الإيصال ---------- */
.px-receipt { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.px-paper { background: #fffdf8; padding: 30px 32px; border-top: 3px solid var(--gold); box-shadow: 0 30px 60px -36px rgba(15, 68, 103, .5); }
.px-paper li { list-style: none; display: grid; grid-template-columns: 38px 1fr auto 26px; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dotted var(--line); animation: printIn .6s var(--ease) both; }
@keyframes printIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } }
.px-paper li .flag { width: 38px; height: 38px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.px-paper li b { display: block; font-family: var(--f-serif); font-size: 19px; color: var(--navy); }
.px-paper li small { color: var(--muted); font-size: 13px; }
.px-paper li output { font-weight: 700; color: var(--navy); white-space: nowrap; }
.px-paper li button { color: var(--muted); }
.px-paper li button:hover { color: var(--red); }
.px-paper__empty { text-align: center; color: var(--muted); padding: 26px 0; font-size: 18px; }
.px-paper__total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; margin-bottom: 8px; border-top: 2px dashed var(--line); }
.px-paper__total span { color: var(--blue); font-weight: 600; }
.px-paper__total b { font-family: var(--f-serif); font-size: 30px; color: var(--navy); }

/* ---------- الاستجابة ---------- */
@media (max-width: 1100px) {
  .px-build__grid { grid-template-columns: 320px 1fr; }
  .px-meter { display: none; }
  .px-caps { grid-template-columns: repeat(4, 1fr); }
  .px-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .px-build { height: 460vh; }
  .px-build__grid { grid-template-columns: 1fr; gap: 10px; align-content: center; height: 100%; padding-top: 70px; }
  .px-steps { height: 230px; order: 2; }
  .px-step { padding: 18px 20px; }
  .px-step h3 { font-size: 28px; margin-bottom: 4px; }
  .px-step p { font-size: 15px; margin-bottom: 8px; }
  .px-step b { font-size: 36px; }
  .px-build__art { height: 38vh; order: 1; }
  .px-countries { height: auto !important; }
  .px-countries__stick { position: relative; height: auto; padding: 80px 0; }
  .px-track-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .px-track { transform: none !important; }
  .pc { scroll-snap-align: center; width: 250px; height: 380px; }
  .px-countries__bar { display: none; }
  .px-design__grid { grid-template-columns: 1fr; }
  .px-card { position: relative; top: 0; max-height: none; order: -1; max-width: 480px; width: 100%; margin-inline: auto; }
  .px-receipt { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .px-intro { height: 190vh; }
  .px-title { padding-top: 22vh; }
  .px-title p { font-size: 16px; padding-inline: 20px; }
  .px-hero-mosque { height: 34vh; bottom: 13%; }
  .px-city { height: 13vh; bottom: 27%; }
  .px-palms svg { height: 40vh; }
  .palm--l { height: 34vh !important; }
  .px-moon i { width: 60px; height: 60px; box-shadow: -14px 8px 0 0 #fff3c4; }
  .px-caps { grid-template-columns: repeat(3, 1fr); }
  .px-specs { grid-template-columns: 1fr 1fr; }
  .px-specs div:nth-child(3) { border-inline-start: 0; }
  .px-specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .px-block { padding: 20px 18px; }
  .px-paper { padding: 22px 18px; }
  .px-verse { padding: 90px 0; }
  .px-verse__moon { width: 90px; height: 90px; box-shadow: -20px 10px 0 0 rgba(255, 243, 196, .9); }
}
@media (prefers-reduced-motion: reduce) {
  .px-intro { height: 100vh; }
  .px-build { height: auto; }
  .px-build__stick { position: relative; height: auto; padding: 100px 0; }
  .px-step { position: relative; opacity: 1; transform: none; margin-bottom: 12px; }
  .px-steps { height: auto; }
  .px-real { clip-path: none; }
}

/* ---------- حركة المسجد داخل البطاقة ---------- */
.px-card__svg .m-part { transform-box: fill-box; transform-origin: 50% 100%; animation: pxRise .8s var(--d, 0s) cubic-bezier(.3, 1.35, .5, 1) backwards; }
.px-card__svg .no-rise .m-part { animation: none; }
.px-card__svg .m-add.is-new { transform-box: fill-box; transform-origin: 50% 100%; animation: pxPop .7s cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes pxRise { from { transform: scaleY(0) translateY(24px); opacity: 0; } }
@keyframes pxPop { from { transform: scale(0); opacity: 0; } }
.px-gate { z-index: 3; }
.px-title { z-index: 4; }
.px-down { z-index: 5; }

/* ---------- صمّم مسجدك على الجوال: المسجد ثابت في الأعلى والخطوات أسفله ---------- */
@media (max-width: 900px) {
  .px-design { padding: 0; height: calc(100dvh - 72px); min-height: 560px; scroll-margin-top: 72px; overflow: hidden; }
  .px-design__bg { display: none; }
  .px-design__grid { display: flex; flex-direction: column; align-items: stretch; height: 100%; width: 100%; gap: 0; }
  .px-card { order: -1; flex: 0 0 40%; max-width: none; width: 100%; margin: 0; position: relative; top: 0; max-height: none; overflow: hidden; }
  .px-card__arch { height: 100%; border-radius: 0; box-shadow: none; }
  .px-card__arch::after { inset: 10px 10px 0; border-radius: 999px 999px 0 0; }
  .px-card__body { display: none; }
  .px-card__pin { top: 14px; }
  .px-design__main { order: 1; width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fffdf8; border-top: 3px solid var(--gold); }
  .px-design__head { display: none; }
  .px-wsteps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 14px 0; border: 1px solid var(--line); counter-reset: ws; }
  .px-wsteps button { height: 42px; font-family: var(--f-ui); font-weight: 600; font-size: 13px; color: var(--muted); line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; counter-increment: ws; transition: .25s; }
  .px-wsteps button + button { border-inline-start: 1px solid var(--line); }
  .px-wsteps button::before { content: counter(ws); font-size: 11px; opacity: .6; }
  .px-wsteps button.is-done { color: var(--blue); }
  .px-wsteps button.is-active { background: var(--navy); color: #fff; }
  .px-block, .px-block--country { display: none; flex: 1; min-height: 0; overflow-y: auto; margin: 0; border: 0; padding: 14px 16px; overscroll-behavior: contain; }
  .px-block.is-step { display: block; animation: wizIn .4s var(--ease); }
  @keyframes wizIn { from { opacity: 0; transform: translateX(-14px); } }
  .px-block__h { font-size: 21px; margin-bottom: 12px; }
  .px-block__h span { width: 32px; height: 32px; font-size: 16px; }
  .px-caps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .px-cap b { font-size: 19px; }
  .px-cap small { font-size: 10.5px; }
  .px-mcountries { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .px-mc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); text-align: start; transition: .25s; }
  .px-mc .flag { width: 30px; height: 30px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
  .px-mc b { font-family: var(--f-serif); font-size: 17px; color: var(--navy); line-height: 1.2; }
  .px-mc.is-active { background: var(--navy); border-color: var(--navy); }
  .px-mc.is-active b { color: #fff; }
  .px-wiz { display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffdf8; }
  .px-wiz__prev { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
  .px-wiz__prev:disabled { opacity: .3; }
  .px-wiz__total { flex: 1; line-height: 1.2; }
  .px-wiz__total small { display: block; font-size: 12px; color: var(--muted); }
  .px-wiz__total b { font-family: var(--f-serif); font-size: 24px; color: var(--navy); }
  .px-wiz__next { height: 46px; flex: none; }
  .mdock { display: none !important; }
}
