/* ==========================================================================
   HUYỀN HỌC SỐ — NAVY & IVORY APP SHELL STYLESHEET (v2.0)
   Áp dụng cho: Landing Page, Đăng nhập & Hồ sơ, Thanh toán Gói lẻ / Combo
   ========================================================================== */
@font-face {
  font-family: "BatTu Serif";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("/design/fonts/battu-serif-400.woff") format("woff");
}
@font-face {
  font-family: "BatTu Serif";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url("/design/fonts/battu-serif-700.woff") format("woff");
}
@font-face {
  font-family: "BatTu Sans";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("/design/fonts/battu-sans-400.woff") format("woff");
}
@font-face {
  font-family: "BatTu Sans";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url("/design/fonts/battu-sans-700.woff") format("woff");
}
@font-face {
  font-family: "BatTu Sans Fallback";
  src: local("Arial");
  size-adjust: 105.2%;
  ascent-override: 101.6%;
  descent-override: 27.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "BatTu Serif Fallback";
  src: local("Times New Roman"), local("Georgia");
  size-adjust: 114.5%;
  ascent-override: 93.4%;
  descent-override: 25.6%;
  line-gap-override: 0%;
}

:root{--navy:#03315E;--ivory:#F5F1E9;--gold:#7C2D36;--ink:#152D45;--line:#D9D0C0;--muted:#596674}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:var(--ivory);color:var(--ink);font:15px/1.6 "BatTu Sans","BatTu Sans Fallback",Arial,sans-serif}button,input{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3,.serif{font-family:"BatTu Serif","BatTu Serif Fallback",serif}button{border:0}svg{display:block}.container{width:min(1120px,calc(100% - 80px));margin:auto}.masthead{background:var(--navy);color:var(--ivory);overflow:hidden}.header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #FAF6EE38}.brand{display:flex;align-items:center;gap:18px}.seal{width:42px;height:50px;border:1px solid var(--gold);border-radius:3px;padding:4px;color:var(--gold);display:grid;place-items:center}.seal svg{width:30px;height:39px}.brand-name{font:32px "BatTu Serif";letter-spacing:5px;line-height:1.2}.brand-sub{font-size:10px;letter-spacing:4px;margin-top:6px}.desktop-nav{display:flex;align-items:center;gap:30px;font-size:13px}.desktop-nav a:hover{color:#F4EAE6}.menu{width:44px;height:44px;background:transparent;color:var(--ivory);display:grid;place-items:center}.menu svg{width:25px}.hero{display:grid;grid-template-columns:1.1fr 1fr;min-height:478px;align-items:center;gap:60px;overflow:hidden}.hero-copy{padding:36px 0 46px;position:relative;z-index:2}.eyebrow{font-size:11px;letter-spacing:2.2px;text-transform:uppercase;color:#F4EAE6;margin-bottom:19px}.hero h1{font-size:60px;line-height:1.12;font-weight:400;letter-spacing:-1.4px}.hero-description{font-size:18px;line-height:1.7;margin-top:24px;color:#E4E9EE;max-width:440px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:16px;background:#FAF6EE;border:1px solid #FAF6EE;color:var(--navy);border-radius:7px;min-height:50px;padding:10px 25px;font:600 20px "BatTu Serif"}.primary:hover{background:#F4EAE6;border-color:#F4EAE6}.hero .primary{margin-top:29px}.arrow{font:24px Arial;font-weight:400}.hero-art{height:445px;position:relative;display:flex;align-items:flex-end;justify-content:center;isolation:isolate}.hero-art .book-img{width:280px;height:395px;object-fit:contain;position:relative;z-index:2;filter:drop-shadow(8px 9px 8px #00122470)}.astrolabe{position:absolute;width:390px;height:390px;top:10px;right:-15px;opacity:.34;color:var(--gold)}.plinth{height:17px;position:absolute;bottom:0;left:15px;right:-100px;background:linear-gradient(0deg,#9E927B,#C8BEAB);border-bottom:5px solid #847C6D;z-index:1}.mobile-break{display:none}.catalog{padding:48px 0 32px}.ornament-title{display:flex;align-items:center;justify-content:center;gap:24px;font-size:34px;font-weight:400;line-height:1.3;letter-spacing:-.5px}.ornament-title:before,.ornament-title:after{content:'';width:65px;height:1px;background:#9F8967}.catalog-sub{text-align:center;font-size:13px;color:var(--muted);margin:12px auto 28px;max-width:530px}.books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;max-width:680px;margin:24px auto 0}.book-tile{background:transparent;color:var(--navy);padding:0;text-align:center}.book-tile img{display:block;width:100%;height:350px;object-fit:contain;filter:drop-shadow(2px 4px 3px #23354530);transition:transform .2s}.book-tile:hover img{transform:translateY(-5px)}.book-tile .book-name{display:block;font:20px/1.4 "BatTu Serif";margin:14px 0 4px}.book-tile small{display:block;font-size:11px;color:var(--muted)}.catalog-audio{max-width:850px;margin:30px auto 0;background:var(--navy);color:var(--ivory);min-height:66px;border-radius:7px;display:flex;align-items:center;gap:18px;padding:12px 20px;text-align:left;width:100%}.play-circle{width:38px;height:38px;flex-shrink:0;border-radius:50%;background:#FAF6EE;display:grid;place-items:center;color:var(--navy);font-size:16px;padding-left:2px}.audio-title{font:21px "BatTu Serif";line-height:1.3}.audio-state{display:none;font:11px Arial;color:#DBE3EB;margin-top:5px}.catalog-audio.is-playing .audio-state{display:block}.waveform{margin-left:auto;display:flex;align-items:center;gap:3px;height:25px}.waveform i{display:block;width:2px;background:#E0E7ED;border-radius:1px;height:var(--h)}.catalog-audio.is-playing .waveform i{animation:pulse .7s infinite alternate;animation-delay:var(--d)}@keyframes pulse{to{transform:scaleY(.35)}}.paths{padding:22px 0 40px;max-width:850px;margin:auto}.paths h2{text-align:center;font-size:28px;font-weight:400;margin-bottom:20px}.path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.path{border:1px solid #6C8094;border-radius:10px;background:transparent;padding:19px 10px;color:var(--navy);display:flex;flex-direction:column;align-items:center;min-height:150px;text-align:center}.path:hover{background:#EBE5D8}.path svg{height:28px;width:30px;margin-bottom:10px}.path strong{font:600 20px/1.1 "BatTu Serif"}.path small{font-size:13px;line-height:1.5;margin-top:8px}.more-section{padding:45px 0;border-top:1px solid var(--line)}.section-label{font-size:10px;letter-spacing:2px;color:#7C2D36;margin-bottom:12px}.more-section h2{font-size:36px;font-weight:400;margin-bottom:24px}.sample-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.sample-grid p{color:var(--muted);max-width:420px}.lesson{border:1px solid var(--line);background:#FFFCF6;padding:24px}.lesson h3{font-size:24px;font-weight:400}.element-buttons{display:flex;gap:12px;justify-content:space-between;margin:25px 0}.element-buttons button{width:48px;height:48px;border:1px solid currentColor;border-radius:50%;background:transparent;font-weight:600;font-size:12px}.element-buttons button[aria-pressed=true]{background:#E8E1D4;outline:2px solid var(--gold);outline-offset:3px}.element-feedback{min-height:65px;font-size:13px;line-height:1.7}.plans{display:grid;grid-template-columns:1fr 1fr;gap:18px}.plan{border:1px solid var(--line);background:#FCF9F3;padding:24px;border-radius:6px}.plan h3{font-size:23px;font-weight:400;margin-bottom:12px}.plan p{font-size:13px;color:var(--muted)}.plan-price{font-size:12px;color:#7C2D36;margin:20px 0}.navy-button{min-height:46px;background:var(--navy);color:var(--ivory);padding:12px 20px;border-radius:5px;width:100%;font-weight:600;font-size:13px}.faq{max-width:800px}.faq details{border-bottom:1px solid var(--line);padding:18px 0}.faq summary{cursor:pointer;font-weight:600;font-size:14px}.faq p{color:var(--muted);font-size:13px;margin-top:12px}.footer{border-top:1px solid var(--line);padding:24px 0 110px;font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:15px}.bottom-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;background:var(--ivory);border-top:1px solid #CFC7B9;padding:10px max(24px,calc((100vw - 680px)/2));padding-bottom:max(10px,env(safe-area-inset-bottom));display:flex;align-items:stretch;gap:12px}.bottom-link{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;white-space:nowrap;font-size:12px;color:var(--navy);position:relative}.bottom-link svg{height:24px;width:26px}.bottom-link.active:after{content:'';position:absolute;bottom:-6px;background:var(--navy);height:2px;width:52px}.bottom-link.cta{background:var(--navy);color:var(--ivory);border-radius:7px;flex-direction:row;gap:8px;font:18px "BatTu Serif";padding:10px 18px;flex:1.35}.preview-controls{position:fixed;right:14px;top:14px;z-index:70;display:flex;padding:3px;background:#FFF;border:1px solid #7C2D36;border-radius:5px}.preview-controls button{background:transparent;color:var(--navy);font-size:10px;padding:6px 9px;min-height:28px}.preview-controls button.active{background:var(--navy);color:#FFF;border-radius:2px}dialog{border:0;padding:0;color:var(--ink);background:var(--ivory);border-radius:12px;width:min(570px,calc(100% - 30px));max-height:88dvh;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#00172CB8}.dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:18px 22px}.dialog-head h2{font-size:22px;font-weight:400}.dialog-close{background:transparent;border:1px solid var(--line);border-radius:50%;width:44px;height:44px;font-size:25px;color:var(--navy)}.dialog-body{padding:24px}.book-preview{display:flex;gap:20px;align-items:center}.book-preview img{width:115px;height:170px;object-fit:contain}.book-preview h3{font-size:25px;font-weight:400;margin-bottom:10px}.book-preview p{font-size:12px;color:var(--muted)}.tabs{display:flex;border-bottom:1px solid var(--line);margin:22px 0}.tabs button{background:transparent;flex:1;padding:12px 8px;color:var(--muted);font-size:13px;min-height:44px}.tabs button[aria-selected=true]{color:var(--navy);font-weight:600;border-bottom:2px solid var(--gold)}.tab-content{font-size:14px;line-height:1.9;min-height:140px}.tab-content ol{padding-left:20px}.demo-note{font-size:11px;color:#7A7469;margin:15px 0 0;line-height:1.6}.toast{position:fixed;z-index:100;top:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;padding:12px 18px;border-radius:5px;background:#163D61;color:white;font-size:12px;display:none}.menu-links{display:grid;gap:8px}.menu-links a{display:block;padding:14px;border-bottom:1px solid var(--line);min-height:48px}body.locked{overflow:hidden}
@media(max-width:700px){.container{width:calc(100% - 36px)}.header{height:76px;border:0}.brand{gap:13px}.seal{width:30px;height:39px;padding:3px}.seal svg{width:22px;height:30px}.brand-name{font-size:27px;letter-spacing:4px}.brand-sub{font-size:8px;letter-spacing:3px;margin-top:4px}.desktop-nav{display:none}.menu{width:35px;margin-right:-4px}.hero{min-height:244px;grid-template-columns:1.11fr 1fr;gap:4px;align-items:stretch;overflow:visible}.hero-copy{padding:15px 0 34px}.eyebrow{display:none}.hero h1{font-size:30px;line-height:1.17;letter-spacing:-.5px}.hero-description{font-size:14px;line-height:1.45;margin-top:13px;max-width:195px}.desktop-break{display:none}.mobile-break{display:block}.hero .primary{font-size:16px;min-height:40px;padding:9px 13px;margin-top:21px;gap:10px}.primary .arrow{font-size:20px}.hero-art{height:auto;min-height:244px;align-self:stretch;justify-content:flex-end;margin-right:-4px}.hero-art .book-img{width:100%;height:211px;max-width:170px;object-fit:contain;object-position:center bottom;margin-bottom:8px}.astrolabe{width:230px;height:230px;max-width:none;right:-19px;top:-12px;opacity:.39}.plinth{height:8px;bottom:0;left:-3px;right:-14px;border-bottom-width:3px}.catalog{padding:17px 0 0}.ornament-title{font-size:25px;gap:12px;letter-spacing:-.6px}.ornament-title:before,.ornament-title:after{width:27px}.catalog-sub{display:none}.books{gap:18px;margin:14px 3px 0}.book-tile img{height:227px;width:100%;filter:drop-shadow(1px 3px 2px #23354535)}.book-tile .book-name,.book-tile small{display:none}.catalog-audio{margin:15px 0 0;min-height:44px;border-radius:6px;gap:12px;padding:8px 13px}.play-circle{height:28px;width:28px;font-size:12px}.audio-title{font-size:15px}.waveform{gap:2px;height:22px}.waveform i{width:2px}.paths{padding:12px 0 20px}.paths h2{font-size:23px;margin-bottom:10px;letter-spacing:-.6px}.path-grid{gap:8px}.path{min-height:118px;border-radius:9px;padding:9px 5px}.path svg{width:27px;height:25px;margin-bottom:5px}.path strong{font-size:16px;line-height:1.03}.path small{font-size:11px;line-height:1.3;margin-top:6px}.more-section{padding:32px 0}.more-section h2{font-size:29px;margin-bottom:18px}.sample-grid{grid-template-columns:1fr;gap:22px}.sample-grid p{font-size:13px}.lesson{padding:19px}.element-buttons{gap:9px}.element-buttons button{width:43px;height:43px}.plans{grid-template-columns:1fr;gap:13px}.plan{padding:20px}.bottom-nav{padding:8px 15px max(8px,env(safe-area-inset-bottom));gap:7px}.bottom-link{font-size:10px;gap:4px;min-height:43px}.bottom-link svg{height:22px;width:24px}.bottom-link.cta{font-size:16px;padding:8px 13px;gap:6px}.bottom-link.cta svg{height:22px}.footer{flex-direction:column;padding-bottom:100px;gap:7px}.preview-controls{top:3px;right:47px;opacity:.9}.preview-controls button{font-size:9px;padding:2px 6px;min-height:20px}dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;border-radius:17px 17px 0 0;padding-bottom:env(safe-area-inset-bottom)}.dialog-head{padding:15px 18px}.dialog-body{padding:20px}.book-preview{gap:15px}.book-preview h3{font-size:23px}.book-preview img{width:100px;height:155px}}
@media(max-width:360px){.container{width:calc(100% - 28px)}.hero h1{font-size:27px}.hero-description{font-size:12px}.hero .primary{font-size:14px}.hero-art .book-img{height:195px}.hero-art{min-height:230px}.ornament-title{font-size:23px;gap:8px}.book-tile img{height:211px}.audio-title{font-size:13px}.path strong{font-size:15px}.path small{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

/* Font tự chứa, hỗ trợ tiếng Việt đồng nhất với tiêu đề. */
body{font-family:"BatTu Sans","BatTu Sans Fallback",Arial,sans-serif;font-weight:400}h1,h2,h3,.serif{font-family:"BatTu Serif","BatTu Serif Fallback",serif}.brand-name{font-family:"BatTu Serif",serif}.hero h1{font-weight:700;font-size:54px;line-height:1.22;letter-spacing:-1.2px}.ornament-title{font-weight:700;font-size:32px}.paths h2{font-weight:700;font-size:26px}.primary,.audio-title,.bottom-link.cta,.path strong{font-family:"BatTu Serif",serif}.primary{font-weight:700;font-size:18px}.audio-title{font-size:19px}.path strong{font-weight:700;font-size:18px}.bottom-link.cta{font-size:16px}.brand-sub{letter-spacing:3px}
@media(max-width:700px){.hero h1{font-size:24px;line-height:1.25;letter-spacing:-.8px}.ornament-title{font-size:22px;gap:10px}.ornament-title:before,.ornament-title:after{width:23px}.paths h2{font-size:20px;letter-spacing:-.5px}.primary,.hero .primary{font-size:14px}.audio-title{font-size:13px}.path strong{font-size:14px;line-height:1.2}.path small{font-size:10px}.bottom-link.cta{font-size:14px}.brand-name{font-size:25px}.brand-sub{font-size:7px;letter-spacing:2.8px}}
@media(max-width:360px){.hero h1{font-size:24px}.ornament-title{font-size:20px}.paths h2{font-size:18px}}
.site-logo{display:block;width:56px;height:56px;object-fit:contain;flex-shrink:0}.brand{gap:14px}.brand-name{font-family:"BatTu Serif",serif;font-size:27px;letter-spacing:1px}.brand-sub{font-family:"BatTu Sans",sans-serif;font-size:9px;letter-spacing:2.7px}@media(max-width:700px){.site-logo{width:44px;height:44px}.brand{gap:9px}.brand-name{font-size:18px;letter-spacing:.3px}.brand-sub{font-size:7px;letter-spacing:1.9px;margin-top:5px}}@media(max-width:360px){.brand-name{font-size:16px}.site-logo{width:40px;height:40px}}

.packages-section h2{max-width:700px}.package-intro{max-width:740px;color:var(--muted);font-size:14px;line-height:1.8;margin-bottom:23px}.package-filters{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.package-filters button{background:transparent;color:var(--navy);border:1px solid #ABB4B8;border-radius:24px;min-height:44px;padding:9px 16px;font-size:12px}.package-filters button.selected{background:var(--navy);border-color:var(--navy);color:var(--ivory)}.package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.package-card{padding:24px;background:#FFFCF7;border:1px solid var(--line);border-radius:7px;min-width:0}.package-card[hidden]{display:none}.package-card-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:1px;color:#7C2D36;margin-bottom:17px}.package-badge{font-size:9px;letter-spacing:.6px;border:1px solid #7C2D36;padding:3px 7px;border-radius:3px}.package-badge.free{color:#255B49;border-color:#A2C3B0;background:#EEF5ED}.package-badge.paid{background:#F0E9DC;color:#66222A}.package-card h3{font-family:"BatTu Serif",serif;font-size:21px;line-height:1.45;font-weight:700;margin-bottom:12px}.package-card>p{font-size:13px;color:var(--muted);min-height:42px}.package-meta{font-size:12px;color:#66222A;margin-top:14px}.package-price{font-family:"BatTu Serif",serif;font-weight:700;font-size:26px;margin:17px 0}.package-price small{display:block;font-family:"BatTu Sans",sans-serif;font-weight:400;font-size:10px;color:var(--muted);margin-top:4px}.package-curriculum{border-top:1px solid var(--line);margin:14px 0 20px}.package-curriculum>summary{list-style:none;display:flex;justify-content:space-between;cursor:pointer;padding:13px 0;min-height:44px;font-size:12px;font-weight:700}.package-curriculum>summary::-webkit-details-marker{display:none}.curriculum-book{border-top:1px solid #E3DED3}.curriculum-book>summary{display:flex;align-items:start;gap:10px;cursor:pointer;padding:12px 0;list-style:none;font-size:12px;line-height:1.6}.curriculum-book summary::-webkit-details-marker{display:none}.volume-index{flex:0 0 28px;display:grid;place-items:center;height:31px;background:#EDE6D8;color:#66222A;font-size:11px}.curriculum-book small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.expand-icon{margin-left:auto}.lesson-list{padding:0 0 10px;margin:0;list-style:none}.lesson-list li{display:flex;gap:10px;line-height:1.7;font-size:11px;padding:8px 0;border-top:1px dotted #DFD7C8}.lesson-list li>span{flex:0 0 37px;color:#7C2D36}.price-table-wrap{overflow-x:auto;border:1px solid var(--line)}.price-table{border-collapse:collapse;width:100%;font-size:13px;background:#FFFCF7}.price-table th,.price-table td{padding:16px;text-align:left;border-bottom:1px solid var(--line)}.price-table thead{background:#EAE3D6}.price-table th:first-child{white-space:nowrap}.price-table td:last-child{white-space:nowrap;font-weight:700;color:var(--navy)}.pricing-note{padding:20px 0;font-size:13px}.pricing-note p{font-size:12px;color:var(--muted);margin-top:9px;line-height:1.8}
@media(max-width:700px){.package-grid{grid-template-columns:1fr;gap:14px}.package-card{padding:20px}.package-card h3{font-size:19px}.package-card>p{min-height:0}.package-price{font-size:24px}.package-filters{gap:6px;flex-wrap:nowrap}.package-filters button{font-size:10px;padding:9px 12px;white-space:nowrap}.package-intro{font-size:12px}.price-table{font-size:11px;min-width:570px}.price-table th,.price-table td{padding:12px}.lesson-list li{font-size:11px}}

.mobile-prices{display:none}
@media(max-width:700px){#plans{min-width:0}#plans>h2{font-size:26px;line-height:1.35;letter-spacing:-.7px;max-width:100%;margin-bottom:12px}#plans>.package-intro{font-size:12px;line-height:1.8;margin-bottom:20px}#plans .price-table-wrap{display:none}.mobile-prices{display:grid;gap:12px}.mobile-price-card{min-width:0;padding:18px;background:#FFFCF7;border:1px solid var(--line);border-radius:9px}.mobile-price-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.mobile-price-number{font-size:10px;letter-spacing:1.3px;color:#7C2D36;font-weight:700}.mobile-price-tag{font-size:10px;padding:3px 8px;border-radius:4px;background:#ECE6D9;color:#66222A}.is-free .mobile-price-tag{color:#2F604D;background:#EAF3EA}.mobile-price-card h3{font-family:"BatTu Serif",serif;font-weight:700;font-size:17px;line-height:1.5;letter-spacing:-.2px;overflow-wrap:anywhere}.mobile-price-volumes{font-size:11px;color:var(--muted);margin-top:9px}.mobile-price-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #E5DED1;margin-top:14px;padding-top:13px}.mobile-price-bottom strong{display:block;font-family:"BatTu Serif",serif;font-weight:700;font-size:23px;line-height:1.4;white-space:nowrap;color:var(--navy)}.mobile-price-bottom small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.mobile-price-bottom a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 13px;border:1px solid #C9C1B3;border-radius:5px;font-size:11px;white-space:nowrap}.mobile-price-bottom a:active{background:#EDE6D8}.pricing-note{margin-top:16px;padding:16px;background:#EBE5D9;border-radius:7px;font-size:12px;line-height:1.7}.pricing-note strong{display:block}.pricing-note p{font-size:11px;line-height:1.8}.is-free .mobile-price-bottom strong{font-size:21px}}

/* Mobile: lưới gói học 2 cột, thẻ gọn như app. */
@media(max-width:700px){
.package-grid,.mobile-prices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.package-card{padding:12px 10px;display:flex;flex-direction:column;min-width:0}
.package-card[hidden]{display:none}
.package-card-top{gap:5px;letter-spacing:.5px;font-size:9px;margin-bottom:10px;flex-wrap:wrap}
.package-badge{font-size:8px;padding:2px 5px;letter-spacing:0}
.package-card h3{font-size:14px;line-height:1.5;margin-bottom:9px;overflow-wrap:anywhere}
.package-card>p{font-size:11px;line-height:1.65;min-height:0}
.package-meta{font-size:10px;line-height:1.7;margin-top:10px}
.package-price{font-size:19px;line-height:1.4;margin:12px 0;white-space:nowrap;letter-spacing:-.5px}
.package-price small{font-size:9px;letter-spacing:0;line-height:1.5;white-space:normal}
.package-curriculum{margin:0 0 12px;border-top:1px solid var(--line)}
.package-curriculum>summary{font-size:10px;gap:5px;line-height:1.6;padding:10px 0;min-height:44px}
.package-action{margin-top:auto;padding:10px 6px;font-size:10px;min-height:44px;line-height:1.5}
.curriculum-book>summary{font-size:10px;gap:5px;padding:10px 0;line-height:1.6}
.volume-index{flex-basis:20px;height:25px;font-size:9px}
.curriculum-book small{font-size:9px;line-height:1.6}
.lesson-list li{font-size:10px;display:block;line-height:1.7;padding:8px 0}
.lesson-list li>span{display:block;font-size:9px}
.mobile-price-card{padding:12px 10px;display:flex;flex-direction:column;min-width:0}
.mobile-price-top{gap:4px;flex-wrap:wrap;margin-bottom:9px}
.mobile-price-number{font-size:9px;letter-spacing:.6px}
.mobile-price-tag{font-size:8px;padding:2px 5px}
.mobile-price-card h3{font-size:14px;line-height:1.5;letter-spacing:-.2px}
.mobile-price-volumes{font-size:10px;line-height:1.7;margin:9px 0 12px}
.mobile-price-bottom{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:auto;padding-top:11px}
.mobile-price-bottom strong,.is-free .mobile-price-bottom strong{font-size:19px;letter-spacing:-.5px;line-height:1.4;white-space:nowrap}
.mobile-price-bottom small{font-size:9px}
.mobile-price-bottom a{min-height:44px;width:100%;padding:9px 6px;font-size:11px;gap:7px;background:var(--navy);color:var(--ivory);border-color:var(--navy)}
}
@media(max-width:360px){.package-grid,.mobile-prices{gap:8px}.package-card,.mobile-price-card{padding:11px 9px}.package-card h3,.mobile-price-card h3{font-size:13px}.package-price,.mobile-price-bottom strong,.is-free .mobile-price-bottom strong{font-size:17px}}

.member-benefits h2{line-height:1.3}.benefits-intro{max-width:750px;font-size:14px;line-height:1.85;color:var(--muted);margin-bottom:28px}.benefits-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}.benefit-item{display:flex;align-items:start;gap:15px;padding:24px 0;border-top:1px solid var(--line);min-width:0}.benefit-number{font-family:"BatTu Serif",serif;font-size:23px;color:#8F3741;line-height:1.5}.benefit-item h3{font-family:"BatTu Serif",serif;font-size:19px;font-weight:700;line-height:1.5;margin-bottom:9px}.benefit-item p{font-size:13px;color:var(--muted);line-height:1.85}.case-library{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:30px;padding:30px;background:var(--navy);color:var(--ivory);border-radius:7px;margin-top:12px}.case-count{text-align:center;border-right:1px solid #FAF6EE4D;padding-right:25px}.case-count strong{display:block;font-family:"BatTu Serif",serif;font-weight:400;font-size:64px;line-height:1.2;color:#F4EAE6}.case-count span{font-size:9px;letter-spacing:1.5px}.case-copy h3{font-family:"BatTu Serif",serif;font-size:25px;line-height:1.5;font-weight:400;margin-bottom:12px}.case-copy p{font-size:13px;line-height:1.85;color:#D9E2EA}.case-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:17px}.case-tags span{font-size:10px;border:1px solid #7C2D3666;border-radius:3px;padding:4px 8px;color:#FAF6EE}.benefits-footnote{font-size:11px;line-height:1.85;color:#7D776D;margin-top:16px}.package-benefit-strip{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#EDE6D8;border-radius:5px;font-size:12px;margin:18px 0}.package-benefit-strip svg{flex-shrink:0}.package-benefit-strip a{font-size:11px;font-weight:700;white-space:nowrap;margin-left:auto}
@media(max-width:700px){.member-benefits h2{font-size:28px}.benefits-intro{font-size:12px;margin-bottom:20px}.benefits-grid{gap:0 14px}.benefit-item{display:block;padding:16px 0}.benefit-number{font-size:19px;display:block;margin-bottom:7px}.benefit-item h3{font-size:15px;line-height:1.6;margin-bottom:8px}.benefit-item p{font-size:11px;line-height:1.85}.case-library{grid-template-columns:1fr;gap:17px;padding:21px 17px;margin-top:6px}.case-count{display:flex;align-items:center;gap:15px;text-align:left;border-right:0;border-bottom:1px solid #7C2D3666;padding:0 0 15px}.case-count strong{font-size:49px}.case-count span{font-size:9px;letter-spacing:1.2px}.case-copy h3{font-size:21px;line-height:1.5}.case-copy p{font-size:12px}.case-tags{gap:5px}.case-tags span{font-size:9px;padding:4px 6px}.benefits-footnote{font-size:10px}.package-benefit-strip{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;font-size:11px;line-height:1.7;padding:13px}.package-benefit-strip a{grid-column:2;margin:0;justify-self:start;font-size:10px;min-height:32px;display:flex;align-items:center}}

.package-preview-title{font-family:"BatTu Serif",serif;font-size:24px;font-weight:700;line-height:1.5}.package-preview-intro{font-size:13px;color:var(--muted);line-height:1.8;margin-top:12px}.package-preview-price{font-size:13px;font-weight:700;margin:17px 0}.package-audio-preview{padding:17px;background:#EDE7DB;border:1px solid var(--line);border-radius:6px;margin:18px 0 24px}.package-preview-label{font-size:9px;letter-spacing:1.4px;color:#7C2D36;font-weight:700;margin-bottom:8px}.package-audio-preview>p{font-size:13px;line-height:1.7}.package-preview-play{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin-top:13px;padding:10px 12px;background:#DCD6C9;color:#8A7A60;border:1px solid #D0C5B0;border-radius:4px;font-size:12px;cursor:not-allowed}.package-audio-preview small{display:block;font-size:10px;color:#817967;line-height:1.7;margin-top:9px}.package-audio-preview audio{display:block;width:100%;margin-top:13px}.package-preview-toc-title{font-family:"BatTu Serif",serif;font-size:19px;line-height:1.5;margin:0 0 14px}.package-preview-toc .curriculum-book>summary{font-size:13px;gap:11px;padding:14px 0;min-height:48px}.package-preview-toc .curriculum-book small{font-size:10px}.package-preview-toc .volume-index{flex:0 0 30px;height:32px;font-size:11px}.package-preview-toc .lesson-list li{font-size:12px;line-height:1.85;padding:10px 0;display:flex;gap:10px}.package-preview-toc .lesson-list li>span{display:block;flex:0 0 36px;font-size:10px}.package-preview-toc .curriculum-book[open] .expand-icon{font-size:0}.package-preview-toc .curriculum-book[open] .expand-icon:after{content:'−';font-size:15px}
@media(max-width:700px){.package-preview-title{font-size:21px}.package-preview-intro{font-size:12px}.package-preview-toc .curriculum-book>summary{font-size:12px}.package-preview-toc .lesson-list li{font-size:11px}.package-preview-toc .lesson-list li>span{font-size:10px}.package-audio-preview{padding:14px}.package-preview-toc-title{font-size:18px}}

body.page-checkout{padding-bottom:95px}.checkout-header{background:var(--navy);color:var(--ivory)}.checkout-header .header{height:86px}.checkout-back{font-size:12px;color:#E3DBCD}.checkout-main{padding-top:32px}.checkout-breadcrumb{font-size:11px;color:#7C2D36;letter-spacing:1px;margin-bottom:15px}.checkout-title{font-family:"BatTu Serif",serif;font-size:36px;line-height:1.3;margin-bottom:10px}.checkout-lead{color:var(--muted);font-size:13px;max-width:650px;line-height:1.8}.checkout-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);gap:28px;align-items:start;margin-top:28px}.checkout-left{display:grid;gap:20px}.checkout-panel{background:#FFFCF7;border:1px solid var(--line);border-radius:8px;padding:25px;min-width:0}.checkout-panel h2{font-size:21px;line-height:1.5;margin-bottom:20px}.step-number{display:inline-grid;place-items:center;width:27px;height:27px;background:#EEE6D7;color:#7C2D36;font-family:"BatTu Sans",sans-serif;font-size:11px;margin-right:9px;border-radius:50%;vertical-align:middle}.checkout-label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.checkout-select,.checkout-input{width:100%;padding:13px 12px;border:1px solid #C7C6BD;border-radius:5px;background:#FFFEFA;color:var(--ink);font:13px "BatTu Sans",sans-serif;min-height:46px}.checkout-select{line-height:1.6}.checkout-meta{color:#7C2D36;font-size:11px;line-height:1.8;margin:12px 0 18px}.checkout-toc>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;border-top:1px solid var(--line);padding:14px 0;list-style:none}.checkout-toc>summary::-webkit-details-marker{display:none}.checkout-toc-body{margin-top:7px}.checkout-toc-body .curriculum-book>summary{font-size:12px;padding:12px 0}.checkout-toc-body .lesson-list li{font-size:11px}.checkout-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field-full{grid-column:1/-1}.field-help{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.7}.payment-option{border:1px solid #D7C9B0;border-radius:6px;padding:15px;display:flex;gap:11px;align-items:start;background:#F5EFE3}.payment-option input{margin-top:5px;accent-color:var(--navy)}.payment-option strong{font-size:13px}.payment-option small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.7}.payment-placeholder{border:1px dashed #C7BBA6;padding:17px;margin-top:14px;border-radius:5px;font-size:12px;line-height:1.9;color:#7E725E}.checkout-summary{position:sticky;top:22px}.order-kicker{font-size:10px;letter-spacing:1.5px;color:#7C2D36;margin-bottom:10px}.order-name{font-family:"BatTu Serif",serif;font-size:22px;line-height:1.5;margin-bottom:8px}.order-line{display:flex;justify-content:space-between;gap:14px;font-size:12px;margin-top:17px}.order-total{border-top:1px solid var(--line);margin-top:20px;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.order-total strong{font-family:"BatTu Serif",serif;font-size:27px;white-space:nowrap}.price-hint{font-size:10px;color:#7C2D36;text-align:right;margin-top:5px}.checkout-benefits{list-style:none;padding:15px 0 0;margin:20px 0 0;border-top:1px solid var(--line);font-size:11px;line-height:1.85}.checkout-benefits li{position:relative;padding-left:18px;margin-bottom:7px}.checkout-benefits li:before{content:'✓';position:absolute;left:0;color:#7C2D36}.checkout-note{font-size:10px;color:#7D7466;line-height:1.8;margin-top:14px}.checkout-submit{margin-top:20px;min-height:48px}.checkout-sticky{display:none}.checkout-feedback{display:none;padding:18px;border:1px solid #B3C1AC;background:#EDF3E9;font-size:12px;line-height:1.8;margin-top:18px;border-radius:5px}.checkout-footer{font-size:11px;color:var(--muted);margin:30px 0 10px}.demo-price-alert{display:inline-block;font-size:10px;color:#7C2D36;padding:4px 8px;background:#EDE5D5;border-radius:4px;margin-top:12px}
@media(max-width:700px){.checkout-header .header{height:76px}.checkout-back{font-size:10px;max-width:65px;text-align:right;line-height:1.5}.checkout-main{padding-top:23px}.checkout-title{font-size:28px}.checkout-lead{font-size:12px}.checkout-grid{grid-template-columns:1fr;gap:16px;margin-top:21px}.checkout-left{gap:15px}.checkout-panel{padding:18px 15px}.checkout-panel h2{font-size:18px;margin-bottom:16px}.checkout-fields{grid-template-columns:1fr;gap:14px}.checkout-select{font-size:12px}.checkout-summary{position:static}.order-name{font-size:20px}.checkout-summary .checkout-submit{display:none}.checkout-sticky{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;align-items:center;gap:16px;padding:12px 18px max(12px,env(safe-area-inset-bottom));background:var(--ivory);border-top:1px solid var(--line)}.checkout-sticky>div{flex:1}.checkout-sticky small{display:block;font-size:10px;color:var(--muted)}.checkout-sticky strong{display:block;font-family:"BatTu Serif",serif;font-size:22px;white-space:nowrap}.checkout-sticky button{width:auto;min-height:46px;padding:12px 17px;font-size:11px}.checkout-toc-body .curriculum-book>summary{font-size:12px}.checkout-toc-body .lesson-list li{font-size:11px;display:flex}.checkout-breadcrumb{font-size:9px}.checkout-benefits{font-size:11px}.checkout-footer{font-size:10px}}

[hidden]{display:none!important}.account-main{max-width:650px;width:calc(100% - 36px);margin:32px auto 0}.account-progress{display:flex;align-items:center;justify-content:center;gap:12px;font-size:10px;color:#8D8D86;margin:0 0 24px}.account-progress span.current{color:var(--navy);font-weight:700}.account-progress i{height:1px;flex:1;max-width:35px;background:var(--line)}.account-card{padding:35px;background:#FFFCF7;border:1px solid var(--line);border-radius:10px}.account-kicker{font-size:10px;letter-spacing:1.8px;color:#7C2D36;margin-bottom:15px}.account-card h1{font-family:"BatTu Serif",serif;font-weight:700;font-size:32px;line-height:1.45;letter-spacing:-.5px}.account-description{font-size:13px;line-height:1.9;color:var(--muted);margin:16px 0 25px}.google-login{display:flex;align-items:center;justify-content:center;gap:12px;background:#FFF;border:1px solid #BEC4CA;width:100%;min-height:52px;border-radius:6px;color:var(--ink);font-size:14px;font-weight:700}.google-login svg{width:23px;height:23px}.account-reassurance{font-size:11px;color:var(--muted);line-height:1.8;margin-top:13px;text-align:center}.demo-callout{padding:15px;background:#EEE8DB;border-radius:5px;margin-top:27px;font-size:11px;line-height:1.8;color:#7A6E58}.demo-callout strong{color:var(--navy)}.demo-existing{margin-top:20px;font-size:11px;color:var(--muted)}.demo-existing summary{cursor:pointer;min-height:40px}.demo-existing p{margin:10px 0}.text-button{display:block;color:var(--navy);background:transparent;padding:12px 0;min-height:44px;font-size:12px;text-decoration:underline;text-underline-offset:4px}.signed-in{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:24px}.avatar{width:35px;height:35px;display:grid;place-items:center;background:#FAF6EE;color:var(--navy);border-radius:50%;font-size:16px}.signed-in strong{font-size:11px;display:block}.signed-in small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.signed-in button{margin-left:auto;background:transparent;font-size:10px;color:var(--navy);min-height:44px}.profile-block{border-top:1px solid var(--line);padding-top:21px;margin-top:22px}.profile-block h2{font-family:"BatTu Serif",serif;font-size:20px;margin-bottom:18px}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px}.profile-fields .wide{grid-column:1/-1}.account-card label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}.account-card label>span{color:#9D4738}.account-card input,.account-card select{display:block;width:100%;min-width:0;max-width:100%;min-height:48px;padding:11px 12px;background:#FFFDF9;border:1px solid #C5C8C3;border-radius:5px;color:var(--ink);font-family:"BatTu Sans",Arial,sans-serif;font-size:14px}.account-card input:focus,.account-card select:focus{outline:2px solid var(--gold);outline-offset:1px}.conditional-fields{margin-top:18px}.profile-privacy{font-size:11px;line-height:1.85;color:var(--muted);margin:25px 0 18px}.required-note{display:block;font-size:10px;color:#847D70;line-height:1.9;margin-top:15px}.profile-error{margin-top:20px;padding:13px;background:#F8E9E4;border:1px solid #C9A69C;color:#8E3C2B;font-size:12px;line-height:1.8;border-radius:4px}.continue-link{display:flex;align-items:center;justify-content:center;text-decoration:none;min-height:48px}.success-mark{display:grid;place-items:center;width:49px;height:49px;border:1px solid var(--gold);background:#ECE5D7;color:var(--navy);border-radius:50%;font-size:25px;margin-bottom:22px}.profile-summary{padding:18px;background:#EEE8DD;font-size:12px;line-height:1.8;border-radius:5px;margin:20px 0}.profile-summary p{font-size:11px;color:var(--muted);margin-top:6px}.account-footer{text-align:center;font-size:10px;color:var(--muted);padding:25px 0 10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){body.page-account{padding-bottom:20px}.account-main{margin-top:22px}.account-card{padding:25px 19px;border-radius:9px}.account-card h1{font-size:26px}.account-description{font-size:12px;margin:14px 0 22px}.account-progress{font-size:9px;gap:8px;margin-bottom:19px}.account-progress i{max-width:22px}.profile-fields{gap:15px 12px}.account-card input,.account-card select{font-size:16px;min-height:48px}.profile-block h2{font-size:18px}.signed-in{gap:8px}.signed-in small{font-size:8px}.signed-in button{font-size:9px}.google-login{font-size:13px}.account-reassurance{font-size:10px}.demo-callout{font-size:10px}.profile-privacy{font-size:10px}.account-kicker{font-size:9px}.account-card label{font-size:11px}}

/* ==========================================================================
   BỔ SUNG CHUẨN GIAO DIỆN DEV KIT v2.0 (E2E CTA, AUDIO 1.25x, COMBO & PAYOS)
   ========================================================================== */
.navy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
}
.navy-button:hover {
  background: #06427c;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 5px;
  border: 1px solid #9aa8b6;
  background: #fffdf8;
  color: var(--navy);
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
  text-decoration: none;
}
.secondary-button:hover {
  background: #ede6d8;
  border-color: var(--navy);
}
.dialog-cta-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.package-card-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}
.package-badge.combo {
  background: #03315E;
  border-color: #7C2D36;
  color: #F5F1E9;
}
.package-policy-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "BatTu Sans", Arial, sans-serif;
  font-size: 10.5px;
  background: #efe9dc;
  color: #66222A;
}
.audio-speed-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.audio-speed-label {
  font-size: 11px;
  font-weight: 700;
  color: #69604f;
  margin-right: 2px;
}
.audio-speed-pill {
  border: 1px solid #c9bfae;
  background: #fffdf9;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  min-height: 28px;
}
.audio-speed-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}
.payment-options-stack {
  display: grid;
  gap: 12px;
}
.payment-option {
  cursor: pointer;
}
.payment-option.is-selected {
  border-color: var(--navy);
  background: #eef2f6;
}
.checkout-feedback-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bank-details {
  margin-top: 14px;
  border: 1px dashed #7C2D36;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
}
.bank-demo-flag {
  font-size: 12px;
  color: #90601e;
  margin: 0 0 10px;
}
.bank-details dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.bank-details dl > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}
.bank-details dt {
  color: var(--muted);
}
.bank-details dd {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: break-word;
}


/* === STUDENT 5-TAB DASHBOARD === */
body.page-dashboard {
  background: var(--ivory);
  padding-bottom: 108px;
}
.app-topbar {
  background: var(--navy);
  color: var(--ivory);
  border-bottom: 1px solid #FAF6EE38;
  position: sticky;
  top: 0;
  z-index: 40;
}
.app-topbar-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.app-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #e6dfd2;
}
.app-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FAF6EE;
  color: var(--navy);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.app-shell-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 28px;
  padding-top: 26px;
  align-items: start;
  min-width: 0;
}
#appMainRegion {
  min-width: 0;
  max-width: 100%;
}
.app-sidebar {
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  position: sticky;
  top: 96px;
}
.app-sidebar-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7C2D36;
  font-weight: 700;
  margin-bottom: 10px;
}
.app-nav-list {
  display: grid;
  gap: 6px;
}
.app-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}
.app-nav-btn:hover {
  background: #efe9dc;
}
.app-nav-btn.is-active {
  background: var(--navy);
  color: var(--ivory);
}
.app-nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ede5d5;
  color: #66222A;
}
.app-nav-btn.is-active .app-nav-badge {
  background: #FAF6EE33;
  color: #FAF6EE;
}
.app-panel {
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.app-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.app-panel h1 {
  font-size: 28px;
  line-height: 1.3;
}
.app-panel h2 {
  font-size: 21px;
  line-height: 1.4;
}
.resume-banner {
  background: var(--navy);
  color: var(--ivory);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.resume-kicker {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #F4EAE6;
  margin-bottom: 6px;
}
.resume-banner h2 {
  font-size: 23px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.resume-banner p {
  font-size: 12.5px;
  color: #d6dfe8;
}
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
}
.stat-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.stat-card strong {
  display: block;
  font-family: "BatTu Serif", serif;
  font-size: 25px;
  color: var(--navy);
  margin-top: 4px;
}
.device-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.device-card {
  border: 1px solid var(--line);
  background: #faf6ee;
  border-radius: 7px;
  padding: 16px;
}
.device-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #7c6746;
}
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
}
.status-pill.active {
  background: #e5f3ea;
  color: #216343;
}
.status-pill.standby {
  background: #ece7dc;
  color: #695e4a;
}
.status-pill.pending {
  background: #fdf0d8;
  color: #8f5c14;
}
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: #fffcf7;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  background: #ece5d7;
  font-weight: 700;
  color: var(--navy);
}
.account-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.account-subtabs button,
.account-subtabs a {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffcf7;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.account-subtabs button.is-active,
.account-subtabs a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}
.app-bottom-tabs {
  display: none;
}
.app-topbar .brand-name { font-size: 20px; }
@media (max-width: 860px) {
  .app-shell-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 18px;
    min-width: 0;
  }
  .app-sidebar {
    display: none;
  }
  .app-user-chip > div { display: none; }
  .app-topbar-inner { height: 64px; }
  .app-topbar .brand-name { font-size: 16px; letter-spacing: 0.4px; }
  .app-topbar .brand-sub { font-size: 7px; letter-spacing: 1.6px; }
  .quick-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .device-slots-grid {
    grid-template-columns: 1fr;
  }
  .app-panel {
    padding: 18px 15px;
  }
  .resume-banner {
    padding: 18px 16px;
  }
  .app-bottom-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    background: #fffcf7;
    border-top: 1px solid #cfc7b9;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
  }
  .app-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    background: transparent;
    color: #5b6775;
    font-size: 9px;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 1px;
  }
  .app-tab-item svg {
    width: 20px;
    height: 20px;
  }
  .app-tab-item.is-active {
    color: var(--navy);
    background: #ede6d8;
  }
}
.hanh-moc { color: #277345; }
.hanh-hoa { color: #b13932; }
.hanh-tho { color: #90601e; }
.hanh-kim { color: #666c78; }
.hanh-thuy { color: #28649b; }
.data-table tr.is-active-term td {
  background: #ece5d7;
  font-weight: 700;
}
.tietkhi-yearbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 18px;
}
.tietkhi-yearbar label {
  font-size: 13px;
}
.tietkhi-yearbar input {
  display: block;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 120px;
}
.lib-lead {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 18px;
  max-width: 720px;
}
.lib-search {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lib-search label {
  flex: 1 1 220px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.lib-search input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
.lib-hits {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.lib-hits p { margin: 0 0 8px; font-size: 14px; }
.lib-hits p:last-child { margin: 0; }
.library-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.library-topic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 16px 14px;
}
.library-topic-card.is-locked { background: #f7f3ea; }
.lib-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.lib-index {
  font-family: "BatTu Serif", serif;
  font-size: 22px;
  color: #8F3741;
  line-height: 1;
}
.library-topic-card h2 {
  font-family: "BatTu Serif", serif;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.lib-count {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
  flex: 1;
}
.lib-count strong {
  font-family: "BatTu Serif", serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}
.library-topic-card.is-locked .lib-count strong { color: #8a7a62; }
.lib-card-action { align-self: flex-start; }
.lib-list { display: grid; gap: 10px; }
.lib-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lib-code {
  font-family: "BatTu Serif", serif;
  font-size: 15px;
  color: var(--navy);
}
.lib-row h3 { font-size: 15px; margin: 0 0 4px; }
.lib-row p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.lib-empty {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}
.lib-empty strong { display: block; color: var(--navy); margin-bottom: 6px; }
.lib-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lib-timeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.lib-year { font-weight: 700; color: var(--navy); }
.lib-question {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f7f4ec;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.lib-question-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 6px;
}
.lib-question p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #2f312a;
}
.lib-reveal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lib-reveal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lib-reveal h2 { color: var(--navy); font-size: 18px; margin: 0; }
.lib-reveal-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.lib-reveal-body {
  padding: 16px 18px;
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #2f312a;
  font-size: 15px;
  line-height: 1.8;
}
.lib-reveal-body p { margin: 0 0 12px; color: #2f312a; }
.lib-reveal-body p:last-child { margin-bottom: 0; }
.lib-reveal-body .lib-thesis {
  color: var(--navy);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .library-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }
  .library-topic-card {
    padding: 12px 10px;
    height: 100%;
    box-sizing: border-box;
  }
  .lib-card-top {
    gap: 4px;
    margin-bottom: 6px;
  }
  .lib-index {
    font-size: 16px;
  }
  .library-topic-card .status-pill {
    font-size: 9.5px;
    padding: 2px 6px;
    white-space: nowrap;
  }
  .library-topic-card h2 {
    font-size: 14.5px;
    line-height: 1.35;
    margin: 0 0 6px;
  }
  .lib-count {
    font-size: 11.5px;
    line-height: 1.5;
    margin: 0 0 10px;
  }
  .lib-count strong {
    font-size: 22px;
    margin-bottom: 2px;
  }
  .lib-card-action {
    width: 100%;
    align-self: stretch;
    min-height: 38px;
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }
  .lib-row { grid-template-columns: 1fr; }
  .app-topbar-right .app-user-chip { display: none; }
}
.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.app-logout-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}


/* Course progress on /app and /app/giao-trinh */
.course-progress-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f7f4ec;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.course-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #35362e;
  margin-bottom: 6px;
}
.course-progress-track {
  height: 6px;
  background: #e5dfd2;
  border-radius: 999px;
  overflow: hidden;
}
.course-progress-track span {
  display: block;
  height: 100%;
  background: var(--navy);
  border-radius: 999px;
}
.course-progress-now {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.course-progress-now strong {
  color: var(--navy);
}
.course-book-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.course-book-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11.5px;
  color: #35362e;
  text-decoration: none;
}
.course-book-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.course-book-chip small {
  color: var(--muted);
  font-weight: 700;
}
.course-book-chip.is-done {
  border-color: #b7d7c3;
  background: #f2faf5;
  color: #277345;
}
.course-book-chip.is-done small {
  color: #277345;
}


/* Balanced equal-height cards for /app/giao-trinh & /app */
.my-courses-grid {
  align-items: stretch;
  gap: 18px;
}
.my-course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}
.my-course-card .package-card-top {
  margin-bottom: 12px;
}
.my-course-body {
  flex: 1 1 auto;
}
.my-course-card h3 {
  font-size: 19px;
  line-height: 1.38;
  margin: 0 0 8px;
}
.my-course-blurb {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.my-course-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.my-course-footer .course-progress-box {
  margin-top: 0;
}
.my-course-footer .course-progress-now {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-course-price-box,
.my-course-meta-box {
  padding: 10px 12px;
  background: #f7f4ec;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.my-course-price {
  font-family: "BatTu Serif", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
.my-course-price-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.my-course-cta {
  width: 100%;
  margin: 0 !important;
  text-align: center;
}
.course-books-toggle {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.course-books-toggle summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}
.course-books-toggle summary::-webkit-details-marker {
  display: none;
}
.course-books-toggle .course-book-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}
.course-book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  color: #35362e;
  text-decoration: none;
}
.course-book-row span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.course-book-row small {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--muted);
}
.course-book-row:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.course-book-row.is-done {
  border-color: #b7d7c3;
  background: #f2faf5;
  color: #277345;
}
.course-book-row.is-done small {
  color: #277345;
}


/* Mobile /app & /app/giao-trinh: 1-column airy cards (does not affect Landing 2-col AC16) */
@media (max-width: 700px) {
  .my-courses-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .my-course-card {
    padding: 16px;
  }
  .my-course-card h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .my-course-blurb {
    font-size: 13px;
    line-height: 1.6;
  }
  .my-course-price {
    font-size: 21px;
  }
  .my-course-cta {
    min-height: 44px;
    font-size: 13.5px;
    padding: 10px 14px;
  }
  body.page-dashboard .package-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 14px 0 16px;
  }
  body.page-dashboard .app-panel {
    background: transparent;
    border: 0;
    padding: 0;
  }
  body.page-dashboard .app-panel h1 {
    font-size: 23px;
  }
}


/* Balanced solar terms page (/app/tiet-khi) for PC & Mobile */
.tietkhi-intro {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.75;
}
.tietkhi-yearbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tietkhi-yearbar .secondary-button,
.tietkhi-yearbar .navy-button {
  width: auto;
  min-height: 42px;
  padding: 8px 14px;
}
.tietkhi-year-field {
  margin: 0;
}
.tietkhi-year-field input {
  width: 108px;
  min-height: 42px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}
.tietkhi-mb-cards {
  display: none;
}
@media (max-width: 700px) {
  .tietkhi-yearbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }
  .tietkhi-year-field {
    grid-column: 1;
    grid-row: 1;
  }
  .tietkhi-year-field input {
    width: 100%;
    box-sizing: border-box;
  }
  .tietkhi-submit {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
  }
  .tietkhi-nav-prev {
    grid-column: 1;
    grid-row: 2;
    width: 100% !important;
  }
  .tietkhi-nav-next {
    grid-column: 2;
    grid-row: 2;
    width: 100% !important;
  }
  .tietkhi-pc-table {
    display: none;
  }
  .tietkhi-mb-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tietkhi-card {
    background: #fffcf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
  }
  .tietkhi-card.is-active-term {
    background: #f5efe2;
    border-color: var(--navy);
  }
  .tietkhi-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--navy);
  }
  .tietkhi-card-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: baseline;
    padding: 4px 0;
    font-size: 13px;
  }
  .tietkhi-card-row time {
    grid-column: 2;
    font-size: 12px;
    color: var(--muted);
  }
  .tietkhi-tag {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
  }
  .tietkhi-tag.is-jie {
    color: var(--navy);
  }
}


