/* =========================================================
   ResvBAR home v2 — hero colors from original home (index1 premium-hero)
   deep #0a1929 · mid #1a2f45 · blue #0089BF · cyan #00A8E8
   ========================================================= */
.rb-home {
    --rb-deep:#081d36;
    --rb-navy: #0a1929;
    --rb-mid: #1a2f45;
    --rb-blue: #0089BF;
    --rb-cyan: #00A8E8;
    --rb-ice: #6fd4ff;
    --rb-accent: #00A8E8;
    --rb-accent-soft: #7ddcff;
    --rb-logo-yellow:#fa9c14;
    --rb-ink: #0a1929;
    --rb-text: #ffffff;
    --rb-muted: rgba(255, 255, 255, 0.8);
    --rb-white: #ffffff;
    --rb-glass: rgba(255, 255, 255, 0.07);
    --rb-glass-border: rgba(255, 255, 255, 0.12);
    --rb-max: 1180px;
    --rb-header: 5.75rem;
    color: var(--rb-text);
    background: var(--rb-deep);
    font-family: var(--app-font, Tajawal, sans-serif);
    min-height: calc(100svh - var(--rb-header));
}

.rb-home *,
.rb-home *::before,
.rb-home *::after {
    box-sizing: border-box;
}

#rb-home-main {
    min-height: inherit;
}

/* ---------- Hero shell ---------- */
.rb-home__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100svh - var(--rb-header));
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    color: var(--rb-white);
}

.rb-home__hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 42%, rgba(0, 137, 191, 0.16) 0%, transparent 46%),
        radial-gradient(circle at 82% 58%, rgba(0, 168, 232, 0.1) 0%, transparent 48%);
}

/* Cinematic light beams */
.rb-home__hero-beam {
    position: absolute;
    top: -45%;
    width: min(42vw, 30rem);
    height: 190%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 168, 232, 0.22) 32%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(0, 137, 191, 0.2) 68%,
        transparent 100%
    );
    filter: blur(14px);
    transform-origin: center center;
    will-change: transform, opacity;
}

.rb-home__hero-beam--a {
    inset-inline-start: 6%;
    transform: rotate(22deg);
    opacity: 1;
}

.rb-home__hero-beam--b {
    inset-inline-end: 2%;
    transform: rotate(-18deg);
    opacity: 0.78;
    width: min(34vw, 24rem);
}

/* Floating star-dust particles */
.rb-home__hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2.5px 2.5px at 12% 22%, rgba(125, 220, 255, 0.95), transparent),
        radial-gradient(2px 2px at 28% 68%, rgba(0, 168, 232, 0.85), transparent),
        radial-gradient(3px 3px at 46% 18%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2.5px 2.5px at 63% 42%, rgba(125, 220, 255, 0.9), transparent),
        radial-gradient(2px 2px at 78% 74%, rgba(0, 137, 191, 0.8), transparent),
        radial-gradient(3px 3px at 88% 28%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(2px 2px at 35% 40%, rgba(0, 168, 232, 0.8), transparent),
        radial-gradient(2.5px 2.5px at 55% 82%, rgba(125, 220, 255, 0.85), transparent),
        radial-gradient(3px 3px at 70% 14%, rgba(0, 168, 232, 0.75), transparent),
        radial-gradient(2px 2px at 18% 86%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 42% 58%, rgba(125, 220, 255, 0.7), transparent),
        radial-gradient(2.5px 2.5px at 82% 52%, rgba(255, 255, 255, 0.65), transparent);
    opacity: 1;
    will-change: transform, opacity;
}

/* Soft travel waves at the bottom */
.rb-home__hero-waves {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: min(28vh, 220px);
    display: block;
}

.rb-home__hero-wave {
    fill: rgba(0, 137, 191, 0.28);
}

.rb-home__hero-wave--b {
    fill: rgba(0, 168, 232, 0.2);
}

@media (prefers-reduced-motion: no-preference) {
    .rb-home__hero-beam--a {
        animation: rb-beam-pan-a 7s ease-in-out infinite alternate;
    }

    .rb-home__hero-beam--b {
        animation: rb-beam-pan-b 9.5s ease-in-out infinite alternate;
    }

    .rb-home__hero-stars {
        animation: rb-stars-drift 10s ease-in-out infinite alternate;
    }

    .rb-home__hero-wave--a {
        animation: rb-wave-shift-a 6s ease-in-out infinite alternate;
    }

    .rb-home__hero-wave--b {
        animation: rb-wave-shift-b 8s ease-in-out infinite alternate;
    }
}

@keyframes rb-beam-pan-a {
    from { transform: rotate(18deg) translate3d(-14%, -2%, 0); opacity: 0.55; }
    to { transform: rotate(30deg) translate3d(18%, 4%, 0); opacity: 1; }
}

@keyframes rb-beam-pan-b {
    from { transform: rotate(-14deg) translate3d(16%, -1%, 0); opacity: 0.4; }
    to { transform: rotate(-26deg) translate3d(-20%, 5%, 0); opacity: 0.95; }
}

@keyframes rb-stars-drift {
    0% { transform: translate3d(0, 0, 0); opacity: 0.45; }
    50% { transform: translate3d(10px, -18px, 0); opacity: 1; }
    100% { transform: translate3d(-8px, -32px, 0); opacity: 0.55; }
}

@keyframes rb-wave-shift-a {
    from { transform: translate3d(0, 10px, 0); }
    to { transform: translate3d(-6%, -8px, 0); }
}

@keyframes rb-wave-shift-b {
    from { transform: translate3d(0, -6px, 0); }
    to { transform: translate3d(6%, 12px, 0); }
}

.rb-home__hero-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, var(--rb-max));
    margin-inline: auto;
    padding: 2.75rem 0 2rem;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .rb-home__hero-shell {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 3rem;
        padding: 3.5rem 0 2.5rem;
        align-items: center;
    }
}

/* ---------- Copy ---------- */
.rb-home__hero-copy {
    max-width: 32rem;
}

.rb-home__hero-brand {
    margin: 0 0 0.75rem;
    color: rgba(232, 238, 244, 0.62);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.45;
}

.rb-home__hero-brand-mark {
    display: inline-block;
    margin-inline-start: 0.2em;
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    vertical-align: baseline;
}

.rb-home__hero-brand-resv,
.rb-home__hero-brand-bar {
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.rb-home__hero-brand-resv {
    color: #e8f6fc;
}

.rb-home__hero-brand-bar {
    position: relative;
    display: inline-block;
    color: var(--rb-ice);
    padding-bottom: 7px;
}

/* قوس أصفر — عرض وفرجة ثابتان عربي/إنجليزي */
.rb-home__hero-brand-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    width: 18px;
    margin-inline: auto;
    height: auto;
    aspect-ratio: 369 / 107;
    background: url("/assets/images/resvbar-smile.png") center / contain no-repeat;
    pointer-events: none;
}

.rb-home__hero-title {
    margin: 0 0 0.9rem;
    color: var(--rb-white);
    font-size: clamp(1.85rem, 1.7vw + 1rem, 2.65rem);
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

html[lang="en"] .rb-home__hero-title {
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
}

html[lang="en"] .rb-home__hero-title span {
    display: block;
    margin-inline-start: 0;
    margin-top: 0.12em;
}

@media (max-width: 420px) {
    .rb-home__hero-title {
        white-space: normal;
    }
}

.rb-home__hero-title span {
    display: inline;
    margin-top: 0;
    margin-inline-start: 0.35rem;
    background: linear-gradient(135deg, #ffc24d 0%, var(--rb-logo-yellow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.rb-home__hero-desc {
    margin: 0 0 1.6rem;
    max-width: 34rem;
    color: var(--rb-muted);
    font-size: clamp(1.02rem, 0.2vw + 0.95rem, 1.12rem);
    line-height: 1.7;
    font-weight: 500;
}

.rb-home__hero-points {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.rb-home__hero-points li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: var(--rb-glass);
    border: 1px solid var(--rb-glass-border);
    color: #e8f0f7;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rb-home__hero-points i {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--rb-blue), var(--rb-navy));
    color: var(--rb-white);
    font-size: 0.95rem;
}

/* ---------- Search form — glass bar matching dark hero ---------- */
.rb-home__search {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 36rem;
    margin: 0 0 1.1rem;
    padding: 0.55rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ---------- Live platform stats under search ---------- */
.rb-home__stats {
    width: 100%;
    max-width: 36rem;
    margin: 0;
}

.rb-home__stats-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.rb-home__stats-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.rb-home__stats-item:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(0, 168, 232, 0.28);
    transform: translateY(-1px);
}

.rb-home__stats-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(0, 168, 232, 0.22) 0%, rgba(0, 137, 191, 0.12) 100%);
    border: 1px solid rgba(0, 168, 232, 0.18);
    color: #6fd4ff;
    font-size: 1rem;
}

