/* ================================================================
   ISHTAR Online Training — catalog, checkout, student portal,
   lesson player and lesson-content components.
   Builds on css/styles.css tokens (light/dark + RTL aware).
================================================================ */

/* ── Shared ──────────────────────────────────────────────────── */
.ot-section { padding: 56px 0 96px; }
.ot-notice { padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; line-height: 1.6; margin: 0 0 22px; border: 1px solid var(--border-med); background: var(--bg3); color: var(--text); }
.ot-notice.ok { background: rgba(0,166,119,.08); border-color: rgba(0,166,119,.35); }
.ot-notice.err { background: rgba(217,43,43,.07); border-color: rgba(217,43,43,.35); }
.ot-notice strong { color: var(--white); }
.ot-muted { color: var(--text-muted); }
.ot-empty { text-align: center; padding: 72px 20px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.ot-empty h2 { font-size: 1.3rem; color: var(--white); margin-bottom: 10px; }
.ot-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Catalog ─────────────────────────────────────────────────── */
.ot-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.ot-toolbar p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.ot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.ot-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); color: inherit; text-decoration: none; transition: box-shadow var(--transition), border-color var(--transition); }
.ot-card:hover, .ot-card:focus-visible { box-shadow: var(--card-shadow-hover); border-color: var(--blue-border); }
.ot-thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: var(--bg3); }
.ot-thumb-fallback { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue) 0%, #002a8a 100%); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; padding: 24px; text-align: center; line-height: 1.3; }
.ot-card-body { padding: 22px 24px 8px; flex: 1; }
.ot-card-body h3 { font-size: 1.12rem; line-height: 1.35; color: var(--white); margin-bottom: 10px; }
.ot-card-body p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.ot-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 22px; }
.ot-duration { font-size: .8rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.ot-duration svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.ot-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--blue-light); }

/* ── Course detail ───────────────────────────────────────────── */
.ot-detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.ot-detail-main .ot-thumb, .ot-detail-main .ot-thumb-fallback { border-radius: var(--radius-lg); margin-bottom: 32px; }
.ot-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.ot-fact { background: var(--bg-card); padding: 18px 20px; }
.ot-fact b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; color: var(--white); margin-bottom: 2px; }
.ot-fact span { font-size: .8rem; color: var(--text-muted); }
.ot-block { margin-bottom: 40px; }
.ot-block h2 { font-size: 1.35rem; color: var(--white); margin-bottom: 14px; }
.ot-block p { color: var(--text); line-height: 1.85; margin: 0 0 1em; max-width: 70ch; }
.ot-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ot-benefits li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.65; color: var(--text); }
.ot-benefits li::before { content: ''; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--blue-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid var(--blue-border); }
.ot-outline { list-style: none; padding: 0; margin: 0; counter-reset: ln; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ot-outline li { counter-increment: ln; display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg-card); font-size: .94rem; }
.ot-outline li:first-child { border-top: 0; }
.ot-outline li::before { content: counter(ln); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--bg3); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 600; }
.ot-outline .ot-scr { margin-inline-start: auto; color: var(--text-dim); font-size: .78rem; white-space: nowrap; }

