/* ===== Redesign additions (asset-management): gate, who-show, process path, live portfolio ===== */
@keyframes rb-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rb-out { to { opacity: 0; } }
@keyframes rb-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes rb-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rb-dash { to { stroke-dashoffset: 0; } }
@keyframes rb-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes rb-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes rb-halo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }

/* ---------- A. یعنی چه: سه پرسش پیش از انتخاب دارایی ---------- */
.rb-gate { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 26px 22px; }
.rb-gate-kicker { display: inline-block; font-size: 13px; color: var(--wine); margin-bottom: 16px; }
.rb-gate-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rb-gate-list li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 0 0 22px; color: var(--faint); font-size: 15px; line-height: 1.75; min-height: 58px; transition: color .4s; }
.rb-gate-list li.is-on { color: var(--navy); }
.rb-gate-list li::before { content: ''; position: absolute; inset-inline-start: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.rb-gate-list li::after { content: ''; position: absolute; inset-inline-start: 15px; top: 32px; height: 0; width: 2px; background: var(--wine); transition: height .45s ease .2s; }
.rb-gate-list li.is-done::after { height: calc(100% - 32px); }
.rb-gate-list li:last-child::before, .rb-gate-list li:last-child::after { display: none; }
.rb-gate-dot { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: border-color .35s, background .35s; }
.rb-gate-list li.is-on .rb-gate-dot { border-color: var(--navy); }
.rb-gate-list li.is-done .rb-gate-dot { background: var(--wine); border-color: var(--wine); }
.rb-gate-num { font-size: 13.5px; color: var(--navy); transition: opacity .25s; }
.rb-gate-list li.is-done .rb-gate-num { opacity: 0; }
.rb-gate-dot svg { position: absolute; width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s ease .1s; }
.rb-gate-list li.is-done .rb-gate-dot svg { stroke-dashoffset: 0; }
.rb-gate-q { min-height: 26px; }
.rb-gate-q.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--wine); vertical-align: -3px; margin-inline-start: 3px; animation: rb-blink .7s steps(1) infinite; }
.rb-gate-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg); color: var(--faint); transition: background .5s, border-color .5s, color .5s, box-shadow .5s; }
.rb-gate-box.is-open { background: var(--navy); border-color: var(--navy); border-style: solid; color: #fff; box-shadow: 0 14px 28px rgba(19, 37, 75, .22); }
.rb-gate-box > div { display: grid; gap: 2px; }
.rb-gate-boxname { font-size: 15.5px; }
.rb-gate-boxsub { font-size: 12.5px; opacity: .75; }
.rb-gate-lock { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rb-gate-lock circle { fill: currentColor; stroke: none; }
.rb-gate-lock .rb-lock-open { opacity: 0; transition: opacity .3s; }
.rb-gate-lock .rb-lock-closed { transition: opacity .3s; }
.rb-gate-box.is-open .rb-lock-open { opacity: 1; }
.rb-gate-box.is-open .rb-lock-closed { opacity: 0; }
.rb-gate-caption { margin: 18px 0 0; background: var(--wine-tint); border-radius: 12px; padding: 12px 16px; font-size: 16.5px; color: var(--navy); display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.rb-gate-caption::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--wine); flex: none; }
.rb-gate.is-4 .rb-gate-caption { opacity: 1; transform: none; }

/* ---------- B. برای کیه: فهرست و تصویر بزرگ ---------- */
.rb-who-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: stretch; margin-top: 34px; }
.rb-who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.rb-who-item button { width: 100%; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 18px; font: inherit; color: inherit; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; position: relative; overflow: hidden; transition: border-color .3s, box-shadow .3s, background .3s; }
.rb-who-item button:hover { border-color: #b9c4d8; }
.rb-who-item button:focus { outline: none; }
.rb-who-item button:focus-visible { border-color: var(--navy); }
.rb-who-item.is-active button { border-color: #e2bccb; box-shadow: var(--shadow-sm); }
.rb-who-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); margin-top: 10px; transition: background .3s, box-shadow .3s; }
.rb-who-item.is-active .rb-who-dot { background: var(--wine); box-shadow: 0 0 0 4px var(--wine-tint); }
.rb-who-item h3 { font-size: 15.5px; margin: 0 0 2px; color: var(--navy); font-weight: 500; }
.rb-who-item p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s; }
.rb-who-item.is-active p { max-height: 80px; opacity: 1; color: var(--body); }
.rb-who-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--wine-tint); opacity: 0; transition: opacity .3s; }
.rb-who-bar i { position: absolute; top: 0; right: 0; height: 100%; width: 0; background: var(--wine); }
.rb-who-item.is-active .rb-who-bar { opacity: 1; }
.rb-who-stage { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; min-height: 380px; }
.rb-who-scene { position: absolute; inset: 18px; margin: 0; display: none; }
.rb-who-scene.is-active { display: block; animation: rb-fade .45s ease both; }
.rb-who-scene.is-html.is-active { display: flex; align-items: center; justify-content: center; }
.rb-who-scene svg { width: 100%; height: 100%; display: block; overflow: visible; font-family: inherit; }
.rb-who-scene text { font-size: 13px; fill: #fff; text-anchor: middle; direction: rtl; unicode-bidi: embed; }
.rb-who-scene text.t { fill: var(--navy); }
.rb-who-scene text.tm { fill: var(--muted); font-size: 12.5px; }
.rb-who-scene text.tw { fill: var(--wine); font-size: 12.5px; }
.rb-who-scene text[text-anchor="start"] { text-anchor: start; }
.rb-who-scene text[text-anchor="end"] { text-anchor: end; }
.rb-who-scene .n { stroke: var(--navy); stroke-width: 1.6; fill: none; }
.rb-who-scene .sc-axis { stroke: var(--line-2); stroke-width: 1.5; }
.rb-who-scene .sc-ticks line { stroke: var(--line-2); stroke-width: 1.2; }
.rb-who-scene .sc-dash { stroke: var(--wine); stroke-width: 1.6; stroke-dasharray: 6 6; stroke-dashoffset: 600; animation: rb-dash 1.6s ease 1.7s forwards; }
.rb-who-scene .sc-tag { fill: #fff; stroke: #e2bccb; stroke-width: 1; }
/* scene 1 */
.sc-tile { animation: rb-in .6s ease both; animation-delay: calc(var(--d) * 1.8); }
.sc-links line { stroke: #b9c4d8; stroke-width: 1.5; stroke-dasharray: 6 5; stroke-dashoffset: 400; animation: rb-dash 1.4s ease 1.1s forwards; }
.sc-ring { transform-box: fill-box; transform-origin: center; animation: rb-pop .6s cubic-bezier(.2,.7,.2,1) 2.5s both, sc-breathe 3.2s ease-in-out 3.4s infinite; }
@keyframes sc-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.sc-ring-fill { fill: #fff; } .sc-ring-line { fill: none; stroke: var(--wine); stroke-width: 2; }
/* scene 2 (html): how much to each market */
.sc2 { width: 100%; padding: 0 6px; }
.sc2-title { font-size: 17px; color: var(--navy); text-align: center; margin: 0 0 6px; }
.sc2-box { position: relative; }
.rb-who-scene .sc2-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.sc2-box .sc2-seg { stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.sc2-box text.sc2-q { font-size: 22px; fill: #fff; text-anchor: middle; }
.sc2-box text.sc2-pct { font-size: 14px; fill: #fff; text-anchor: middle; transform-box: fill-box; transform-origin: center; }
.sc2.is-ring text.sc2-pct { animation: rb-pop .5s cubic-bezier(.2,.7,.2,1) both; }
.sc2-box text.sc2-name { font-size: 12.5px; fill: var(--navy); }
.sc2-box text.sc2-center { font-size: 15px; fill: var(--navy); text-anchor: middle; }
.sc2-box .sc2-ring { transform-box: fill-box; transform-origin: center; }
.sc2.is-ring .sc2-ring { animation: sc2-lock .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sc2-lock { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
.sc2-box .sc2-halo { fill: none; stroke: var(--wine); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sc2.is-ring .sc2-halo { animation: rb-halo 1.2s ease-out both; }
.rb-live2-pie path { stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.sc2-box .sc2-seg { stroke-width: .9; }
.sc2-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .6s; }
.sc2.is-ring .sc2-legend { opacity: 1; }
.sc2-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); }
.sc2-legend li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sc2-legend li span { min-width: 104px; }
.sc2-legend li em { font-style: normal; color: var(--body); }
/* scene 3 */
.sc-flag { transform-box: fill-box; transform-origin: 50% 100%; animation: rb-rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d) * 2.2); }
.sc-flag path { transform-box: fill-box; transform-origin: left center; animation: sc-sway 2.8s ease-in-out infinite; animation-delay: calc(var(--d) * 2.2 + .9s); }
@keyframes sc-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg) scaleX(.96); } }
.sc-fade { animation: rb-in .5s ease both; animation-delay: calc(var(--d) * 2.2); }
/* scene 4 */
.sc-bars rect { fill: #13254b; opacity: .85; transform-box: fill-box; transform-origin: 50% 100%; animation: rb-rise .7s ease both; animation-delay: calc(var(--d) * 2); }
.sc-tag, .sc-tag + text { animation: rb-in .5s ease 2.9s both; }
/* scene 5 */
.sc-mkt { fill: none; stroke: #c3cbd8; stroke-width: 1.6; stroke-linejoin: round; }
/* scene 3: inflation */
.sc-inf { fill: none; stroke: #b9c4d8; stroke-width: 2; stroke-dasharray: 7 6; }
.sc-inf.sc-draw { stroke-dasharray: 1400; animation: sc-inf-draw 2.2s linear both; animation-delay: var(--d); }
@keyframes sc-inf-draw { from { stroke-dashoffset: 1400; stroke-dasharray: 1400; } 99% { stroke-dasharray: 1400; } to { stroke-dashoffset: 0; stroke-dasharray: 7 6; } }
.sc-end { fill: var(--green); stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: rb-pop .45s ease both, sc-breathe 2.4s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + .6s); }
.sc-you { fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; }
.sc-you-l { stroke: var(--navy); stroke-width: 2.6; }
.sc-draw { stroke-dasharray: 1400; animation: rb-draw 2.2s linear both; animation-delay: calc(var(--d) * 1.8); }
.sc-news circle { fill: var(--wine); transform-box: fill-box; transform-origin: center; animation: rb-pop .4s ease both, sc-breathe 2.4s ease-in-out infinite; animation-delay: calc(var(--d) * 1.6), calc(var(--d) * 1.6 + .6s); }
/* scene 6 */
.sc-ringlt { fill: none; stroke: var(--line-2); stroke-width: 2; }
.sc-arc { fill: none; stroke: var(--wine); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; transform-box: fill-box; transform-origin: center; animation: rb-arc 3.2s ease both, sc-turn 26s linear 3.6s infinite; animation-delay: var(--d), 3.6s; }
@keyframes rb-arc { to { stroke-dashoffset: 0; } }
@keyframes sc-turn { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.sc-notch2 circle { fill: #fff; stroke: var(--wine); stroke-width: 2; animation: sc-fillin .3s ease both; animation-delay: calc(var(--d) * 1.9); }
@keyframes sc-fillin { to { fill: var(--wine); } }
.sc-donut circle { fill: none; stroke-width: 14; stroke-dasharray: var(--a); stroke-dashoffset: var(--o); transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); animation: rb-in .6s ease both .2s; }
/* the recognition band */
.rb-who-cta { margin-top: 34px; background: linear-gradient(135deg, #fbf3f6 0%, #f4f6fa 70%, #fff 100%); border-radius: var(--r); padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-sm); border-inline-start: 3px solid var(--wine); }
.rb-who-cta h3 { font-size: 17px; margin: 0 0 4px; }
.rb-who-cta p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- C. فرایند: سه قدم و یک چرخه ---------- */
.rb-path { margin-top: 34px; }
.rb-path svg { width: 100%; height: auto; display: block; overflow: visible; font-family: inherit; }
.rb-path text { direction: rtl; unicode-bidi: embed; }
.rb-path .track { stroke: var(--line-2); stroke-width: 2; fill: none; }
.rb-path .fill { stroke: var(--wine); stroke-width: 2; fill: none; }
.rb-path .loop-track { stroke: var(--line-2); stroke-width: 2; fill: none; stroke-dasharray: 6 7; }
.rb-path .loop-on { stroke: var(--wine); stroke-width: 2; fill: none; stroke-dasharray: 6 7; opacity: 0; transition: opacity .5s; transform-box: fill-box; transform-origin: center; }
.rb-path.is-loop .loop-on { opacity: 1; animation: st-turn 22s linear infinite; }
.rb-path .loop-cap { fill: var(--navy); }
.rb-path .loop-text { fill: #fff; font-size: 13.5px; text-anchor: middle; }
.rb-path .loop-sub { fill: var(--muted); font-size: 13px; text-anchor: middle; }
.rb-path .loop-label { fill: var(--navy); font-size: 14.5px; text-anchor: middle; }
.rb-path .st { cursor: pointer; outline: none; }
.rb-path .st:focus { outline: none; }
.rb-path .st .disc { fill: #fff; stroke: #b9c4d8; stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.rb-path .st:focus-visible .disc { stroke: var(--wine); stroke-width: 2.5; }
.rb-path .st .num { fill: var(--navy); font-size: 15px; text-anchor: middle; transition: fill .4s; }
.rb-path .st .label { fill: var(--navy); font-size: 14.5px; text-anchor: middle; }
.rb-path .st .sub { fill: var(--muted); font-size: 12.5px; text-anchor: middle; }
.rb-path .st .halo { fill: none; stroke: var(--wine); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rb-path .st .prog { fill: none; stroke: var(--wine); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.rb-path .st.is-active .prog { opacity: 1; }
.rb-path .st.is-done .disc, .rb-path .st.is-active .disc { fill: var(--navy); stroke: var(--navy); }
.rb-path .st.is-done .num, .rb-path .st.is-active .num { fill: #fff; }
.rb-path .st.is-active .halo { animation: rb-halo 1.6s ease-out infinite; }
.rb-path .dot { fill: var(--wine); stroke: #fff; stroke-width: 3; filter: drop-shadow(0 4px 8px rgba(121, 1, 55, .35)); transition: opacity .3s; }
.rb-path .loop-label-g { opacity: .7; transition: opacity .4s; }
.rb-path.is-loop .loop-label-g { opacity: 1; }
.rb-stages { margin-top: 26px; }
.rb-stages .st-step-panel { display: none; }
.rb-stages .st-step-panel.is-active { display: grid; animation: rb-fade .45s ease both; }
.rb-stages .st-stage-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.rb-stages .rb-nav-btn { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rb-stages .rb-nav-btn:hover { border-color: var(--navy); }
.rb-stages .rb-nav-btn:focus { outline: none; }
.rb-stages .rb-nav-btn[disabled] { opacity: .35; cursor: default; }
.rb-stages .rb-nav-hint { display: none; }

/* ---------- D. پرتفوی به‌روز: یک سال، هفت ریبالانس ---------- */
.rb-live-head { gap: 48px; }
.rb-live-head .st-text p { font-size: 15.5px; }
.rb-live-head > .st-text { padding-top: 102px; }
.rb-live-key { margin: 36px auto 0; max-width: 860px; background: #fff; border-radius: 14px; border-inline-start: 3px solid var(--navy); box-shadow: var(--shadow-sm); padding: 16px 26px; font-size: 17px; line-height: 1.8; color: var(--navy); }
.rb-live2 { margin-top: 30px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 30px 26px; }
.rb-year { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rb-year-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--navy); }
.rb-year-track { position: relative; height: 2px; background: var(--line-2); margin: 30px 46px 44px 26px; }
.rb-year-fill { position: absolute; right: 0; top: 0; height: 100%; width: 0; background: var(--wine); transition: width .8s ease; }
.rb-year-nodes { position: absolute; inset: 0; }
.rb-year-node { position: absolute; top: -7px; right: calc(var(--p) * 100%); transform: translateX(50%); width: 16px; height: 16px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; }
.rb-year-node::before { content: ''; position: absolute; inset: -12px; }
.rb-year-node i { position: absolute; inset: 0; border-radius: 50%; background: #fff; border: 2px solid #b9c4d8; display: block; transition: border-color .3s, background .3s, box-shadow .3s; }
.rb-year-node span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); white-space: nowrap; transition: color .3s; }
.rb-year-node.is-done i { border-color: var(--navy); background: var(--navy); }
.rb-year-node.is-active i { border-color: var(--wine); background: var(--wine); box-shadow: 0 0 0 5px var(--wine-tint); }
.rb-year-node.is-active span { color: var(--wine); }
.rb-year-node:focus { outline: none; }
.rb-year-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--faint); margin: 42px 10px 0; }
.rb-live2-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-top: 24px; min-height: 320px; }
.rb-live2-head { position: relative; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.rb-live2-head h3 { font-size: 19px; }
.rb-live2-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; display: block; }
.rb-live2-progress b { position: absolute; top: 0; right: 0; height: 100%; width: 0; background: var(--wine); display: block; }
.rb-live2-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-height: 150px; align-content: start; }
.rb-live2-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); line-height: 1.7; }
.rb-live2-changes li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--ink); line-height: 1.7; opacity: 0; animation: rb-in .45s ease both; animation-delay: var(--d); }
.rb-ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.rb-ck svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rb-ck.is-add { background: var(--green-tint); color: var(--green); }
.rb-ck.is-cut { background: #eef0f3; color: #8a94a6; }
.rb-ck.is-you { background: var(--wine-tint); color: var(--wine); }
.rb-live2-chart { display: flex; align-items: center; justify-content: center; }
.rb-live2-pie { position: relative; width: 100%; max-width: 440px; }
.rb-live2-pie svg { width: 100%; height: auto; display: block; overflow: visible; font-family: inherit; }
.rb-live2-pie text { font-size: 9.5px; fill: var(--navy); direction: rtl; unicode-bidi: embed; }
.rb-live2-hub { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.rb-live2-hub span:first-child { font-size: 14px; color: var(--navy); }
.rb-live2-hub span:last-child { font-size: 12.5px; color: var(--muted); }
.rb-live2-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; min-width: 176px; }
.rb-live2-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); transition: opacity .4s; }
.rb-live2-legend li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rb-live2-legend li span { flex: 1; }
.rb-live2-legend li em { font-style: normal; color: var(--body); min-width: 36px; text-align: left; }
.rb-live2-legend li.is-off { opacity: .35; }
.rb-live2-legend li.is-off em { color: var(--faint); }
.rb-metrics { margin-top: 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rb-metric { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 18px 18px 16px; position: relative; }
.rb-metric::before { content: ''; position: absolute; top: 0; inset-inline-start: 18px; width: 28px; height: 3px; background: var(--wine); border-radius: 0 0 3px 3px; }
.rb-metric h3 { font-size: 15px; margin-bottom: 6px; }
.rb-metric p { font-size: 13.5px; color: var(--body); line-height: 1.75; }
.rb-metrics-title { margin-top: 34px; font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.rb-metrics-title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.rb-live-bottom { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.rb-live-bottom .st-cycle-article .st-link { white-space: nowrap; flex: none; }
.rb-live-bottom .st-cycle-article h3 { white-space: nowrap; }
.rb-live-bottom .st-note-bar { margin: 0; display: flex; align-items: center; }
.rb-live-bottom .st-cycle-article { margin: 0; }

/* ---------- E. مقایسه با نسخه‌های عمومی: ردیف‌ها دوبه‌دو می‌آیند، تیک‌ها می‌نشینند ---------- */
.st-compare-wrap.st-reveal .st-compare-col li { opacity: 0; transform: translateX(18px); }
.st-compare-wrap.st-reveal .st-compare-col.is-us li { transform: translateX(-18px); }
.st-compare-wrap.is-in .st-compare-col li { animation: cmp-in .6s cubic-bezier(.2,.7,.2,1) both; }
.st-compare-wrap.is-in .st-compare-col li:nth-child(1) { animation-delay: .25s; } .st-compare-wrap.is-in .st-compare-col li:nth-child(2) { animation-delay: .5s; } .st-compare-wrap.is-in .st-compare-col li:nth-child(3) { animation-delay: .75s; } .st-compare-wrap.is-in .st-compare-col li:nth-child(4) { animation-delay: 1s; } .st-compare-wrap.is-in .st-compare-col li:nth-child(5) { animation-delay: 1.25s; } .st-compare-wrap.is-in .st-compare-col li:nth-child(6) { animation-delay: 1.5s; }
.st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(1) { animation-delay: .4s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(2) { animation-delay: .65s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(3) { animation-delay: .9s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(4) { animation-delay: 1.15s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(5) { animation-delay: 1.4s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(6) { animation-delay: 1.65s; }
@keyframes cmp-in { to { opacity: 1; transform: none; } }
.st-compare-wrap.st-reveal .st-compare-col li .st-icon { transform: scale(0); }
.st-compare-wrap.is-in .st-compare-col li .st-icon { animation: cmp-pop .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: inherit; }
.st-compare-wrap.is-in .st-compare-col.is-us li .st-icon { animation: cmp-pop .45s cubic-bezier(.2,.7,.2,1) both, cmp-glow 6s ease-in-out infinite; animation-delay: inherit, calc(2.4s + 0s); }
.st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(2) .st-icon { animation-delay: inherit, 2.7s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(3) .st-icon { animation-delay: inherit, 3s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(4) .st-icon { animation-delay: inherit, 3.3s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(5) .st-icon { animation-delay: inherit, 3.6s; } .st-compare-wrap.is-in .st-compare-col.is-us li:nth-child(6) .st-icon { animation-delay: inherit, 3.9s; }
@keyframes cmp-pop { from { transform: scale(0); } 70% { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes cmp-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(121, 1, 55, 0); } 12% { box-shadow: 0 0 0 6px rgba(121, 1, 55, .14); } 30% { box-shadow: 0 0 0 0 rgba(121, 1, 55, 0); } }
.st-compare-wrap.st-reveal .st-compare-badge { transform: translate(-50%, -50%) scale(0); }
.st-compare-wrap.is-in .st-compare-badge { animation: cmp-badge .5s cubic-bezier(.2,.7,.2,1) 1.9s both; }
@keyframes cmp-badge { from { transform: translate(-50%, -50%) scale(0); } 70% { transform: translate(-50%, -50%) scale(1.15); } to { transform: translate(-50%, -50%) scale(1); } }
.st-compare-wrap.is-in .st-compare-col.is-us { animation: cmp-halo 1.6s ease 2.1s both; }
@keyframes cmp-halo { 0% { box-shadow: 0 0 0 0 rgba(121, 1, 55, .25); } 100% { box-shadow: 0 0 0 16px rgba(121, 1, 55, 0); } }
@media (prefers-reduced-motion: reduce) { .st-compare-wrap.st-reveal .st-compare-col li, .st-compare-wrap.st-reveal .st-compare-col li .st-icon, .st-compare-wrap.st-reveal .st-compare-badge { opacity: 1; transform: none; animation: none !important; } .st-compare-wrap.st-reveal .st-compare-badge { transform: translate(-50%, -50%); } }

@media (max-width: 1180px) {
  .rb-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-live-bottom { grid-template-columns: 1fr; }
  .rb-live2-body { grid-template-columns: 1fr; }
  .rb-live2-chart { justify-content: center; }
}
@media (max-width: 960px) {
  .rb-who-show { grid-template-columns: 1fr; }
  .rb-who-stage { min-height: 320px; }
  .rb-who-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-gate *, .rb-who-scene *, .rb-live2 * { transition: none !important; animation: none !important; }
  .rb-path .st.is-active .halo, .rb-path.is-loop .loop-on { animation: none !important; }
}

/* ---------- F. کارت‌های فاکتورها: ورود پله‌ای و نور چرخان ---------- */
.rb-metric { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.rb-metric::before { width: 0; transition: width .6s ease; }
.rb-metrics.st-reveal .rb-metric { opacity: 0; transform: translateY(16px); }
.rb-metrics.is-in .rb-metric { animation: rb-in .65s cubic-bezier(.2,.7,.2,1) both; }
.rb-metrics.is-in .rb-metric:nth-child(1) { animation-delay: .1s; } .rb-metrics.is-in .rb-metric:nth-child(2) { animation-delay: .25s; } .rb-metrics.is-in .rb-metric:nth-child(3) { animation-delay: .4s; } .rb-metrics.is-in .rb-metric:nth-child(4) { animation-delay: .55s; } .rb-metrics.is-in .rb-metric:nth-child(5) { animation-delay: .7s; }
.rb-metrics.is-in .rb-metric::before { width: 28px; }
.rb-metrics.is-in .rb-metric:nth-child(1)::before { transition-delay: .5s; } .rb-metrics.is-in .rb-metric:nth-child(2)::before { transition-delay: .65s; } .rb-metrics.is-in .rb-metric:nth-child(3)::before { transition-delay: .8s; } .rb-metrics.is-in .rb-metric:nth-child(4)::before { transition-delay: .95s; } .rb-metrics.is-in .rb-metric:nth-child(5)::before { transition-delay: 1.1s; }
.rb-metric-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--navy-tint); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; transition: background .4s, transform .4s; }
.rb-metric-ico svg { width: 20px; height: 20px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rb-metric-ico .n { stroke: var(--navy); } .rb-metric-ico .w { stroke: var(--wine); } .rb-metric-ico .wf { fill: var(--wine); }
.rb-metric h3 { transition: color .4s; }
.rb-metric.is-lit { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(121, 1, 55, .14); }
.rb-metric.is-lit::before { width: 64px; transition-delay: 0s !important; }
.rb-metric.is-lit h3 { color: var(--wine); }
.rb-metric.is-lit .rb-metric-ico { background: var(--wine-tint); transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .rb-metrics.st-reveal .rb-metric { opacity: 1; transform: none; animation: none !important; } .rb-metric::before { width: 28px !important; } }

/* two grey panels never touch: a strip of page background between them */
.st-panel + .st-panel { margin-top: 28px; }