/* Balanced account page (/app/ca-nhan) for PC & Mobile */
.acc-page-head {
  margin-bottom: 16px;
}
.acc-sub-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}
.device-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fffcf7;
}
.device-card-title {
  display: block;
  font-size: 15px;
  color: var(--navy);
}
.device-card-ua {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 6px 0 12px;
  overflow-wrap: anywhere;
}
.acc-ticket-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.acc-ticket-btn {
  width: auto;
  flex-shrink: 0;
}
.acc-mb-cards {
  display: none;
}
.acc-profile-card {
  background: #fffcf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}
.acc-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.acc-profile-row span {
  color: var(--muted);
}
.acc-profile-row strong {
  color: var(--navy);
  overflow-wrap: anywhere;
  text-align: right;
}
.acc-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .acc-head-logout {
    display: none;
  }
  .account-subtabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }
  .account-subtabs button {
    width: 100%;
    padding: 8px 10px;
    font-size: 12.5px;
    border-radius: 8px;
    text-align: center;
  }
  .acc-pc-table {
    display: none;
  }
  .acc-mb-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .acc-item-card {
    background: #fffcf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .acc-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13.5px;
  }
  .acc-item-title {
    font-size: 13px;
    color: #35362e;
    line-height: 1.5;
  }
  .acc-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .acc-item-meta strong {
    color: var(--navy);
    font-size: 14px;
  }
  .acc-ticket-btn {
    width: 100%;
  }
  .acc-profile-card {
    max-width: 100%;
  }
}

