/* ==========================================================
   EnglishBoost — Dark theme (override layer, loaded after style.css)
   بخش ۱: توکن‌های رنگ  |  بخش ۲: تبدیل خودکار رنگ‌های ثابت  |  بخش ۳: پولیش
   ========================================================== */
:root {
  color-scheme: dark;
  --bg: #0a0c12;
  --surface: #12151f;
  --ink: #eceef8;
  --muted: #8c93ab;
  --line: #222637;

  --brand: #7b8cff;
  --brand-2: #22d3ee;
  --brand-soft: rgba(123, 140, 255, .14);
  --grad: linear-gradient(135deg, #6d5dfc 0%, #2aa7f0 100%);
  --grad-hero: linear-gradient(135deg, #2a2578 0%, #4b3fd6 55%, #0e8fb3 130%);

  --success: #2dd4a0;
  --success-soft: rgba(45, 212, 160, .12);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .12);
  --warn: #fbbf24;

  --sidebar-bg: #07080d;
  --sidebar-text: #9aa2bd;
  --radius: 20px;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 20px 44px -22px rgba(0, 0, 0, .85);
}

/* ---------- تبدیل خودکار رنگ‌های ثابت style.css ---------- */
.brand-logo{border-radius:8px}
.nav-item{border-radius:8px}
.level-badge{border-radius:7px}
.card{border:1px solid rgba(255,255,255, 0.05)}
.btn{border-radius:8px}
#page-dashboard .page-header{border-radius:15px}
.stat-box{border:1px solid rgba(255,255,255, 0.05);border-radius:11px}
#progressStats .stat-box::before{border-radius:7px}
#progressStats .stat-box:nth-child(1)::before{background:#0f0f28}
#progressStats .stat-box:nth-child(2)::before{background:#112d1e}
#progressStats .stat-box:nth-child(3)::before{background:#2e2411}
#progressStats .stat-box:nth-child(4)::before{background:#2a101d}
.dash-card{border-radius:14px;border:1px solid rgba(255,255,255, 0.05)}
.cta-card{background:linear-gradient(135deg, #110f27, #1a0e25);border-color:#251b4c}
.level-card{background:linear-gradient(135deg, var(--surface), #130e25);border-color:#251b4c}
.filters select{border-radius:8px}
.flashcard-face{border-radius:15px}
.flashcard-front{background:linear-gradient(160deg, var(--surface) 0%, #120f27 100%);border:1px solid #251b4c}
.progress-bar{background:#10142b}
.quiz-option{border-radius:10px;border:1px solid var(--line);box-shadow:0 0 0 0 transparent}
@media (hover: hover){.quiz-option:hover{border-color:#201d56;background:var(--surface)}}
.quiz-option.correct{color:#b2f3d7;box-shadow:0 0 0 0 transparent}
.quiz-option.wrong{color:#e49690;box-shadow:0 0 0 0 transparent}
.speak-btn:active{background:#11112e}
.bar{border-radius:6px 6px 6px 6px}
.category-bar-bg{background:#10142b}
.chapter-card{border:1px solid rgba(255,255,255, 0.05);border-radius:13px}
.chapter-card.completed{background:linear-gradient(160deg, var(--surface), #0f291b);border-color:#2d5340}
.stage-pill{border-radius:8px}
.stage-pill.l1{color:#b2f3d7;background:#102a1a;border-color:#2b4f3c}
.stage-pill.l2{color:#eeb290;background:#2c2211;border-color:#614d22}
.stage-pill.l3{color:#9a83ce;background:#150f27;border-color:#2d1e52}
.stage-pill.locked{background:#141725}
.level-meter-track{background:#10142b}
.breakdown-item{background:#0e0e26;border-radius:9px}
.text-input{border-radius:9px;border:1px solid var(--line)}
.pc-remove:hover{background:#2d1311}
.profile-avatar{box-shadow:0 0 0 4px #1f1f1f, 0 12px 22px -10px rgba(0, 0, 0, .4)}
.profile-card .profile-avatar{box-shadow:0 0 0 4px #1f1f1f, 0 0 0 6px var(--c1), 0 14px 24px -10px var(--c1)}
.welcome-avatar{border:3px dashed #201d56}
.welcome-avatar.has-photo{border:3px solid #2b2b2b}
.level-step{border-radius:8px;background:#121428}
.welcome-card{border-radius:16px}
.sent-chips{background:#12162c;border-radius:10px}
.sent-chip{border-radius:8px}
.sent-answer{border:2px dashed #303345;border-radius:11px;background:var(--surface)}
.sent-tile{border-radius:8px;border:1px solid var(--line);box-shadow:0 0 0 0 transparent}
.sent-feedback.ok{color:#b2f3d7}
.sent-feedback.bad{color:#e49690}
@media (max-width: 820px){.nav-item{border-radius:9px}.nav-icon{border-radius:8px}#page-dashboard .page-header{border-radius:14px}.card{border-radius:12px}.dash-card{border-radius:13px}.stat-box{border-radius:10px}.chapter-card{border-radius:12px}.quiz-option{border-radius:9px}}
.crop-card{border-radius:13px}
.crop-stage{border-radius:10px}
.crop-mask{border-radius:10px}
.pr-row-track{background:#10142b}
.lc-emoji{border-radius:11px}
.lc-path::before{border-radius:6px}
.level-card .lc-btn{background:var(--surface)}
.lc-emoji{border-radius:9px}
.lc-score{border-radius:8px}
.lc-stat{border-radius:8px}
.lc-stat-bar{border-radius:6px}
.lc-stat-bar div{border-radius:6px}
.flash-level{border:1px solid var(--line);background:var(--surface);border-radius:11px;box-shadow:0 0 0 0 transparent}
.flash-level.selected{box-shadow:0 0 0 0 transparent}
.flashcard-front{background:var(--surface);border:1px solid #251b4c}
.flashcard-front::before{border-radius:15px}
.flash-hint{background:#101026}
.sent-score{color:#b2f3d7}
.sent-prompt{border-radius:12px}
.sent-answer{border:2px dashed #2d314a;border-radius:11px;background:var(--surface)}
.sent-answer .sent-tile{border-color:#201d56;box-shadow:0 0 0 0 transparent}
.sent-answer.correct .sent-tile{background:var(--surface);color:#b2f3d7;box-shadow:0 0 0 0 transparent}
.sent-answer.wrong .sent-tile{background:var(--surface);color:#e49690;box-shadow:0 0 0 0 transparent}
.sent-feedback{border-radius:8px}
.sent-clear{background:#101026;border-radius:8px}
@media (max-width: 820px){.sent-chips{border-radius:9px}.sent-prompt{border-radius:10px}.sent-answer{border-radius:9px}.sent-tile{border-radius:7px}}
.qz-summary{border:1px solid rgba(255,255,255, .05);border-radius:11px}
.chapter-card{border-radius:13px}
.chapter-card.current{background:linear-gradient(var(--surface), #100e25) padding-box, var(--grad) border-box}
.tc-emoji{border-radius:8px}
.chapter-card.completed .tc-emoji{background:#133121}
.tc-track i{border-radius:6px;background:#10142b}
.stage-pill{border-radius:7px}
.qz-score{color:#b2f3d7}
.qz-prompt{border-radius:12px}
.qz-card #quizTypeBox .text-input{background:var(--surface)}
@media (max-width: 820px){.chapter-card{border-radius:11px}.tc-emoji{border-radius:7px}}
.pf-hl{border:1px solid rgba(255,255,255, .05);border-radius:12px}
.pf-hl-streak{background:linear-gradient(160deg, var(--surface), #2a1e10)}
.pf-hl-streak .pf-hl-value{color:#eaa47c}
.pf-hl-streak .pf-hl-sub{color:#eeb290;background:#332413}
.pf-hl-acc{background:linear-gradient(160deg, var(--surface), #102a1a)}
.pf-hl-acc .pf-hl-value{color:#b2f3d7}
.pf-hl-acc .pf-hl-sub{color:#b2f3d7;background:#143623}
.pf-badge{border-radius:10px;background:#111124;border:1.5px dashed #2e3041}
.pf-badge-bar{border-radius:6px;background:#15192c}
.pf-badge-bar i{border-radius:6px}
.pf-badge.on{background:linear-gradient(160deg, var(--surface), #120f28);border:1.5px solid #201d56}
@media (max-width: 560px){.pf-hl{border-radius:10px}}
.dash-week{border-radius:15px}
.dw-streak{border-radius:10px}
.dw-msg{border-radius:8px}
@media (max-width: 560px){.dash-week{border-radius:13px}}
.dash-level{border:1px solid transparent;background:linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--c1), var(--c2)) border-box}
.dl-stars{color:#eeb290;background:#322713}
.dl-bar{background:#10142b}
.pf-panel{border-radius:11px}
.pf-rung{border-radius:9px}
.pf-rung.cur{background:#120f28}
.pf-rung.done{color:#b2f3d7}
.pf-badge-star{color:#eeb290;background:#322713}
.pf-badge:not(.on) .pf-badge-star{background:#10142b}
.po-ach{background:#0e0e26;border-radius:9px}
.po-ach-s{color:#eeb290;background:#322713}
.po-cf{border-radius:6px}
#page-dashboard .page-header.hero .hero-avatar{border:3px solid #2b2b2b}
.dash-week{border-radius:12px}
.dw-streak{border-radius:8px}
.dl-task{background:#0e0e26;border-radius:9px}
.dl-task-s{color:#eeb290;background:#322713}
.dl-task-go{border-radius:7px}
.lb-row{border-radius:10px;background:#0e1225}
.lb-row.me{border-color:#1b1b50}
.lb-row.t1{background:linear-gradient(135deg, #2d2711, #26220e);border-color:#625323}
.lb-av{box-shadow:0 0 0 2px #1f1f1f, 0 6px 12px -6px rgba(23, 26, 46, .5)}
.lb-more{border:1px dashed #313348;border-radius:8px}
.a2hs-steps li{border-radius:9px}
.lb-note{border-radius:8px;background:#2b2310;border:1px solid #5e4a21;color:#eecca2}
.ex-card{border-radius:10px;border:1px solid var(--line);box-shadow:0 0 0 0 transparent}
.ex-card.done .ex-badge{color:#b2f3d7}
.xh-hero{border-radius:15px}
.xh-orb{border-radius:14px}
.xh-stats div{border-radius:9px}
.xh-start{border-radius:10px;color:#b8c8ed;background:var(--surface);box-shadow:0 0 0 0 transparent, 0 14px 24px rgba(0,0,0,.2)}
.xh-start:active{box-shadow:0 2px 0 #182948}
.xh-models span{background:#101a2a;color:#7d9bdf}
.xm-exit{border-radius:7px}
.xm-segs i{border-radius:6px}
.xm-card{border-radius:13px}
.xm .quiz-option{border:1px solid rgba(255,255,255,.16);box-shadow:0 0 0 0 transparent}
.xm .quiz-option.correct{box-shadow:0 0 0 0 transparent}
.xm .quiz-option.wrong{border-color:#752c2c;box-shadow:0 0 0 0 transparent}
.xm .text-input{border:1px solid rgba(255,255,255,.2);border-radius:9px}
.xm .text-input.bad{border-color:#752c2c}
.xm-hint{border:1px dashed #264672}
.qz-card, .sent-card{border:1px solid #1a2c4f;border-radius:15px;background:linear-gradient(180deg, #0e1826 0%, var(--surface) 38%)}
.qz-card .progress-bar, .sent-card .progress-bar{background:#111c2e}
.qz-card .quiz-progress span, .sent-counter{color:#7c96df;background:#111c2c}
.qz-prompt, .sent-prompt{border-radius:14px}
.qz-card .quiz-option{border-radius:11px;border:1px solid #1a2c4f;background:var(--surface);box-shadow:0 0 0 0 transparent, 0 12px 18px -14px rgba(30, 86, 214, .5)}
.qz-card .quiz-option::before{border-radius:6px;color:#7c96df;background:#111c2c}
.qz-card .quiz-option:not(.correct):not(.wrong):hover{border-color:#1a2c4f;background:var(--surface)}
@media (hover: hover){.qz-card .quiz-option:not(.correct):not(.wrong):not(.disabled):hover{background:#0e1826}}
.qz-card .quiz-option:active{box-shadow:0 1px 0 #1b2840}
.qz-card .quiz-option.correct{background:#102a1a;color:#b2f3d7;box-shadow:0 0 0 0 transparent}
.qz-card .quiz-option.wrong{background:#27110f;color:#e49690;box-shadow:0 0 0 0 transparent}
.qz-card #quizTypeBox .text-input{border:1px solid #1a2c4f;border-radius:9px;background:#0e1624}
.qz-card .btn-primary, .sent-card .btn-primary{box-shadow:0 0 0 0 transparent}
.sent-answer{border:2px dashed #1e345b;border-radius:12px;background:repeating-linear-gradient(180deg, transparent 0 46px, #111c2c 46px 48px), #0e1624}
.sent-bank{border-radius:12px;background:#0f1828}
.sent-tile{border:1px solid #1c2f53;border-radius:9px;background:var(--surface);color:#b6c8eb;box-shadow:0 0 0 0 transparent}
.sent-answer .sent-tile{background:#111c2c;border-color:#243f6c;color:#7c96df;box-shadow:0 0 0 0 transparent}
.sent-answer.correct{background:#102a1a}
.sent-answer.wrong{background:#27110f}
.sent-clear{background:#0f1828;color:#7c96df}
.sent-prompt{border-radius:12px}
.sent-answer{background:repeating-linear-gradient(180deg, transparent 0 42px, #111c2c 42px 44px), #0e1624}
.sent-tile{border-radius:7px;box-shadow:0 0 0 0 transparent}
.sent-answer{border:1px solid #1e345a;border-radius:13px;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='54'><rect x='4' y='7' width='88' height='40' rx='13' fill='none' stroke='%23b9d2ff' stroke-width='2' stroke-dasharray='6 5'/></svg>") 4px 4px / 96px 54px repeat, linear-gradient(180deg, var(--surface), #0f1928)}
.sent-answer:empty::before{color:#7c96df}
.sent-answer:not(:empty):not(.correct):not(.wrong){background:linear-gradient(180deg, var(--surface), #0f1927);border-color:#284777}
.sent-answer.correct{background:#102a1a}
.sent-answer.wrong{background:#27110f}
.sent-answer{border:2px dashed #1e345a;border-radius:10px;background:var(--surface)}
.sent-answer:not(:empty):not(.correct):not(.wrong){background:var(--surface);border:1px solid #243f6c}
.sent-answer.correct{background:#102a1a}
.sent-answer.wrong{background:#27110f}
.xh-wait{border-radius:11px}
.xh-hero{border-radius:13px}
.xh-orb{border-radius:10px}
.xh-stats div{border-radius:8px}
body:has(#page-dashboard.active), body:has(#page-dashboard.active) main{background:linear-gradient(160deg, #101a2a 0%, #1d102a 45%, #2a1019 100%) fixed}
#page-dashboard .hero{border-radius:15px}
#page-dashboard .hero-avatar{background:var(--surface) center / cover;color:#a07bda}
.dt{border-radius:12px}
.da{border-radius:12px;box-shadow:0 0 0 0 transparent, 0 14px 20px -14px var(--d)}
.hl-panel-in{background:var(--surface);color:#dae0e8;border-radius:10px}
#page-dashboard .hero .link-btn{color:#a07bda}
#page-dashboard .dash-week{border-radius:14px}
#page-dashboard .dw-streak{border-radius:9px}
#page-dashboard .dw-dot{border:1px solid transparent}
#page-dashboard .dw-day.today .dw-dot{border-color:#2b2b2b}
.dt{border-radius:10px}
.da{border-radius:10px;box-shadow:0 0 0 0 transparent}
.hp-lv{color:#edc7b1}
#page-dashboard .page-header.hero{border-radius:15px}
.dt, .da{border-radius:10px;box-shadow:0 0 0 0 transparent}
.dc-stats{border-radius:12px}
.dc-acts{border-radius:12px}
.dc-acts .da{border-radius:9px}
.dc-ico{border-radius:8px}
.dc-wod{border-radius:12px}
.dc-stats, .dc-wod{border-radius:12px}
.dc-s:nth-child(1) b{color:#a07bda}
.dc-s:nth-child(2) b{color:#9ad3f2}
.dc-s:nth-child(3) b{color:#e48bb0}
.qz-retry{color:#edb890;background:#383115}
.qz-note{border-radius:8px;color:#edb890;background:#292410;border:1px solid #6c5e26}
.lvm-hero .xh-orb{border-radius:11px}
.lvm-daily{border-radius:11px}
.ld-ic{border-radius:8px}
.ld-go{border-radius:7px;box-shadow:0 0 0 0 transparent}
.lvt-h{border-radius:11px}
.lvt-ic{border-radius:8px;background:color-mix(in srgb, var(--tc) 14%, var(--surface))}
.lvc::before, .lvc::after{border-radius:6px}
.lvc span{background:color-mix(in srgb, var(--tc) 12%, var(--surface))}
.lvn-st{color:#e9bb6c;background:var(--surface);border:1.5px solid #6c5e26}
.lvn.done{background:radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tc) 70%, var(--surface)), var(--tc));box-shadow:0 0 0 0 transparent}
.lvn.cur{background:var(--surface);box-shadow:0 0 0 0 transparent, 0 0 0 0 color-mix(in srgb, var(--tc) 45%, transparent)}
.lvn.lock{background:#16192b;box-shadow:0 0 0 0 transparent}
.lvn-go{border-radius:6px}
.lv-sheet{border-radius:15px 15px 0 0;background:var(--surface)}
.ls-grab{border-radius:6px;background:#1b2033}
.ls-em{border-radius:10px;background:color-mix(in srgb, var(--tc) 14%, var(--surface))}
.ls-stars{color:#e9bb6c}
.ls-go{border-radius:10px;box-shadow:0 0 0 0 transparent}
.ls-alt{border-radius:9px;border:1px solid color-mix(in srgb, var(--tc) 35%, #2b2b2b)}
.lv-toast{border-radius:8px;background:rgba(255,255,255, .92)}
.lvc-sep{border-radius:6px}
.lvl-prev{border-radius:9px}
.lvres-alt{border-radius:9px}
@supports not (color: color-mix(in srgb, red, blue)){.lvn.done{box-shadow:0 0 0 0 transparent}.lvn.cur{box-shadow:0 0 0 0 transparent}.ls-go{box-shadow:0 0 0 0 transparent}}
.dm{border-radius:12px;box-shadow:0 0 0 0 transparent, 0 14px 20px -14px var(--d)}
.dm-ic{border-radius:8px}
.lvm-hero{border-radius:11px}
.lvm-hero .xh-stats div{border-radius:7px}
.lvpath .lvc span{background:color-mix(in srgb, var(--tc) 10%, var(--surface));border:1.5px solid color-mix(in srgb, var(--tc) 35%, #2b2b2b)}
.lvpath .lvc small{background:var(--surface)}
.lvn.done::after{border:1px solid rgba(255, 255, 255, .45)}
.lvm-daily.mk:not(.on) .ld-ic{background:#141827}
.lvm-daily.mk:not(.on) .ld-go{background:#181d2d;box-shadow:0 0 0 0 transparent}
.lvm-daily.mk.on .ld-go{background:var(--surface);color:#7c96df;box-shadow:0 0 0 0 transparent}
.lvtab{border-radius:11px}
.lvtab-ring{background:conic-gradient(var(--tc) calc(var(--pc) * 1%), color-mix(in srgb, var(--tc) 16%, var(--surface)) 0)}
.lvtab.on .lvtab-ring{background:conic-gradient(var(--surface) calc(var(--pc) * 1%), rgba(255, 255, 255, .28) 0)}
.lvtab.locked .lvtab-ring{background:#181d2d}
.lvn.done{box-shadow:0 0 0 0 transparent}
.lvn.cur{box-shadow:0 0 0 0 transparent}
.lvn.lock{box-shadow:0 0 0 0 transparent}
.lvc-ex{border-radius:9px}
.lvg .lvn{border-radius:9px}
.lp-bar{background:rgba(255,255,255, .08)}
.lp-cont-in{border-radius:14px;box-shadow:0 0 0 0 transparent, 0 20px 34px -18px rgba(59, 130, 246, .9)}
.lp-cont-in.done{box-shadow:0 0 0 0 transparent, 0 20px 34px -18px rgba(245, 158, 11, .9)}
.lp-cont-emoji{border-radius:11px}
.lp-cont-go{border-radius:10px;color:#7c96df;background:var(--surface);box-shadow:0 0 0 0 transparent, 0 12px 22px -12px rgba(0, 0, 0, .35)}
.lp-cont-in.done .lp-cont-go{color:#edb890}
.lp-tile{border-radius:12px;border:1px solid rgba(255,255,255, .05)}
.lp-lvsegs i{background:#141827}
.lp-path{border-radius:13px;border:1px solid rgba(255,255,255, .05)}
.lpn::before{background:#181d2d}
.lpn-c{background:#121727;border:3px solid #2d313f}
.lpn.done .lpn-c{border-color:#1f3858;box-shadow:0 0 0 0 transparent}
.lpn.cur .lpn-c{background:conic-gradient(#3b82f6 calc(var(--p) * 1%), #121f30 0);box-shadow:0 0 0 5px rgba(59, 130, 246, .18), 0 0 0 0 transparent}
.lpn.open .lpn-c{background:var(--surface);border-color:#1f3858}
.lpn.done .lpn-status{color:#6a90e1}
.lpn.cur .lpn-status{color:#7c96df}
.lpn-st{color:#e9bb6c}
body:has(#page-course.active), body:has(#page-course.active) main{background:linear-gradient(160deg, #112c20 0%, #0f1828 55%, #1d102a 100%) fixed}
.cr-hero{border-radius:14px}
.cr-hero-s{border-radius:10px}
.legend-dot.available{background:#121f30}
.cr-lv-e{border-radius:9px;background:color-mix(in srgb, var(--lc) 14%, var(--surface))}
.cr-lv-c{background:color-mix(in srgb, var(--lc) 12%, var(--surface))}
.cr-soon{background:#121727}
.cr-lv.locked .cr-lv-e{background:#121727}
.cr-plan li{border-radius:7px;background:#0f1425}
.cr-plan li b{color:#a2a5b6}
.crl{border-radius:9px}
.crl::before{background:#181d2d}
.crl-n{background:#121727;border:3px solid #2d313f}
.crl.done .crl-n{border-color:#1f3858}
.crl.cur{background:#0f1a28;box-shadow:inset 0 0 0 2px #182c46}
.crl.cur .crl-n{background:var(--surface)}
.crl.open .crl-n{background:var(--surface);border-color:#1f3858}
.crl-bar{background:#121f30}
.crl-st{color:#6a90e1}
.crl-go{box-shadow:0 0 0 0 transparent}
.crl-pct{color:#6a90e1}
@media (hover: hover){.crl:not(.lock):hover{background:#0e2517}}
.cr-skill > i{background:#141827}
.cr-skill.strong strong{color:#6a90e1}
.cr-skill.average strong{color:#edb890}
.cr-skill.weak strong{color:#db7979}
.sr-kicker{color:#edb890}
.sr-listen{border-radius:7px;background:#281d0f;color:#edb890}
.sr-result > b{color:#6a90e1}
.sr-result-skills span{border-radius:7px;background:#0f1425}
.sr-result-skills strong{color:#6a90e1}
.sr-suggestion{border-radius:8px;background:#281d0f;color:#ecbea3}
body:has(#page-lesson.active), body:has(#page-lesson.active) main{background:linear-gradient(160deg, #112c20 0%, #0f1828 60%, #190f27 100%) fixed}
.lp-x{border-radius:7px}
.lp-pct{color:#6a90e1;background:#121f30}
.lps{border-radius:8px}
.lps span{background:#121727}
.lps.cur{background:#0f1a28}
.lps.cur span{background:var(--surface)}
.lps.cur small{color:#7c96df}
.lp-chip{color:#7c96df}
.lp-actions .lp-main{box-shadow:0 0 0 0 transparent, 0 12px 22px -12px rgba(37, 99, 235, .8)}
.lp-spk{background:#102a1d;box-shadow:0 0 0 0 transparent}
.lp-en{color:#7c96df}
.lpo-hero{border-radius:10px;background:#0e2517;border:1px solid #1c314d}
.lpo-big{border-radius:11px;background:var(--surface)}
.lpo-hero small{color:#7c96df}
.lpo-words span{background:var(--surface);border:1px solid #1c314d}
.lpo-list li{border-radius:8px;background:#0f1425}
.lpo-list li.done{background:#0f1a28}
.lpo-list li.cur{background:var(--surface)}
.lpo-e{background:var(--surface)}
.lpv-dots i{background:#181d2d}
.lpv-fa{color:#7c96df}
.lpv-ex{border-radius:9px;background:#0f1425}
.lpv-ex em{color:#edb890}
.lpg-kicker{color:#7c96df}
.lpg-label{color:#a5aeba}
.lpg-example{border-radius:8px;background:#0e2517;border:1px solid #1c314d}
.lpg-practice{border-radius:10px;background:linear-gradient(145deg,#281d0f,var(--surface));border:1px solid #614321}
.lpg-practice-head{color:#eba588}
.lpg-sentence strong{color:#e89b73}
.lpg-option{border:1px solid #754f28;border-radius:7px;background:var(--surface);color:#e9b19e}
.lpg-option.correct{color:#7c96df;background:#102a1d}
.lpg-option.wrong{color:#e28d8d;background:#270f0f;border-color:#622323}
.lpg-feedback{border-radius:7px}
.lpg-feedback.correct{color:#7c96df;background:#12301d}
.lpg-feedback.wrong{color:#e28d8d;background:#2d1111}
.lpg-complete{border-radius:8px;background:#102a1d;color:#7c96df}
.lpg-row{border-radius:8px;background:#0e2517;border:1px solid #224f38}
.lpg-tip{border-radius:8px;background:#292410;border:1px solid #6c5e26;color:#ecbea3}
.lpe-row{border-radius:9px;background:#0f1425}
.lpe-row.ping{background:#0f1a28}
@media (hover: hover){.lpe-row:hover{background:#0f281d}}
.lpq-intro{color:#7c96df}
.lpq-score{color:#6a90e1}
.lpq-segs i{background:#181d2d}
.lpq-prompt{border-radius:11px;background:linear-gradient(160deg, #0f281d, #0e1426)}
.lpq-play{box-shadow:0 0 0 0 transparent, 0 14px 24px -12px rgba(37, 99, 235, .9)}
.lp-res-score{border-radius:10px;background:#0e2517;border:1px solid #224f38}
.lp-res-score b{color:#b1f4e1}
.lp-res-gain{color:#edb890}
@media (max-width: 820px){.lp-cont-in{border-radius:13px}.lp-cont-emoji{border-radius:10px}.lps{border-radius:7px}}
.lp-spk.playing{background:#12301d !important;color:#b1f4e1 !important}
.lpp-levels{color:#7c96df}
.lpp-fill-sentence{background:#0e1624;border:1px solid #1c2f53;border-radius:9px}
.lpp-choice{border:1px solid #1c2f53;border-radius:8px;background:var(--surface);color:#b6c8eb}
.lpp-choice.selected{background:#111c2c}
.lpp-choice.correct{background:#102a1a;color:#b2f3d7}
.lpp-input{border:1px solid #1e345a;border-radius:8px}
.lpp-feedback{border-radius:8px}
.lpp-feedback.correct{color:#b2f3d7;background:#102a1a}
.lpp-feedback.wrong{color:#e49690;background:#27110f}
.lpp-feedback b{color:#b6c8eb}
.lb-hero{border-radius:13px}
.lb-sub b{color:#a07bda}
@media(max-width:600px){.lb-hero{border-radius:11px}}
#page-dashboard .page-header.hero{border-radius:12px}
@media(max-width:600px){#page-dashboard .page-header.hero{border-radius:10px}}
#page-dashboard .page-header.hero{border-radius:12px}
@media(max-width:600px){#page-dashboard .page-header.hero{border-radius:10px}}
.done-label{color:#b1f4e1 !important}
.lp-result-badge{background:#102a1a;color:#b1f4e1}
.pf-badge-star{background:#102a1a !important;color:#b1f4e1 !important}
.network-badge.offline{color:#ecbea3;background:#383115}
.network-badge.online{color:#b1f4e1;background:#12301d;border:1px solid #306b45}
.lp-cont-in{border-radius:11px}
.lp-cont-emoji{border-radius:8px}
.lp-cont-go{border-radius:8px}
.lp-cont-in{border-radius:10px}
.lp-cont-emoji{border-radius:7px}
#page-dashboard .lp-cont-in{border-radius:13px;box-shadow:0 0 0 0 transparent,0 16px 28px -18px rgba(59,130,246,.85)}
.lp-cont-emoji{border-radius:9px}
.lp-cont-go{border-radius:8px;box-shadow:0 0 0 0 transparent,0 10px 18px -12px rgba(0,0,0,.35)}
.lp-today .lp-tile{border-radius:10px}
@media(max-width:600px){#page-dashboard .lp-cont-in{border-radius:12px}#page-dashboard .lp-cont-emoji{border-radius:8px}}
@media (max-width:820px){#page-lesson .lp-x{border-radius:6px}#page-lesson .lps{border-radius:6px}#page-lesson .lp-stage{border-radius:11px}}
.lpt-formula{border-radius:8px;background:linear-gradient(145deg,#0f1528,var(--surface));border:1px dashed #232e62;color:#9d99d7}
.lpt-note{border-radius:7px;background:#292410;border:1px solid #6c5e26;color:#ecbea3}
.lpt-bad,.lpt-good{border-radius:7px}
.lpt-bad{background:#270f0f;border:1px solid #622323;color:#e28d8d}
.lpt-good{background:#102a1d;color:#b1f4e1}
@media (max-width: 820px){#page-dashboard .lp-cont-in{border-radius:10px}#page-dashboard .lp-cont-emoji{border-radius:7px}#page-dashboard .dash-modes .dm{border-radius:9px}#page-dashboard .dash-modes .dm-ic{border-radius:6px}}
.dl-lv{border-radius:14px;background:linear-gradient(160deg, var(--surface) 0%, var(--c) 260%);color:#d1d3e5;box-shadow:0 0 0 0 transparent, 0 14px 20px -12px var(--c)}
.dl-lv-badge{background:var(--surface);border:1px solid var(--c);color:#d1d3e5;box-shadow:0 0 0 0 transparent}
.dl-lv.on{outline:3px solid #2b2b2b;box-shadow:0 0 0 0 transparent, 0 18px 26px -10px var(--c)}
.dl-lv.locked{background:linear-gradient(160deg, #161823, #1c202d);box-shadow:0 0 0 0 transparent}
.dl-card{border-radius:13px;background:linear-gradient(150deg, color-mix(in srgb, var(--c) 22%, var(--surface)), var(--surface) 70%);border:1px solid color-mix(in srgb, var(--c) 30%, #2b2b2b)}
.dl-node::before{border-radius:6px}
.dl-c{background:var(--surface);border:3px solid color-mix(in srgb, var(--c) 35%, #2b2b2b)}
.dl-node.done .dl-c{box-shadow:0 0 0 0 transparent}
.dl-node.cur .dl-c{background:var(--surface);box-shadow:0 0 0 5px color-mix(in srgb, var(--c) 22%, #1f1f1f), 0 0 0 0 transparent}
.lpo-hero{border-radius:12px;box-shadow:0 0 0 0 transparent}
.lpo-box{border-radius:10px;background:var(--surface);border:1px solid rgba(255,255,255,.06)}
.lpo-box.gram{background:#281d0f;border-color:#614321}
.lpo-box h4 em{background:#0f1228;color:#8883d1}
.lpo-box.gram b{color:#e9b19e}
.lpo-w{background:#0f1227}
.lpo-w b{color:#9d99d7}
.lpo-w.more{background:#141827}
.lpo-list li{border-radius:7px;background:#0f1425}
.lpo-list li.done{background:#0f1a28}
.lpo-list li.cur{background:#0f1228;box-shadow:inset 0 0 0 1.5px #23295c}
.lpo-e{border-radius:6px;background:var(--surface)}
.lpo-box{border-radius:9px}
.lpo-about{color:#ebbeaf}
#dashContinue .dl-node{border-radius:10px;background:var(--surface);border:1.5px solid color-mix(in srgb, var(--c) 18%, #2b2b2b);box-shadow:0 0 0 0 transparent}
#dashContinue .dl-node.cur::after{box-shadow:0 0 0 0 transparent}
#dashContinue .dl-node.cur, #dashContinue .dl-node.open{background:color-mix(in srgb, var(--c) 7%, var(--surface))}
@media (max-width: 820px){#page-dashboard #dashContinue .dl-node{border-radius:9px}}
.st-chips{background:#12162c;border-radius:10px}
.st-chip{border-radius:8px}
.st-tile{border-radius:9px}
.st-badge{background:#12162c;color:#b3b6c9}
.st-badge.ok{background:#322c13;color:#edb890}
.st-banner{border-radius:13px}
.st-bar{border-radius:10px}
.st-bar button{border-radius:7px;background:#10142a;color:#b3b6c9}
.st-s{border-radius:8px;background:#0e1326}
.st-s.playing{background:#11182e}
.st-w.st-v{background:#383115;border-bottom:1px solid #f59e0b}
.st-fa{border-top:1px dashed #33374c;color:#b3b6c9}
.st-gram{border-radius:10px;background:linear-gradient(135deg, #322c13, #413619);color:#f3d7b0}
.st-vchip{border-radius:7px;background:#383115}
.st-vchip small{color:#ecbea3}
.st-tip{border-radius:10px}
.st-x{background:#10142a;color:#b3b6c9}
.st-opt{border:1px solid #2a2e43;border-radius:8px;background:var(--surface)}
.st-opt.correct, .st-oi.correct{background:#143625}
.st-opt.wrong, .st-oi.wrong{background:#2d1111}
.st-oi{border:1px solid #2a2e43;border-radius:8px;background:var(--surface)}
.st-fb{border-radius:8px}
.st-fb.ok{background:#102a1a;color:#b2f3d7}
.st-fb.bad{background:#27110f;color:#e49690}
.st-fb div{color:#cbcedd}
.st-miss{border-radius:9px;background:#0e1225}
.st-mi{border-top:1px dashed #2e3246}
/* ===== بخش ۳: زبان طراحی جدید — تخت، خط‌مویی، ریل کناری، دکمهٔ روشن ===== */
html, body { background: var(--bg); }
::selection { background: rgba(123, 140, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.content {
  background: radial-gradient(700px 280px at 92% -8%, rgba(109, 93, 252, .16), transparent 65%), var(--bg);
}
.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb { background: #262b3f; border-radius: 99px; border: 2px solid var(--bg); }

/* تایپوگرافی */
.page-header h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.card h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--muted); }

/* سطح‌ها: تخت با خط‌مو */
.card { background: var(--surface); border: 1px solid var(--line); box-shadow: none; border-radius: 14px; padding: 22px; }
.stat-box, .dash-card, .chapter-card { box-shadow: none !important; border: 1px solid var(--line); background: var(--surface); }

/* دکمه‌ها: اصلی روشن (سبک Vercel)، ثانویه خط‌مو */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: 0; }
.btn-primary { background: #eceef8; color: #0a0c12; box-shadow: none; }
.btn-primary:hover { filter: none; background: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-secondary:hover { background: rgba(255, 255, 255, .05); }

/* ثابت‌ها: کارت‌های رنگی بزرگ → سطح تیره با درخشش ملایم */
#page-dashboard .page-header {
  background: radial-gradient(520px 200px at 100% 0, rgba(109, 93, 252, .30), transparent 70%), var(--surface) !important;
  border: 1px solid var(--line); box-shadow: none !important; border-radius: 16px;
}
.lp-cont-in {
  background: linear-gradient(135deg, #1c2042 0%, #12151f 75%) !important;
  border: 1px solid rgba(123, 140, 255, .30); box-shadow: none !important; border-radius: 16px;
}
.lp-cont-in.done { background: linear-gradient(135deg, #2c2312 0%, #12151f 75%) !important; border-color: rgba(251, 191, 36, .30); }
.level-card { background: linear-gradient(135deg, #1c2042 0%, #12151f 80%) !important; border: 1px solid rgba(123, 140, 255, .25) !important; box-shadow: none !important; }

/* ریل کناری روی دسکتاپ: فقط آیکن، با نشانگر کناری */
@media (min-width: 821px) {
  .sidebar { width: 78px; padding: 20px 12px; align-items: center; background: #07080d; border-left: 1px solid var(--line); }
  .brand { margin-bottom: 28px; padding: 0; justify-content: center; }
  .brand-text { display: none; }
  .brand-logo { width: 42px; height: 42px; border-radius: 12px; box-shadow: none; }
  .nav { align-items: center; gap: 8px; }
  .nav-item { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 14px; position: relative; }
  .nav-item > span:not(.nav-icon) { display: none; }
  .nav-item.active { background: var(--brand-soft); color: #fff; box-shadow: none; }
  .nav-item.active::before { content: ""; position: absolute; right: -11px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--brand); }
  .content { padding: 28px 48px 48px; }
  .page { max-width: 1040px; }
}

input, textarea, select { background: #0e1119; color: var(--ink); border-color: var(--line); color-scheme: dark; }
input::placeholder, textarea::placeholder { color: #5d647c; }

/* پس‌زمینهٔ رنگی هر صفحه (سبز/زرشکی) → یک زمینهٔ یکدست و خنثی */
body:has(.page.active), body:has(.page.active) main {
  background: radial-gradient(700px 280px at 92% -8%, rgba(109, 93, 252, .16), transparent 65%), var(--bg) !important;
}

/* ===== ناوبری پایین (مخصوص iPhone): سه تب هم‌شکل، آیکن + برچسب ===== */
@media (max-width: 820px) {
  html { background: var(--bg); }
  .sidebar {
    margin: 0 !important; width: 100% !important; border-radius: 0 !important; border: 0 !important;
    border-top: 1px solid var(--line) !important; background: rgba(10, 12, 18, .92) !important;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    padding: 0 6px env(safe-area-inset-bottom) !important;
  }
  html.standalone .sidebar { padding-bottom: max(env(safe-area-inset-bottom), 6px) !important; }
  .nav { gap: 0; }
  .nav-item, .nav-item.active, .nav-item[data-page="dashboard"], .nav-item[data-page="dashboard"].active {
    background: transparent !important; box-shadow: none !important; margin: 0 !important; border-radius: 0 !important;
    padding: 10px 0 6px !important; gap: 4px !important; color: var(--muted) !important; position: relative; font-size: 11px; font-weight: 600;
  }
  .nav-item .nav-icon, .nav-item.active .nav-icon, .nav-item[data-page="dashboard"] .nav-icon, .nav-item[data-page="dashboard"].active .nav-icon {
    width: auto !important; height: auto !important; margin: 0 !important; border-radius: 0 !important;
    background: none !important; box-shadow: none !important; transform: none !important;
  }
  .nav-item .nav-icon svg, .nav-item[data-page="dashboard"] .nav-icon svg { width: 24px !important; height: 24px !important; }
  .nav-item > span:last-child, .nav-item[data-page="dashboard"] > span:last-child { color: inherit !important; }
  .nav-item.active, .nav-item[data-page="dashboard"].active { color: var(--ink) !important; }
  .nav-item.active .nav-icon { color: var(--brand); }
  .nav-item.active::before {
    content: ""; position: absolute; top: 0; left: 50%; right: auto; bottom: auto; width: 26px; height: 2px;
    margin-left: -13px; border-radius: 0 0 3px 3px; background: var(--brand);
  }
  .content { padding: calc(16px + env(safe-area-inset-top)) 16px 24px; }
  /* داخل درس: حالت تمرکز، نوار پایین مخفی */
  body:has(#page-lesson.active) .sidebar { display: none !important; }
  body:has(#page-lesson.active) .content { padding: calc(10px + env(safe-area-inset-top)) 18px 0 !important; }
}

/* ===== صفحهٔ درس: حالت تمرکز (مدل جدید) ===== */
#page-lesson.active { min-height: 0; padding-bottom: 0; }
#page-lesson .lp3 {
  max-width: 720px; width: 100%; margin: 0 auto; padding: 0; display: flex; flex-direction: column;
  min-height: calc(100dvh - 10px - env(safe-area-inset-top));
}
.lp3-top { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; position: sticky; top: 0; z-index: 6; background: var(--bg); }
.lp3-top .lp-x { width: 34px; height: 34px; flex: none; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.lp3-segs { flex: 1; display: flex; gap: 5px; min-width: 0; }
.lp3-seg { flex: 1; min-width: 0; background: none; border: 0; padding: 8px 0; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; }
.lp3-seg i { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .10); }
.lp3-seg.done i { background: var(--success); }
.lp3-seg.cur i { background: var(--brand); box-shadow: 0 0 12px rgba(123, 140, 255, .55); }
.lp3-seg b { display: none; font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp3-seg.cur b { color: var(--ink); }
.lp3-seg:disabled { cursor: not-allowed; opacity: .6; }
.lp3-top .lp-pct { flex: none; background: transparent; border: 0; padding: 0; color: var(--muted); font-size: 12px; font-weight: 700; }

.lp3-hero { padding: 10px 0 22px; text-align: right; }
.lp3-hero small { display: block; font-size: 12px; letter-spacing: .06em; color: var(--brand); font-weight: 700; }
.lp3-hero h1 { font-size: 46px; line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin: 12px 0 8px; text-align: right; }
.lp3-hero p { font-size: 16px; color: var(--muted); margin: 0; }
.lp3-eyebrow { display: flex; align-items: center; gap: 8px; padding: 6px 0 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lp3-eyebrow span { color: var(--brand); font-variant-numeric: tabular-nums; }
.lp3-eyebrow b { color: var(--ink); font-weight: 700; }
.lp3-eyebrow em { margin-inline-start: auto; font-style: normal; letter-spacing: .05em; text-transform: uppercase; }

#page-lesson .lp-stage {
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 0 !important;
  min-height: 0 !important; flex: 1; display: flex; flex-direction: column;
}
#page-lesson .lp-actions {
  position: sticky; bottom: 0; z-index: 5; margin: auto -18px 0; padding: 22px 18px calc(14px + env(safe-area-inset-bottom)); gap: 10px;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0), var(--bg) 40%);
}
#page-lesson .lp-actions .btn { min-height: 52px; border-radius: 12px; font-size: 15px; }

/* لغت: کلمه ی بزرگ، بدون کارت داخل کارت */
.lpv3 { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.lpv-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lpv-dots { flex: 1; margin: 0; direction: ltr; }
.lpv-card { background: none !important; border: 0 !important; padding: 6px 0 !important; text-align: right; display: flex; flex-direction: column; gap: 12px; box-shadow: none !important; }
.lpv-en { font-size: 56px; line-height: 1.05; letter-spacing: -.03em; font-weight: 800; text-align: left; word-break: break-word; }
.lpv-row { display: flex; align-items: center; gap: 12px; direction: ltr; }
.lpv-row .lp-spk.big { width: 46px; height: 46px; margin: 0; font-size: 18px; }
.lpv-ph { font-size: 15px; color: var(--muted); letter-spacing: .02em; margin: 0; min-height: 0; }
.lpv-fa { font-size: 30px; font-weight: 700; color: var(--brand-2); margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); text-align: right; }
.lpv-ex { margin-top: 4px; padding: 2px 14px 2px 0; border: 0; border-inline-start: 2px solid var(--brand); border-radius: 0; background: none; text-align: start; }
.lpv-ex div { justify-content: flex-start; font-size: 17px; font-weight: 600; }
.lpv-ex em { color: var(--warn); }

/* نمای کلی درس */
.lpo { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lpo-box { padding: 16px; border-radius: 14px; }
.lpo-box h4 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.lpo-list { display: grid; gap: 0; margin-top: 4px; }
.lpo-list li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none !important; box-shadow: none !important; padding: 12px 0; }
.lpo-list li:last-child { border-bottom: 0; }
.lpo-e { width: 36px; height: 36px; border: 1px solid var(--line); background: transparent !important; }
.lpo-list li.done .lpo-e { background: var(--success-soft) !important; color: var(--success); border-color: transparent; }
.lpo-list li.cur .lpo-e { border-color: var(--brand); }

/* گزینه‌ها: ردیف کامل با حرف الف/ب (همه‌ی مرحله‌ها) */
.lp-stage .quiz-options { grid-template-columns: 1fr !important; gap: 8px; counter-reset: opt; }
.lp-stage .quiz-option {
  justify-content: flex-start !important; text-align: start; gap: 12px; padding: 0 14px !important; min-height: 56px;
  font-size: 16px; font-weight: 600; border-radius: 12px; counter-increment: opt;
}
.lp-stage .quiz-option::before {
  content: counter(opt, upper-latin); flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--muted);
}
.lp-stage .quiz-option.correct::before { content: "✓"; background: var(--success); color: #04130d; border-color: transparent; }
.lp-stage .quiz-option.wrong::before { content: "✕"; background: var(--danger); color: #1a0505; border-color: transparent; }

/* تیترها و متن */
.lp-stage h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; margin: 2px 0 14px; }
.lpg-kicker, .lpq-intro { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--brand); }

@media (min-width: 980px) {
  .lp3-seg b { display: block; }
  #page-lesson .lp-actions { margin: auto 0 0; padding: 18px 0 14px; }
}

/* یکدست‌سازی: پنل‌های سبز/آبی درس → سطح خنثی، گزینه‌ها تمام‌عرض، دکمهٔ اصلی روشن */
.lpq-prompt, .lpt-formula, .lpt-good { background: #0e1119 !important; border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 14px; }
.lpq-play { background: var(--brand-soft) !important; border: 1px solid rgba(123, 140, 255, .4) !important; box-shadow: none !important; }
.lp-stage .quiz-options { display: grid !important; justify-items: stretch; }
.lp-stage .quiz-option { width: 100%; }
#page-lesson .btn-primary, #page-lesson .lp-actions .lp-main { background: #eceef8 !important; color: #0a0c12 !important; box-shadow: none !important; }
#page-lesson .btn-primary:hover { background: #fff !important; }

/* سطح‌های خنثی برای مثال‌ها و نکته‌ها؛ درست/غلط رنگ معنایی دارند */
.lpg-example { background: #0e1119 !important; border: 1px solid var(--line) !important; border-radius: 12px; box-shadow: none !important; }
.lpt-note { background: transparent !important; border: 0 !important; border-inline-start: 2px solid var(--warn) !important; border-radius: 0 !important; color: var(--ink) !important; padding: 2px 12px; }
.lpt-good { background: var(--success-soft) !important; border: 1px solid rgba(45, 212, 160, .35) !important; color: #7ee8c7 !important; }
.lpt-bad { background: var(--danger-soft) !important; border: 1px solid rgba(255, 107, 107, .35) !important; color: #ffb4b4 !important; }
.lpq-opts, .lp-stage .quiz-options { width: 100% !important; max-width: none !important; margin: 0 !important; }
.lpv-count { text-align: start; }
.lp-spk { background: var(--brand-soft) !important; box-shadow: none !important; }

/* ===== ترکیب فارسی/انگلیسی: عبارت انگلیسی جدا و ایزوله، متن راحت‌خوان ===== */
bdi.en { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
.lp-stage p, .lp-stage li, .lp-stage small, .lpt-note, .lpq-intro, .lpo-about, .muted { text-align: start; line-height: 2.05; }
.lp-stage p bdi.en, .lp-stage li bdi.en, .lp-stage small bdi.en, .lpt-note bdi.en, .lpq-intro bdi.en, .lpo-about bdi.en, .muted bdi.en {
  color: #cfd5ff; background: rgba(123, 140, 255, .14); padding: 1px 7px; margin: 0 1px; border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: normal;
}
.btn bdi.en, .quiz-option bdi.en, .lp3-eyebrow bdi.en { background: none; padding: 0; color: inherit; }

/* نکته‌های گرامر: هر نکته یک ردیف جدا با شماره، نه خط پیوستهٔ بهم‌ریخته */
.lpg-pts { list-style: none !important; padding: 0 !important; margin: 0 0 16px !important; display: grid; gap: 10px; counter-reset: pt; }
.lpg-pts li {
  position: relative; list-style: none !important; counter-increment: pt; padding: 14px 52px 14px 14px !important;
  background: #0e1119; border: 1px solid var(--line); border-radius: 12px; text-align: start; line-height: 2.05; font-size: 15px;
}
.lpg-pts li::before {
  content: counter(pt) !important; position: absolute !important; right: 14px; top: 14px; left: auto !important; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 8px; background: var(--brand-soft) !important; color: var(--brand) !important;
  font-size: 12px; font-weight: 700; box-shadow: none !important; transform: none !important;
}
.lpt-note { margin-top: 12px; }
.lpg-example, .lpt-compare > * { line-height: 1.8; }
.lpv-ex em bdi.en, .lpt-formula bdi.en { color: #cfd5ff; background: rgba(123, 140, 255, .14); padding: 1px 7px; border-radius: 6px; }
.lpo-box.gram { background: #0e1119 !important; border-color: rgba(123, 140, 255, .28) !important; }
.lpo-box.gram b { color: var(--brand-2) !important; }

/* ===== نمای کلی درس: گرامر و توضیح‌ها ===== */
.lpo { gap: 14px; padding-bottom: 6px; }
.lpo-box { padding: 18px 16px; }
.lpo-box h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.lpo-why { margin: 0; font-size: 15px; line-height: 2.05; color: #c7ccdf; }
.lpo-gt { display: block; margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.6; letter-spacing: -.01em; color: var(--brand-2); text-align: start; }
.lpo-box.gram { padding-bottom: 8px; }
.lpo-box.gram .lpg-pts { margin: 0 0 8px !important; }
.lpo-box .lpg-pts li { background: var(--surface); }

.lpo-table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lpo-tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lpo-tr:last-child { border-bottom: 0; }
.lpo-tr b { font-size: 15px; font-weight: 700; text-align: left; letter-spacing: -.005em; }
.lpo-tr span { font-size: 14px; color: var(--muted); text-align: right; line-height: 1.8; }

.lpo-box.cmp { border-color: rgba(34, 211, 238, .30); background: linear-gradient(135deg, rgba(34, 211, 238, .07), #0e1119 60%); }
.lpo-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lpo-facts li { position: relative; padding-inline-start: 22px; font-size: 15px; line-height: 2.05; color: #c7ccdf; text-align: start; }
.lpo-facts li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.lpo-mis { display: grid; gap: 12px; }
.lpo-mi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.lpo-mi .bad, .lpo-mi .good { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.9; }
.lpo-mi i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-style: normal; font-size: 11px; font-weight: 700; margin-top: 4px; }
.lpo-mi .bad i { background: var(--danger-soft); color: var(--danger); }
.lpo-mi .good i { background: var(--success-soft); color: var(--success); }
.lpo-mi .bad s { color: #ffb4b4; text-decoration-thickness: 1.5px; }
.lpo-mi .good b { color: #7ee8c7; }
.lpo-mi p { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 2; color: var(--muted); text-align: start; }
.lpo-mi bdi.en { background: none; padding: 0; color: inherit; }
.lpt-note bdi.en { background: rgba(251, 191, 36, .12); color: #fde68a; }

/* چیپ‌های انگلیسی: یک‌تکه می‌مونن و وسط جمله شکسته نمی‌شن */
.lp-stage p bdi.en, .lp-stage li bdi.en, .lp-stage small bdi.en, .lpt-note bdi.en, .lpq-intro bdi.en, .lpo-about bdi.en, .muted bdi.en {
  display: inline-block; max-width: 100%; line-height: 1.7; vertical-align: baseline; margin: 2px 2px;
}
.lpo-mi bdi.en { display: inline; margin: 0; }