/* Buy box */
.ot-buy { position: sticky; top: 92px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); padding: 28px 26px; }
.ot-buy-price { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.ot-buy-sub { font-size: .82rem; color: var(--text-muted); margin: 6px 0 22px; }
.ot-buy h3 { font-size: .95rem; color: var(--white); margin: 22px 0 10px; }
.ot-buy .form-group { margin-bottom: 14px; }
.ot-buy .form-group input { padding: 11px 13px; }
.ot-choice { display: grid; gap: 10px; }
.ot-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--input-border); border-radius: var(--radius); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.ot-opt input { margin-top: 3px; accent-color: var(--blue); flex: 0 0 auto; }
.ot-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-dim); }
.ot-opt:focus-within { box-shadow: 0 0 0 3px var(--input-focus); }
.ot-opt-text { flex: 1; font-size: .88rem; line-height: 1.45; }
.ot-opt-text b { display: block; color: var(--white); font-weight: 600; }
.ot-opt-text small { color: var(--text-muted); font-size: .78rem; }
.ot-opt-price { font-weight: 700; font-size: .86rem; color: var(--blue-light); white-space: nowrap; }
.ot-paybox { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg3); border: 1px dashed var(--border-med); font-size: .86rem; line-height: 1.7; }
.ot-paybox[hidden] { display: none; }
.ot-paybox dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; }
.ot-paybox dt { color: var(--text-muted); }
.ot-paybox dd { margin: 0; color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.ot-paybox p { margin: 8px 0 0; color: var(--text-muted); }
.ot-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; margin-top: 18px; border-top: 1px solid var(--border); }
.ot-total span { font-size: .86rem; color: var(--text-muted); }
.ot-total b { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; color: var(--white); }
.ot-file { font-size: .84rem; color: var(--text-muted); }
.ot-file input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed var(--input-border); border-radius: var(--radius); background: var(--input-bg); color: var(--text); font-size: .82rem; }
.ot-buy .btn { width: 100%; justify-content: center; margin-top: 18px; }
.ot-fineprint { font-size: .76rem; color: var(--text-dim); margin-top: 12px; line-height: 1.6; }
.ot-confirm { max-width: 640px; margin: 0 auto; text-align: center; }
.ot-confirm h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.ot-confirm .ot-ref { display: inline-block; font-family: 'Space Mono', monospace; font-size: 1.1rem; letter-spacing: .06em; padding: 10px 18px; border-radius: var(--radius); background: var(--blue-dim); border: 1px solid var(--blue-border); color: var(--blue-light); margin: 8px 0 22px; }
.ot-confirm p { color: var(--text-muted); line-height: 1.8; }

/* ── Student portal ──────────────────────────────────────────── */
.ml-auth { max-width: 440px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); padding: 36px 34px; }
.ml-auth h1 { font-size: 1.6rem; margin-bottom: 8px; }
.ml-auth > p { color: var(--text-muted); font-size: .92rem; margin-bottom: 24px; line-height: 1.6; }
.ml-auth .btn { width: 100%; justify-content: center; }
.ml-auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .84rem; flex-wrap: wrap; }
.ml-auth-links a { color: var(--blue-light); }
.ml-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.ml-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.ml-head p { margin: 6px 0 0; color: var(--text-muted); }
.ml-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ml-head-actions form { display: inline; }
.ml-list { display: grid; gap: 18px; }
.ml-item { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); padding: 16px; }
.ml-item .ot-thumb, .ml-item .ot-thumb-fallback { border-radius: var(--radius); font-size: .95rem; }
.ml-item h2 { font-size: 1.15rem; color: var(--white); margin: 6px 0 12px; line-height: 1.35; }
.ml-meta { font-size: .8rem; color: var(--text-muted); margin-top: 8px; }
.ml-bar { height: 8px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.ml-bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.ml-bar-row { display: flex; align-items: center; gap: 12px; max-width: 420px; }
.ml-bar-row .ml-bar { flex: 1; }
.ml-bar-row b { font-size: .82rem; color: var(--text-muted); min-width: 38px; }
.ml-pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border-med); color: var(--text-muted); }
.ml-pill.passed { color: var(--green); border-color: rgba(0,166,119,.4); background: rgba(0,166,119,.08); }
.ml-pill.exam { color: var(--blue-light); border-color: var(--blue-border); background: var(--blue-dim); }
.ml-pill.progress { color: var(--blue-light); border-color: var(--blue-border); }
.ml-pill.expired { color: var(--red); border-color: rgba(217,43,43,.4); }

/* Course overview */
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.co-lessons { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.co-lesson { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--border); }
.co-lesson:first-child { border-top: 0; }
.co-state { flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg3); color: var(--text-muted); font-size: .82rem; font-weight: 700; }
.co-state svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.co-lesson.done .co-state { background: rgba(0,166,119,.12); color: var(--green); }
.co-lesson.current .co-state { background: var(--blue); color: #fff; }
.co-lesson.locked { opacity: .55; }
.co-lesson-main { flex: 1; min-width: 0; }
.co-lesson-main b { display: block; color: var(--white); font-size: .98rem; line-height: 1.4; }
.co-lesson-main small { color: var(--text-muted); font-size: .8rem; }
.co-side { position: sticky; top: 92px; display: grid; gap: 18px; }
.co-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--card-shadow); }
.co-card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 10px; }
.co-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; margin: 0 0 14px; }
.co-card .btn { width: 100%; justify-content: center; }
.co-big { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 12px; }