/* === NGŨ HÀNH ORBITAL WIDGET (LANDING SAMPLE — BORDERLESS EDITORIAL) === */
#sample .sample-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.lesson {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lesson h3 {
  font-family: "BatTu Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #7C2D36;
  margin: 0 0 6px;
  padding: 0;
}
.lesson h3::after {
  display: none;
}
.nguhanh-orbit {
  --r: 120px;
  position: relative;
  width: 316px;
  height: 316px;
  margin: 8px auto 18px;
  display: grid;
  place-items: center;
  user-select: none;
}
.orbit-ring-deco {
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(124, 45, 54, 0.58);
  background: transparent;
  pointer-events: none;
}
.orbit-ring-deco::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(3, 49, 94, 0.1);
}
.orbit-ring-deco::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  border: 1px solid rgba(124, 45, 54, 0.28);
}
.orbit-center {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #0D4B86 0%, #03315E 72%, #021E3A 100%);
  border: 1.5px solid var(--gold);
  box-shadow:
    inset 0 0 0 5px rgba(3, 49, 94, 0.65),
    inset 0 0 0 6px rgba(244, 234, 230, 0.45),
    0 14px 30px rgba(3, 49, 94, 0.22);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  pointer-events: none;
}
.orbit-center small {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #F4EAE6;
  line-height: 1.1;
}
.orbit-center strong {
  font-family: "BatTu Serif", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 3px;
  color: #FFFFFF;
}
.orbit-center span {
  font-size: 10.5px;
  color: #D2E0EE;
  line-height: 1.2;
  margin-top: 3px;
  letter-spacing: 0.4px;
}
.orbit-track.element-buttons {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  animation: nguhanh-spin 32s linear infinite;
}
.orbit-arm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
}
.orbit-upright {
  position: relative;
  width: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: nguhanh-counter 32s linear infinite;
}
.orbit-track.element-buttons .orbit-node {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--el);
  background: var(--ivory);
  color: var(--el);
  font-family: "BatTu Serif", serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(3, 49, 94, 0.1);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}
