/* NXH Core — giao diện khóa học, bài học, thanh toán, sản phẩm, đăng ký (cùng phong cách theme mới) */
.nxhc{--navy:#0a1930;--navy2:#13275a;--ink:#0f1b33;--muted:#5a6478;--gold:#b08a2e;--gold2:#e3c27a;--cream:#faf3ee;--line:#e6e0d8;--red:#c0202b;--green:#1d6b3b;
 font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;color:var(--ink);line-height:1.6;overflow-x:clip;background:#fff}
.nxhc *{box-sizing:border-box}
.nxhc img{max-width:100%;height:auto}
.nxhc a{color:inherit;text-decoration:none}
.nxhc h1,.nxhc h2,.nxhc h3,.nxhc h4{font-family:'Lora',Georgia,serif;margin:0;color:var(--ink);line-height:1.3}
.nxhc p{margin:0}
.nxhc .wrap{max-width:1152px;margin:0 auto;padding:0 24px}
.nxhc .sec{padding:56px 0}
.nxhc .cream{background:var(--cream)}
.nxhc .crumb{font-size:13.5px;color:#aeb8cc}
.nxhc .crumb a:hover{color:#fff}
.nxhc .crumb b{color:var(--gold2);font-weight:700}
.nxhc .eyebrow{display:block;color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:10px}
.nxhc .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;font-size:13.5px;letter-spacing:.05em;text-transform:uppercase;padding:15px 24px;border-radius:6px;border:1.5px solid transparent;cursor:pointer;font-family:inherit;line-height:1.2;text-align:center;background:none}
.nxhc .btn-red{background:var(--red);color:#fff;box-shadow:0 12px 26px rgba(192,32,43,.26)}
.nxhc .btn-red:hover{filter:brightness(1.07)}
.nxhc .btn-navy{background:var(--navy);color:#fff}
.nxhc .btn-out{border-color:var(--navy);color:var(--navy);background:#fff}
.nxhc .btn-outw{border-color:rgba(255,255,255,.55);color:#fff}
.nxhc .btn-block{width:100%}
.nxhc .btn:focus-visible,.nxhc a:focus-visible,.nxhc button:focus-visible,.nxhc input:focus-visible{outline:3px solid var(--gold2);outline-offset:2px}
.nxhc .card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 34px rgba(15,27,51,.06)}
.nxhc .tag{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold2)}
.nxhc .muted{color:var(--muted)}
.nxhc .notice{padding:13px 16px;border-radius:10px;font-size:14.5px;margin-bottom:18px;background:#fdeeee;color:var(--red)}
.nxhc .notice.ok{background:#eaf5ee;color:var(--green)}
.nxhc .bar{height:8px;background:#f0e9e1;border-radius:999px;overflow:hidden}
.nxhc .bar i{display:block;height:100%;background:linear-gradient(90deg,#c9a453,#e3c27a);border-radius:999px}
.nxhc .content{font-size:16.5px;line-height:1.75;color:#26304a}
.nxhc .content>*:first-child{margin-top:0}
.nxhc .content p,.nxhc .content ul,.nxhc .content ol{margin:0 0 16px}
.nxhc .content ul,.nxhc .content ol{padding-left:22px}
.nxhc .content h2{font-size:24px;margin:30px 0 12px}
.nxhc .content h3{font-size:20px;margin:24px 0 10px}
.nxhc .content a{color:var(--red);text-decoration:underline}
.nxhc .content img{border-radius:12px}
.nxhc .content blockquote{margin:22px 0;padding:16px 20px;border-left:4px solid var(--gold);background:var(--cream);border-radius:0 12px 12px 0;font-family:'Lora',serif;font-style:italic;font-size:19px}
.nxhc .ratio{position:relative;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden}
.nxhc .ratio iframe,.nxhc .ratio img{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover}
.nxhc .sr{position:absolute;left:-9999px}

/* ---------- Hero chung ---------- */
.nxhc .hero{background:linear-gradient(160deg,#0a1930,#13275a);color:#fff;padding:44px 0 56px}
.nxhc .hero h1{color:#fff;font-size:clamp(26px,3.4vw,40px);font-weight:600;margin:12px 0 0}
.nxhc .hero .lead{color:#c9d0de;font-size:17px;margin-top:14px;max-width:620px}
.nxhc .hero .grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.nxhc .hero .btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.nxhc .hero .price{margin-top:22px;font-size:15px;color:#c9d0de}
.nxhc .hero .price b{font-family:'Lora',serif;font-size:28px;color:var(--gold2);margin-right:8px}
.nxhc .hero .prog{margin-top:22px;max-width:420px;font-size:13.5px;color:#c9d0de}
.nxhc .hero .prog .bar{margin-top:8px;background:rgba(255,255,255,.14)}

/* ---------- Trang khóa học ---------- */
.nxhc .course-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start}
.nxhc .side{position:sticky;top:130px;display:grid;gap:18px}
.nxhc .side .card{padding:24px}
.nxhc .side h3{font-size:19px;margin-bottom:12px}
.nxhc .facts{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px;font-size:14.5px;color:var(--muted)}
.nxhc .facts b{color:var(--ink)}
.nxhc .h2{font-size:clamp(22px,2.6vw,28px);margin-bottom:18px}
.nxhc .curr{display:grid;gap:12px}
.nxhc .topic{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.nxhc .topic summary{list-style:none;cursor:pointer;padding:16px 20px;font-weight:700;display:flex;justify-content:space-between;gap:12px;background:#fcfaf7}
.nxhc .topic summary::-webkit-details-marker{display:none}
.nxhc .topic summary small{color:var(--muted);font-weight:400;white-space:nowrap}
.nxhc .topic[open] summary{border-bottom:1px solid var(--line)}
.nxhc .les{display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid #f1ece6;font-size:15px}
.nxhc .les:first-of-type{border-top:0}
.nxhc .les .ic{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:12px;background:#f3ece3;color:var(--gold)}
.nxhc .les .ic svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.nxhc .les.done .ic{background:#eaf5ee;color:var(--green)}
.nxhc .les.locked{color:var(--muted)}
.nxhc .les.locked .ic{background:#f0f0f2;color:#9aa1ae}
.nxhc a.les:hover{background:#fffaf0}
.nxhc .les .pv{margin-left:auto;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--red);background:#fdeeee;border-radius:999px;padding:4px 10px;white-space:nowrap}
.nxhc .mats{display:grid;gap:10px}
.nxhc .mat{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font-weight:700;font-size:14.5px}
.nxhc .mat:hover{border-color:var(--gold)}
.nxhc .mat .ratio{width:100%}

/* ---------- Trình học bài ---------- */
.nxhc.player{background:#f6f3ef}
.nxhc .pl{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:calc(100vh - 120px)}
.nxhc .pl-side{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;max-height:calc(100vh - 120px);position:sticky;top:120px}
.nxhc .pl-side .hd{padding:18px 20px;border-bottom:1px solid var(--line)}
.nxhc .pl-side .hd a{font-size:13px;color:var(--muted);font-weight:700}
.nxhc .pl-side .hd a:hover{color:var(--red)}
.nxhc .pl-side .hd h2{font-size:17px;margin:8px 0 12px}
.nxhc .pl-side .hd small{display:flex;justify-content:space-between;font-size:12.5px;color:var(--muted);margin-bottom:6px}
.nxhc .pl-list{overflow-y:auto;flex:1}
.nxhc .pl-list .tp{padding:12px 20px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);background:#fcfaf7;border-top:1px solid var(--line)}
.nxhc .pl-list .les{padding:11px 20px}
.nxhc .pl-list .les.cur{background:#fff6e3;font-weight:700}
.nxhc .pl-list .les.cur .ic{background:var(--navy);color:var(--gold2)}
.nxhc .pl-main{padding:28px 36px 48px;min-width:0}
.nxhc .pl-main .ratio{box-shadow:0 18px 40px rgba(10,25,48,.18)}
.nxhc .pl-main .ratio .empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.6)}
.nxhc .pl-main h1{font-size:clamp(22px,2.4vw,28px);margin:24px 0 6px}
.nxhc .pl-main .meta{font-size:13.5px;color:var(--muted);margin-bottom:22px}
.nxhc .pl-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:32px}
.nxhc .pl-nav a{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}
.nxhc .pl-nav a:hover{border-color:var(--gold)}
.nxhc .pl-nav a.next{text-align:right;background:var(--navy);border-color:var(--navy);color:#fff}
.nxhc .pl-nav small{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.nxhc .pl-nav a.next small{color:var(--gold2)}
.nxhc .pl-nav span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:14.5px}
.nxhc .pl-toggle{display:none}
.nxhc .pl-loading{opacity:.45;pointer-events:none;transition:opacity .15s}
.nxhc .pl-buy{margin-top:22px;padding:18px 20px;border-radius:12px;background:var(--cream);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}

/* ---------- Thanh toán ---------- */
.nxhc .co{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
.nxhc .co .card{padding:28px}
.nxhc .co h3{font-size:20px;margin-bottom:18px}
.nxhc .co .item{display:flex;gap:16px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}
.nxhc .co .item img,.nxhc .co .item .ph{width:96px;height:96px;border-radius:12px;object-fit:cover;flex:none;background:var(--navy)}
.nxhc .co .item b{font-family:'Lora',serif;font-size:18px;display:block;margin-bottom:6px}
.nxhc .co .row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px dashed var(--line);font-size:15px}
.nxhc .co .row:last-child{border-bottom:0}
.nxhc .co .row span{color:var(--muted)}
.nxhc .co .row b{text-align:right;word-break:break-word}
.nxhc .co .total b{font-size:22px;color:var(--red)}
.nxhc .co .qr{text-align:center;position:relative}
.nxhc .co .qr img{width:260px;height:260px;object-fit:contain;border:1px solid var(--line);border-radius:14px;padding:10px;background:#fff}
.nxhc .co .copy{border:0;background:#f3ece3;border-radius:6px;font-size:12px;font-weight:700;padding:4px 8px;margin-left:8px;cursor:pointer;color:var(--ink)}
.nxhc .co .content-code{color:var(--red);font-size:18px}
.nxhc .co .wait{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px;font-size:14px;color:var(--muted)}
.nxhc .co .spin{width:16px;height:16px;border:2px solid #e6e0d8;border-top-color:var(--gold);border-radius:50%;animation:nxhc-spin 1s linear infinite}
@keyframes nxhc-spin{to{transform:rotate(360deg)}}
.nxhc .co .done{position:absolute;inset:0;background:#fff;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center}
.nxhc .co .done[hidden]{display:none}
.nxhc .co .done .ok{width:72px;height:72px;border-radius:50%;background:#eaf5ee;color:var(--green);display:flex;align-items:center;justify-content:center;font-size:38px}

/* ---------- Sản phẩm số ---------- */
.nxhc .prod{display:grid;grid-template-columns:.9fr 1.1fr;gap:44px;align-items:start}
.nxhc .prod .cover{border-radius:16px;overflow:hidden;box-shadow:0 22px 50px rgba(10,25,48,.18);background:var(--cream)}
.nxhc .prod .cover img{width:100%;display:block}
.nxhc .prod h1{font-size:clamp(26px,3vw,36px);margin:8px 0 14px}
.nxhc .prod .price{font-family:'Lora',serif;font-size:28px;color:var(--red);font-weight:700;margin:6px 0 20px}
.nxhc .grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.nxhc .pcard{overflow:hidden;display:flex;flex-direction:column}
.nxhc .pcard .th{aspect-ratio:4/3;background:var(--cream);display:block;overflow:hidden}
.nxhc .pcard .th img{width:100%;height:100%;object-fit:cover}
.nxhc .pcard .bd{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.nxhc .pcard h3{font-size:18px}
.nxhc .pcard .pr{font-weight:700;color:var(--red)}
.nxhc .pcard .btn{margin-top:auto}
.nxhc .pager{display:flex;justify-content:center;gap:8px;margin-top:30px;flex-wrap:wrap}
.nxhc .pager .page-numbers{min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid var(--line);border-radius:8px;padding:0 12px;font-weight:700}
.nxhc .pager .current{background:var(--navy);border-color:var(--navy);color:var(--gold2)}

/* ---------- Đăng ký / đăng nhập ---------- */
.nxhc .auth{display:grid;grid-template-columns:1fr 460px;gap:48px;align-items:center}
.nxhc .auth .card{padding:30px}
.nxhc .auth h2{font-size:24px;margin-bottom:6px}
.nxhc .tabs{display:flex;background:#f3ece3;border-radius:10px;padding:4px;margin-bottom:22px}
.nxhc .tabs a{flex:1;text-align:center;padding:10px;border-radius:8px;font-weight:700;font-size:14.5px;color:var(--muted)}
.nxhc .tabs a.on{background:#fff;color:var(--ink);box-shadow:0 4px 12px rgba(15,27,51,.08)}
.nxhc .fld{margin-bottom:14px}
.nxhc .fld label{display:block;font-size:14px;font-weight:700;margin-bottom:6px}
.nxhc .fld input{width:100%;height:50px;border:1.5px solid var(--line);border-radius:8px;padding:0 14px;font:inherit;font-size:15.5px;background:#fff}
.nxhc .fld input:focus{border-color:var(--gold);outline:none}
.nxhc .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nxhc .help{font-size:13.5px;color:var(--muted);margin-top:14px;text-align:center}
.nxhc .help a{color:var(--red);font-weight:700}
.nxhc .ben{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:10px;color:#c9d0de}
.nxhc .ben li::before{content:"✓";color:var(--gold2);font-weight:700;margin-right:10px}

/* ---------- Hướng dẫn DNS ---------- */
.nxhc .steps{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.nxhc .steps .card{padding:24px}
.nxhc .steps h3{font-size:19px;margin-bottom:10px}
.nxhc .steps ol{margin:0;padding-left:20px;display:grid;gap:6px;font-size:15px}
.nxhc .apps{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.nxhc code{background:#f3ece3;border-radius:6px;padding:2px 8px;font-size:14px}

@media (max-width:1023px){
 .nxhc .hero .grid,.nxhc .course-grid,.nxhc .co,.nxhc .prod,.nxhc .auth{grid-template-columns:1fr}
 .nxhc .side{position:static}
 .nxhc .grid3{grid-template-columns:1fr 1fr}
 .nxhc .pl{grid-template-columns:1fr}
 .nxhc .pl-side{position:static;max-height:none;border-right:0;border-bottom:1px solid var(--line);order:2}
 .nxhc .pl-main{order:1;padding:0 0 24px}
 .nxhc .pl-main .ratio{border-radius:0}
 .nxhc .pl-main .txt{padding:0 18px}
 .nxhc .pl-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;border:0;background:#fff;padding:14px 18px;font:inherit;font-weight:700;border-bottom:1px solid var(--line);cursor:pointer}
 .nxhc .pl-side.closed .pl-list{display:none}
 .nxhc .pl-nav{position:sticky;bottom:0;background:#fff;padding:10px 12px;margin:24px -18px 0;box-shadow:0 -8px 24px rgba(10,25,48,.1);z-index:5}
}
@media (max-width:640px){
 .nxhc .wrap{padding:0 18px}
 .nxhc .sec{padding:40px 0}
 .nxhc .grid3,.nxhc .steps{grid-template-columns:1fr}
 .nxhc .hero .btns .btn{width:100%}
 .nxhc .co .card,.nxhc .auth .card{padding:20px}
 .nxhc .co .qr img{width:220px;height:220px}
}
