/* =====================================================================
   City2day.com — رحلة الصفحة الرئيسية
   الفيديو بيتقدّم مع التمرير، ولما الكاميرا توصل لمحطة بتشتغل حركات نصوصها
   (كل عنصر ليه تأخير ومدة خاصة بيه عبر --d و --dur).
   - الموبايل (طولي): الفيديو يملأ الشاشة والنصوص فوقه.
   - الشاشات العريضة: النصوص يمين والفيديو في إطار جهاز شمال.
   ===================================================================== */
.journey {
    --j-ease: cubic-bezier(.2, .8, .2, 1);
    --j-back: cubic-bezier(.34, 1.56, .64, 1);
    --j-navy: #0F1F5C;
    --j-blue: #1E3C96;
    --j-sky: #1EA5F0;
    --j-teal: #0E9488;
    --j-green: #16A34A;
    --j-purple: #6A38C2;
    --st: var(--j-blue);
    --j-h: calc(100vh - var(--nav-h));
    position: relative;
    height: calc(var(--j-h) + 620vh);
}

@supports (height: 100svh) {
    .journey { --j-h: calc(100svh - var(--nav-h)); height: calc(var(--j-h) + 620svh); }
}

.journey[data-st="1"] { --st: var(--j-sky); }
.journey[data-st="2"] { --st: var(--j-teal); }
.journey[data-st="3"] { --st: var(--j-green); }
.journey[data-st="4"] { --st: var(--j-purple); }

/* بدون JavaScript: أول محطة فقط كواجهة ثابتة */
.no-js .journey { height: auto; }
.no-js .j-rail,
.no-js .j-video { display: none; }

.j-sticky {
    position: sticky;
    top: var(--nav-h);
    height: var(--j-h);
    overflow: hidden;
    background: #CFE3F5;
}

.j-bg { display: none; }

/* ---------- الفيديو (الافتراضي: موبايل، يملأ الشاشة) ---------- */
.j-device {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #CFE3F5 url('../img/journey-poster.jpg') center / cover no-repeat;
}

.j-stage {
    position: relative;
    flex: none;
    width: 100%;
    aspect-ratio: 630 / 1102;
}

.j-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    background: transparent;
}

/* ---------- طبقة النصوص (موبايل: فوق الفيديو) ---------- */
.j-copy {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.j-copy::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 42%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.scene-copy {
    position: absolute;
    inset: 0;
    visibility: hidden;
    transition: visibility 0s linear .35s;
}

.scene-copy.on { visibility: visible; transition: none; }

.scene-copy a,
.scene-copy button { pointer-events: auto; }

.sc-top {
    position: absolute;
    top: 38px;
    inset-inline: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sc-bottom {
    position: absolute;
    bottom: max(22px, env(safe-area-inset-bottom));
    inset-inline: 16px;
}

.scene-copy .sc-desc,
.scene-copy .sc-actions { display: none; }

/* ---------- نظام الحركة المشترك ---------- */
.a {
    display: inline-block;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}

.on .a {
    opacity: 1;
    transform: none;
    transition-property: opacity, transform;
    transition-duration: var(--dur, .55s);
    transition-delay: var(--d, 0s);
    transition-timing-function: var(--j-ease);
}

.a-up { transform: translateY(22px); }
.a-down { transform: translateY(-16px); }
.a-slide { transform: translateX(70px) scale(1.1); }
.a-slide-r { transform: translateX(-40px); }
.a-rise { transform: translateY(105%); opacity: 1; }
.a-zoom { transform: scale(1.06); }
.a-grow { transform: scaleX(.001); transform-origin: right center; }
.a-pop { transform: scale(0); }
.on .a-pop { transition-timing-function: var(--j-back); }
.a-fade { transform: none; }

.ed-mask { display: block; overflow: hidden; padding-inline: 4px; }

/* ================= ١ — الرياض ================= */
.ed-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: 800;
}

.ed-1 {
    font-size: clamp(52px, 19.5vw, 76px);
    line-height: 1.37;
    font-weight: 900;
    color: var(--j-navy);
    transform-origin: right center;
}

.ed-2 {
    margin-top: -.5em;
    font-size: clamp(36px, 12.8vw, 50px);
    line-height: 1.44;
    font-weight: 400;
    color: var(--j-sky);
}

.ed-badge {
    margin-top: 2px;
    padding: 0 14px 2px;
    border-radius: 10px;
    background: var(--j-blue);
    color: #fff;
    font-size: clamp(18px, 5.6vw, 22px);
    line-height: 1.55;
    font-weight: 800;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}

.chip {
    min-height: 32px;
    padding: 2px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(15, 31, 92, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.chip:hover { background: rgba(15, 31, 92, .7); }

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
}

.scroll-hint > span:first-child {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 31, 92, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hint-mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: 12px;
}

.hint-mouse span {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    border-radius: 2px;
    background: currentColor;
    animation: j-wheel 1.6s ease-in-out infinite;
}

@keyframes j-wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ================= العلامات المربوطة بالفيديو ================= */
.scene-marks {
    position: absolute;
    inset: 0;
    direction: ltr;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear .35s;
}

.scene-marks.on { visibility: visible; transition: none; }

.marks-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* نقطة بتنبض */
.node {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--c);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 31, 92, .35);
    opacity: 0;
    transform: scale(0);
    transition: opacity .25s ease, transform .25s ease;
}