.orbit-track.element-buttons .orbit-node:hover {
  background: var(--el-bg);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(3, 49, 94, 0.16);
}
.orbit-track.element-buttons .orbit-node[aria-pressed="true"] {
  background: var(--el);
  color: #FFFFFF;
  border-color: var(--el);
  outline: none;
  transform: scale(1.14);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5.5px var(--gold), 0 10px 22px rgba(3, 49, 94, 0.22);
}
.nguhanh-orbit:hover .orbit-track,
.nguhanh-orbit:hover .orbit-upright,
.nguhanh-orbit:focus-within .orbit-track,
.nguhanh-orbit:focus-within .orbit-upright {
  animation-play-state: paused;
}
.lesson .element-feedback {
  width: 100%;
  max-width: 440px;
  min-height: 48px;
  font-size: 14.5px;
  line-height: 1.7;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(124, 45, 54, 0.35);
  border-radius: 0;
  padding: 14px 8px 0;
  margin: 0 auto 22px;
  color: var(--ink);
  text-align: center;
}
.lesson .dialog-cta-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}
.lesson .navy-button {
  width: auto;
  flex: 1 1 220px;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 6px 18px rgba(3, 49, 94, 0.18);
}
.lesson .secondary-button {
  width: auto;
  flex: 0 1 auto;
  border-radius: 999px;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid rgba(3, 49, 94, 0.28);
  color: var(--navy);
}
.lesson .secondary-button:hover {
  background: rgba(3, 49, 94, 0.05);
  border-color: var(--navy);
}
@keyframes nguhanh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes nguhanh-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@media (max-width: 700px) {
  #sample .sample-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lesson {
    padding: 4px 0 0;
  }
  .nguhanh-orbit {
    --r: 96px;
    width: 264px;
    height: 264px;
    margin: 6px auto 14px;
  }
  .orbit-center {
    width: 92px;
    height: 92px;
  }
  .orbit-center strong { font-size: 20px; }
  .orbit-center span { font-size: 9.5px; }
  .orbit-track.element-buttons .orbit-node {
    width: 50px;
    height: 50px;
    font-size: 12.5px;
  }
  .lesson .element-feedback {
    font-size: 13px;
    padding: 12px 4px 0;
    margin-bottom: 16px;
  }
  .lesson .dialog-cta-stack {
    flex-direction: column;
    gap: 10px;
  }
  .lesson .navy-button,
  .lesson .secondary-button {
    width: 100%;
    flex: none;
  }
}