.rb-home__stats-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    text-align: start;
}

.rb-home__stats-value {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #7ddcff 0%, #00A8E8 45%, #0089BF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: block;
    font-variant-numeric: tabular-nums;
    unicode-bidi: isolate;
}

.rb-home__stats-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .rb-home__stats-grid {
        gap: 0.45rem;
    }

    .rb-home__stats-item {
        padding: 0.65rem 0.55rem;
        gap: 0.5rem;
    }

    .rb-home__stats-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 9px;
        font-size: 0.88rem;
    }

    .rb-home__stats-value {
        font-size: 0.92rem;
    }

    .rb-home__stats-label {
        font-size: 0.62rem;
    }
}

.rb-home__search-grid {
    display: grid;
    gap: 0.45rem;
}

@media (min-width: 640px) {
    .rb-home__search-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0.4rem;
    }
}

.rb-home__search-field {
    position: relative;
    min-width: 0;
}

.rb-home__search-field > i {
    position: absolute;
    inset-inline-end: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rb-blue);
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}

.rb-home__search-field .form-control,
.rb-home__guests-btn {
    width: 100%;
    padding-block: 0.85rem;
    padding-inline-start: 0.95rem;
    padding-inline-end: 2.4rem;
    border: 1px solid #c8d3e0;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    height: 3.15rem;
    color: #0f172a;
    background: #f7f9fc;
    caret-color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rb-home__search-field .form-control::placeholder {
    color: #64748b;
}

.rb-home__search-field .form-control.is-typewriter-hint {
    color: #64748b;
}

.rb-home__search-field .form-control.is-typewriter-hint:focus {
    color: #0f172a;
}

.rb-home__search-field .form-control:focus,
.rb-home__guests-btn:focus {
    border-color: #00A8E8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.22);
    color: #0f172a;
}

.rb-home__guests-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    text-align: start;
}

.rb-home__guests-btn #guestsDisplay {
    color: #0f172a;
    font-weight: 600;
}

.rb-home__guests-menu {
    min-width: 280px;
    border-radius: 14px;
    border: 1px solid rgba(1, 48, 95, 0.12);
    background: #fff;
    z-index: 30;
    margin-top: 0.4rem !important;
}

.rb-home__guest-step {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f7f9fc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rb-home__guest-step:hover {
    background: #edf2f7;
    border-color: #cbd5e1;
}

.rb-home__guest-step--plus {
    background: var(--rb-blue);
    border-color: var(--rb-blue);
    color: #fff;
}

.rb-home__guest-step--plus:hover {
    background: #007aa8;
    border-color: #007aa8;
    color: #fff;
}

.rb-home__guest-count {
    min-width: 24px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a202c;
}

.rb-home__autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(1, 48, 95, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    color: #1a1a1a;
}

.rb-home__search-submit {
    display: flex;
}

.rb-home__search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-width: 7rem;
    height: 3.15rem;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffc24d 0%, var(--rb-logo-yellow) 100%);
    color: var(--rb-navy);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(248, 168, 32, 0.28);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rb-home__search-btn:hover {
    filter: brightness(1.06);
    color: var(--rb-navy);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(248, 168, 32, 0.34);
}

.rb-home__search-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .rb-home__search-btn:hover {
        transform: none;
    }
}

.rb-home__hero-cta,
.rb-home__hero-btn,
.rb-home__hero-link {
    display: none;
}

/* ---------- Full-bleed perk strip ---------- */
.rb-home__perk-strip {
    position: relative;
    z-index: 1;
    width: 100%;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%),
        rgba(10, 25, 41, 0.85);
}

.rb-home__perk-strip-track {
    list-style: none;
    margin: 0 auto;
    padding: 0.9rem 1.15rem;
    width: min(100%, var(--rb-max));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
}

.rb-home__perk-strip-track li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.2rem 0.55rem;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.25;
    text-align: center;
}

.rb-home__perk-strip-track li:last-child {
    border-inline-end: 0;
}

.rb-home__perk-strip-track i {
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 137, 191, 0.16);
    color: var(--rb-ice);
    font-size: 0.78rem;
}

.rb-home__perk-strip-track span {
    color: rgba(232, 238, 244, 0.94);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: normal;
}

@media (max-width: 992px) {
    .rb-home__perk-strip-track {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
        padding: 0.7rem 0.55rem;
        width: 100%;
    }

    .rb-home__perk-strip-track li {
        flex: 1 1 0;
        flex-direction: column;
        gap: 0.28rem;
        min-width: 0;
        padding: 0.25rem 0.3rem;
        border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        background: transparent;
        border-block: 0;
        border-inline-start: 0;
    }

    .rb-home__perk-strip-track li:last-child {
        border-inline-end: 0;
    }

    .rb-home__perk-strip-track i {
        width: 1.45rem;
        height: 1.45rem;
        font-size: 0.72rem;
    }

    .rb-home__perk-strip-track span {
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1.3;
        white-space: normal;
        max-width: 100%;
    }
}

/* ---------- Media / video ---------- */
.rb-home__hero-media {
    position: relative;
    display: grid;
    gap: 0;
    scroll-margin-top: 6.5rem;
}

.rb-home__hero-media::before {
    content: "";
    position: absolute;
    inset: 12% -6% -8% 8%;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(0, 137, 191, 0.32), rgba(0, 168, 232, 0.16));
    filter: blur(26px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.rb-home__stage {
    position: relative;
    z-index: 1;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: var(--rb-deep);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(0, 168, 232, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rb-home__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 2;
}

.rb-home__stage img,
.rb-home__stage iframe,
.rb-home__stage-thumb,
.rb-home__stage-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.rb-home__stage-video {
    z-index: 1;
}

.rb-home__stage-thumb {
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    z-index: 1;
    transition: opacity 0.35s ease;
}

.rb-home__stage.is-autoplay .rb-home__stage-thumb {
    opacity: 0;
    pointer-events: none;
}

.rb-home__stage.is-playing .rb-home__stage-thumb,
.rb-home__stage.is-playing .rb-home__play,
.rb-home__stage.is-playing .rb-home__stage-caption {
    display: none;
}

.rb-home__stage-panel {
    background: linear-gradient(145deg, var(--rb-navy), var(--rb-blue));
}

.rb-home__play {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0 0 3.25rem;
    background:
        linear-gradient(180deg, rgba(6, 17, 31, 0.12) 0%, rgba(6, 17, 31, 0.2) 42%, rgba(6, 17, 31, 0.8) 100%);
    cursor: pointer;
    transition: background 0.25s ease;
}

.rb-home__play:hover {
    background:
        linear-gradient(180deg, rgba(6, 17, 31, 0.18) 0%, rgba(6, 17, 31, 0.3) 42%, rgba(6, 17, 31, 0.86) 100%);
}

.rb-home__play:focus-visible {
    outline: 3px solid var(--rb-accent);
    outline-offset: -3px;
}

.rb-home__play-disk {
    position: relative;
    width: 5.1rem;
    height: 5.1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    margin-top: 8px;

    color: var(--rb-navy);
    font-size: 1.85rem;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.38),
        0 0 0 9px rgba(255, 255, 255, 0.14);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.rb-home__play-disk::before {
    content: "";
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 168, 232, 0.25);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .rb-home__play-disk::before {
        animation: rb-play-ring 1.8s ease-out infinite;
    }
}

@keyframes rb-play-ring {
    0% { transform: scale(0.88); opacity: 0.95; }
    65% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

.rb-home__play-disk i {
    margin-inline-start: 0.14rem;
}

.rb-home__play:hover .rb-home__play-disk {
    transform: scale(1.07);
    background: linear-gradient(135deg, #ffc24d 0%, var(--rb-logo-yellow) 100%);
    color: #ffffff;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.4),
        0 0 0 11px rgba(0, 168, 232, 0.22);
}

.rb-home__stage-caption {
    position: absolute;
    z-index: 4;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: none;
    padding: 0.85rem 1rem;
    border-radius: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 17, 31, 0.1) 100%),
        rgba(6, 17, 31, 0.62);
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: none;
}

.rb-home__stage-caption-icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--rb-blue), var(--rb-navy));
    color: var(--rb-white);
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(0, 137, 191, 0.28);
}