.node::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--c);
    animation: j-pulse 1.8s ease-out infinite;
}

.node-lg { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.node-sm { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }

.on .node {
    opacity: 1;
    transform: none;
    transition: opacity .2s ease var(--d, 0s), transform .4s var(--j-back) var(--d, 0s);
}

@keyframes j-pulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(3); opacity: 0; }
}

/* ١ — نقط نازلة على البرج */
.drop {
    position: absolute;
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
    border-radius: 50%;
    background: var(--j-blue);
    transform: translateY(var(--y));
    opacity: 0;
    transition: opacity .2s ease;
}

.on .drop { opacity: 1; transition: opacity .12s ease var(--d); }

/* ٢ — مسار الطيارة */
.arc-dots {
    fill: none;
    stroke: #fff;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 0 20;
}

.arc-reveal {
    fill: none;
    stroke: #fff;
    stroke-width: 60;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .2s ease;
}

.on .arc-reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear .1s; }

.origin {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--j-blue);
    border: 2px solid #fff;
    opacity: 0;
    transform: scale(0);
    transition: opacity .2s ease, transform .2s ease;
}

.on .origin { opacity: 1; transform: none; transition: opacity .15s ease, transform .4s var(--j-back); }

.mini-chip,
.pin-tag,
.callout,
.ptag-body,
.htag {
    font-family: var(--font);
    direction: rtl;
    white-space: nowrap;
}

.mini-chip {
    position: absolute;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .93);
    color: var(--j-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    box-shadow: 0 4px 12px rgba(15, 31, 92, .18);
    opacity: 0;
    transform: scale(0);
    transform-origin: left center;
    transition: opacity .2s ease, transform .2s ease;
}

.on .mini-chip { opacity: 1; transform: none; transition: opacity .2s ease .9s, transform .5s var(--j-back) .9s; }

.pin { position: absolute; width: 0; height: 0; opacity: 0; }
.pin .node { left: 0; top: 0; }

.on .pin { animation: j-pin-drop .9s cubic-bezier(.5, 0, .5, 1) 1.1s both; }

@keyframes j-pin-drop {
    0% { transform: translateY(-120px); opacity: 0; }
    20% { opacity: 1; }
    60% { transform: translateY(0); opacity: 1; }
    75% { transform: translateY(-14px); opacity: 1; }
    90%, 100% { transform: translateY(0); opacity: 1; }
}

.pin-tag {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 18px rgba(15, 31, 92, .2);
    opacity: 0;
    transform: scaleX(.2);
    transform-origin: left center;
    transition: opacity .2s ease, transform .2s ease;
}

.pin-tag b { color: var(--j-navy); font-size: 12px; line-height: 18px; font-weight: 800; }
.pin-tag small { color: var(--c2d-slate); font-size: 10.5px; line-height: 15px; font-weight: 600; }

.on .pin-tag { opacity: 1; transform: none; transition: opacity .3s ease 1.9s, transform .5s var(--j-ease) 1.9s; }

/* ٣ — خطوات التسكين */
.step-line {
    stroke: var(--j-teal);
    stroke-width: 3.4;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .2s ease;
}

