/* =====================================================================
   Recorded courses — sales page, checkout and the learning player
   (builds on the tokens in site.css)
   ===================================================================== */

/* ---------- sales page hero ---------- */
.rc-hero { padding-bottom: 100px; }
.rc-hero .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: 48px; }
.rc-hero h1 { font-size: clamp(44px, 6vw, 82px); margin-top: 18px; }
.rc-hero .lead { font-size: 20px; }
.rc-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 34px; max-width: 640px; }
.rc-meta div { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--night-line); border-radius: 18px; padding: 14px 16px; }
.rc-meta b { display: block; color: #fff; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.rc-meta span { font-size: 13px; color: var(--night-muted); }
.rc-trainer-mini { display: flex; gap: 12px; align-items: center; margin-top: 28px; font-size: 14px; }
.rc-trainer-mini i { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--flame-2), #e3366b); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; flex: none; }
.rc-trainer-mini b { color: #fff; display: block; }

.buy-card { background: #fff; border-radius: 30px; padding: 12px; box-shadow: 0 60px 100px -40px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06); color: var(--text); position: sticky; top: 100px; }
.buy-card .vid { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.buy-card .vid video { width: 100%; height: 100%; object-fit: cover; }
.buy-card .vid .lbl { position: absolute; left: 12px; top: 12px; background: rgba(13,11,38,.78); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(6px); pointer-events: none; z-index: 2; }
.buy-card .vid .poster-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); border: 0; cursor: pointer; z-index: 1; }
.buy-card .vid .poster-play[hidden] { display: none; }
.play-dot { width: 72px; height: 72px; border-radius: 50%; background: var(--flame); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(244,106,31,.25), 0 20px 40px -10px rgba(0,0,0,.6); transition: transform .3s var(--ease); }
.play-dot::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.poster-play:hover .play-dot { transform: scale(1.08); }
.buy-card .in { padding: 22px 14px 12px; }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-line b { font-family: var(--display); font-size: 50px; color: var(--ink); letter-spacing: -.035em; line-height: 1; }
.price-line s { color: var(--muted); font-size: 18px; }
.price-line .off { background: var(--leaf-soft); color: var(--leaf); font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.buy-card .btns { display: grid; gap: 10px; margin: 20px 0 18px; }
.buy-card .btn { width: 100%; }
.incl-list { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.incl-list li { display: flex; gap: 10px; align-items: start; color: var(--ink); }
.incl-list li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 2px; }
.pay-badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pay-badges span { font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; letter-spacing: .03em; }
.enrolled-box { background: var(--leaf-soft); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.enrolled-box b { color: #0b6b4c; font-size: 16px; }
.enrolled-box .bar { background: #fff; margin-top: 10px; }

/* ---------- sales page body ---------- */
.rc-body { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 920px; margin-inline: auto; gap: 100px; padding: 90px 0 0; }
.rc-body section { scroll-margin-top: 150px; }
.rc-body h2 { font-size: clamp(32px, 4vw, 48px); margin: 12px 0 26px; }
.learn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learn-cards div { background: var(--card); border-radius: 18px; box-shadow: var(--sh-1); padding: 18px 20px; display: flex; gap: 14px; align-items: start; font-weight: 600; color: var(--ink); transition: transform .3s var(--ease); }
.learn-cards div:hover { transform: translateY(-3px); }
.learn-cards i { font-style: normal; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--flame-soft); color: var(--flame); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.curr-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.curr-head p { color: var(--muted); }
.curr-head button { background: none; border: 0; color: var(--flame); font-weight: 700; cursor: pointer; padding: 0; }
.parts { display: grid; gap: 12px; }
.part { background: var(--card); border-radius: 22px; box-shadow: var(--sh-1); overflow: hidden; }
.part summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 16px; }
.part summary::-webkit-details-marker { display: none; }
.part .pn { width: 48px; height: 48px; border-radius: 15px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; flex: none; }
.part[open] .pn { background: linear-gradient(135deg, var(--flame-2), var(--flame)); }
.part summary h3 { font-size: 20px; }
.part summary small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.part summary::after { content: "⌄"; margin-left: auto; font-size: 22px; color: var(--muted); transition: transform .3s; }
.part[open] summary::after { transform: rotate(180deg); }
.lrow2 { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 15px; transition: background .2s; }
a.lrow2:hover { background: var(--bg); }
.lrow2 .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 11px; flex: none; color: var(--muted); }
.lrow2.free .ic { background: var(--leaf); color: #fff; }
.lrow2.done .ic { background: var(--leaf-soft); color: var(--leaf); font-weight: 800; }
.lrow2 .tt { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; }
.lrow2 .tt small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.lrow2 .du { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; font-size: 14px; }
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.incl-grid div { background: var(--card); border-radius: 20px; box-shadow: var(--sh-1); padding: 24px; }
.incl-grid .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--flame-soft); }
.incl-grid p { color: var(--ink); font-weight: 600; margin-top: 14px; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: how; }
.how div { background: var(--card); border-radius: 20px; box-shadow: var(--sh-1); padding: 22px; }
.how div::before { counter-increment: how; content: counter(how); width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; margin-bottom: 14px; }
.how b { color: var(--ink); display: block; margin-bottom: 4px; }
.how p { color: var(--muted); font-size: 14px; }
.trainer-card { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; background: var(--card); border-radius: 26px; box-shadow: var(--sh-1); padding: 26px; }
.trainer-card .ph { aspect-ratio: 1; border-radius: 22px; background: linear-gradient(135deg, var(--flame-2), #e3366b); display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 56px; font-weight: 800; }
.trainer-card p { color: var(--muted); margin-top: 8px; }
.qa-pub { display: grid; gap: 12px; }
.qa-pub article { background: var(--card); border-radius: 20px; box-shadow: var(--sh-1); padding: 22px; }
.qa-pub .q { display: flex; gap: 14px; }
.qa-pub .av { width: 38px; height: 38px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.qa-pub .q b { color: var(--ink); display: block; }
.qa-pub .q small { color: var(--muted); font-size: 13px; }
.qa-pub .a { margin: 14px 0 0 52px; background: var(--bg); border-radius: 14px; padding: 14px 16px; box-shadow: inset 3px 0 0 var(--leaf); }
.qa-pub .a span { font-size: 12.5px; font-weight: 800; color: var(--leaf); }
.qa-empty { background: var(--night); color: var(--night-text); border-radius: 26px; padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.qa-empty b { color: #fff; font-family: var(--display); font-size: 24px; display: block; margin-bottom: 6px; }
.qa-empty .bubble { background: rgba(255,255,255,.06); border-radius: 18px; padding: 16px; max-width: 320px; font-size: 14px; }
.qa-empty .bubble i { display: block; font-style: normal; margin-top: 10px; background: rgba(18,160,114,.15); border-radius: 12px; padding: 10px 12px; color: #d8f7ea; }

/* ---------- checkout / success ---------- */
.co { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.co-sum .mini { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--night-line); border-radius: 22px; padding: 16px; margin-top: 26px; }
.co-sum .mini .th { width: 110px; aspect-ratio: 16/9; border-radius: 12px; background: linear-gradient(135deg, var(--flame-2), var(--violet)); display: grid; place-items: center; font-size: 30px; flex: none; }
.co-sum .mini b { color: #fff; display: block; font-size: 17px; }
.co-sum .mini span { color: var(--night-muted); font-size: 14px; }
.total { margin-top: 18px; display: grid; gap: 10px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--night-line); border-radius: 22px; padding: 20px; }
.total div { display: flex; justify-content: space-between; color: #dcd9f7; }
.total .grand { border-top: 1px dashed var(--night-line); padding-top: 12px; color: #fff; font-weight: 800; font-size: 20px; }
.soon { background: var(--flame-soft); border-radius: 18px; padding: 18px; color: var(--ink); }
.soon b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps-done { display: grid; gap: 10px; text-align: left; margin-top: 26px; }
.steps-done div { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 16px; padding: 14px 16px; }
.steps-done i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; flex: none; background: var(--ink); color: #fff; }
.steps-done div.ok i { background: var(--leaf); }
.steps-done b { color: var(--ink); display: block; }
.steps-done small { color: var(--muted); }

/* =====================================================================
   PLAYER
   ===================================================================== */
.pl-body { background: #0a0920; color: #c9c5ec; margin: 0; }
.pl-top { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: rgba(10,9,32,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--night-line); }
.pl-top .brand { padding: 4px 8px; border-radius: 10px; }
.pl-top .brand img { height: 28px; }
.pl-crumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; font-weight: 700; font-size: 15px; }
.pl-crumb span { color: var(--night-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ringp { --p: 0; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--flame) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); display: grid; place-items: center; flex: none; }
.ringp b { width: 34px; height: 34px; border-radius: 50%; background: #0a0920; display: grid; place-items: center; font-size: 11px; color: #fff; }
.pl-prog { font-size: 12.5px; line-height: 1.3; text-align: right; }
.pl-prog b { color: #fff; display: block; font-size: 13.5px; }
.pl-btn { background: rgba(255,255,255,.07); color: #fff; border: 0; border-radius: 12px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--night-line); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.pl-btn:hover { background: rgba(255,255,255,.12); }
.pl-btn.flame { background: linear-gradient(135deg, var(--flame-2), var(--flame)); box-shadow: var(--sh-flame); }
.pl-btn.done { background: rgba(18,160,114,.18); color: #7ef0c2; box-shadow: inset 0 0 0 1px rgba(18,160,114,.4); }
.pl-btn[disabled] { opacity: .4; pointer-events: none; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: calc(100vh - 64px); }
.pl-grid.wide { grid-template-columns: minmax(0, 1fr) 0; }
.pl-grid.wide .pl-side { display: none; }
.pl-main { padding: 24px 28px 60px; min-width: 0; }
.stage2 { position: relative; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px #000, 0 0 0 1px var(--night-line); aspect-ratio: 16/9; }
.stage2 video { width: 100%; height: 100%; display: block; background: #000; }
.wm2 { position: absolute; color: rgba(255,255,255,.22); font-size: 12px; font-weight: 700; letter-spacing: .05em; pointer-events: none; transition: top 1.5s, left 1.5s; white-space: nowrap; z-index: 3; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.nov { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 40%, #1d1950, #0a0920); }
.nov b { color: #fff; font-size: 20px; display: block; margin: 10px 0 6px; }
.endcard { position: absolute; inset: 0; z-index: 5; background: rgba(10,9,32,.86); backdrop-filter: blur(6px); display: grid; place-items: center; text-align: center; padding: 20px; }
.endcard[hidden] { display: none; }
.endcard small { color: var(--flame-3); font-weight: 800; letter-spacing: .1em; font-size: 12px; }
.endcard h3 { color: #fff; font-size: clamp(20px, 3vw, 30px); margin: 8px 0 18px; max-width: 560px; }
.endcard .count { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 24px; background: conic-gradient(var(--flame) calc(var(--c, 0) * 1%), rgba(255,255,255,.12) 0); position: relative; }
.endcard .count::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0f0d2b; }
.endcard .count span { position: relative; }
.endcard .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ctrl-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ctrl-row .sep { flex: 1; }
.seg { display: inline-flex; background: rgba(255,255,255,.05); border-radius: 12px; padding: 3px; box-shadow: inset 0 0 0 1px var(--night-line); }
.seg button { background: none; border: 0; color: var(--night-muted); font-weight: 700; font-size: 12.5px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); }
.seg label { font-size: 12px; color: var(--night-muted); padding: 6px 4px 6px 8px; font-weight: 700; }
.pl-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.pl-title small { color: var(--flame-2); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.pl-title h1 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); margin-top: 8px; letter-spacing: -.02em; }
.pl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.upsell { margin-top: 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(110deg, rgba(244,106,31,.22), rgba(124,108,255,.18)); border-radius: 20px; padding: 18px 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.upsell b { color: #fff; font-size: 17px; display: block; }
.ptabs { display: flex; gap: 2px; margin-top: 28px; border-bottom: 1px solid var(--night-line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 64px; background: #0a0920; z-index: 20; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { background: none; border: 0; color: var(--night-muted); font-weight: 700; font-size: 14.5px; padding: 14px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.ptabs button em { font-style: normal; background: rgba(255,255,255,.1); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.ptabs button.on { color: #fff; border-color: var(--flame); }
.ptabs button.on em { background: var(--flame); }
.pane { display: none; padding: 24px 0; }
.pane.on { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.pane h3 { color: #fff; font-size: 19px; margin-bottom: 12px; font-family: var(--body); letter-spacing: 0; font-weight: 800; }
.pane p.txt { color: #dcd9f7; font-size: 16px; line-height: 1.7; max-width: 760px; }
.dark-ticks { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.dark-ticks li { display: flex; gap: 12px; color: #e6e4ff; }
.dark-ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(18,160,114,.2); color: #7ef0c2; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 2px; }
.chap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chap button { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--night-line); border: 0; color: #dcd9f7; font-size: 14.5px; cursor: pointer; text-align: left; transition: background .2s; }
.chap button:hover { background: rgba(255,255,255,.08); color: #fff; }
.chap button.now { background: rgba(244,106,31,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(244,106,31,.5); }
.chap b { color: var(--flame-2); font-variant-numeric: tabular-nums; min-width: 44px; }
.files2 { display: grid; gap: 10px; }
.file2 { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--night-line); transition: background .2s; }
.file2:hover { background: rgba(255,255,255,.07); }
.file2 .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(244,106,31,.15); color: var(--flame-3); font-size: 11px; font-weight: 800; flex: none; }
.file2 b { color: #fff; display: block; }
.file2 small { color: var(--night-muted); }
.file2 span { margin-left: auto; color: var(--flame-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.code { background: #07061a; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--night-line); margin-bottom: 12px; overflow: hidden; }
.code .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--night-line); color: #fff; font-weight: 700; font-size: 14px; }
.code pre { margin: 0; padding: 14px 16px; color: #e6e4ff; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.copy2 { background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; flex: none; }
.copy2.ok { background: var(--leaf); }
.hw { list-style: none; counter-reset: hw; display: grid; gap: 10px; }
.hw li { counter-increment: hw; display: flex; gap: 14px; background: rgba(255,255,255,.035); border-radius: 14px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--night-line); color: #e6e4ff; }
.hw li::before { content: counter(hw); width: 28px; height: 28px; border-radius: 8px; background: var(--flame); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.ask2 { display: grid; gap: 10px; background: rgba(255,255,255,.035); border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 1px var(--night-line); margin-bottom: 18px; }
.ask2 textarea { width: 100%; background: transparent; border: 0; color: #fff; font: 15px/1.55 var(--body); resize: vertical; min-height: 70px; outline: none; }
.ask2 textarea::placeholder { color: #6f6b9c; }
.ask2 .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ask2 label { font-size: 13px; color: var(--night-muted); display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ask2 label input { accent-color: var(--flame); }
.qf { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.qf button { background: rgba(255,255,255,.05); border: 0; color: #b9b5e0; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.qf button.on { background: #fff; color: var(--ink); }
.thr { padding: 18px 0; border-bottom: 1px solid var(--night-line); }
.thr[hidden] { display: none; }
.thr .q { display: flex; gap: 14px; }
.thr .av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.thr .q b { color: #fff; }
.thr .q small { color: #6f6b9c; font-size: 12.5px; }
.thr .q p { margin-top: 4px; color: #e6e4ff; white-space: pre-line; }
.ts-link { background: none; border: 0; padding: 0; color: var(--flame-2); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.thr .ans { margin: 12px 0 0 52px; background: rgba(18,160,114,.09); border-radius: 14px; padding: 14px 16px; box-shadow: inset 3px 0 0 var(--leaf); color: #e6e4ff; white-space: pre-line; }
.thr .ans .by { display: flex; gap: 8px; align-items: center; color: #fff; font-weight: 700; font-size: 13.5px; margin-bottom: 4px; white-space: normal; }
.badge2 { background: var(--leaf); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; letter-spacing: .04em; }
.thr .acts { display: flex; gap: 16px; margin: 10px 0 0 52px; font-size: 13px; }
.vote { background: none; border: 0; padding: 0; color: var(--night-muted); font-weight: 700; cursor: pointer; font-size: 13px; }
.vote.on { color: var(--flame-2); }
.wait2 { margin: 12px 0 0 52px; font-size: 13px; color: var(--flame-3); font-weight: 600; }
.empty-dark { text-align: center; padding: 34px 20px; color: var(--night-muted); }
.empty-dark b { color: #fff; display: block; font-size: 18px; margin: 8px 0 4px; }
.note2 textarea { width: 100%; min-height: 220px; background: rgba(255,255,255,.035); border: 0; box-shadow: inset 0 0 0 1px var(--night-line); border-radius: 16px; color: #fff; padding: 18px; font: 15px/1.65 var(--body); outline: none; resize: vertical; }
.note2 textarea:focus { box-shadow: inset 0 0 0 1px var(--flame); }
.note2 small { display: block; margin-top: 8px; color: var(--night-muted); }
.locked-pane { background: rgba(255,255,255,.035); border-radius: 18px; padding: 26px; text-align: center; box-shadow: inset 0 0 0 1px var(--night-line); }
.locked-pane b { color: #fff; font-size: 18px; display: block; margin-bottom: 6px; }
.pl-flash { margin-bottom: 14px; display: grid; gap: 8px; }
.pl-flash p { background: rgba(18,160,114,.15); color: #c9f7e3; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.pl-flash p.error { background: rgba(224,71,91,.15); color: #ffd1d8; }

/* sidebar */
.pl-side { background: #0e0c28; border-left: 1px solid var(--night-line); height: calc(100vh - 64px); overflow: auto; position: sticky; top: 64px; scrollbar-width: thin; scrollbar-color: #2b2760 transparent; }
.pl-side .hd { padding: 20px 20px 14px; border-bottom: 1px solid var(--night-line); position: sticky; top: 0; background: #0e0c28; z-index: 2; }
.pl-side h2 { color: #fff; font-size: 18px; }
.pl-side .hd small { font-size: 13px; color: var(--night-muted); }
.pl-side .bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: 12px; overflow: hidden; }
.pl-side .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--flame-2), var(--flame)); border-radius: 99px; transition: width .5s var(--ease); }
.sp { border-bottom: 1px solid var(--night-line); }
.sp summary { list-style: none; cursor: pointer; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp summary::-webkit-details-marker { display: none; }
.sp summary b { color: #fff; font-size: 14px; }
.sp summary small { color: #6f6b9c; font-size: 12px; display: block; font-weight: 600; }
.sp summary::after { content: "⌄"; color: #6f6b9c; transition: transform .25s; }
.sp[open] summary::after { transform: rotate(180deg); }
.sl { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: 14px; border-left: 3px solid transparent; transition: background .2s; color: #c9c5ec; }
.sl:hover { background: rgba(255,255,255,.035); }
.sl .st { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #3f3b72; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #8f8ac0; }
.sl.done .st { background: var(--leaf); box-shadow: none; color: #fff; }
.sl.now { background: linear-gradient(90deg, rgba(244,106,31,.18), transparent); border-left-color: var(--flame); color: #fff; }
.sl.now .st { box-shadow: inset 0 0 0 1.5px var(--flame); color: var(--flame); }
.sl.locked { opacity: .55; }
.sl .tt { flex: 1; min-width: 0; line-height: 1.35; }
.sl .tt i { font-style: normal; display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 800; color: #7ef0c2; background: rgba(18,160,114,.18); border-radius: 5px; padding: 1px 6px; vertical-align: 1px; }
.sl small { color: #6f6b9c; flex: none; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.cert2 { margin: 18px 20px 26px; border-radius: 18px; padding: 18px; background: linear-gradient(135deg, rgba(244,106,31,.22), rgba(124,108,255,.2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: 13.5px; }
.cert2 b { color: #fff; display: block; font-size: 15px; margin-bottom: 4px; }
.cert2 .pl-btn { margin-top: 12px; }
.kbd-hint { font-size: 12px; color: #6f6b9c; margin-top: 10px; }
.kbd-hint kbd { background: rgba(255,255,255,.08); border-radius: 5px; padding: 1px 6px; font-family: inherit; color: #c9c5ec; }

/* ---------- certificate ---------- */
.cert-page { background: var(--bg-2); min-height: 100vh; padding: 40px 16px; }
.cert-sheet { width: min(1000px, 100%); margin: 0 auto; aspect-ratio: 1.414; background: #fff; border-radius: 10px; box-shadow: var(--sh-2); position: relative; padding: 6%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cert-sheet::before { content: ""; position: absolute; inset: 18px; border: 2px solid var(--flame-soft); border-radius: 6px; pointer-events: none; }
.cert-sheet::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(244,106,31,.12), transparent 65%); }
.cert-sheet header { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cert-sheet header img { height: 56px; }
.cert-sheet .mid { text-align: center; position: relative; z-index: 1; }
.cert-sheet .mid p { text-transform: uppercase; letter-spacing: .2em; font-weight: 800; color: var(--flame); font-size: clamp(11px, 1.4vw, 14px); }
.cert-sheet .mid h1 { font-size: clamp(30px, 5.6vw, 60px); font-style: italic; margin: 14px 0; }
.cert-sheet .mid h2 { font-size: clamp(20px, 3vw, 32px); margin-top: 10px; }
.cert-sheet .mid small { color: var(--muted); font-size: clamp(12px, 1.5vw, 16px); }
.cert-sheet footer { display: flex; justify-content: space-between; align-items: end; position: relative; z-index: 1; font-size: 13px; color: var(--muted); }
.cert-sheet footer b { color: var(--ink); display: block; font-size: 15px; }
.cert-actions { text-align: center; margin-top: 22px; display: flex; gap: 10px; justify-content: center; }
@media print { .cert-actions, .announce, .site-header, .footer, .wa-float { display: none !important; } .cert-page { padding: 0; background: #fff; } .cert-sheet { box-shadow: none; } }

/* ---------- home / catalog recorded cards ---------- */
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.rcard { background: var(--night); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; color: var(--night-text); transition: transform .35s var(--ease), box-shadow .35s; position: relative; isolation: isolate; }
.rcard::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(244,106,31,.45), transparent 65%); z-index: -1; }
.rcard:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(21,18,58,.6); }
.rcard .th { aspect-ratio: 16/9; background: linear-gradient(135deg, #2a2266, #0d0b26); position: relative; overflow: hidden; }
.rcard .th img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--ease); }
.rcard:hover .th img { transform: scale(1.05); }
.rcard .th .tag { position: absolute; left: 14px; top: 14px; }
.rcard .th .play-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.8); }
.rcard .bd { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rcard h3 { color: #fff; font-size: 24px; }
.rcard p { font-size: 14.5px; }
.rcard .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--night-muted); }
.rcard .ft { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--night-line); display: flex; justify-content: space-between; align-items: center; }
.rcard .ft b { color: #fff; font-family: var(--display); font-size: 26px; }
.rcard .ft s { color: var(--night-muted); margin-left: 8px; font-size: 14px; }

/* ---------- recorded list page ---------- */
.rl-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rl-points div { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--night-line); border-radius: 18px; padding: 16px; display: grid; gap: 2px; }
.rl-points i { font-style: normal; font-size: 20px; margin-bottom: 6px; }
.rl-points b { color: #fff; font-size: 15px; }
.rl-points span { color: var(--night-muted); font-size: 13px; }
.rec-banner { display: flex; align-items: center; gap: 18px; background: var(--night); color: var(--night-text); border-radius: 24px; padding: 20px 22px; flex-wrap: wrap; transition: transform .3s var(--ease); }
.rec-banner:hover { transform: translateY(-3px); }
.rec-banner .ic { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--flame-2), var(--flame)); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.rec-banner div { flex: 1; min-width: 220px; }
.rec-banner b { color: #fff; display: block; font-size: 18px; }
.rec-banner .btn { margin-left: auto; }

/* ---------- my courses recorded card ---------- */
.scard.rec2 { background: var(--night); color: var(--night-text); }
.scard.rec2 h3 { color: #fff; }
.scard.rec2 > p { color: var(--night-text); }
.scard.rec2 .prog-row { color: #fff; }
.scard.rec2 .bar { background: rgba(255,255,255,.1); }
.continue { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.05); border-radius: 16px; padding: 12px; box-shadow: inset 0 0 0 1px var(--night-line); }
.continue .th { width: 96px; aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(135deg, var(--flame-2), var(--violet)); flex: none; display: grid; place-items: center; color: #fff; }
.continue small { color: var(--night-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.continue b { color: #fff; display: block; font-size: 14.5px; line-height: 1.3; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-side { position: static; height: auto; border-left: 0; border-top: 1px solid var(--night-line); }
  .pl-side .hd { position: static; }
  .pl-top .pl-prog { display: none; }
  #toggle-side { display: none; }
}
@media (max-width: 1000px) {
  .rc-gate .gate-card { order: -1; }
  .rc-gate .gate-preview { max-height: 220px; overflow: hidden; }
  .rc-hero .hero-grid, .co { grid-template-columns: minmax(0, 1fr); }
  .buy-card { position: static; }
  .how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .rc-meta { grid-template-columns: 1fr 1fr; }
  .learn-cards, .incl-grid, .how, .chap { grid-template-columns: 1fr; }
  .trainer-card, .qa-empty { grid-template-columns: 1fr; }
  .trainer-card .ph { width: 110px; }
  .qa-pub .a { margin-left: 0; }
  .lrow2 { padding: 12px 16px; }
  .part summary { padding: 16px; }
  .pl-main { padding: 0 0 40px; }
  .stage2 { border-radius: 0; }
  .ctrl-row, .pl-title, .upsell, .ptabs, .pane, .pl-flash { margin-left: 16px; margin-right: 16px; }
  .ptabs { margin-left: 0; margin-right: 0; padding: 0 16px; }
  .pl-top { padding: 0 12px; gap: 10px; }
  .pl-crumb span { display: none; }
  .pl-top .right .pl-btn span { display: none; }
  .thr .ans, .thr .acts, .wait2 { margin-left: 0; }
  .cert-sheet { aspect-ratio: auto; min-height: 520px; gap: 30px; }
}

/* featured layout when there is just one recorded course */
.rcard .pts { display: none; }
.rcards.solo { grid-template-columns: 1fr; }
.rcards.solo .rcard { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.rcards.solo .rcard .th { aspect-ratio: auto; min-height: 100%; }
.rcards.solo .rcard .th img { position: absolute; inset: 0; }
.rcards.solo .rcard .bd { padding: 36px 38px; gap: 14px; }
.rcards.solo .rcard h3 { font-size: clamp(28px, 3vw, 40px); }
.rcards.solo .rcard p { font-size: 16px; }
.rcards.solo .rcard .pts { display: grid; gap: 9px; list-style: none; margin: 4px 0 6px; padding: 0; }
.rcard .pts li { position: relative; padding-left: 28px; font-size: 14.5px; color: #dcd9f5; line-height: 1.45; }
.rcard .pts li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(18,160,114,.22); color: #7ef0c2; }
@media (max-width: 880px) {
  .rcards.solo .rcard { grid-template-columns: 1fr; }
  .rcards.solo .rcard .th { aspect-ratio: 16/9; min-height: 0; }
  .rcards.solo .rcard .bd { padding: 24px 22px; }
}

/* hero highlights (fills the left column beside the buy card) */
.rc-hero-pts { margin-top: 26px; padding: 20px 22px; border-radius: 20px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); max-width: 620px; }
.rc-hero-pts > span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffab73; margin-bottom: 12px; }
.rc-hero-pts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.rc-hero-pts li { position: relative; padding-left: 28px; color: #dcd9f5; font-size: 14.5px; line-height: 1.45; }
.rc-hero-pts li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(18,160,114,.22); color: #7ef0c2; }
@media (max-width: 640px) { .rc-hero-pts ul { grid-template-columns: 1fr; } }

/* syllabus form (shown instead of the syllabus until name + mobile are given) */
.sy-gate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 34px; align-items: center; padding: 38px; border-radius: 28px; color: var(--night-text, #c9c5ec);
  background: radial-gradient(420px 260px at 100% 0%, rgba(244,106,31,.35), transparent 65%), radial-gradient(380px 240px at 0% 100%, rgba(124,108,255,.28), transparent 65%), linear-gradient(135deg, #1c1847, #0f0c2b); box-shadow: 0 40px 80px -40px rgba(21,18,58,.7); }
.sy-info h3 { color: #fff; font-size: clamp(28px, 3vw, 40px); margin: 10px 0 12px; }
.sy-info p { color: #c9c5ec; font-size: 16px; margin: 0 0 18px; max-width: 460px; }
.sy-info ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.sy-info li { position: relative; padding-left: 30px; color: #e4e2fa; }
.sy-info li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(18,160,114,.25); color: #7ef0c2; }
.sy-info small, .sy-info small a { color: #a5a1cf; }
.sy-info small a { color: #ffab73; font-weight: 700; }
.sy-form { background: #fff; color: var(--text, #15123a); border-radius: 22px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.sy-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink, #15123a); }
.sy-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--muted, #6e6b80); }
.sy-form label.check input { margin-top: 3px; accent-color: #f46a1f; }
.sy-form .btn { width: 100%; justify-content: center; }
.sy-form small { text-align: center; color: var(--muted, #6e6b80); font-size: 12.5px; }
.sy-form .otp-feedback { margin: 0; min-height: 0; }
.sy-form .otp-feedback:empty { display: none; }
@media (max-width: 860px) { .sy-gate { grid-template-columns: 1fr; padding: 24px 18px; gap: 22px; } .sy-form { padding: 20px; } }

/* anti-piracy: moving + tiled watermark (student name, masked phone, ID) */
.wm2 { color: rgba(255,255,255,.22); font-size: 11.5px; transition: top 2s ease, left 2s ease; z-index: 4; }
.wm-tile { position: absolute; inset: 0; pointer-events: none; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; overflow: hidden; }
.wm-tile span { transform: rotate(-24deg); color: rgba(255,255,255,.07); font-size: 12px; font-weight: 700; white-space: nowrap; user-select: none; }
.stage2:fullscreen { display: grid; place-items: center; background: #000; }
.stage2:fullscreen video { width: 100%; height: 100%; }
.stage2.pseudo-fs { position: fixed !important; inset: 0; z-index: 9999; background: #000; border-radius: 0 !important; display: grid; place-items: center; }
.stage2.pseudo-fs video { width: 100%; height: 100%; }
@media print { .stage2 { display: none !important; } }
