/* KOMBUCHAVERSE — шинэчлэл: popup, нүүр хуудас, сургалтын хуудас, хичээл үзэх, видео player, Миний исгэлт, footer.
   Өнгө, фонт нь index.html-ийн :root хувьсагчуудыг (алтлаг/хүрэн) ашиглана. */

/* ---------- Нийтлэг ---------- */
.btn-lg { padding: 15px 30px; font-size: 13px; }
.btn-sm { padding: 8px 14px; font-size: 11px; letter-spacing: 0.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); white-space: nowrap; }
.chip i.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip-gold { background: rgba(181,137,70,0.1); border-color: var(--accent-gold); color: var(--accent-gold-hover); font-weight: 600; }
.chip-free { background: rgba(16,185,129,0.12); border-color: #10b981; color: #047857; font-weight: 700; letter-spacing: 0.5px; }
.sec-kicker { font-size: 11px; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.sec-title { font-size: 28px; color: var(--text-main); font-weight: 500; line-height: 1.3; }
.sec-lead { font-size: 14.5px; color: var(--text-muted); line-height: 1.8; max-width: 640px; }
.sec-head { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; margin-bottom: 36px; }
.hp-section { padding: 28px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; } .reveal[data-d="2"] { transition-delay: 0.16s; } .reveal[data-d="3"] { transition-delay: 0.24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 0.8s ease both; } .fade-up.d1 { animation-delay: 0.12s; } .fade-up.d2 { animation-delay: 0.24s; } .fade-up.d3 { animation-delay: 0.36s; }

/* ---------- Модулийн сумны дүрс ---------- */
.acc-chev { margin-left: auto; width: 28px; height: 28px; min-width: 28px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-muted); transition: transform 0.3s, background 0.25s, color 0.25s; }
.mod.open .acc-chev { transform: rotate(180deg); background: var(--accent-gold); border-color: var(--accent-gold); color: #fff; }

/* ---------- 2. НҮҮР ХУУДАС ---------- */
.hx { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 20px 0 10px; }
.hx-text { display: flex; flex-direction: column; gap: 20px; }
.hx h1 { font-size: 44px; line-height: 1.18; color: var(--text-main); font-weight: 500; letter-spacing: -0.5px; }
.hx h1 em { font-style: normal; color: var(--accent-gold); }
.hx p { font-size: 15.5px; color: var(--text-muted); line-height: 1.85; max-width: 540px; }
.hx-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hx-note { font-size: 12px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hx-note span i { color: #10b981; margin-right: 5px; }
.hx-media { position: relative; }
.hx-media img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border-color); box-shadow: 0 25px 60px rgba(0,0,0,0.12); display: block; }
.hx-badge { position: absolute; left: -16px; bottom: 28px; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.hx-badge b { display: block; font-size: 14px; color: var(--text-main); font-weight: 600; }
.hx-badge .ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(181,137,70,0.12); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.trust-item { padding: 22px 16px; text-align: center; border-right: 1px solid var(--border-color); }
.trust-item:last-child { border-right: none; }
.trust-num { font-size: 30px; font-weight: 500; color: var(--accent-gold); line-height: 1.1; }
.trust-lbl { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.learn-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.learn-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); box-shadow: 0 14px 34px rgba(181,137,70,0.14); }
.learn-ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(181,137,70,0.1); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.learn-card h3 { font-size: 16.5px; font-weight: 600; color: var(--text-main); }
.learn-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.75; }
.teacher { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 36px; }
.teacher img { width: 100%; border-radius: 12px; border: 1px solid var(--border-color); object-fit: cover; max-height: 420px; }
.teacher-text { display: flex; flex-direction: column; gap: 14px; }
.teacher-text p { font-size: 14.5px; color: var(--text-muted); line-height: 1.85; }
.teacher-links { display: flex; gap: 12px; flex-wrap: wrap; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote-card { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.quote-card p { font-size: 14px; line-height: 1.8; color: var(--text-main); }
.quote-card .who { font-size: 12.5px; color: var(--text-muted); } .quote-card .who b { color: var(--text-main); display: block; font-weight: 600; }
.price-wrap { display: flex; justify-content: center; }
.price-card { width: 100%; max-width: 480px; background: var(--bg-main); border: 2px solid var(--accent-gold); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px rgba(181,137,70,0.15); text-align: center; position: relative; }
.price-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent-gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.price-amount { font-size: 44px; color: var(--accent-gold); font-weight: 500; line-height: 1; }
.price-sub { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.price-list { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-main); }
.price-list li { display: flex; gap: 10px; align-items: flex-start; } .price-list li i { color: #10b981; margin-top: 4px; font-size: 12px; }
.cta-final { text-align: center; background: linear-gradient(135deg, rgba(181,137,70,0.14), rgba(181,137,70,0.04)); border: 1px solid var(--accent-gold); border-radius: 16px; padding: 56px 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cta-final h2 { font-size: 28px; font-weight: 500; max-width: 640px; line-height: 1.3; }
.cta-final p { font-size: 14.5px; color: var(--text-muted); max-width: 520px; line-height: 1.8; }
@media (max-width: 900px) {
  .hx { grid-template-columns: 1fr; gap: 28px; } .hx h1 { font-size: 32px; } .hx-badge { left: 12px; }
  .teacher { grid-template-columns: 1fr; padding: 22px; gap: 22px; } .teacher img { max-height: 300px; }
  .sec-title { font-size: 23px; } .trust-item { border-right: none; border-bottom: 1px solid var(--border-color); } .trust-item:last-child { border-bottom: none; }
}

/* ---------- 3. СУРГАЛТЫН ХУУДАС ---------- */
.cl { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.cl-main { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.cl-title { font-size: 30px; font-weight: 500; line-height: 1.3; color: var(--text-main); }
.cl-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cl-desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.85; margin-top: 14px; }
.cl-h2 { font-size: 20px; font-weight: 600; color: var(--text-main); margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cl-h2 small { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }
.mod { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; transition: border-color 0.25s; }
.mod.open { border-color: var(--accent-gold); }
.mod-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: transparent; border: none; cursor: pointer; text-align: left; color: var(--text-main); }
.mod-head:focus-visible { outline: 3px solid rgba(181,137,70,0.45); outline-offset: -3px; }
.mod-num { font-size: 13px; font-weight: 700; color: var(--accent-gold); min-width: 26px; }
.mod-thumb { width: 60px; height: 42px; min-width: 60px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border-color); background: var(--bg-hover); }
.mod-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.mod-name small { display: block; font-size: 11.5px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.mod-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s ease, visibility 0s linear 0.35s; }
.mod.open .mod-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.35s ease, visibility 0s; }
.mod-body > div { overflow: hidden; min-height: 0; }
.les { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 60px; border-top: 1px solid var(--border-color); cursor: pointer; font-size: 13.5px; color: var(--text-main); background: transparent; width: 100%; text-align: left; border-left: none; border-right: none; border-bottom: none; transition: background 0.2s; }
.les:hover { background: var(--bg-hover); }
.les:focus-visible { outline: 3px solid rgba(181,137,70,0.45); outline-offset: -3px; }
.les i.pl { color: var(--accent-gold); font-size: 11px; width: 14px; }
.les i.lk { color: var(--text-muted); font-size: 11px; width: 14px; }
.les-t { flex: 1; min-width: 0; } .les-r { display: flex; gap: 8px; align-items: center; margin-left: auto; white-space: nowrap; }
.les .done { color: #10b981; }
.buy { position: sticky; top: 140px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.09); }
.buy-media { position: relative; aspect-ratio: 16 / 9; background: #1a1612; }
.buy-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price .amt { font-size: 30px; color: var(--accent-gold); font-weight: 500; } .buy-price .per { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.buy-btns { display: flex; flex-direction: column; gap: 10px; } .buy-btns button { width: 100%; justify-content: center; }
.buy h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); margin-top: 6px; }
.incl { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--text-main); }
.incl li { display: flex; gap: 10px; align-items: flex-start; } .incl li i { color: var(--accent-gold); width: 16px; margin-top: 3px; font-size: 13px; }
.code-row { display: flex; gap: 8px; } .code-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.code-msg { font-size: 12px; min-height: 16px; }
.owned { background: rgba(16,185,129,0.1); border: 1px solid #10b981; color: #047857; border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
@media (max-width: 960px) { .cl { grid-template-columns: 1fr; gap: 28px; } .buy { position: static; order: -1; } .cl-title { font-size: 24px; } .les { padding-left: 22px; } }

/* ---------- 4. ХИЧЭЭЛ ҮЗЭХ ---------- */
.lv { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.lv-side { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 14px; display: flex; flex-direction: column; }
.lv-side-top { padding: 16px; border-bottom: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 12px; }
.lv-back { background: transparent; border: none; color: var(--accent-gold-hover); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; padding: 0; display: inline-flex; gap: 8px; align-items: center; }
.lv-back:hover { color: var(--accent-gold); }
.lv-course { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text-main); }
.lv-prog-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.lv-bar { height: 8px; background: var(--bg-hover); border-radius: 8px; overflow: hidden; } .lv-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-gold), #d4a455); border-radius: 8px; transition: width 0.5s ease; }
.lv-last { font-size: 11.5px; color: var(--text-muted); }
.lv-mod { border-bottom: 1px solid var(--border-color); } .lv-mod:last-child { border-bottom: none; }
.lv-mod-h { width: 100%; background: transparent; border: none; text-align: left; cursor: pointer; padding: 13px 16px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; color: var(--text-main); }
.lv-mod-h small { font-weight: 400; color: var(--text-muted); font-size: 11px; display: block; }
.lv-mod-h .acc-chev { margin-left: auto; font-size: 10px; color: var(--text-muted); transition: transform 0.25s; } .lv-mod.open .lv-mod-h .acc-chev { transform: rotate(180deg); }
.lv-mod-b { display: none; } .lv-mod.open .lv-mod-b { display: block; }
.lv-les { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 20px; background: transparent; border: none; border-left: 3px solid transparent; cursor: pointer; font-size: 13px; text-align: left; color: var(--text-main); transition: background 0.2s; }
.lv-les:hover { background: var(--bg-hover); }
.lv-les.active { background: rgba(181,137,70,0.1); border-left-color: var(--accent-gold); font-weight: 600; }
.lv-les:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: -2px; }
.lv-dot { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; background: transparent; }
.lv-dot.done { background: #10b981; border-color: #10b981; } .lv-dot.lock { border: none; color: var(--text-muted); font-size: 12px; }
.lv-les .t { flex: 1; min-width: 0; line-height: 1.4; }
.lv-join { margin: 14px 16px 16px; } .lv-join button { width: 100%; justify-content: center; }
.lv-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lv-kicker { font-size: 11px; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.lv-title { font-size: 22px; font-weight: 600; color: var(--text-main); line-height: 1.35; margin-top: 4px; }
.lv-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-watching { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: #047857; background: rgba(16,185,129,0.12); border: 1px solid #10b981; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.lv-watching::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: aiPulse 1.6s ease-in-out infinite; }
.lv-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-main); cursor: pointer; font-size: 16px; color: var(--text-main); display: inline-flex; align-items: center; justify-content: center; transition: 0.2s; }
.lv-nav:hover:not(:disabled) { border-color: var(--accent-gold); color: var(--accent-gold); } .lv-nav:disabled { opacity: 0.35; cursor: default; }
.lv-next-wrap { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lv-card { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 12px; padding: 22px; }
.lv-body-text { font-size: 14px; color: var(--text-muted); line-height: 1.85; white-space: pre-wrap; }
@media (max-width: 960px) { .lv { grid-template-columns: 1fr; gap: 20px; } .lv-side { position: static; max-height: none; order: 2; } .lv-main { order: 1; } .lv-title { font-size: 19px; } }

/* ---------- 5. VIDEO PLAYER ---------- */
.kvp { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #14110d; border-radius: 12px; overflow: hidden; user-select: none; -webkit-user-select: none; outline: none; }
.kvp:focus-visible { box-shadow: 0 0 0 3px rgba(181,137,70,0.55); }
.kvp-yt { position: absolute; inset: 0; } .kvp-yt iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.kvp-shield { position: absolute; inset: 0 0 52px 0; z-index: 2; cursor: pointer; background: transparent; touch-action: manipulation; }
.kvp-poster { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 20px; color: #fff; cursor: pointer; background: radial-gradient(circle at 30% 20%, #3b2c18 0%, #1c1710 55%, #100d09 100%); transition: opacity 0.35s ease, visibility 0s; }
.kvp-poster.hide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.kvp-poster img.kvp-logo { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--accent-gold); background: #fff; padding: 3px; object-fit: contain; }
.kvp-brand { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #d4a455; font-weight: 600; }
.kvp-ptitle { font-size: 19px; font-weight: 500; line-height: 1.35; max-width: 80%; }
.kvp-big { width: 74px; height: 74px; border-radius: 50%; background: var(--accent-gold); color: #fff; border: none; font-size: 26px; display: flex; align-items: center; justify-content: center; padding-left: 5px; cursor: pointer; box-shadow: 0 10px 30px rgba(181,137,70,0.5); transition: transform 0.2s, background 0.2s; }
.kvp-poster:hover .kvp-big, .kvp-big:focus-visible { transform: scale(1.08); background: var(--accent-gold-hover); }
.kvp-note { font-size: 12px; color: #c9bba5; }
.kvp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: linear-gradient(0deg, rgba(20,17,13,0.96), rgba(20,17,13,0.82)); color: #f3ead9; }
.kvp-btn { background: transparent; border: none; color: #f3ead9; cursor: pointer; width: 34px; height: 34px; min-width: 34px; border-radius: 6px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.kvp-btn:hover { background: rgba(181,137,70,0.3); color: #fff; } .kvp-btn:focus-visible { outline: 2px solid var(--accent-gold); }
.kvp-btn.txt { width: auto; padding: 0 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.kvp-time { font-size: 12px; font-variant-numeric: tabular-nums; color: #d9ccb4; white-space: nowrap; min-width: 84px; text-align: center; }
.kvp-track { position: relative; flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; min-width: 60px; }
.kvp-track::before { content: ""; position: absolute; left: 0; right: 0; height: 5px; border-radius: 5px; background: rgba(255,255,255,0.22); }
.kvp-fill { position: absolute; left: 0; height: 5px; border-radius: 5px; background: var(--accent-gold); width: 0; pointer-events: none; }
.kvp-knob { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.5); left: 0; transform: translateX(-50%); pointer-events: none; transition: transform 0.15s; }
.kvp-track:hover .kvp-knob, .kvp-track.drag .kvp-knob { transform: translateX(-50%) scale(1.25); }
.kvp-vol { display: flex; align-items: center; gap: 2px; }
.kvp-volrange { width: 70px; accent-color: var(--accent-gold); height: 4px; cursor: pointer; }
.kvp-end { position: absolute; inset: 0 0 52px 0; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(16,13,9,0.88); color: #fff; text-align: center; padding: 16px; }
.kvp.ended .kvp-end { display: flex; }
.kvp.fs { position: fixed; inset: 0; z-index: 400; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; height: 100dvh; }
.kvp:fullscreen { border-radius: 0; aspect-ratio: auto; } .kvp:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; }
body.kvp-fs-lock { overflow: hidden; }
.kvp-empty { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 560px) { .kvp-vol .kvp-volrange { display: none; } .kvp-time { min-width: 0; font-size: 11px; } .kvp-bar { gap: 4px; padding: 0 6px; } .kvp-ptitle { font-size: 15px; } .kvp-big { width: 62px; height: 62px; font-size: 22px; } }

/* ---------- 1. POPUP ---------- */
.lead-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(20,16,10,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; overflow-y: auto; }
.lead-overlay.show { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
.lead-box { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; width: 100%; max-width: 860px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.35); transform: scale(0.94) translateY(10px); opacity: 0; transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease; margin: auto; }
.lead-overlay.show .lead-box { transform: none; opacity: 1; }
.lead-img { position: relative; background: #1c1710; min-height: 100%; }
.lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.lead-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,16,10,0.55), rgba(20,16,10,0) 55%); }
.lead-img-tag { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.lead-body { padding: 36px 34px 28px; display: flex; flex-direction: column; gap: 14px; }
.lead-kicker { font-size: 11px; color: var(--accent-gold); letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; }
.lead-title { font-size: 25px; line-height: 1.28; color: var(--text-main); font-weight: 600; }
.lead-q { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.lead-opts { display: flex; flex-direction: column; gap: 9px; }
.lead-opt { text-align: left; background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--text-main); cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 12px; }
.lead-opt:hover { border-color: var(--accent-gold); background: rgba(181,137,70,0.06); transform: translateX(3px); }
.lead-opt:focus-visible { outline: 3px solid rgba(181,137,70,0.45); outline-offset: 1px; }
.lead-opt i { color: var(--accent-gold); width: 18px; text-align: center; }
.lead-chosen { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.lead-chosen b { color: var(--text-main); }
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-form input[type=email] { font-size: 15px; padding: 14px; }
.lead-err { color: #dc2626; font-size: 12.5px; min-height: 16px; }
.lead-skip { background: none; border: none; color: var(--text-muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; align-self: center; padding: 6px; }
.lead-skip:hover { color: var(--text-main); }
.lead-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); color: var(--text-main); font-size: 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.18); display: flex; align-items: center; justify-content: center; }
.lead-x:hover { background: #fff; color: var(--accent-gold); } .lead-x:focus-visible { outline: 3px solid rgba(181,137,70,0.5); }
.lead-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: 3px; font-weight: 700; color: var(--accent-gold-hover); background: rgba(181,137,70,0.1); border: 2px dashed var(--accent-gold); border-radius: 12px; padding: 16px; text-align: center; user-select: all; }
.lead-ok-note { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 720px) {
  .lead-box { grid-template-columns: 1fr; max-width: 440px; }
  .lead-img { min-height: 0; height: 150px; } .lead-body { padding: 22px 20px 20px; } .lead-title { font-size: 21px; }
}

/* ---------- 6. МИНИЙ ИСГЭЛТ ---------- */
.mb-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-bottom: 6px; }
.mb-head h2 { font-size: 24px; color: var(--text-main); font-weight: 500; }
.mb-head p { font-size: 13px; color: var(--text-muted); margin-top: 4px; max-width: 520px; }
.mb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.bcard { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: box-shadow 0.3s, transform 0.3s; }
.bcard:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.09); transform: translateY(-2px); }
.bcard-top { height: 5px; }
.bcard-in { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.bcard-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bcard-h h3 { font-size: 17px; font-weight: 600; color: var(--text-main); line-height: 1.3; }
.bcard-h small { font-size: 11.5px; color: var(--text-muted); display: block; margin-top: 3px; }
.bstatus { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.bprog-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; margin-bottom: 6px; color: var(--text-muted); }
.bprog-top b { font-size: 15px; color: var(--text-main); font-weight: 700; }
.bbar { height: 10px; border-radius: 10px; background: var(--bg-hover); overflow: hidden; } .bbar > i { display: block; height: 100%; border-radius: 10px; transition: width 0.6s ease; }
.bstats { display: flex; gap: 8px; flex-wrap: wrap; }
.btip { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.65; color: var(--text-main); }
.btip-t { font-size: 10.5px; font-weight: 700; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.balert { border-radius: 10px; padding: 10px 12px; font-size: 12.5px; font-weight: 600; line-height: 1.55; display: flex; gap: 10px; align-items: flex-start; }
.bdet { font-size: 12px; color: var(--text-muted); } .bdet summary { cursor: pointer; font-weight: 600; color: var(--text-main); }
.bacts { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-color); }
.bacts .grow { flex: 1; justify-content: center; }
.b-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: linear-gradient(180deg, var(--bg-card), var(--bg-main)); border: 1px dashed var(--accent-gold); border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.b-empty svg { width: 120px; height: auto; } .b-empty h3 { font-size: 19px; font-weight: 600; } .b-empty p { font-size: 13.5px; color: var(--text-muted); max-width: 420px; line-height: 1.75; }
.done-overlay { position: fixed; inset: 0; z-index: 130; background: rgba(20,16,10,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; }
.done-overlay.show { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s; }
.done-box { position: relative; background: #fff; border-radius: 20px; padding: 36px 30px 28px; max-width: 440px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; box-shadow: 0 30px 80px rgba(0,0,0,0.35); transform: scale(0.92); transition: transform 0.4s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.done-overlay.show .done-box { transform: none; }
.done-box h3 { font-size: 22px; line-height: 1.35; font-weight: 600; } .done-box p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.done-emoji { font-size: 54px; line-height: 1; }
#confettiCanvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 140; pointer-events: none; }

/* ---------- FOOTER ---------- */
.ft { border-top: 1px solid var(--border-color); background: var(--bg-card); margin-top: auto; }
.ft-in { max-width: 1200px; margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.ft-brand { display: flex; flex-direction: column; gap: 14px; }
.ft-brand .logo { display: flex; align-items: center; gap: 12px; } .ft-brand .logo img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--accent-gold); background: #fff; padding: 2px; }
.ft-brand .logo b { letter-spacing: 2px; text-transform: uppercase; font-size: 15px; font-weight: 600; color: var(--text-main); }
.ft-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.75; max-width: 300px; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-color); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: 0.25s; background: #fff; }
.ft-social a:hover { color: #fff; background: var(--accent-gold); border-color: var(--accent-gold); transform: translateY(-2px); }
.ft-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-main); font-weight: 700; margin-bottom: 14px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col a, .ft-col button.ft-link { color: var(--text-muted); font-size: 13.5px; text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; text-align: left; transition: color 0.2s; }
.ft-col a:hover, .ft-col button.ft-link:hover { color: var(--accent-gold); }
.ft-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.ft-bottom nav { display: flex; gap: 20px; } .ft-bottom button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 0; } .ft-bottom button:hover { color: var(--accent-gold); }
@media (max-width: 900px) { .ft-in { grid-template-columns: 1fr 1fr; gap: 28px; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft-in { grid-template-columns: 1fr; padding-top: 36px; } }
.legal-body { font-size: 13.5px; line-height: 1.85; color: var(--text-muted); display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; text-align: left; }
.legal-body h4 { color: var(--text-main); font-size: 14px; margin-top: 6px; }

/* Хөдөлгөөн багасгах: бүх шинэ анимейшн, шилжилтийг унтраана */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fade-up, .lv-watching::before { animation: none !important; }
  .learn-card, .bcard, .mod-body, .lead-overlay, .lead-box, .lead-opt, .kvp-poster, .kvp-knob, .done-overlay, .done-box, .lv-bar > i, .bbar > i, .ft-social a { transition: none !important; }
  .learn-card:hover, .bcard:hover, .lead-opt:hover, .ft-social a:hover { transform: none; }
}

/* Poster нь доод удирдлагын мөрийг (52px) халхлахгүй; жижиг (preview) player-т авсаархан */
.kvp-poster { padding-bottom: 66px; }
.buy-media .kvp-poster { gap: 8px; }
.buy-media .kvp-logo { width: 34px; height: 34px; }
.buy-media .kvp-note { display: none; }
.buy-media .kvp-ptitle { font-size: 15px; }
.buy-media .kvp-big { width: 54px; height: 54px; font-size: 19px; }
.buy-media .kvp-vol .kvp-volrange { display: none; }
.buy-media .kvp-logo, .buy-media .kvp-brand { display: none; }
@media (max-width: 560px) { .kvp-logo { width: 40px; height: 40px; } .kvp-poster { gap: 10px; } }

/* ---------- НОМ (flipbook) ---------- */
.bk-head { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bk-note { font-size: 13px; color: var(--text-muted); max-width: 640px; line-height: 1.7; }
.bk-wrap { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, #f3ead9, #e9dcc3); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px 12px 12px; position: relative; }
.bk-stage { display: flex; justify-content: center; align-items: flex-start; overflow: auto; min-height: 320px; padding: 8px 0 12px; -webkit-overflow-scrolling: touch; }
.bk-stage.zoomed { justify-content: flex-start; }
.bk-book { position: relative; margin: 0 auto; max-width: none; filter: drop-shadow(0 18px 30px rgba(60,40,10,0.28)); }
.bk-page { background: #fff; overflow: hidden; }
.bk-page canvas { width: 100%; height: 100%; display: block; background: #fff; }
.bk-lock { position: relative; background: #fbf6ec; }
.bk-lock canvas.bk-blur { filter: blur(9px) brightness(0.96); transform: scale(1.06); opacity: 0.9; }
.bk-lock-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: linear-gradient(180deg, rgba(251,246,236,0.78), rgba(251,246,236,0.92)); }
.bk-lock-ic { font-size: 40px; line-height: 1; }
.bk-lock-in h3 { font-size: 18px; font-weight: 600; color: var(--text-main); line-height: 1.4; max-width: 280px; }
.bk-lock-in p { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.bk-loading { position: absolute; z-index: 2; left: 50%; top: 40%; transform: translateX(-50%); font-size: 14px; color: var(--text-muted); background: rgba(255,255,255,0.9); padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border-color); }
.bk-bar { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; background: rgba(255,255,255,0.92); border: 1px solid var(--border-color); border-radius: 999px; padding: 6px 12px; align-self: center; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.bk-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; font-size: 20px; color: var(--text-main); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.bk-btn i { font-size: 15px; }
.bk-btn:hover:not(:disabled) { background: rgba(181,137,70,0.16); color: var(--accent-gold-hover); }
.bk-btn:focus-visible { outline: 2px solid var(--accent-gold); }
.bk-btn:disabled { opacity: 0.3; cursor: default; }
.bk-pageno, .bk-zoomlbl { font-size: 13px; font-weight: 600; color: var(--text-main); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.bk-zoomlbl { min-width: 46px; font-weight: 500; color: var(--text-muted); }
.bk-sep { width: 1px; height: 22px; background: var(--border-color); margin: 0 4px; }
.bk-wrap.bk-fs { position: fixed; inset: 0; z-index: 300; border-radius: 0; border: none; padding: 12px; justify-content: space-between; height: 100vh; height: 100dvh; background: linear-gradient(180deg, #f3ead9, #e9dcc3); }
.bk-wrap:fullscreen { border-radius: 0; padding: 12px; justify-content: space-between; background: linear-gradient(180deg, #f3ead9, #e9dcc3); }
.bk-wrap.bk-fs .bk-stage, .bk-wrap:fullscreen .bk-stage { flex: 1; align-items: center; }
@media (max-width: 640px) { .bk-wrap { padding: 12px 6px 8px; border-radius: 12px; } .bk-btn { width: 38px; height: 38px; } .bk-pageno { min-width: 54px; } .bk-lock-in h3 { font-size: 15px; } .bk-lock-in p { display: none; } }
@media (prefers-reduced-motion: reduce) { .bk-btn { transition: none; } }
@media (max-width: 640px) { .bk-bar { flex-wrap: nowrap; gap: 2px; padding: 4px 8px; } .bk-sep { display: none; } .bk-zoomlbl { min-width: 38px; font-size: 12px; } .bk-btn { width: 36px; height: 36px; } }

/* ---------- ҮНИЙН 3 БАГЦ ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.14fr 1fr; gap: 22px; align-items: stretch; max-width: 1100px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 18px; padding: 32px 26px 28px; box-shadow: 0 6px 22px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.1); }
.plan-ic { font-size: 30px; line-height: 1; }
.plan-name { font-size: 20px; font-weight: 600; color: var(--text-main); line-height: 1.3; }
.plan-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; min-height: 44px; }
.plan-price { font-size: 32px; font-weight: 500; color: var(--accent-gold); line-height: 1.1; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; color: var(--text-main); line-height: 1.6; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; } .plan-list li i { color: #10b981; margin-top: 4px; font-size: 12px; width: 14px; text-align: center; }
.plan-list li i.fa-gift, .plan-list li i.fa-hourglass-half { color: var(--accent-gold); }
.plan-btn { width: 100%; justify-content: center; margin-top: 6px; }
.plan-main { border: 3px solid var(--accent-gold); background: linear-gradient(180deg, #fffaf0 0%, #ffffff 55%); padding: 44px 30px 34px; margin: -14px 0; box-shadow: 0 26px 60px rgba(181,137,70,0.30), 0 0 0 6px rgba(181,137,70,0.10); z-index: 1; }
.plan-main:hover { transform: translateY(-6px); box-shadow: 0 32px 70px rgba(181,137,70,0.36), 0 0 0 6px rgba(181,137,70,0.14); }
.plan-main .plan-name { font-size: 24px; } .plan-main .plan-price { font-size: 44px; }
.plan-tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--accent-gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; padding: 6px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(181,137,70,0.45); }
.plan-family { background: linear-gradient(160deg, #2d2418 0%, #1f1810 100%); border-color: #4a3b24; }
.plan-family .plan-name, .plan-family .plan-list { color: #f6ecd9; } .plan-family .plan-sub { color: #cdbd9f; } .plan-family .plan-price { color: #e0b868; }
.plan-family .plan-btn { background: transparent; color: #e0b868; border-color: #e0b868; } .plan-family .plan-btn:hover { background: #e0b868; color: #1f1810; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; gap: 26px; }
  .plan-main { order: -1; margin: 0; padding: 40px 24px 30px; } .plan-sub { min-height: 0; }
}

/* ---------- AI: сургалтын эрхгүй хүнд түгжээ ---------- */
.ai-lock { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px 26px; background: var(--bg-main); }
.ai-lock-ic { display: none; }
.ai-lock h3 { font-size: 17px; font-weight: 600; color: var(--text-main); line-height: 1.5; max-width: 300px; }
.ai-lock p { font-size: 13px; color: var(--text-muted); line-height: 1.75; max-width: 300px; }
.ai-chat-window.ai-locked .ai-lock { display: flex; }
.ai-chat-window.ai-locked .ai-chat-logs, .ai-chat-window.ai-locked .ai-input-area, .ai-chat-window.ai-locked .ai-chat-preview, .ai-chat-window.ai-locked .ai-chat-note, .ai-chat-window.ai-locked .ai-chat-head .ai-chat-iconbtn:not(.gold) { display: none; }
@media (prefers-reduced-motion: reduce) { .plan, .plan-main { transition: none !important; } .plan:hover, .plan-main:hover { transform: none; } }

/* ---------- Номын түгжээтэй хуудас: 2 товч ---------- */
.bk-lock-btns { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 250px; }
.bk-lock-btns button { justify-content: center; width: 100%; padding: 11px 12px; font-size: 11.5px; }