/* ── Lesson player ───────────────────────────────────────────── */
.lp { min-height: calc(100vh - 68px); display: flex; flex-direction: column; background: var(--bg); }
.lp-top { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px 0 14px; }
.lp-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-crumb { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.lp-crumb a { color: var(--blue-light); white-space: nowrap; }
.lp-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-title { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--white); margin: 6px 0 14px; line-height: 1.3; }
.lp-count { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
/* The track: one segment per screen, the signature element of the player */
.lp-track { display: flex; gap: 4px; }
.lp-track i { flex: 1; height: 6px; border-radius: 3px; background: var(--bg4); transition: background .35s ease; }
.lp-track i.seen { background: var(--blue-border); }
.lp-track i.now { background: var(--blue); }
.lp-stage { flex: 1; padding: 48px 0 120px; }
.lp-sheet { max-width: 760px; margin: 0 auto; }
.lp-sheet > section.screen { display: none; }
.lp-sheet > section.screen.active { display: block; animation: lp-in .3s ease; }
@keyframes lp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lp-controls { position: sticky; bottom: 0; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); padding: 14px 0; z-index: 50; }
.lp-controls-row { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lp-hint { font-size: .8rem; color: var(--text-muted); text-align: center; flex: 1; }
.lp-controls .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.lp-done { text-align: center; padding: 30px 0; }
.lp-done h2 { font-size: 1.6rem; margin-bottom: 10px; }
.lp-done p { color: var(--text-muted); margin-bottom: 24px; }
.lp-preview-flag { background: #8a5a00; color: #fff; text-align: center; font-size: .82rem; padding: 6px; }

/* ── Lesson content (.lc) ────────────────────────────────────── */
.lc { font-size: 1.04rem; line-height: 1.85; color: var(--text); }
.lc > *:first-child { margin-top: 0; }
.lc h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.25; color: var(--white); margin: 0 0 18px; }
.lc h3 { font-size: 1.2rem; color: var(--white); margin: 30px 0 10px; line-height: 1.35; }
.lc h4 { font-size: 1rem; color: var(--white); margin: 22px 0 8px; }
.lc p { margin: 0 0 1.1em; max-width: 70ch; }
.lc ul, .lc ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.lc li { margin-bottom: .45em; }
.lc a { color: var(--blue-light); text-decoration: underline; }
.lc strong { color: var(--white); }
.lc figure { margin: 26px 0; }
.lc img { max-width: 100%; max-height: 420px; width: auto; height: auto; margin: 0 auto; background: #fff; border-radius: var(--radius); display: block; border: 1px solid var(--border); }
.lc figcaption { font-size: .84rem; color: var(--text-muted); margin-top: 8px; }
.lc table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .92rem; display: block; overflow-x: auto; }
.lc th, .lc td { border: 1px solid var(--border-med); padding: 10px 12px; text-align: start; vertical-align: top; }
.lc th { background: var(--bg3); color: var(--white); font-weight: 600; }
.lc .lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.75; }