/* === LANDING #packages — GỌN GÀNG 3 CỘT TRÊN PC (GIỮ MOBILE 2 CỘT AC16) === */
@media (min-width: 960px) {
  #packages .package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }
  #packages .package-card {
    padding: 18px 18px 16px;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  #packages .package-card:hover {
    border-color: rgba(124, 45, 54, 0.65);
    box-shadow: 0 8px 22px rgba(3, 49, 94, 0.06);
  }
  #packages .package-card-top {
    margin-bottom: 10px;
    font-size: 10.5px;
  }
  #packages .package-card h3 {
    font-size: 17.5px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  #packages .package-card > p {
    font-size: 12.5px;
    line-height: 1.55;
    min-height: 0;
  }
  #packages .package-meta {
    font-size: 11.5px;
    margin-top: 10px;
  }
  #packages .package-price {
    font-size: 21px;
    margin: 12px 0 10px;
  }
  #packages .package-curriculum {
    margin: 8px 0 14px;
  }
  #packages .package-curriculum > summary {
    padding: 9px 0;
    min-height: 36px;
    font-size: 11.5px;
  }
  #packages .package-action {
    margin-top: auto;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 12.5px;
  }
}

/* === LANDING PORTAL ENTRY PILLS (WHEN LOGGED IN) === */
.nav-portal-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #FAF6EE;
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}
.nav-portal-pill:hover {
  background: #FFFFFF;
}
.header-mobile-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-portal-pill {
  display: none;
}
@media (max-width: 700px) {
  .mobile-portal-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: #FAF6EE;
    color: var(--navy);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
  }
}