.on .step-line { stroke-dashoffset: 0; transition: stroke-dashoffset .4s var(--j-ease) var(--d); }

.callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px 2px 10px;
    border-radius: 999px;
    border: 1.5px solid rgba(14, 148, 136, .55);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 12px rgba(15, 31, 92, .18);
    opacity: 0;
    transform: scale(0);
    transition: opacity .2s ease, transform .2s ease;
}

.callout b { color: var(--j-navy); font-size: 12px; line-height: 18px; font-weight: 800; }

.callout .num {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--j-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
}

.on .callout { opacity: 1; transform: none; transition: opacity .2s ease var(--d), transform .45s var(--j-back) var(--d); }
.on .callout .num { animation: j-num .6s ease calc(var(--d) + .25s) both; }

@keyframes j-num {
    0% { transform: scale(1.35); background: #5EEAD4; }
    100% { transform: scale(1); background: var(--j-teal); }
}

/* ٤ — بطاقات الأسعار */
.ptag {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.stem {
    width: 1.5px;
    height: 14px;
    background: rgba(255, 255, 255, .95);
    transform: scaleY(.001);
    transform-origin: top center;
    transition: transform .2s ease;
}

.on .stem { transform: none; transition: transform .3s var(--j-ease) var(--d); }

.ptag-body {
    position: relative;
    padding: 3px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: #3A4A6E;
    font-size: 11.5px;
    line-height: 18px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(15, 31, 92, .18);
    transform-origin: 50% -14px;
    opacity: 0;
    transition: opacity .2s ease;
}

.ptag.best .ptag-body {
    padding: 5px 12px;
    border-radius: 9px;
    background: var(--j-green);
    color: #fff;
    font-size: 12.5px;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .45);
}

.ptag.best .ptag-body::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(22, 163, 74, .45);
    z-index: -1;
    animation: j-glow 1.8s ease-out infinite;
}

@keyframes j-glow {
    0% { transform: scale(1); opacity: .55; }
    100% { transform: scale(1.35); opacity: 0; }
}

.on .ptag-body { animation: j-swing .9s ease-out calc(var(--d) + .15s) both; }

@keyframes j-swing {
    0% { transform: rotate(-40deg); opacity: 0; }
    30% { opacity: 1; }
    44% { transform: rotate(14deg); opacity: 1; }
    70% { transform: rotate(-7deg); opacity: 1; }
    88% { transform: rotate(3deg); opacity: 1; }
    100% { transform: rotate(0); opacity: 1; }
}

/* ٥ — وسوم الرسوم البيانية */
.htag {
    position: absolute;
    padding: 1px 8px;
    border-radius: 8px;
    border: 1px solid rgba(106, 56, 194, .35);
    background: rgba(255, 255, 255, .92);
    color: #4C2A94;
    font-size: 11.5px;
    line-height: 17px;
    font-weight: 800;
    opacity: 0;
    transform: scale(0);
    transition: opacity .2s ease, transform .2s ease;
}

.on .htag { opacity: 1; transform: none; transition: opacity .2s ease var(--d), transform .45s var(--j-back) var(--d); }

/* ================= ٢ — نصوص الفنادق ================= */
.h-kicker {
    color: var(--j-blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 22px;
}

.h-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(26px, 7.7vw, 30px);
    line-height: 1.4;
    font-weight: 800;
    color: var(--j-navy);
}

.h-title .h-accent { color: var(--j-sky); margin-top: -6px; }

/* بطاقة الصعود */
.pass {
    display: flex;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 31, 92, .25);
    opacity: 0;
    transform: translateY(90px) rotate(-4deg);
    transition: opacity .3s ease, transform .3s ease;
}

.on .pass { animation: j-pass .7s var(--j-ease) 2.5s both; }

@keyframes j-pass {
    0% { opacity: 0; transform: translateY(90px) rotate(-4deg); }
    35% { opacity: 1; }
    70% { transform: translateY(-6px) rotate(.5deg); opacity: 1; }
    100% { transform: none; opacity: 1; }
}

.pass-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: filter .2s ease;
}