.rb-home__stage-caption-text {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
    flex: 1;
}

.rb-home__stage-caption-text strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.rb-home__stage-caption-text em {
    font-style: normal;
    color: rgba(205, 220, 233, 0.95);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
}

.rb-home__stage-caption-time {
    flex-shrink: 0;
    margin-inline-start: auto;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .rb-home__play {
        padding-bottom: 3.6rem;
    }

    .rb-home__play-disk {
        width: 4.4rem;
        height: 4.4rem;
        font-size: 1.6rem;
    }

    .rb-home__stage-caption {
        padding: 0.7rem 0.8rem;
        gap: 0.6rem;
    }

    .rb-home__stage-caption-icon {
        width: 2.05rem;
        height: 2.05rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .rb-home__stage-caption-text strong {
        font-size: 0.86rem;
    }

    .rb-home__stage-caption-text em {
        font-size: 0.74rem;
    }
}

/* ---------- Motion ---------- */
.rb-home [data-rb-reveal] {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .rb-home [data-rb-reveal] {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .rb-home [data-rb-reveal].is-in {
        opacity: 1;
        transform: none;
    }

    .rb-home__hero-copy[data-rb-reveal] {
        transition-delay: 0.06s;
    }

    .rb-home__hero-media[data-rb-reveal] {
        transform: translateY(36px) scale(0.96);
        transition-delay: 0.18s;
        transition-duration: 0.85s;
    }

    .rb-home__hero-media[data-rb-reveal].is-in {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .rb-home__hero-cta .rb-home__hero-btn {
        flex: 1 1 auto;
    }

    .rb-home__hero-desc {
        max-width: none;
    }

    .rb-home__play-disk {
        width: 4.4rem;
        height: 4.4rem;
        font-size: 1.6rem;
    }

    .rb-home__hero-media::before {
        filter: blur(18px);
        inset: 12% -4% -8% 4%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rb-home__hero-beam--a,
    .rb-home__hero-beam--b,
    .rb-home__hero-stars,
    .rb-home__hero-wave--a,
    .rb-home__hero-wave--b,
    .rb-home__play-disk::before {
        animation: none;
    }

    .rb-home__hero-btn,
    .rb-home__play-disk {
        transition: none;
    }

    .rb-home__hero-btn--primary:hover,
    .rb-home__play:hover .rb-home__play-disk {
        transform: none;
    }
}

/* ---------- Partner companies marquee (under hero) ---------- */
.rb-partners {
    position: relative;
    z-index: 2;
    padding: 1.75rem 0 1.9rem;
    background: #f4f8fb;
    border-block: 1px solid rgba(1, 48, 95, 0.08);
    overflow: hidden;
}

.rb-partners__inner {
    width: min(100% - 1.5rem, var(--rb-max, 1180px));
    margin-inline: auto;
}

.rb-partners__head {
    margin: 0 0 1.1rem;
    text-align: center;
}

.rb-partners__eyebrow {
    margin: 0 0 0.3rem;
    color: #0089BF;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.rb-partners__title {
    margin: 0;
    color: #0f2a40;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}

.rb-partners__rows {
    display: grid;
    gap: 0.7rem;
}

.rb-partners__viewport {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.rb-partners__track {
    list-style: none;
    margin: 0;
    padding: 0.1rem 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: max-content;
    animation: rb-partners-scroll 42s linear infinite;
}

.rb-partners__viewport--reverse .rb-partners__track {
    animation-name: rb-partners-scroll-reverse;
    animation-duration: 48s;
}

.rb-partners__item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
    max-width: 15.5rem;
    padding: 0.4rem 0.9rem 0.4rem 0.4rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(1, 48, 95, 0.08);
    box-shadow: 0 6px 16px rgba(1, 48, 95, 0.05);
}

.rb-partners__logo {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f7fafc;
    border: 1px solid rgba(1, 48, 95, 0.06);
    display: grid;
    place-items: center;
}

.rb-partners__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 2px;
}

.rb-partners__name {
    color: #17324a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11.2rem;
}

@keyframes rb-partners-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes rb-partners-scroll-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .rb-partners__viewport {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rb-partners__track {
        animation: none;
        padding-inline: 0.25rem;
    }
}

/* ---------- Booking story (scroll storytelling) ---------- */
.rb-story {
    --rb-story-p: 0;
    --rb-story-pin-top: 5.75rem;
    --rb-story-bg-ease: cubic-bezier(0.33, 0.1, 0.2, 1);
    --rb-story-bg-dur: 0.95s;
    /* مرحلة ١ — سماوي (إنشاء الطلب) */
    --rb-story-accent: var(--rb-cyan, #00A8E8);
    --rb-story-accent-hi: var(--rb-ice, #6fd4ff);
    --rb-story-accent-deep: #0077a8;
    --rb-story-accent-soft: color-mix(in srgb, var(--rb-cyan, #00A8E8) 26%, transparent);
    --rb-story-accent-glow: color-mix(in srgb, var(--rb-cyan, #00A8E8) 46%, transparent);
    --rb-story-accent-alt: color-mix(in srgb, var(--rb-ice, #6fd4ff) 22%, transparent);
    --rb-story-wash: color-mix(in srgb, #00A8E8 14%, transparent);
    --rb-story-wash-deep: color-mix(in srgb, #0077a8 12%, transparent);
    --rb-story-ink-on-accent: #ffffff;
    --rb-story-base-a: #071a30;
    --rb-story-base-b: #0a2038;
    --rb-story-base-c: #143049;
    position: relative;
    isolation: isolate;
    overflow: visible;
    background:
        radial-gradient(ellipse 62% 52% at calc(90% - (var(--rb-story-p) * 24%)) 4%, var(--rb-story-accent-soft), transparent 62%),
        radial-gradient(ellipse 52% 48% at calc(10% + (var(--rb-story-p) * 26%)) 98%, var(--rb-story-accent-alt), transparent 58%),
        radial-gradient(ellipse 44% 38% at 50% 48%, var(--rb-story-wash-deep), transparent 72%),
        linear-gradient(165deg, var(--rb-story-base-a) 0%, var(--rb-story-base-b) 48%, var(--rb-story-base-c) 100%);
    color: var(--rb-text, #ffffff);
    font-family: var(--app-font, Tajawal, sans-serif);
    transition:
        background var(--rb-story-bg-dur) var(--rb-story-bg-ease),
        --rb-story-wash var(--rb-story-bg-dur) var(--rb-story-bg-ease),
        --rb-story-accent var(--rb-story-bg-dur) var(--rb-story-bg-ease);
}

/* مرحلة ٢ — فضي/بحري هادئ (مساران) */
.rb-story[data-story-chapter='2'],
.rb-story__main[data-story-chapter='2'] {
    --rb-story-accent: #d7e4ef;
    --rb-story-accent-hi: #ffffff;
    --rb-story-accent-deep: #0b3a5c;
    --rb-story-accent-soft: color-mix(in srgb, #ffffff 16%, transparent);
    --rb-story-accent-glow: color-mix(in srgb, #9eb6c9 28%, transparent);
    --rb-story-accent-alt: color-mix(in srgb, #0b3a5c 55%, transparent);
    --rb-story-wash: color-mix(in srgb, #0f3554 42%, transparent);
    --rb-story-wash-deep: color-mix(in srgb, #08273d 28%, transparent);
    --rb-story-ink-on-accent: #083458;
    --rb-story-base-a: #061523;
    --rb-story-base-b: #0a1f33;
    --rb-story-base-c: #12324a;
}

/* مرحلة ٣ — ذهبي دافئ (تأكيد ودفع) */
.rb-story[data-story-chapter='3'],
.rb-story__main[data-story-chapter='3'] {
    --rb-story-accent: #fa9c14;
    --rb-story-accent-hi: #ffd36a;
    --rb-story-accent-deep: #c47400;
    --rb-story-accent-soft: color-mix(in srgb, #fa9c14 36%, transparent);
    --rb-story-accent-glow: color-mix(in srgb, #fa9c14 52%, transparent);
    --rb-story-accent-alt: color-mix(in srgb, #ffd36a 24%, transparent);
    --rb-story-wash: color-mix(in srgb, #fa9c14 16%, transparent);
    --rb-story-wash-deep: color-mix(in srgb, #c47400 14%, transparent);
    --rb-story-ink-on-accent: #0a1929;
    --rb-story-base-a: #0c1824;
    --rb-story-base-b: #152233;
    --rb-story-base-c: #2a2418;
}

/* طبقة لمسة لون المرحلة — انتقال سلس عبر لون صلب + هالات */
.rb-story__tint {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 78% 12%, var(--rb-story-accent-glow), transparent 64%),
        radial-gradient(ellipse 60% 50% at 12% 88%, var(--rb-story-accent-alt), transparent 60%),
        linear-gradient(180deg, var(--rb-story-wash) 0%, transparent 58%, var(--rb-story-wash-deep) 100%);
    opacity: 0.92;
    transition:
        background var(--rb-story-bg-dur) var(--rb-story-bg-ease),
        opacity var(--rb-story-bg-dur) var(--rb-story-bg-ease);
    overflow: hidden;
}

.rb-story__tint::before,
.rb-story__tint::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(56px);
    opacity: 0.62;
    pointer-events: none;
    transition:
        background var(--rb-story-bg-dur) var(--rb-story-bg-ease),
        transform 1.15s var(--rb-story-bg-ease),
        opacity var(--rb-story-bg-dur) var(--rb-story-bg-ease);
    will-change: transform, opacity;
}

.rb-story__tint::before {
    width: min(56vw, 30rem);
    height: min(56vw, 30rem);
    top: -14%;
    inset-inline-end: -10%;
    background: radial-gradient(circle, var(--rb-story-accent-glow), transparent 70%);
}

.rb-story__tint::after {
    width: min(50vw, 26rem);
    height: min(50vw, 26rem);
    bottom: -16%;
    inset-inline-start: -12%;
    background: radial-gradient(circle, var(--rb-story-accent-alt), transparent 72%);
}

.rb-story[data-story-chapter='2'] .rb-story__tint::before {
    transform: translate(-10%, 14%) scale(1.06);
    opacity: 0.5;
}

.rb-story[data-story-chapter='2'] .rb-story__tint::after {
    transform: translate(12%, -10%) scale(1.08);
    opacity: 0.58;
}

.rb-story[data-story-chapter='3'] .rb-story__tint::before {
    transform: translate(-6%, 8%) scale(1.12);
    opacity: 0.72;
}

.rb-story[data-story-chapter='3'] .rb-story__tint::after {
    transform: translate(8%, -6%) scale(0.96);
    opacity: 0.48;
}

.rb-story::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--rb-story-accent) 9%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--rb-story-accent) 9%, transparent) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 18%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 18%, transparent 78%);
    opacity: 0.48;
    transition: opacity var(--rb-story-bg-dur) var(--rb-story-bg-ease);
}

.rb-story[data-story-chapter='2']::before {
    opacity: 0.32;
}

.rb-story[data-story-chapter='3']::before {
    opacity: 0.4;
}

.rb-story::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 78% 18%, var(--rb-story-accent-glow), transparent),
        radial-gradient(1.2px 1.2px at 64% 62%, var(--rb-story-accent-soft), transparent),
        radial-gradient(1.4px 1.4px at 28% 74%, rgba(255, 255, 255, 0.28), transparent),
        radial-gradient(1.2px 1.2px at 88% 80%, var(--rb-story-accent-alt), transparent);
    opacity: 0.55;
    transition: opacity var(--rb-story-bg-dur) var(--rb-story-bg-ease);
}

.rb-story__scroll {
    position: relative;
    height: calc(var(--rb-story-units, var(--rb-story-beats, 3)) * 70vh);
    min-height: 210vh;
}

.rb-story__sticky {
    position: relative;
    top: auto;
    min-height: calc(100vh - var(--rb-story-pin-top));
    display: flex;
    align-items: center;
    padding: 2rem 0 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Parent layout uses overflow:hidden — CSS sticky fails, so we pin via JS. */
.rb-story.is-pinned .rb-story__sticky {
    position: fixed;
    top: var(--rb-story-pin-top);
    left: 0;
    right: 0;
    z-index: 4;
    min-height: calc(100vh - var(--rb-story-pin-top));
    background:
        radial-gradient(ellipse 62% 52% at calc(90% - (var(--rb-story-p) * 24%)) 4%, var(--rb-story-accent-soft), transparent 62%),
        radial-gradient(ellipse 52% 48% at calc(10% + (var(--rb-story-p) * 26%)) 98%, var(--rb-story-accent-alt), transparent 58%),
        radial-gradient(ellipse 44% 38% at 50% 48%, var(--rb-story-wash-deep), transparent 72%),
        linear-gradient(165deg, var(--rb-story-base-a) 0%, var(--rb-story-base-b) 48%, var(--rb-story-base-c) 100%);
    transition: background var(--rb-story-bg-dur) var(--rb-story-bg-ease);
}

.rb-story.is-after .rb-story__sticky {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.rb-story__wrap {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
}

.rb-story__head {
    text-align: center;
    margin: 0 0 2rem;
}

.rb-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0.34rem 0.9rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rb-story-accent) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--rb-story-accent) 32%, transparent);
    color: var(--rb-story-accent-hi);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 20px color-mix(in srgb, var(--rb-story-accent) 14%, transparent);
    transition:
        background var(--rb-story-bg-dur) var(--rb-story-bg-ease),
        border-color var(--rb-story-bg-dur) var(--rb-story-bg-ease),
        color var(--rb-story-bg-dur) var(--rb-story-bg-ease),
        box-shadow var(--rb-story-bg-dur) var(--rb-story-bg-ease);
}

.rb-story__eyebrow::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--rb-story-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rb-story-accent) 22%, transparent);
    transition:
        background var(--rb-story-bg-dur) var(--rb-story-bg-ease),
        box-shadow var(--rb-story-bg-dur) var(--rb-story-bg-ease);
}

.rb-story__title {
    margin: 0 0 0.55rem;
    color: #f4f8fc;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
}

.rb-story__lead {
    margin: 0;
    color: #9db0c3;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
}

.rb-story__stage {
    display: grid;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    gap: 1.5rem 1.35rem;
    align-items: center;
    min-height: 22rem;
}

.rb-story__main {
    min-width: 0;
    display: grid;
    gap: 0.95rem;
}

.rb-story__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
}

.rb-story__chapter-tag {
    margin: 0;
    color: var(--rb-story-accent-hi);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: color var(--rb-story-bg-dur) var(--rb-story-bg-ease);
}

.rb-story__beat-progress {
    margin: 0;
    color: #6f8499;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
}

.rb-story__steps {
    display: none;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
}

.rb-story__steps-wrap {
    min-width: 0;
}

.rb-story__steps.is-active-group {
    display: flex;
}

.rb-story__step-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8aa0b5;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.rb-story__step-chip.is-open {
    opacity: 1;
    color: #d5e0eb;
    background: var(--rb-story-wash);
    border-color: color-mix(in srgb, var(--rb-story-accent) 28%, transparent);
}

.rb-story__step-chip.is-current {
    color: #f4f8fc;
    background: var(--rb-story-accent-soft);
    border-color: color-mix(in srgb, var(--rb-story-accent) 48%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--rb-story-accent) 14%, transparent), 0 8px 20px var(--rb-story-wash);
}

.rb-story__step-letter {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 0.7rem;
    font-weight: 800;
}

.rb-story__step-chip.is-current .rb-story__step-letter {
    background: linear-gradient(145deg, var(--rb-story-accent-hi), var(--rb-story-accent-deep));
    color: var(--rb-story-ink-on-accent);
}

.rb-story__step-label {
    white-space: nowrap;
}

.rb-story__rail {
    --rb-rail-node-size: 2.7rem;
    --rb-rail-line-w: 2px;
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 0.4rem 0;
    height: 100%;
    min-height: 15rem;
}

.rb-story__rail-nodes {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    min-height: inherit;
}

.rb-story__rail-line {
    position: absolute;
    inset-block: 1.15rem;
    /* مركز الدائرة ناقص نصف عرض الخط — بدون left/right حتى لا يُلغى التوسيط */
    inset-inline-start: calc(var(--rb-rail-node-size) / 2 - var(--rb-rail-line-w) / 2);
    width: var(--rb-rail-line-w);
    transform: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.rb-story__rail-fill {
    display: block;
    width: 100%;
    height: calc(var(--rb-story-rail-p, var(--rb-story-p, 0)) * 100%);
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--rb-story-accent-hi) 70%, #fff) 0%,
        var(--rb-story-accent) 55%,
        var(--rb-story-accent-deep) 100%
    );
    box-shadow: 0 0 14px var(--rb-story-accent-glow);
    /* بدون will-change ولا transition للارتفاع: التحديث من السكرول كل إطار؛
       الانتقال كان يؤخر الطرف فيظهر فوق الدائرة لجزء من الثانية */
    transition: background 0.45s ease, box-shadow 0.45s ease;
}

.rb-story__rail-node-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.rb-story__rail-label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: rgba(157, 176, 195, 0.88);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: start;
    transition: color 0.28s ease;
}

.rb-story__rail-node-item:has(.rb-story__rail-node.is-on) .rb-story__rail-label {
    color: rgba(157, 176, 195, 0.9);
}

.rb-story__rail-node-item:has(.rb-story__rail-node.is-current) .rb-story__rail-label {
    color: #fff;
    font-weight: 800;
}

.rb-story__rail-node {
    width: var(--rb-rail-node-size, 2.7rem);
    height: var(--rb-rail-node-size, 2.7rem);
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    background: #122536;
    border: 1.5px solid #3a5168;
    color: #8aa0b5;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 1;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background 0.28s ease, border-color 0.28s ease, color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

/* هوية لونية دائمة لكل رقم — خلفيات معتمة دائماً */
.rb-story__rail-node[data-rb-story-node='0'] {
    border-color: #2a6f8c;
    color: #5eb8d9;
    background: #0d2f42;
}

.rb-story__rail-node[data-rb-story-node='1'] {
    border-color: #5a7a94;
    color: #c5d4e2;
    background: #083458;
}

.rb-story__rail-node[data-rb-story-node='2'] {
    border-color: #a6682a;
    color: #fa9c14;
    background: #2a2114;
}

.rb-story__rail-node:hover {
    border-color: color-mix(in srgb, var(--rb-story-accent) 55%, #fff);
    color: var(--rb-story-accent-hi);
    transform: scale(1.06);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rb-story-accent) 14%, transparent);
}

.rb-story__rail-node:focus-visible {
    outline: 2px solid var(--rb-story-accent);
    outline-offset: 3px;
}

.rb-story__rail-node.is-on {
    border-color: color-mix(in srgb, var(--rb-story-accent) 55%, #1a2f45);
    color: var(--rb-story-accent-hi);
    background: color-mix(in srgb, var(--rb-navy, #0a1929) 80%, var(--rb-story-accent));
    opacity: 1;
}

/* مكتمل لكن غير حالي — بدون شفافية */
.rb-story__rail-node.is-on:not(.is-current) {
    transform: none;
    box-shadow: none;
    opacity: 1;
}

.rb-story__rail-node.is-current {
    background: linear-gradient(145deg, var(--rb-story-accent-hi), var(--rb-story-accent-deep));
    border-color: transparent;
    color: var(--rb-story-ink-on-accent);
    transform: scale(1.12);
    opacity: 1;
    box-shadow:
        0 10px 28px var(--rb-story-accent-glow),
        0 0 0 5px color-mix(in srgb, var(--rb-story-accent) 18%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* لون ثابت لكل عقدة مرحلة — يبقى الفرق واضحاً حتى بعد تجاوزها */
.rb-story__rail-node[data-rb-story-node='0'].is-on {
    --rb-node-a: var(--rb-cyan, #00A8E8);
    --rb-node-hi: var(--rb-ice, #6fd4ff);
    --rb-node-deep: #0077a8;
    --rb-node-ink: #ffffff;
    border-color: #2a8bb0;
    color: #8fd4f0;
    background: #0a3048;
}

.rb-story__rail-node[data-rb-story-node='0'].is-on:not(.is-current) {
    box-shadow: none;
    opacity: 1;
}

.rb-story__rail-node[data-rb-story-node='0'].is-current {
    background: linear-gradient(145deg, var(--rb-node-hi), var(--rb-node-deep));
    color: var(--rb-node-ink);
    border-color: transparent;
    opacity: 1;
    box-shadow:
        0 10px 28px color-mix(in srgb, var(--rb-node-a) 42%, transparent),
        0 0 0 5px color-mix(in srgb, var(--rb-node-a) 18%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.rb-story__rail-node[data-rb-story-node='1'].is-on {
    --rb-node-a: #083458;
    --rb-node-hi: #ffffff;
    --rb-node-deep: #041828;
    --rb-node-ink: #ffffff;
    border-color: #6a8aa4;
    color: #e8eef4;
    background: #083458;
}

.rb-story__rail-node[data-rb-story-node='1'].is-on:not(.is-current) {
    box-shadow: none;
    opacity: 1;
}

.rb-story__main[data-story-chapter='2'] .rb-story__cta {
    background: #083458;
    color: #ffffff;
    border: 1px solid color-mix(in srgb, #ffffff 35%, transparent);
    box-shadow: 0 10px 24px color-mix(in srgb, #000 40%, transparent);
}

.rb-story__rail-node[data-rb-story-node='1'].is-current {
    background: #083458;
    color: #ffffff;
    border: 2px solid #ffffff;
    opacity: 1;
    transform: scale(1.1);
    box-shadow:
        0 0 0 4px color-mix(in srgb, #ffffff 22%, transparent),
        0 10px 24px color-mix(in srgb, #000 45%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rb-story__rail-node[data-rb-story-node='2'].is-on {
    --rb-node-a: #fa9c14;
    --rb-node-hi: #ffd36a;
    --rb-node-deep: #c47400;
    --rb-node-ink: #0a1929;
    border-color: #c47a20;
    color: #ffc04a;
    background: #2e2410;
}

.rb-story__rail-node[data-rb-story-node='2'].is-on:not(.is-current) {
    background: #2e2410;
    border-color: #c47a20;
    color: #fa9c14;
    box-shadow: none;
    opacity: 1;
}

.rb-story__rail-node[data-rb-story-node='2'].is-current {
    background: linear-gradient(145deg, var(--rb-node-hi), var(--rb-node-deep));
    color: var(--rb-node-ink);
    border-color: transparent;
    opacity: 1;
    box-shadow:
        0 10px 28px color-mix(in srgb, var(--rb-node-a) 42%, transparent),
        0 0 0 5px color-mix(in srgb, var(--rb-node-a) 18%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.rb-story__panels {
    position: relative;
    min-height: 30rem;
}

.rb-story__panel--with-subs {
    justify-content: flex-start;
    padding-block: 1.15rem 1.25rem;
    gap: 0.65rem;
    overflow: visible;
}

.rb-story__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 1.7rem 1.65rem 1.5rem;
    border-radius: 22px;
    background:
        linear-gradient(165deg, rgba(26, 47, 69, 0.95), rgba(14, 30, 46, 0.98)),
        #122536;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    pointer-events: none;
    z-index: 1;
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s ease,
        box-shadow 0.5s ease;
    overflow: visible;
}

/* خروج للأمام / للخلف أثناء تبديل المراحل */
.rb-story__panels[data-story-dir='fwd'] .rb-story__panel:not(.is-active) {
    transform: translate3d(0, -18px, 0) scale(0.99);
}

.rb-story__panels[data-story-dir='back'] .rb-story__panel:not(.is-active) {
    transform: translate3d(0, 22px, 0) scale(0.985);
}

.rb-story__panel.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
    z-index: 2;
    /* يتوسّع مع المحتوى حتى لا يقطع بوردر اللوحة أسفل آخر بطاقة */
    height: auto;
    bottom: auto;
    min-height: 100%;
}

.rb-story__panel:not(.rb-story__panel--dual).is-active {
    border-color: color-mix(in srgb, var(--rb-story-accent) 36%, transparent);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.4),
        0 0 28px var(--rb-story-wash);
}

/* لوحة ثنائية: كارد أب يحتوي المسارين */
/* لوحة ثنائية: كارد أب + مقارنة مسارين */
.rb-story__panel--dual {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    justify-content: center;
    gap: 0;
    overflow: visible;
}

.rb-story__dual-shell {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 22px;
    background:
        linear-gradient(165deg, rgba(26, 47, 69, 0.97), rgba(14, 30, 46, 0.99)),
        #122536;
    border: 1px solid color-mix(in srgb, var(--rb-story-accent) 26%, transparent);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.36),
        0 0 0 1px color-mix(in srgb, var(--rb-story-accent) 10%, transparent) inset;
}

.rb-story__panel--dual.is-active .rb-story__dual-shell {
    border-color: color-mix(in srgb, var(--rb-story-accent) 38%, transparent);
}

.rb-story__dual-shell-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.rb-story__dual-shell-head .rb-story__icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 14px;
    color: var(--rb-story-accent-hi);
}

.rb-story__dual-shell-head .rb-story__step-num {
    margin: 0 0 0.15rem;
}

.rb-story__dual-shell-head .rb-story__step-title {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.4;
}

.rb-story__dual-intro {
    margin: 0;
    padding: 0.7rem 0.85rem;
    text-align: start;
    color: #d5e0eb;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.65;
    border-radius: 14px;
    background: color-mix(in srgb, #ffffff 5%, transparent);
    border: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
    max-width: none;
}

.rb-story__dual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.7rem;
    width: 100%;
    align-items: stretch;
}

.rb-story__dual-or {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.rb-story__dual-or span {
    display: grid;
    place-items: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding-inline: 0.35rem;
    border-radius: 999px;
    background: rgba(10, 25, 41, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e8eef4;
    font-size: 0.74rem;
    font-weight: 800;
}

.rb-story__card {
    --rb-path: var(--rb-cyan, #00A8E8);
    --rb-path-hi: var(--rb-ice, #6fd4ff);
    --rb-path-deep: #0077a8;
    --rb-path-ink: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1rem 0.95rem;
    border-radius: 16px;
    background: rgba(6, 21, 36, 0.55);
    border: 1px solid color-mix(in srgb, var(--rb-path) 28%, transparent);
    border-inline-start: 3px solid var(--rb-path-hi);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease;
}

.rb-story__card::before {
    content: none;
}

.rb-story__card--fast {
    --rb-path: var(--rb-cyan, #00A8E8);
    --rb-path-hi: var(--rb-ice, #6fd4ff);
    --rb-path-deep: #0077a8;
    --rb-path-ink: #ffffff;
}

.rb-story__card--save {
    --rb-path: #fa9c14;
    --rb-path-hi: #ffd36a;
    --rb-path-deep: #c47400;
    --rb-path-ink: #0a1929;
}

.rb-story__panel--dual.is-active .rb-story__card {
    opacity: 1;
    transform: none;
    border-color: color-mix(in srgb, var(--rb-path) 40%, transparent);
    border-inline-start-color: var(--rb-path-hi);
}

.rb-story__panel--dual.is-active .rb-story__card:nth-child(3) {
    transition-delay: 0.1s;
}

.rb-story__panel--dual:not(.is-active) .rb-story__card {
    transition-delay: 0s;
}

.rb-story__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-inline-start: 0.4rem;
}

.rb-story__card .rb-story__icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rb-path) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--rb-path) 40%, transparent);
    color: var(--rb-path-hi);
    font-size: 1rem;
    box-shadow: none;
}

.rb-story__card .rb-story__beat-badge {
    background: linear-gradient(145deg, var(--rb-path-hi), var(--rb-path-deep));
    border: none;
    color: var(--rb-path-ink);
    padding: 0.3rem 0.8rem;
    font-size: 0.74rem;
    box-shadow: 0 5px 12px color-mix(in srgb, var(--rb-path) 28%, transparent);
}

.rb-story__card .rb-story__step-title {
    margin: 0;
    padding-inline-start: 0.4rem;
    font-size: 1.08rem;
    line-height: 1.4;
    font-weight: 800;
    color: #fff;
}

.rb-story__card .rb-story__step-text {
    margin: 0;
    padding-inline-start: 0.4rem;
    color: #b4c3d4;
    font-size: 0.86rem;
    line-height: 1.65;
    flex: 1 1 auto;
}

.rb-story__card-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.15rem 0 0;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--rb-path) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--rb-path) 22%, transparent);
    color: color-mix(in srgb, var(--rb-path-hi) 82%, #fff);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
}

.rb-story__card-hint i {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    font-size: 0.9rem;
    color: var(--rb-path-hi);
}

.rb-story__dual-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.15rem 0;
    color: #8fa3b8;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}

.rb-story__dual-note i {
    flex: 0 0 auto;
    margin-top: 0.12rem;
    color: var(--rb-story-accent-hi);
}



.rb-story__panel:not(.rb-story__panel--dual).is-active::after {
    opacity: 1;
}

.rb-story__panel-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.85rem;
}

.rb-story__panel-head-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.rb-story__beat-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--rb-story-accent-soft);
    border: 1px solid color-mix(in srgb, var(--rb-story-accent) 34%, transparent);
    color: var(--rb-story-accent-hi);
    font-size: 0.72rem;
    font-weight: 800;
}

.rb-story__icon {
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    margin: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--rb-story-accent-soft), rgba(255, 255, 255, 0.05));
    border: 1px solid color-mix(in srgb, var(--rb-story-accent) 30%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 20px var(--rb-story-wash);
    color: var(--rb-story-accent);
    font-size: 1.15rem;
    transition: background 0.45s ease, border-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}

.rb-story__step-num {
    margin: 0 0 0.25rem;
    color: #7a90a6;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rb-story__step-title {
    margin: 0;
    color: #f4f8fc;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.rb-story__step-text {
    margin: 0;
    max-width: 38rem;
    color: #b7c6d6;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.8;
}

/* خطوات فرعية داخل لوحة المرحلة */
.rb-story__subs {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.rb-story__sub {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    /* ظل داخلي بدل border — يمنع فراغ بين الخلفية والحد مع border-radius */
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    opacity: 0.42;
    transform: translate3d(0, 10px, 0);
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.rb-story__panel.is-active .rb-story__sub:nth-child(1) { transition-delay: 0.06s; }
.rb-story__panel.is-active .rb-story__sub:nth-child(2) { transition-delay: 0.14s; }
.rb-story__panel.is-active .rb-story__sub:nth-child(3) { transition-delay: 0.22s; }
.rb-story__panel:not(.is-active) .rb-story__sub { transition-delay: 0s; }

.rb-story__sub.is-open {
    opacity: 0.88;
    transform: none;
    background: var(--rb-story-wash);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rb-story-accent) 22%, transparent);
}

.rb-story__sub.is-current {
    opacity: 1;
    transform: none;
    background: var(--rb-story-accent-soft);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--rb-story-accent) 42%, transparent),
        0 8px 18px var(--rb-story-wash);
}

.rb-story__sub-icon {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8aa0b5;
    font-size: 0.95rem;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.rb-story__sub.is-open .rb-story__sub-icon {
    color: var(--rb-story-accent-hi);
    border-color: color-mix(in srgb, var(--rb-story-accent) 32%, transparent);
    background: var(--rb-story-accent-soft);
}

.rb-story__sub.is-current .rb-story__sub-icon {
    color: var(--rb-story-ink-on-accent);
    background: linear-gradient(145deg, var(--rb-story-accent-hi), var(--rb-story-accent-deep));
    border-color: transparent;
}

.rb-story__sub-copy {
    min-width: 0;
}

.rb-story__sub-title {
    margin: 0 0 0.15rem;
    color: #e8eef5;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}

.rb-story__sub-text {
    margin: 0;
    color: #9db0c3;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.55;
}

.rb-story__hint {
    margin: 1.35rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    color: #7e93a8;
    font-size: 0.82rem;
    font-weight: 700;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.rb-story__hint i {
    font-size: 1rem;
    animation: rb-story-hint-bounce 1.6s ease-in-out infinite;
}

.rb-story__hint.is-done {
    opacity: 0;
}

.rb-story__hint.is-final {
    color: color-mix(in srgb, var(--rb-story-accent-hi) 70%, #9db0c3);
}

.rb-story__hint.is-final i {
    display: none;
    animation: none;
}

.rb-story__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 0.15rem;
    padding: 0.72rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--rb-story-accent-hi), var(--rb-story-accent-deep));
    color: var(--rb-story-ink-on-accent, #fff);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow:
        0 10px 24px var(--rb-story-accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.rb-story__cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: var(--rb-story-ink-on-accent, #fff);
    box-shadow:
        0 14px 28px var(--rb-story-accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.rb-story__cta:focus-visible {
    outline: 2px solid var(--rb-story-accent-hi);
    outline-offset: 3px;
}

@keyframes rb-story-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.rb-story__brief {
    display: none;
}

.rb-story__dual-intro .rb-story__full,
.rb-story__dual-note .rb-story__full,
.rb-story__card-hint .rb-story__full {
    display: inline;
}

@media (max-width: 1024px) {
    /* جوال/لوحي: مسار أطول قليلاً حتى لا تتبدل المراحل بسرعة */
    .rb-story__scroll {
        height: calc(var(--rb-story-units, var(--rb-story-beats, 3)) * 82vh);
        min-height: 250vh;
    }

    .rb-story__sticky {
        display: grid;
        place-content: center;
        place-items: center;
        padding: 0.75rem 0;
        overflow: visible;
        box-sizing: border-box;
    }

    .rb-story.is-pinned .rb-story__sticky {
        overflow: visible !important; /* ممنوع auto — يصارع سكرول الصفحة */
        top: var(--rb-story-pin-top, 0px);
        height: calc(100dvh - var(--rb-story-pin-top, 0px));
        max-height: calc(100dvh - var(--rb-story-pin-top, 0px));
        min-height: calc(100dvh - var(--rb-story-pin-top, 0px));
        display: grid;
        place-content: center;
        place-items: center;
        padding: 0.5rem 0;
        box-sizing: border-box;
    }

    .rb-story.is-after .rb-story__sticky {
        overflow: visible !important;
        display: grid;
        place-content: center;
        place-items: center;
    }

    .rb-story__wrap {
        margin-block: 0;
        width: min(100% - 1.5rem, 980px);
    }

    .rb-story__head {
        margin: 0 0 0.75rem;
    }

    .rb-story__title {
        font-size: 1.35rem;
    }

    .rb-story__lead {
        font-size: 0.88rem;
    }

    .rb-story__stage {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        min-height: 0;
    }

    .rb-story__rail {
        min-height: 0;
        height: auto;
        padding: 0.1rem 0 0.45rem;
        z-index: 3;
    }

    .rb-story__rail-nodes {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 1.1rem;
        min-height: 0;
        height: auto;
    }

    .rb-story__rail-node-item {
        flex: 1 1 0;
        max-width: 6.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        text-align: center;
    }

    .rb-story__rail-label {
        text-align: center;
        font-size: 0.62rem;
        line-height: 1.25;
    }

    .rb-story__rail-node-item--sub {
        display: none;
    }

    .rb-story__rail-line {
        inset-block: auto;
        top: calc(var(--rb-rail-node-size) / 2 - var(--rb-rail-line-w) / 2);
        bottom: auto;
        inset-inline: 12%;
        width: auto;
        height: var(--rb-rail-line-w);
        transform: none;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
    }

    .rb-story__rail-fill {
        height: 100%;
        width: calc(var(--rb-story-rail-p, var(--rb-story-p, 0)) * 100%);
        background: linear-gradient(
            90deg,
            color-mix(in srgb, var(--rb-story-accent, #00A8E8) 72%, #fff) 0%,
            var(--rb-story-accent, #00A8E8) 100%
        );
        transition: background 0.45s ease, box-shadow 0.45s ease;
    }

    .rb-story__meta {
        display: none;
    }

    .rb-story__panels {
        min-height: min(28rem, calc(100dvh - var(--rb-story-pin-top) - 8.5rem));
    }

    .rb-story__panel {
        justify-content: flex-start;
        padding: 0.95rem 0.9rem 0.9rem;
        /* تبقى absolute من القاعدة — مرحلة واحدة فقط ظاهرة */
    }

    .rb-story__panel--dual {
        padding: 0;
        justify-content: flex-start;
    }

    .rb-story__panel--dual .rb-story__full {
        display: none !important;
    }

    .rb-story__panel--dual .rb-story__brief {
        display: block;
    }

    /* جوال: نص مختصر للكل + إخفاء الزوائد التي تضخّم كارد المرحلة ٢ */
    .rb-story__panel:not(.rb-story__panel--dual) .rb-story__full {
        display: none !important;
    }

    .rb-story__panel:not(.rb-story__panel--dual) .rb-story__brief {
        display: inline;
    }

    .rb-story__dual-intro .rb-story__brief,
    .rb-story__dual-note .rb-story__brief,
    .rb-story__card-hint .rb-story__brief {
        display: inline;
    }

    /* التلميحات القصيرة تبقى — الملاحظة السفلية تُخفى لتوازن الارتفاع */
    .rb-story__dual-note {
        display: none !important;
    }

    .rb-story__card-hint {
        display: flex;
        margin-top: 0.1rem;
        padding: 0.3rem 0.45rem;
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .rb-story__dual-shell {
        padding: 0.9rem 0.85rem 0.85rem;
        gap: 0.55rem;
    }

    .rb-story__dual-shell-head .rb-story__step-title {
        font-size: 0.98rem;
    }

    .rb-story__dual {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .rb-story__dual-or {
        padding-block: 0;
    }

    .rb-story__dual-or span {
        width: auto;
        height: auto;
        padding: 0.16rem 0.65rem;
        border-radius: 999px;
        font-size: 0.7rem;
    }

    .rb-story__card {
        padding: 0.75rem 0.8rem 0.7rem;
        gap: 0.3rem;
    }

    .rb-story__card .rb-story__step-title {
        font-size: 0.92rem;
    }

    .rb-story__card .rb-story__step-text {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .rb-story__dual-intro {
        display: none;
    }

    .rb-story__cta {
        width: 100%;
        align-self: stretch;
        margin-top: 0.45rem;
    }

    .rb-story__step-title {
        font-size: 0.98rem;
    }

    .rb-story__step-text {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .rb-story__sub {
        padding: 0.55rem 0.65rem;
    }

    .rb-story__sub-title {
        font-size: 0.86rem;
    }

    .rb-story__sub-text {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .rb-story__hint {
        display: none;
    }
}

/* حركة وتأثيرات القسم — تُلغى عند تفضيل تقليل الحركة */
@media (prefers-reduced-motion: no-preference) {
    .rb-story::after {
        animation: rb-story-stars 12s ease-in-out infinite alternate;
    }

    .rb-story__tint::before {
        animation: rb-story-orb-a 10s ease-in-out infinite alternate;
    }

    .rb-story__tint::after {
        animation: rb-story-orb-b 13s ease-in-out infinite alternate;
    }

    .rb-story__eyebrow::before {
        animation: rb-story-pulse 2.2s ease-in-out infinite;
    }

    .rb-story__rail-node.is-current {
        animation: rb-story-node-glow 2.4s ease-in-out infinite;
    }

    .rb-story__rail-sub.is-current {
        animation: rb-story-sub-pulse 1.8s ease-in-out infinite;
    }
}

@keyframes rb-story-stars {
    0% { opacity: 0.35; transform: translate3d(0, 0, 0); }
    100% { opacity: 0.65; transform: translate3d(0, -6px, 0); }
}

@keyframes rb-story-orb-a {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-6%, 8%, 0) scale(1.08); }
}

@keyframes rb-story-orb-b {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(8%, -6%, 0) scale(1.1); }
}

@keyframes rb-story-pulse {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rb-story-accent) 20%, transparent); transform: scale(1); }
    50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--rb-story-accent) 8%, transparent); transform: scale(1.15); }
}

@keyframes rb-story-node-glow {
    0%, 100% {
        box-shadow:
            0 10px 28px var(--rb-story-accent-glow),
            0 0 0 5px color-mix(in srgb, var(--rb-story-accent) 16%, transparent),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow:
            0 12px 34px var(--rb-story-accent-glow),
            0 0 0 7px color-mix(in srgb, var(--rb-story-accent) 10%, transparent),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
}

@keyframes rb-story-sub-pulse {
    0%, 100% { transform: scale(1.3); }
    50% { transform: scale(1.45); }
}

@keyframes rb-story-panel-in {
    from { opacity: 0; transform: translateY(16px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

@keyframes rb-story-card-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rb-story,
    .rb-story.is-pinned .rb-story__sticky,
    .rb-story__tint,
    .rb-story__tint::before,
    .rb-story__tint::after,
    .rb-story::before,
    .rb-story::after,
    .rb-story__eyebrow,
    .rb-story__eyebrow::before,
    .rb-story__chapter-tag {
        transition: none !important;
    }

    .rb-story__scroll {
        height: auto;
    }

    .rb-story__sticky {
        position: relative;
        top: auto;
        min-height: 0;
    }

    .rb-story__panels {
        display: grid;
        gap: 0.9rem;
        min-height: 0;
    }

    .rb-story__panel {
        position: relative;
        inset: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
        overflow: visible;
        animation: none;
    }

    .rb-story__card,
    .rb-story__sub {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .rb-story::after,
    .rb-story__tint::before,
    .rb-story__tint::after,
    .rb-story__eyebrow::before,
    .rb-story__rail-node.is-current,
    .rb-story__rail-sub.is-current,
    .rb-story__panel--dual.is-active .rb-story__card {
        animation: none;
    }

    .rb-story__hint,
    .rb-story__hint i {
        display: none;
        animation: none;
    }
}

/* ---------- Landing sections below home-v2 hero (do not affect hero) ---------- */
.ml-home-follow {
    color: var(--ml-ink, #142433);
    background: var(--ml-white, #ffffff);
    font-family: var(--ml-font, var(--app-font, Tajawal, sans-serif));
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.ml-home-follow a:focus-visible,
.ml-home-follow button:focus-visible,
.ml-home-follow input:focus-visible,
.ml-home-follow select:focus-visible {
    outline: 2px solid var(--ml-cyan, #00A8E8);
    outline-offset: 3px;
}

.ml-home-follow .ml-why {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- FAQ (آخر قسم في home-v2) ---------- */
.rb-faq {
    --rb-faq-ink: #0f2a40;
    --rb-faq-muted: #5a738a;
    --rb-faq-line: rgba(1, 48, 95, 0.1);
    --rb-faq-cyan: #00A8E8;
    --rb-faq-navy: #01305F;
    position: relative;
    isolation: isolate;
    padding: clamp(3.2rem, 6vw, 5rem) 0 clamp(3.5rem, 6.5vw, 5.5rem);
    background:
        radial-gradient(ellipse 55% 45% at 100% 0%, rgba(0, 168, 232, 0.1), transparent 55%),
        radial-gradient(ellipse 40% 35% at 0% 100%, rgba(254, 163, 26, 0.08), transparent 50%),
        linear-gradient(180deg, #eef5fa 0%, #f7fafc 48%, #ffffff 100%);
    color: var(--rb-faq-ink);
    font-family: var(--app-font, Tajawal, sans-serif);
    overflow: hidden;
}

.rb-faq__glow {
    position: absolute;
    inset: auto auto -20% 50%;
    width: min(70vw, 36rem);
    height: min(70vw, 36rem);
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.12), transparent 68%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

.rb-faq__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 1040px);
    margin-inline: auto;
}

.rb-faq__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
}

.rb-faq__intro {
    position: sticky;
    top: 5.5rem;
}

.rb-faq__eyebrow {
    margin: 0 0 0.55rem;
    color: var(--rb-faq-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.rb-faq__title {
    margin: 0 0 0.65rem;
    color: var(--rb-faq-navy);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 800;
    line-height: 1.35;
}

.rb-faq__lead {
    margin: 0 0 1.25rem;
    color: var(--rb-faq-muted);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75;
}

.rb-faq__tabs {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1.35rem;
}

.rb-faq__tab {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--rb-faq-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--rb-faq-muted);
    text-align: start;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rb-faq__tab > .bi {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    background: rgba(0, 168, 232, 0.1);
    color: var(--rb-faq-cyan);
    font-size: 1rem;
}

.rb-faq__tab-text {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.rb-faq__tab-text strong {
    color: var(--rb-faq-navy);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
}

.rb-faq__tab-text small {
    color: var(--rb-faq-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
}

.rb-faq__tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(1, 48, 95, 0.06);
    color: var(--rb-faq-navy);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rb-faq__tab:hover {
    border-color: rgba(0, 168, 232, 0.35);
    transform: translateY(-1px);
}

.rb-faq__tab:focus-visible {
    outline: 2px solid var(--rb-faq-cyan);
    outline-offset: 2px;
}

.rb-faq__tab.is-active {
    border-color: transparent;
    background: linear-gradient(145deg, #00a8e8 , rgba(8, 52, 88, 0.96));
    box-shadow: 0 14px 28px rgba(1, 48, 95, 0.18);
    color: #d7e6f3;
}

.rb-faq__tab.is-active > .bi {
    background: rgba(0, 168, 232, 0.22);
    color: #7fd4f5;
}

.rb-faq__tab.is-active .rb-faq__tab-text strong {
    color: #fff;
}

.rb-faq__tab.is-active .rb-faq__tab-text small {
    color: #9db0c3;
}

.rb-faq__tab.is-active .rb-faq__tab-count {
    background: rgba(0, 168, 232, 0.22);
    color: #fff;
}

.rb-faq__help {
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(1, 48, 95, 0.96), rgba(10, 40, 70, 0.98));
    color: #e8eef5;
    box-shadow: 0 18px 36px rgba(1, 48, 95, 0.18);
}

.rb-faq__help-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.rb-faq__help-text {
    margin: 0 0 0.95rem;
    color: #9db0c3;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.65;
}

.rb-faq__help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.rb-faq__help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--rb-faq-cyan);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rb-faq__help-link:hover {
    background: #19B7F0;
    color: #fff;
    transform: translateY(-1px);
}

.rb-faq__help-link--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #d5e0eb;
}

.rb-faq__help-link--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.rb-faq__help-link--ai {
    gap: 0.35rem;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, #19B7F0 0%, #00A8E8 55%, #0B8BC4 100%);
    box-shadow: 0 10px 22px rgba(0, 168, 232, 0.38);
}

.rb-faq__help-link--ai:hover {
    background: linear-gradient(135deg, #3ac4f5 0%, #19B7F0 55%, #00A8E8 100%);
    color: #fff;
}

.rb-faq__help-link--ai i {
    font-size: 0.95em;
}

.rb-faq__list {
    display: grid;
    gap: 0.7rem;
}

.rb-faq__item {
    margin: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--rb-faq-line);
    box-shadow: 0 10px 28px rgba(1, 48, 95, 0.04);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rb-faq__item[hidden] {
    display: none !important;
}

.rb-faq__item[open] {
    border-color: rgba(0, 168, 232, 0.32);
    box-shadow:
        0 14px 32px rgba(1, 48, 95, 0.08),
        0 0 0 1px rgba(0, 168, 232, 0.08);
}

.rb-faq__item summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1.05rem 1.15rem;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: var(--rb-faq-navy);
}

.rb-faq__item summary::-webkit-details-marker {
    display: none;
}

.rb-faq__num {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.1);
    color: var(--rb-faq-cyan);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.rb-faq__item[open] .rb-faq__num {
    background: linear-gradient(145deg, #19B7F0, #0089BF);
    color: #fff;
}

.rb-faq__q {
    font-size: 0.98rem;
    line-height: 1.55;
}

.rb-faq__icon {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(1, 48, 95, 0.05);
    color: var(--rb-faq-cyan);
    font-size: 0.85rem;
    transition: transform 0.25s ease, background 0.25s ease;
}

.rb-faq__item[open] .rb-faq__icon {
    transform: rotate(45deg);
    background: rgba(0, 168, 232, 0.12);
}

.rb-faq__a {
    padding: 0 1.15rem 1.15rem;
    padding-inline-start: calc(1.15rem + 2rem + 0.75rem);
}

.rb-faq__a p {
    margin: 0;
    border-top: 1px solid var(--rb-faq-line);
    padding-top: 0.85rem;
    color: var(--rb-faq-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.8;
}

@media (max-width: 860px) {
    .rb-faq__layout {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .rb-faq__intro {
        position: static;
    }

    .rb-faq__tabs {
        grid-template-columns: 1fr;
    }

    .rb-faq__help {
        order: 2;
    }

    .rb-faq__list {
        order: 1;
    }

    .rb-faq__a {
        padding-inline-start: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rb-faq__tab,
    .rb-faq__help-link,
    .rb-faq__help-link--ai,
    .rb-faq__item,
    .rb-faq__icon {
        transition: none;
    }
}