/* === KHỐI YOUTUBE (thumbnail tĩnh, mở tab mới — không nhúng iframe để giữ tốc độ) === */
.yt-card{display:grid;grid-template-columns:300px 1fr;gap:28px;align-items:center;background:#FFFCF7;border:1px solid var(--line);border-radius:9px;padding:18px;color:var(--ink);transition:border-color .2s,box-shadow .2s}
.yt-card:hover{border-color:rgba(124,45,54,.6);box-shadow:0 8px 22px rgba(3,49,94,.06)}
.yt-thumb{position:relative;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--navy) url("/design/img/og-cover.jpg") center/cover;display:grid;place-items:center}
.yt-thumb:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,49,94,.15),rgba(3,49,94,.55))}
.yt-play{position:relative;z-index:1;width:58px;height:40px;border-radius:10px;background:#C4302B;color:#fff;display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.25);transition:transform .2s}
.yt-card:hover .yt-play{transform:scale(1.08)}
.yt-thumb-label{position:absolute;z-index:1;left:12px;bottom:10px;font-size:9px;letter-spacing:1.6px;color:#F5F1E9;font-weight:700}
.yt-copy{display:flex;flex-direction:column;min-width:0}
.yt-copy .section-label{margin-bottom:8px}
.yt-title{font-family:"BatTu Serif","BatTu Serif Fallback",serif;font-size:24px;font-weight:700;line-height:1.35;color:var(--navy)}
.yt-desc{font-size:13px;color:var(--muted);line-height:1.75;margin-top:8px;max-width:460px}
.yt-cta{margin-top:14px;font-size:13px;font-weight:700;color:#7C2D36}
.footer-yt{color:#7C2D36;font-weight:700}
@media(max-width:700px){.yt-card{grid-template-columns:1fr;gap:14px;padding:12px}.yt-title{font-size:19px}.yt-desc{font-size:12px}.yt-cta{font-size:12px}}
