/* Home page hero demo (/js/herodemo.js). The editor replica is laid out at 1200×700 design pixels (640×620 in
   the compact layout) and scaled to fit, so sizes here are fixed px on purpose. Uses the editor's dark tokens. */
.hd { position: relative; width: 100%; overflow: hidden; border-radius: 10px; border: 1px solid #17150f; background: var(--bg); box-shadow: 12px 12px 0 #ffd60a; }
.hd-root { position: absolute; left: 0; top: 0; width: 1200px; height: 700px; transform-origin: 0 0; display: flex; flex-direction: column; font: 500 12px/1.3 var(--font); color: var(--text); background: var(--bg); user-select: none; -webkit-user-select: none; }
.hd-root.compact { width: 640px; height: 620px; }
.hd-root :where(svg:not(.hd-person, .hd-wave)) { width: 15px; height: 15px; flex: none; }
.hd.paused * { animation-play-state: paused !important; }
.hd-sp { flex: 1; }
.hd-muted { color: var(--muted); }

/* Top bar */
.hd-top { height: 46px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.hd-logo { width: 26px; height: 26px; border-radius: 5px; background: #ffd60a; color: #17150f; display: grid; place-items: center; }
.hd-logo svg { width: 16px; height: 16px; }
.hd-title { font: 700 14px var(--display); letter-spacing: -0.01em; }
.hd-saved { display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-size: 11px; margin-left: 12px; }
.hd-saved svg { width: 13px; height: 13px; }
.hd-search { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px; border: 1px solid var(--border-2); border-radius: 5px; color: var(--muted); }
.hd-search kbd { font: 500 10px var(--mono); padding: 1px 4px; border-radius: 3px; background: var(--panel-2); color: var(--text-2); }
.hd-ib { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.hd-export { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 5px; background: #ffd60a; color: #17150f; font-weight: 700; transition: transform .15s; }

/* Body */
.hd-body { flex: 1; min-height: 0; display: flex; }
.hd-rail { width: 64px; flex: none; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; }
.hd-rail span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 0 6px; border-radius: 6px; color: var(--muted); transition: background .25s, color .25s; }
.hd-rail span svg { width: 18px; height: 18px; }
.hd-rail span i { font: 600 9.5px var(--font); font-style: normal; }
.hd-rail span.on { background: var(--accent-soft); color: #ffd60a; box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .45); }
.hd-panel, .hd-props { flex: none; padding: 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; position: relative; }
.hd-panel { width: 248px; border-right: 1px solid var(--border); background: var(--bg-2); }
.hd-props { width: 256px; border-left: 1px solid var(--border); background: var(--bg-2); }
.hd-ph { font: 700 14px var(--display); letter-spacing: -0.01em; }
.hd-sec h6 { margin: 0 0 7px; font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hd-sec { display: flex; flex-direction: column; gap: 6px; }
.hd-sec h6 + * { margin-top: 0; }
.hd-field { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--border-2); background: var(--field); color: var(--text-2); font-size: 11.5px; }
.hd-field b { margin-left: auto; color: var(--text); }
.hd-tog { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.hd-tog > span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.hd-tog > span b { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.hd-tog > span small { color: var(--muted); font-size: 10.5px; }
.hd-tog > i { width: 28px; height: 16px; border-radius: 9px; background: var(--panel-3); position: relative; flex: none; transition: background .25s; }
.hd-tog > i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .25s; }
.hd-tog.on > i { background: #ffd60a; }
.hd-tog.on > i::after { transform: translateX(12px); background: #17150f; }
.hd-sw { display: flex; gap: 6px; }
.hd-sw i { width: 26px; height: 26px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .14); }
.hd-sw i.on { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px #ffd60a; }
.hd-slider { height: 4px; border-radius: 2px; background: var(--panel-3); margin: 6px 0; }
.hd-slider i { display: block; height: 100%; border-radius: 2px; background: var(--text-2); position: relative; }
.hd-slider i::after { content: ''; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.hd-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.hd-chips span { padding: 4px 9px; border-radius: 4px; border: 1px solid var(--border-2); color: var(--text-2); font-size: 11px; font-weight: 600; }
.hd-chips span.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.hd-press { transform: scale(.94) !important; filter: brightness(1.15); }

/* Stage */
.hd-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--stage); }
.hd-view { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.hd-canvas { position: relative; width: 600px; height: 338px; overflow: hidden; border-radius: 3px; background: #000; transition: width .55s cubic-bezier(.6, 0, .2, 1), height .55s cubic-bezier(.6, 0, .2, 1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.hd-over { position: absolute; inset: 0; pointer-events: none; }
.hd-transport { height: 46px; flex: none; display: flex; align-items: center; padding: 0 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.hd-tc { font: 500 11.5px var(--mono); color: var(--muted); }
.hd-tc b { color: var(--text); font-weight: 600; }
.hd-pbtn { width: 32px; height: 32px; border-radius: 50%; background: #ffd60a; color: #17150f; display: grid; place-items: center; }
.hd-pbtn svg { width: 14px; height: 14px; margin-left: 2px; }
.hd-fmt { font: 600 11px var(--mono); color: var(--text-2); padding: 3px 8px; border-radius: 4px; border: 1px solid var(--border-2); }

/* Timeline */
.hd-tl { height: 184px; flex: none; position: relative; border-top: 1px solid var(--border); background: var(--bg-2); display: flex; flex-direction: column; }
.hd-tlbar { height: 36px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-bottom: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: 11.5px; }
.hd-tlbar > span { display: inline-flex; align-items: center; gap: 6px; }
.hd-tlbar .hd-div { width: 1px; height: 16px; background: var(--border-2); }
.hd-snap { padding: 4px 9px; border-radius: 4px; background: var(--accent-soft); color: #ffd60a; }
.hd-ruler { height: 20px; flex: none; position: relative; margin-left: 112px; margin-right: 14px; border-bottom: 1px solid var(--border); }
.hd-ruler span { position: absolute; top: 4px; font: 500 9.5px var(--mono); color: var(--muted); padding-left: 4px; border-left: 1px solid var(--border-2); height: 15px; }
.hd-tracks { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 4px 14px 8px 0; }
.hd-trk { height: 26px; display: flex; align-items: stretch; }
.hd-trk.thin { height: 20px; }
.hd-tname { width: 112px; flex: none; display: flex; align-items: center; gap: 7px; padding-left: 12px; color: var(--muted); font-weight: 600; font-size: 11px; }
.hd-tname svg { width: 13px; height: 13px; }
.hd-tname i { font-style: normal; white-space: nowrap; }
.hd-lane { flex: 1; position: relative; border-radius: 4px; background: rgba(255, 255, 255, .025); }
.hd-clip { position: absolute; top: 0; bottom: 0; border-radius: 4px; overflow: hidden; display: flex; align-items: center; gap: 6px; padding: 0 7px; white-space: nowrap; font-size: 10.5px; font-weight: 600; transition: width .5s cubic-bezier(.6, 0, .2, 1); }
.hd-clip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; position: relative; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.hd-clip svg:not(.hd-wave) { width: 11px; height: 11px; }
.hd-clip.v { background: #2f6690; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hd-clip.c { background: #2f7a4d; color: #fff; }
.hd-clip.a { background: #24463a; color: #4cc38a; padding: 2px 0; }
.hd-clip.t { background: #a8456b; color: #fff; }
.hd-clip.s { background: #6a5a9e; color: #fff; }
.hd-clip.zoom { background: rgba(255, 214, 10, .16); color: #ffd60a; box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .6); }
.hd-clip.pick { background: #ffd60a; color: #17150f; justify-content: center; }
.hd-clip.pick b { text-shadow: none; font: 700 10px var(--mono); }
.hd-clip.duck .hd-wave { clip-path: polygon(0 0, 18% 0, 22% 35%, 60% 35%, 64% 0, 100% 0, 100% 100%, 0 100%); }
.hd-clip.pop { animation: hd-pop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes hd-pop { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.hd-wave { width: 100%; height: 100%; display: block; opacity: .9; }
.film { position: absolute; inset: 0; opacity: .55; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 46px), linear-gradient(90deg, #3d77a6, #2c5f86 40%, #4b84b0); }
.film.cam { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 46px), linear-gradient(90deg, #3b8a5c, #2f7a4d); }
.film.th { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 46px), linear-gradient(90deg, #8a5a44, #6b4433 50%, #9a6b52); }
.film.pc { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 46px), linear-gradient(90deg, #1f4f57, #2f6670 50%, #1f4f57); }
.film.bgr { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 46px), linear-gradient(90deg, #7a6a52, #5d4f3c); }
.film.ex { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 46px), linear-gradient(90deg, #c96f3a, #a8456b); }
.hd-hw { position: absolute; top: 36px; bottom: 6px; left: 112px; right: 14px; pointer-events: none; }
.hd-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.hd-head::after { content: ''; position: absolute; top: -1px; left: -5px; width: 12px; height: 12px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }

/* Scan sweep (transcribing, finding moments). */
.hd-trk.scan .hd-lane::after { content: ''; position: absolute; top: -2px; bottom: -2px; width: 60px; left: 0; background: linear-gradient(90deg, transparent, rgba(255, 214, 10, .5)); border-right: 2px solid #ffd60a; animation: hd-scan 1.4s linear infinite; }
@keyframes hd-scan { from { left: -60px; } to { left: 100%; } }
.hd-hl { position: absolute; top: -2px; bottom: -2px; border-radius: 4px; box-shadow: inset 0 0 0 2px #ffd60a; background: rgba(255, 214, 10, .22); animation: hd-pop .5s both; }

/* Toast + cursor */
.hd-toast { position: absolute; left: 50%; top: 58px; transform: translate(-50%, -12px); opacity: 0; display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 7px; background: #f2efe6; color: #17150f; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); transition: opacity .3s, transform .3s; z-index: 30; font-size: 12px; white-space: nowrap; }
.hd-toast.on { opacity: 1; transform: translate(-50%, 0); }
.hd-toast svg { width: 16px; height: 16px; color: #1a7f4b; }
.hd-toast b { margin-right: 6px; }
.hd-cursor { position: absolute; left: 0; top: 0; z-index: 40; width: 0; height: 0; pointer-events: none; opacity: 0; transition: transform .6s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.hd-cursor.on { opacity: 1; }
.hd-cursor svg { position: absolute; left: -5px; top: -2px; width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.hd-cursor i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #ffd60a; opacity: 0; }
.hd-cursor.tap i { animation: hd-tap .5s ease-out; }
@keyframes hd-tap { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* Shared people + captions */
.hd-person { display: block; width: 100%; height: 100%; }
.hd-cap { position: absolute; left: 6%; right: 6%; bottom: 9%; text-align: center; font: 900 30px/1.15 Montserrat, var(--display); text-transform: uppercase; color: #fff; letter-spacing: -0.01em; z-index: 3; }
.hd-cap span { display: inline-block; transition: transform .15s, color .15s, background .15s; }
.hd-cap.s-spotlight span { -webkit-text-stroke: 7px #000; paint-order: stroke fill; text-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.hd-cap.s-spotlight span.on { color: #ffe600; }
.hd-cap.s-boxed { font: 800 28px/1.2 Inter, 'Instrument Sans', sans-serif; text-transform: none; }
.hd-cap.s-boxed span { padding: 0 6px; border-radius: 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.hd-cap.s-boxed span.on { background: #7c5cff; text-shadow: none; }
.hd-cap.s-bounce { font: 800 30px/1.15 Poppins, var(--display); text-transform: none; }
.hd-cap.s-bounce span { -webkit-text-stroke: 6px #000; paint-order: stroke fill; }
.hd-cap.s-bounce span.on { color: #2fe58a; transform: scale(1.18) translateY(-3px); }
.hd-cap.s-bold { color: #ffe600; }
.hd-cap.s-bold span { -webkit-text-stroke: 7px #000; paint-order: stroke fill; }
.hd-cap.s-bold span.on { transform: scale(1.12); }
.hd-cap.s-minimal { font: 600 24px/1.2 Poppins, var(--display); text-transform: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.hd-cap.s-minimal span:not(.on):not(.past) { opacity: .55; }
.hd-cap.s-neon { font: 800 26px/1.2 Montserrat, var(--display); color: #7df9ff; text-transform: none; text-shadow: 0 0 8px #7df9ff, 0 0 18px rgba(125, 249, 255, .6); }
.hd-cap.s-neon span:not(.on) { opacity: .6; }
.hd-cap[dir='rtl'] { font-family: Cairo, var(--display); font-weight: 900; text-transform: none; }
.hd-cap.mini { position: static; font-size: 15px; display: block; margin-bottom: 3px; }
.hd-cap.mini span { -webkit-text-stroke-width: 4px; padding: 0 3px; }

/* ---- Scene 1: recorder ---- */
.hd-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hd-modes span { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--text-2); }
.hd-modes span svg { width: 18px; height: 18px; }
.hd-modes span.on { border-color: #ffd60a; color: var(--text); background: var(--accent-soft); }
.hd-meter { height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; margin: -2px 0 2px 22px; }
.hd-meter i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #4cc38a 70%, #ffd60a); animation: hd-meter .9s ease-in-out infinite alternate; }
@keyframes hd-meter { 0% { width: 18%; } 30% { width: 62%; } 60% { width: 34%; } 100% { width: 74%; } }
.hd-recbtn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 9px; height: 40px; border-radius: 6px; background: #e5484d; color: #fff; font-weight: 700; font-size: 13px; transition: transform .15s; }
.hd-recbtn i { width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.hd-recbtn.live { background: #3a1d1d; color: #ff8a8a; box-shadow: inset 0 0 0 1px #e5484d; }
.hd-recbtn.live i { background: #e5484d; animation: hd-blink 1s infinite; }
@keyframes hd-blink { 50% { opacity: .2; } }
.hd-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); }
.hd-count b { font: 800 110px var(--display); color: #fff; animation: hd-count .52s ease-out; }
@keyframes hd-count { from { transform: scale(1.6); opacity: 0; } 40% { opacity: 1; } }
.hd-rec { position: absolute; left: 14px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 6px; background: rgba(20, 20, 18, .92); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); font: 600 11.5px var(--mono); color: #fff; }
.hd-rec > i { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; animation: hd-blink 1s infinite; }
.hd-rec > span { width: 22px; height: 22px; border-radius: 4px; background: #e5484d; display: grid; place-items: center; }
.hd-rec > span::after { content: ''; width: 8px; height: 8px; background: #fff; border-radius: 1px; }
.hd-canvas.rec { background: #000; }
.rec-wall { position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, #ffc387, transparent 50%), radial-gradient(circle at 85% 90%, #ff4f8b, transparent 55%), linear-gradient(135deg, #ff9a62, #ff5e7e); }
.rec-screen { position: absolute; left: 7%; top: 8%; width: 86%; height: 84%; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px rgba(60, 10, 20, .45); transition: transform .8s cubic-bezier(.6, 0, .2, 1); --z: 1.8; }
.rec-screen.zoomed { transform: scale(var(--z)); }
.rec-cam { position: absolute; left: 3.5%; bottom: 5%; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; background: #8fb7d6; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); z-index: 2; }
.rec-cam .hd-person { transform: translateY(14%) scale(1.05); }
.fa { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; color: #1d1d1f; font: 500 8px/1.2 'Instrument Sans', sans-serif; }
.fa-bar { height: 18px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 7px; background: #eceae4; }
.fa-bar i { width: 6px; height: 6px; border-radius: 50%; background: #cfcbc0; }
.fa-bar span { margin-left: 10px; padding: 1px 10px; border-radius: 4px; background: #fff; color: #777; font-size: 7px; }
.fa-body { flex: 1; display: flex; min-height: 0; }
.fa-side { width: 74px; background: #f6f5f1; padding: 9px 8px; display: flex; flex-direction: column; gap: 7px; }
.fa-side b { height: 12px; width: 70%; border-radius: 3px; background: #1d1d1f; margin-bottom: 4px; }
.fa-side span { height: 8px; border-radius: 3px; background: #e2dfd6; }
.fa-side span.on { background: #ffd60a; }
.fa-main { flex: 1; padding: 11px 14px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.fa-h { display: flex; align-items: center; gap: 6px; }
.fa-h > div { flex: 1; }
.fa-h small { color: #888; font-size: 7px; }
.fa-h h4 { margin: 0; font: 800 14px var(--display); letter-spacing: -0.02em; }
.fa-btn { padding: 5px 9px; border-radius: 4px; background: #17150f; color: #fff; font-weight: 700; font-size: 8px; }
.fa-btn.ghost { background: #fff; color: #17150f; box-shadow: inset 0 0 0 1px #d6d2c6; }
.fa-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.fa-kpis > div { padding: 7px 8px; border-radius: 5px; border: 1px solid #ebe8df; display: flex; flex-direction: column; gap: 2px; }
.fa-kpis small { color: #888; font-size: 7px; }
.fa-kpis b { font: 800 13px var(--display); }
.fa-kpis em { font-style: normal; color: #1a7f4b; font-size: 7px; font-weight: 700; }
.fa-kpis em.dn { color: #1a7f4b; }
.fa-chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px 0; border-radius: 5px; border: 1px solid #ebe8df; min-height: 0; }
.fa-chart i { flex: 1; border-radius: 3px 3px 0 0; background: #17150f; opacity: .85; }
.rec-clip { padding: 0; display: flex; gap: 0; background: none !important; box-shadow: none !important; transition: width .6s cubic-bezier(.6, 0, .2, 1); }
.rec-clip.growing { transition: none; }
.rec-clip .part { position: relative; flex: 1 1 0; height: 100%; overflow: hidden; border-radius: 4px; background: #2f6690; }
.rec-clip.c .part { background: #2f7a4d; }
.rec-clip.a .part { background: #24463a; color: #4cc38a; padding: 2px 0; }
.rec-clip .gap { flex: 0 0 9%; height: 100%; transition: flex-basis .6s cubic-bezier(.6, 0, .2, 1), opacity .4s; }
.rec-clip.a .gap { background: #24463a; color: #4cc38a; }
.rec-clip.cut .gap { background: repeating-linear-gradient(45deg, rgba(229, 72, 77, .55) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px #e5484d; border-radius: 3px; }
.rec-clip.closed .gap { flex-basis: 0; opacity: 0; }
.rec-clip .part + .gap, .rec-clip .gap + .part { margin-left: 0; }
.rec-clip.closed .part { margin-right: 1px; }

/* ---- Scene 2: captions / talking head ---- */
.hd-aibtn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 6px; background: #ffd60a; color: #17150f; font-weight: 700; font-size: 13px; transition: transform .15s; }
.hd-aibtn svg { width: 17px; height: 17px; }
.hd-aibtn b { position: relative; z-index: 1; }
.hd-aibtn svg { position: relative; z-index: 1; }
.hd-aibtn > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(23, 21, 15, .14); }
.hd-aibtn.busy { background: #3a3420; color: #ffd60a; box-shadow: inset 0 0 0 1px #ffd60a; }
.hd-aibtn.busy > i { background: rgba(255, 214, 10, .22); animation: hd-fill 1.5s linear forwards; }
@keyframes hd-fill { to { width: 100%; } }
.hd-aibtn.done { background: var(--accent-soft); color: #ffd60a; box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .5); }
.hd-select { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 5px; border: 1px solid var(--border-2); background: var(--field); }
.hd-select small { color: var(--muted); margin-left: auto; font-size: 10.5px; }
.hd-select::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.hd-drop { position: absolute; left: 12px; right: 12px; top: 176px; z-index: 5; padding: 5px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: hd-pop .25s both; }
.hd-drop span { padding: 6px 8px; border-radius: 4px; font-size: 12px; }
.hd-drop span.on { background: var(--panel-3); }
.hd-drop small { padding: 5px 8px 3px; color: var(--muted); }
.hd-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hd-styles > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 7px; border-radius: 6px; border: 1px solid var(--border-2); background: #262620; transition: transform .15s; }
.hd-styles > span b { font-size: 10px; font-weight: 600; color: var(--text-2); }
.hd-styles > span.on { border-color: #ffd60a; box-shadow: inset 0 0 0 1px #ffd60a; }
.hd-canvas.th { background: #6b4b3a; }
.th-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #7a5644, #4e3428); }
.th-bg .lamp { position: absolute; right: 12%; top: 0; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 140, .55), transparent 70%); }
.th-bg .shelf { position: absolute; left: 9%; top: 14%; width: 17%; height: 32%; background: linear-gradient(160deg, #e9a66b, #c96f3a 60%, #8a4b2f); border: 5px solid #2e1f17; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.th-bg .plant { position: absolute; right: 9%; bottom: 0; width: 56px; height: 120px; background: radial-gradient(ellipse at 50% 30%, #3f7a4a 40%, transparent 41%), radial-gradient(ellipse at 30% 50%, #2f6b3c 35%, transparent 36%), radial-gradient(ellipse at 70% 55%, #35703f 35%, transparent 36%), linear-gradient(transparent 70%, #b5532f 70%); }
.hd-canvas.th > .hd-person { position: absolute; left: 50%; bottom: 0; width: 270px; height: 297px; transform: translateX(-50%); }

/* ---- Scene 3: podcast / shorts ---- */
.hd-file { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border-2); }
.hd-file svg { width: 22px; height: 22px; color: #ffd60a; }
.hd-file span { display: flex; flex-direction: column; gap: 2px; }
.hd-file small { color: var(--muted); }
.hd-shorts { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; top: 46px; padding: 12px; background: var(--bg-2); display: flex; flex-direction: column; gap: 8px; animation: hd-pop .35s both; }
.hd-shorts::before { content: '3 shorts ready'; font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hd-shorts span { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px; border-radius: 6px; border: 1px solid var(--border-2); animation: hd-pop .4s both; transition: transform .15s; }
.hd-shorts span.on { border-color: #ffd60a; background: var(--accent-soft); }
.hd-shorts .pc-th { grid-row: span 2; width: 38px; height: 62px; border-radius: 4px; background: linear-gradient(180deg, #2a5961, #173a40); position: relative; overflow: hidden; }
.hd-shorts .pc-th::after { content: ''; position: absolute; left: 9px; bottom: 0; width: 20px; height: 30px; border-radius: 10px 10px 0 0; background: #2f6690; box-shadow: 0 -16px 0 -3px #e0a77f; }
.hd-shorts small { color: var(--muted); font: 500 10px var(--mono); }
.hd-fmts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hd-fmts span { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px; border-radius: 6px; border: 1px solid var(--border-2); transition: transform .15s, background .2s; }
.hd-fmts span i { grid-row: span 2; justify-self: center; border: 1.5px solid currentColor; border-radius: 2px; color: var(--text-2); }
.hd-fmts .r169 { width: 20px; height: 12px; } .hd-fmts .r916 { width: 11px; height: 19px; } .hd-fmts .r11 { width: 16px; height: 16px; } .hd-fmts .r45 { width: 14px; height: 17px; }
.hd-fmts b { font: 700 12px var(--mono); }
.hd-fmts small { color: var(--muted); font-size: 10px; }
.hd-fmts span.on { border-color: #ffd60a; background: var(--accent-soft); }
.hd-fmts span.on i { color: #ffd60a; }
.hd-canvas.pc { background: #173a40; }
.pc-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, #2f6670, #173a40 60%, #0e2629); }
.pc-bg .sign { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); font: 800 26px var(--display); font-style: normal; color: #ffd60a; text-shadow: 0 0 10px rgba(255, 214, 10, .8), 0 0 24px rgba(255, 214, 10, .5); letter-spacing: .04em; }
.pc-ppl { position: absolute; left: 50%; bottom: 0; width: 600px; height: 338px; transform: translateX(-50%); transition: transform .7s cubic-bezier(.6, 0, .2, 1); }
.pc-a, .pc-b { position: absolute; bottom: 0; width: 210px; height: 231px; }
.pc-a { left: 70px; } .pc-b { right: 70px; }
.pc-ppl .mic { position: absolute; left: 50%; bottom: 0; width: 22px; height: 70px; background: linear-gradient(#222 0 40%, #555 40% 44%, #333 44%); border-radius: 11px 11px 2px 2px; transform: translateX(-50%) translateX(60px) rotate(-12deg); }
.pc-b .mic { transform: translateX(-50%) translateX(-60px) rotate(12deg); }
.pc-cap { opacity: 0; transition: opacity .3s; font-size: 22px; }
.hd-canvas.pc.focus-a .pc-cap { opacity: 1; }
.hd-canvas.pc.focus-a .pc-ppl { transform: translateX(-50%) translateX(118px) scale(1.25); transform-origin: 50% 100%; }
.hd-canvas.pc.focus-a[data-aspect='1:1'] .pc-ppl { transform: translateX(-50%) translateX(100px) scale(1.15); }
.hd-canvas.pc.focus-a .pc-bg .sign { font-size: 20px; }

/* ---- Scene 4: templates ---- */
.hd-canvas.tp { background: #1a1a17; }
.tp-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 600 13px var(--mono); }
.tp-live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hd-sbox { color: var(--muted); }
.hd-tpls { display: block; columns: 2; column-gap: 7px; }
.hd-tpls > span { display: block; width: 100%; aspect-ratio: 9/16; margin-bottom: 7px; break-inside: avoid; border-radius: 5px; overflow: hidden; background: var(--panel-2); position: relative; transition: transform .2s, box-shadow .2s; }
.hd-tpls > span:not(.ready) { animation: hd-shim 1.2s ease-in-out infinite alternate; }
@keyframes hd-shim { to { background: var(--panel-3); } }
.hd-tpls canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; }
.hd-tpls .ready canvas { opacity: 1; }
.hd-tpls .hov { transform: translateY(-2px); box-shadow: 0 0 0 2px #ffd60a; }
.hd-tpls .on { box-shadow: 0 0 0 2px #ffd60a, 4px 4px 0 2px #ffd60a; }
.hd-texts { display: flex; flex-direction: column; gap: 9px; }
.hd-texts label { display: flex; flex-direction: column; gap: 4px; }
.hd-texts small { color: var(--muted); font-size: 10px; }
.hd-input { min-height: 30px; padding: 7px 9px; border-radius: 5px; border: 1px solid var(--border-2); background: var(--field); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .15s; }
.hd-input.focus { border-color: #ffd60a; box-shadow: 0 0 0 3px rgba(255, 214, 10, .2); overflow: visible; }
.hd-input.focus::after { content: ''; display: inline-block; width: 1.5px; height: 13px; background: #ffd60a; vertical-align: -2px; margin-left: 1px; animation: hd-blink .8s step-end infinite; }

/* ---- Scene 5: background removal ---- */
.hd-bds { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.hd-bds span { display: flex; flex-direction: column; gap: 4px; transition: transform .15s; }
.hd-bds i { height: 58px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .1); }
.hd-bds b { font-size: 10.5px; font-weight: 600; color: var(--text-2); }
.hd-bds span.on i { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px #ffd60a; }
.hd-keys { position: relative; height: 18px; border-radius: 4px; background: var(--panel-2); }
.hd-keys i { position: absolute; top: 4px; width: 10px; height: 10px; background: var(--text-2); transform: rotate(45deg); }
.hd-keys i:nth-child(1) { left: 12%; } .hd-keys i:nth-child(2) { left: 48%; } .hd-keys i:nth-child(3) { left: 82%; }
.hd-keys i.on { background: #ffd60a; }
.hd-canvas.bgr { background-color: #fff; background-image: conic-gradient(#d9d9d9 25%, #fff 0 50%, #d9d9d9 0 75%, #fff 0); background-size: 18px 18px; }
.bgr-new { position: absolute; inset: 0; opacity: 0; transition: opacity .6s, background .6s; }
.hd-canvas.filled .bgr-new { opacity: 1; }
.bgr-room { position: absolute; inset: 0; background: linear-gradient(180deg, #b7ab94 0 72%, #8a7a62 72%); clip-path: inset(0 0 0 0); transition: clip-path 1.4s cubic-bezier(.5, 0, .3, 1); }
.bgr-room i { position: absolute; display: block; }
.bgr-room .win { left: 8%; top: 12%; width: 22%; height: 40%; background: linear-gradient(#cfe8f7, #a7cde6); border: 6px solid #efe8da; }
.bgr-room .shelf { right: 8%; top: 22%; width: 24%; height: 7px; background: #5d4f3c; box-shadow: 10px -20px 0 -1px #c96f3a, 40px -16px 0 -2px #2f6690, 70px -24px 0 -1px #e9d9b8; }
.bgr-room .shelf.two { top: 44%; box-shadow: 20px -18px 0 -1px #a8456b, 56px -22px 0 -2px #c9a227; }
.bgr-room .frame { left: 36%; top: 10%; width: 12%; height: 20%; background: #4a6b8a; border: 4px solid #3a2e22; }
.bgr-room .plant { left: 4%; bottom: 0; width: 60px; height: 130px; background: radial-gradient(ellipse at 50% 30%, #3f7a4a 40%, transparent 41%), radial-gradient(ellipse at 30% 55%, #2f6b3c 35%, transparent 36%), radial-gradient(ellipse at 70% 50%, #35703f 35%, transparent 36%), linear-gradient(transparent 72%, #8a4b2f 72%); }
.bgr-room .desk { left: 0; right: 0; bottom: 0; height: 12%; background: #6b5a44; }
.hd-canvas.cut .bgr-room { clip-path: inset(100% 0 0 0); }
.bgr-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #ffd60a; box-shadow: 0 0 16px 4px rgba(255, 214, 10, .7); opacity: 0; z-index: 3; }
.hd-canvas.cut .bgr-scan { animation: hd-sweep 1.4s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes hd-sweep { 0% { top: 0; opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.bgr-who { position: absolute; left: 50%; bottom: 0; width: 280px; height: 308px; transform: translateX(-50%); z-index: 2; transition: filter .6s; }
.hd-canvas.cut .bgr-who { filter: drop-shadow(0 0 0 #ffd60a) drop-shadow(0 0 2px #ffd60a); animation: hd-edge 1.6s .2s both; }
@keyframes hd-edge { 0% { filter: none; } 30%, 70% { filter: drop-shadow(0 0 0 #ffd60a) drop-shadow(0 0 3px #ffd60a); } 100% { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); } }
.hd-canvas.cut .bgr-who { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.bgr-title { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); z-index: 3; font: 800 30px/1 var(--display); letter-spacing: -0.03em; color: #fff; text-shadow: 0 3px 14px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .5s .3s; }
.hd-canvas.filled .bgr-title { opacity: 1; }

/* ---- Scene 6: export ---- */
.hd-media { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.hd-media span { position: relative; aspect-ratio: 16/10; border-radius: 5px; background: var(--c); overflow: hidden; }
.hd-media span::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .2), transparent 60%); }
.hd-media small { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 3px; background: rgba(0, 0, 0, .55); color: #fff; font: 500 9px var(--mono); }
.hd-canvas.ex { background: #c96f3a; }
.ex-bg { position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, #ffc387, transparent 45%), linear-gradient(135deg, #ff9a62, #c84f78 60%, #6b3fa0); }
.ex-who { position: absolute; right: 8%; bottom: 0; width: 250px; height: 275px; }
.ex-title { position: absolute; left: 7%; top: 22%; font: 800 50px/0.95 var(--display); letter-spacing: -0.045em; color: #fff; display: flex; flex-direction: column; gap: 8px; }
.ex-title small { align-self: flex-start; font: 700 11px var(--mono); letter-spacing: .1em; padding: 3px 7px; border-radius: 3px; background: #ffd60a; color: #17150f; }
.ex-cap { right: 46%; left: 7%; text-align: left; bottom: 12%; font-size: 24px; }
.hd-modal { position: absolute; inset: 46px 0 0 0; z-index: 20; display: grid; place-items: center; background: rgba(0, 0, 0, .55); animation: hd-fade .25s both; }
@keyframes hd-fade { from { opacity: 0; } }
.hd-mbox { width: 400px; padding: 20px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; animation: hd-pop .3s both; }
.hd-mbox h5 { margin: 0; font: 800 18px var(--display); letter-spacing: -0.02em; }
.hd-mrow { display: flex; flex-direction: column; gap: 6px; }
.hd-mrow > small { font: 600 9.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hd-seg { display: flex; padding: 3px; gap: 3px; border-radius: 6px; background: var(--field); border: 1px solid var(--border-2); }
.hd-seg span { flex: 1; text-align: center; padding: 6px; border-radius: 4px; font-weight: 700; color: var(--text-2); transition: background .2s, transform .15s; }
.hd-seg span.on { background: #ffd60a; color: #17150f; }
.hd-mbar { display: none; flex-direction: column; gap: 6px; }
.hd-mbar i { display: block; height: 8px; width: 0; border-radius: 4px; background: #ffd60a; box-shadow: 0 0 12px rgba(255, 214, 10, .5); }
.hd-mbar::before { content: ''; display: block; height: 8px; border-radius: 4px; background: var(--panel-3); margin-bottom: -14px; }
.hd-mbar small { font: 500 10.5px var(--mono); color: var(--text-2); }
.hd-mbox.busy .hd-mbar { display: flex; }
.hd-mbox.busy .hd-mgo { opacity: .4; }
.hd-mgo { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 6px; background: #ffd60a; color: #17150f; font-weight: 700; font-size: 13px; transition: transform .15s, opacity .2s; }
.hd-mbox.done { align-items: center; text-align: center; gap: 8px; }
.hd-done { width: 44px; height: 44px; border-radius: 50%; background: #1a7f4b; color: #fff; display: grid; place-items: center; animation: hd-pop .4s both; }
.hd-done svg { width: 24px !important; height: 24px !important; }
.hd-mact { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.hd-mact span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border-radius: 6px; border: 1px solid var(--border-2); font-weight: 700; transition: transform .15s; }
.hd-mact span.pri { background: #ffd60a; color: #17150f; border-color: #ffd60a; }
.hd-link { width: 100%; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 11px; height: 36px; border-radius: 6px; border: 1px solid #ffd60a; background: var(--field); font: 500 12px var(--mono); animation: hd-pop .3s both; }
.hd-link b { margin-left: auto; padding: 3px 8px; border-radius: 4px; background: #1a7f4b; color: #fff; font: 700 10.5px var(--font); }
.hd-viewer { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 7px; background: var(--panel-2); text-align: left; animation: hd-pop .35s .15s both; }
.hd-viewer span { display: flex; flex-direction: column; gap: 2px; }
.hd-viewer small { color: var(--muted); }
.hd-vthumb { width: 64px; height: 36px; border-radius: 4px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #ff9a62, #c84f78); color: #fff; }

/* Compact layout (phones): stage + timeline only. */
.compact .hd-rail, .compact .hd-panel, .compact .hd-props, .compact .hd-search, .compact .hd-ib, .compact .hd-saved, .compact .hd-tlbar > span:not(.hd-snap):nth-child(n + 3) { display: none; }
.compact .hd-tl { height: 200px; }
.compact .hd-trk { height: 28px; }
.compact .hd-tname { width: 96px; }
.compact .hd-ruler { margin-left: 96px; }
.compact .hd-hw { left: 96px; }
.compact .hd-mbox { width: 440px; }

/* Chapter tabs under the demo. */
.hd-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: 30px; border-top: 1px solid var(--text); }
.hd-tabs button { position: relative; text-align: left; background: none; border: 0; border-right: 1px solid var(--border-2); padding: 16px 16px 20px; cursor: pointer; color: var(--text); font: inherit; display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.hd-tabs button:last-child { border-right: 0; }
.hd-tabs button:hover { background: var(--panel); }
.hd-tabs .n { font: 500 11px var(--mono); color: var(--muted); }
.hd-tabs b { font: 700 15px/1.2 var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.hd-tabs b em { font: 700 9px var(--mono); font-style: normal; padding: 2px 5px; border-radius: 3px; border: 1px solid var(--text); letter-spacing: .04em; }
.hd-tabs small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.hd-tabs .bar { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; overflow: hidden; }
.hd-tabs .bar i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; }
.hd-tabs button.on { background: var(--panel); }
.hd-tabs button.on .bar { background: var(--border-2); }
.hd-tabs button.on .n { color: var(--text); }
.hd-tabs button.on .bar i { background: #ffd60a; box-shadow: 0 0 0 1px var(--text); }
.hd-tabs button.on b em { background: var(--accent); }
@media (max-width: 1000px) {
  .hd-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-left: -20px; margin-right: -20px; padding: 0 20px; }
  .hd-tabs::-webkit-scrollbar { display: none; }
  .hd-tabs button { flex: 0 0 210px; }
}
@media (max-width: 900px) { .hd { box-shadow: 6px 6px 0 #ffd60a; } }
@media (prefers-reduced-motion: reduce) {
  .hd *, .hd *::before, .hd *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Tour controls (pause + try this step for real), between the demo and the tabs. */
.hd-ctl { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.hd-pp { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 99px; border: 1px solid var(--text); background: var(--panel); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.hd-pp svg { width: 16px; height: 16px; }
.hd-pp:hover { background: var(--accent-soft); }
.hd-step { font: 500 12px var(--mono); color: var(--muted); }
.hd-try { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 6px; background: var(--text); color: var(--bg); font: 700 14px var(--font); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hd-try:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--accent); }
.hd-try i { font-style: normal; font-family: var(--mono); }
.hd-ctl + .hd-tabs { margin-top: 14px; }
@media (max-width: 640px) { .hd-step { display: none; } .hd-try { font-size: 13px; padding: 0 12px; } }

/* Arabic content inside the (English) editor replica, and the tabs on the right-to-left page. */
.fa[dir="rtl"], .fa[dir="rtl"] .fa-h h4, .hd-root [dir="rtl"] { font-family: 'IBM Plex Sans Arabic', Cairo, system-ui, sans-serif; letter-spacing: 0; }
.hd-root .hd-cap[dir="rtl"] { font-family: Cairo, 'IBM Plex Sans Arabic', sans-serif; font-weight: 900; }
.bgr-title[dir="rtl"], .ex-title[dir="rtl"] { font-family: Alexandria, Cairo, sans-serif; letter-spacing: 0; line-height: 1.25; }
.bgr-title[dir="rtl"] { left: auto; right: 6%; }
.ex-title[dir="rtl"] { left: auto; right: 7%; text-align: right; }
.ex-title[dir="rtl"] small { align-self: flex-end; font-family: Alexandria, Cairo, sans-serif; letter-spacing: 0; }
.hd[data-lang="ar"] .ex-who { right: auto; left: 8%; }
.hd[data-lang="ar"] .ex-cap { left: 46%; right: 7%; text-align: right; }
.hd[data-lang="ar"] .pc-bg .sign { font-family: Alexandria, Cairo, sans-serif; letter-spacing: 0; }
[dir="rtl"] .hd-tabs button { text-align: right; border-right: 0; border-left: 1px solid var(--border-2); }
[dir="rtl"] .hd-tabs button:last-child { border-left: 0; }
[dir="rtl"] .hd-tabs .bar i { transform-origin: 100% 50%; }
[dir="rtl"] .hd-tabs b, [dir="rtl"] .hd-tabs small { letter-spacing: 0; }
[dir="rtl"] .hd-tabs b { font-size: 15.5px; line-height: 1.45; }
[dir="rtl"] .hd-tabs small { font-size: 13px; line-height: 1.6; }
[dir="rtl"] .hd-step { font: 500 13px var(--font); }
[dir="rtl"] .hd { box-shadow: -12px 12px 0 #ffd60a; }
@media (max-width: 900px) { [dir="rtl"] .hd { box-shadow: -6px 6px 0 #ffd60a; } }