/* Callouts */
.lc .callout { border-inline-start: 4px solid var(--blue); background: var(--blue-dim); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.lc .callout > *:last-child { margin-bottom: 0; }
.lc .callout.warn { border-color: #E08A00; background: rgba(224,138,0,.09); }
.lc .callout.tip { border-color: var(--green); background: rgba(0,166,119,.08); }
.lc .callout-title { display: block; font-weight: 700; color: var(--white); margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }

/* Reveal (native details) */
.lc details { border: 1px solid var(--border-med); border-radius: var(--radius); margin: 12px 0; background: var(--bg-card); }
.lc details > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lc details > summary::-webkit-details-marker { display: none; }
.lc details > summary::after { content: '+'; font-size: 1.2rem; line-height: 1; color: var(--blue-light); }
.lc details[open] > summary::after { content: '–'; }
.lc details > *:not(summary) { padding: 0 18px; }
.lc details > *:last-child { padding-bottom: 16px; margin-bottom: 0; }

/* Tabs (built by lms.js from .tabs > .tab) */
.lc .tabs { margin: 22px 0; }
.lc .tab-list { display: flex; gap: 6px; border-bottom: 1px solid var(--border-med); overflow-x: auto; }
.lc .tab-btn { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: 600 .9rem 'Space Grotesk', sans-serif; color: var(--text-muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.lc .tab-btn[aria-selected="true"] { color: var(--blue-light); border-bottom-color: var(--blue); }
.lc .tab-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lc .tab { padding: 18px 2px 4px; }
.lc .tab[hidden] { display: none; }
.lc .tabs:not(.ready) .tab { border-top: 1px solid var(--border); }

/* Steps (built by lms.js from ol.steps) */
.lc ol.steps { list-style: none; padding: 0; counter-reset: st; }
.lc ol.steps > li { counter-increment: st; position: relative; padding: 4px 0 18px; padding-inline-start: 52px; }
.lc ol.steps > li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .86rem; }
.lc ol.steps > li::after { content: ''; position: absolute; inset-inline-start: 16px; top: 38px; bottom: 2px; width: 2px; background: var(--border-med); }
.lc ol.steps > li:last-child::after { display: none; }
.lc ol.steps.ready > li.pending { display: none; }
.lc .steps-next { margin: 4px 0 20px; }

/* Knowledge check */
.lc .kc { border: 1.5px solid var(--blue-border); border-radius: var(--radius-lg); padding: 20px 22px; margin: 26px 0; background: var(--bg-card); }
.lc .kc-label { font: 600 .78rem 'Space Grotesk', sans-serif; color: var(--blue-light); margin-bottom: 8px; display: block; }
.lc .kc-q { font-weight: 600; color: var(--white); margin-bottom: 14px; }
.lc .kc-options { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lc .kc-options li { margin: 0; }
.lc .kc-opt { width: 100%; text-align: start; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid var(--input-border); background: var(--input-bg); color: var(--text); font: inherit; font-size: .95rem; cursor: pointer; transition: border-color var(--transition); }
.lc .kc-opt:hover { border-color: var(--blue-border); }
.lc .kc-opt.right { border-color: var(--green); background: rgba(0,166,119,.1); }
.lc .kc-opt.wrong { border-color: var(--red); background: rgba(217,43,43,.08); }
.lc .kc-opt:disabled { cursor: default; }
.lc .kc-msg { margin-top: 12px; font-size: .92rem; }
.lc .kc-msg.right { color: var(--green); }
.lc .kc-msg.wrong { color: var(--red); }
.lc .kc-explain { display: none; margin-top: 10px; color: var(--text-muted); font-size: .94rem; }
.lc .kc.solved .kc-explain { display: block; }

/* Two-column helper */
.lc .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0; }

/* ── Exam ────────────────────────────────────────────────────── */
.ex-wrap { max-width: 760px; margin: 0 auto; }
.ex-q { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 16px; }
.ex-q legend { font-weight: 600; color: var(--white); line-height: 1.55; padding: 0; margin-bottom: 14px; display: flex; gap: 12px; }
.ex-q legend b { color: var(--blue-light); font-family: 'Space Grotesk', sans-serif; }
.ex-q fieldset { border: 0; padding: 0; margin: 0; }
.ex-opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border: 1.5px solid var(--input-border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; line-height: 1.5; }
.ex-opt input { margin-top: 4px; accent-color: var(--blue); }
.ex-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-dim); }
.ex-result { text-align: center; padding: 20px 0 10px; }
.ex-score { font-family: 'Space Grotesk', sans-serif; font-size: 4rem; font-weight: 700; line-height: 1; margin: 10px 0; }
.ex-score.pass { color: var(--green); }
.ex-score.fail { color: var(--red); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ot-detail, .co-layout { grid-template-columns: 1fr; }
  .ot-buy, .co-side { position: static; }
}
@media (max-width: 720px) {
  .ml-item { grid-template-columns: 1fr; }
  .lc .cols { grid-template-columns: 1fr; }
  .lp-stage { padding: 30px 0 110px; }
  .lp-hint { display: none; }
  .ml-auth { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-sheet > section.screen.active { animation: none; }
  .lp-track i { transition: none; }
}

/* Keep the WhatsApp button clear of the lesson controls */
body:has(.lp) .wa-float { bottom: 88px !important; }
@media (max-width: 720px) { body:has(.lp) .wa-float { display: none !important; } }
/* Back-arrow direction in Arabic */
html[dir="rtl"] .lp-crumb a, html[dir="rtl"] .ex-wrap > a.ot-muted { unicode-bidi: plaintext; }