.pass-btn:hover { filter: brightness(1.06); }
.pass-light { flex: 1; background: #fff; color: var(--j-blue); }
.pass-dark { flex: 1.3; background: var(--j-blue); color: #fff; }
.pass-dark:hover { color: #fff; }

.pass-code {
    position: relative;
    flex: none;
    width: 48px;
    border-inline-end: 1.5px dashed #D5E2F3;
    opacity: 0;
    transform: translateX(60px) rotate(12deg);
}

.on .pass-code { opacity: 1; transform: none; transition: opacity .3s ease 3.05s, transform .45s var(--j-ease) 3.05s; }

.pass-code i {
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 1.5px;
    background: var(--j-navy);
}

.pass-code i:nth-child(1) { left: 13px; width: 2.5px; }
.pass-code i:nth-child(2) { left: 16px; }
.pass-code i:nth-child(3) { left: 18px; }
.pass-code i:nth-child(4) { left: 22px; width: 2.5px; }
.pass-code i:nth-child(5) { left: 24px; }
.pass-code i:nth-child(6) { left: 27px; }
.pass-code i:nth-child(7) { left: 30px; width: 2.5px; }
.pass-code i:nth-child(8) { left: 32px; }

/* ================= ٣ — نصوص التسكين ================= */
.c-lead {
    font-size: clamp(20px, 6.2vw, 24px);
    line-height: 1.4;
    font-weight: 600;
    color: var(--j-navy);
}

.c-title {
    margin: -4px 0 0;
    font-size: clamp(30px, 9.7vw, 38px);
    line-height: 1.47;
    font-weight: 900;
    color: var(--j-teal);
}

.c-sub { color: #3A4A6E; font-size: 13px; font-weight: 700; line-height: 20px; }

.screen-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding-inline: 18px 8px;
    border-radius: 14px;
    background: #0E3140;
    border: 1.5px solid rgba(94, 234, 212, .55);
    box-shadow: 0 6px 22px rgba(20, 184, 166, .45);
    text-decoration: none;
    opacity: 0;
}

.on .screen-btn { animation: j-tv .7s ease 3.3s both; }

@keyframes j-tv {
    0% { opacity: 0; transform: scale(.15, .04); }
    12% { opacity: 1; }
    40% { opacity: 1; transform: scale(1, .04); }
    100% { opacity: 1; transform: none; }
}

.screen-txt { display: flex; flex-direction: column; align-items: flex-start; }
.screen-txt b { color: #E6FFFB; font-size: 15px; line-height: 22px; }
.screen-txt small { color: #5EEAD4; font-size: 11px; font-weight: 700; line-height: 15px; }

.screen-arrow,
.enter-arrow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--j-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= ٤ — إيصال المقارنة ================= */
.receipt-slot {
    width: 200px;
    overflow: hidden;
    margin-top: -12px;
    padding: 10px 6px 0;
}

.receipt-roll {
    transform: translateY(-101%);
    transition: transform .3s ease;
}

.on .receipt-roll { transform: none; transition: transform 1.1s steps(9, end) .15s; }

.receipt {
    padding: 12px 14px;
    background: #fff;
    transform: rotate(-3deg);
    box-shadow: 0 10px 24px rgba(15, 31, 92, .12);
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    padding-bottom: 4px;
    border-bottom: 1.5px solid #E2E8E4;
    color: var(--j-green);
    font-size: 11px;
    font-weight: 700;
}

.receipt-title {
    margin: 6px 0;
    color: var(--j-navy);
    font-size: 25px;
    line-height: 34px;
    font-weight: 800;
}

.receipt-foot {
    margin: 0;
    padding-top: 5px;
    border-top: 1.5px solid #E2E8E4;
    color: var(--c2d-slate);
    font-size: 11.5px;
    line-height: 18px;
    font-weight: 600;
}

.receipt-teeth {
    height: 7px;
    margin-top: -1px;
    transform: rotate(-3deg);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0h12L6 7z' fill='%23fff'/%3E%3C/svg%3E") repeat-x;
}

.go-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    padding-inline: 20px 8px;
    border-radius: 25px;
    background: var(--j-green);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(22, 163, 74, .4);
    opacity: 0;
    transform: scaleX(.25);
    transform-origin: right center;
    transition: opacity .2s ease, transform .2s ease;
}

.go-btn:hover { color: #fff; filter: brightness(1.05); }

.on .go-btn { opacity: 1; transform: none; transition: opacity .15s ease 3s, transform .7s var(--j-ease) 3s; }

.go-txt { opacity: 0; transition: opacity .2s ease; }
.on .go-txt { opacity: 1; transition: opacity .3s ease 3.35s; }

.go-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= ٥ — لوحة المحاسبة ================= */
.holo {
    position: relative;
    width: min(236px, 62vw);
    padding: 12px 16px 14px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(106, 56, 194, .82);
    border: 1px solid rgba(214, 196, 255, .8);
    box-shadow: 0 0 24px rgba(140, 100, 240, .45);
    color: #fff;
    opacity: 0;
    transform-origin: right center;
    transform: perspective(700px) rotateY(-75deg);
}

.on .holo { animation: j-holo 1s ease-out .1s both; }

@keyframes j-holo {
    0% { opacity: 0; transform: perspective(700px) rotateY(-75deg); }
    30% { opacity: .7; }
    36% { opacity: .15; }
    46% { opacity: .85; }
    52% { opacity: .35; }
    100% { opacity: 1; transform: perspective(700px) rotateY(-14deg); }
}

.holo-scan {
    position: absolute;
    inset: 0 0 auto 0;
    height: 36px;
    background: rgba(255, 255, 255, .22);
    transform: translateY(-40px);
}

.on .holo-scan { animation: j-scan 1.2s var(--j-ease) .9s both; }

@keyframes j-scan {
    0% { transform: translateY(-40px); }
    100% { transform: translateY(220px); }
}

.holo-key {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #E4D8FF;
    font-size: 11px;
    font-weight: 700;
}

.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #A7F3D0; }

.holo-title {
    display: block;
    margin: 2px 0 0;
    color: #fff;
    font-size: clamp(22px, 7vw, 27px);
    line-height: 1.4;
    font-weight: 800;
    transform-origin: right center;
}

.holo-lines { display: flex; gap: 4px; margin-top: 6px; }
.holo-lines i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.holo-lines i:nth-child(1) { width: 40%; }
.holo-lines i:nth-child(2) { width: 22%; background: rgba(255, 255, 255, .4); }
.holo-lines i:nth-child(3) { width: 14%; background: rgba(255, 255, 255, .25); }

.enter-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding-inline: 18px 8px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(106, 56, 194, .86);
    border: 1px solid rgba(214, 196, 255, .7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

.enter-btn:hover { color: #fff; background: rgba(106, 56, 194, .95); }
.enter-btn .enter-arrow { background: rgba(255, 255, 255, .2); border-radius: 12px; }

.enter-shimmer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 110%;
    width: 60px;
    background: rgba(255, 255, 255, .28);
    transform: skewX(-20deg);
}

.on .enter-shimmer { animation: j-shimmer 1.1s var(--j-ease) 3.5s both; }

@keyframes j-shimmer {
    0% { left: 110%; }
    100% { left: -30%; }
}

/* ================= محطات الرحلة ================= */
.j-rail {
    position: absolute;
    top: 10px;
    inset-inline: 20px;
    z-index: 4;
    display: flex;
    gap: 5px;
    pointer-events: auto;
}

.j-rail button {
    flex: 1;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.j-rail .bar {
    position: relative;
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(15, 31, 92, .18);
}

.j-rail .fill {
    position: absolute;
    inset: 0;
    background: var(--st);
    transform: scaleX(0);
    transform-origin: right center;
    transition: background-color .4s ease;
}

.j-rail button:first-child .fill { transform: none; }

.j-rail .lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ================= الشاشات العريضة: نصوص + إطار جهاز ================= */
@media (min-aspect-ratio: 4/5) and (min-width: 600px) {
    .j-sticky { background: var(--bg-color); }

    .j-bg {
        display: block;
        position: absolute;
        width: 62vmax;
        height: 62vmax;
        left: -18vmax;
        top: 50%;
        margin-top: -31vmax;
        border-radius: 50%;
        background: var(--st);
        opacity: .16;
        filter: blur(90px);
        transition: background-color .8s ease;
        pointer-events: none;
    }

    .j-grid {
        position: relative;
        z-index: 2;
        height: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(24px, 5vw, 88px);
        padding-block: clamp(12px, 3vh, 32px);
    }

    .j-device {
        position: relative;
        inset: auto;
        height: calc(var(--j-h) - clamp(24px, 6vh, 64px));
        max-height: 860px;
        aspect-ratio: 630 / 1102;
        border-radius: clamp(22px, 3.4vh, 40px);
        border: 6px solid #fff;
        box-shadow: 0 30px 70px rgba(15, 31, 92, .22), 0 0 0 1px rgba(15, 31, 92, .06);
    }

    .j-stage { width: 100%; height: 100%; }

    .j-copy {
        position: relative;
        inset: auto;
        height: min(100%, 640px);
        pointer-events: auto;
    }

    .j-copy::before { display: none; }

    .scene-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: clamp(18px, 3.4vh, 34px);
        padding-bottom: 72px;
    }

    .sc-top,
    .sc-bottom { position: static; inset: auto; }

    .sc-top { gap: 4px; }

    .sc-bottom { width: min(100%, 440px); }

    .scene-copy .sc-desc {
        display: block;
        max-width: 480px;
        margin: clamp(10px, 2vh, 18px) 0 0;
        color: var(--c2d-slate);
        font-size: clamp(.95rem, 1.2vw, 1.08rem);
        line-height: 1.85;
    }

    .scene-copy .sc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

    .ed-1 { font-size: clamp(64px, 11vh, 120px); }
    .ed-2 { font-size: clamp(42px, 7.4vh, 80px); }
    .ed-badge { font-size: clamp(20px, 3.2vh, 32px); }
    .h-kicker { font-size: clamp(14px, 2vh, 17px); }
    .h-title { font-size: clamp(36px, 7vh, 64px); line-height: 1.3; }
    .c-lead { font-size: clamp(22px, 3.6vh, 34px); }
    .c-title { font-size: clamp(40px, 7.4vh, 70px); }
    .c-sub { font-size: clamp(14px, 1.9vh, 17px); }

    .chips { justify-content: flex-start; margin-bottom: 14px; }
    .chip { background: var(--c2d-tint); color: var(--primary-color); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .chip:hover { background: #dcebfb; }
    .scroll-hint { justify-content: flex-start; color: var(--c2d-slate); }
    .scroll-hint > span:first-child { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

    .receipt-slot { width: 260px; }
    .receipt-title { font-size: 32px; line-height: 44px; }
    .receipt-foot { font-size: 13px; line-height: 21px; }
    .holo { width: min(340px, 100%); padding: 18px 22px 20px; }
    .on .holo { animation-name: j-holo-wide; }
    .holo-key { font-size: 12.5px; }
    .holo-title { font-size: clamp(28px, 4.6vh, 40px); }

    .j-rail {
        top: auto;
        bottom: 0;
        inset-inline: 0;
        gap: 10px;
    }

    .j-rail button {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        font-family: inherit;
    }

    .j-rail .lbl {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        text-align: start;
        color: var(--c2d-slate);
        font-size: .78rem;
        font-weight: 700;
        transition: color .3s ease;
    }

    .j-rail button[aria-current] .lbl { color: var(--c2d-navy); }
    .j-rail button:hover .lbl { color: var(--primary-color); }
}

@keyframes j-holo-wide {
    0% { opacity: 0; transform: perspective(900px) rotateY(-75deg); }
    30% { opacity: .7; }
    36% { opacity: .15; }
    46% { opacity: .85; }
    52% { opacity: .35; }
    100% { opacity: 1; transform: perspective(900px) rotateY(-8deg); }
}

/* شاشات عريضة لكن قصيرة (موبايل بالعرض) */
@media (min-aspect-ratio: 4/5) and (min-width: 600px) and (max-height: 520px) {
    .scene-copy .sc-desc, .scene-copy .sc-actions, .scroll-hint, .j-rail .lbl { display: none; }
    .scene-copy { padding-bottom: 28px; gap: 10px; }
    .receipt-slot { width: 210px; }
    .receipt-title { font-size: 24px; line-height: 32px; }
}

/* ================= تقليل الحركة ================= */
@media (prefers-reduced-motion: reduce) {
    .journey *,
    .journey *::before,
    .journey *::after {
        animation-duration: 1ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        transition-delay: 0s !important;
    }

    .hint-mouse span,
    .node::before,
    .ptag.best .ptag-body::before { display: none; }
}
