/* home.css — Trang chính (bảng điều khiển) và trang chủ TOEFL/Aptis/VSTEP
   (tách từ index.html; thứ tự nạp các file CSS phải giữ như trong index.html) */
/* ================= Trang chính (bảng điều khiển) — cùng phong cách trang giới thiệu, 26/9/2026 ================= */
#home{padding:0;background:#f4f6fb}
.hm-root{background:#f4f6fb;font-family:Montserrat,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;color:#0f1b2d;--navy:#0f1b2d}
.hm-xroot{min-height:100%}
.hm-root .hm-in,.hm-root .hm-wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.hm-top{position:sticky;top:0;z-index:30;background:rgba(10,20,40,.92);backdrop-filter:saturate(160%) blur(12px);-webkit-backdrop-filter:saturate(160%) blur(12px);border-bottom:1px solid rgba(255,255,255,.08)}
.hm-top .hm-in{display:flex;align-items:center;gap:16px;height:60px}
.hm-brand{display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;color:#fff;font:800 16px Montserrat,Arial,sans-serif;cursor:pointer;white-space:nowrap}
.hm-brand .logo{font-size:14px;padding:3px 9px}
.hm-xsw{display:flex;gap:2px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:10px;padding:3px}
.hm-xsw button{border:0;background:transparent;color:#c9d4e6;font:700 13px/1 Montserrat,Arial,sans-serif;padding:8px 12px;border-radius:7px;cursor:pointer;white-space:nowrap}
.hm-xsw button:hover{color:#fff}
.hm-xsw button[aria-pressed=true]{background:#fff;color:#0f1b2d}
.hm-sp{flex:1}
.hm-user{position:relative}
.hm-ubtn{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;border-radius:999px;padding:4px 12px 4px 4px;font:700 13.5px Montserrat,Arial,sans-serif;cursor:pointer;max-width:220px}
.hm-ubtn:hover{background:rgba(255,255,255,.16)}
.hm-ubtn .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-av{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ff8a95,#ffd36e);color:#0f1b2d;font-weight:800;font-size:13px}
.hm-ubtn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;flex:none}
.hm-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:#fff;border-radius:14px;box-shadow:0 18px 40px -12px rgba(15,27,45,.35);border:1px solid #e3e8f0;padding:6px;z-index:40}
.hm-menu .mh{padding:10px 12px 8px;border-bottom:1px solid #eef1f6;margin-bottom:4px;font-size:13px;color:#5a6b7e}
.hm-menu .mh b{display:block;color:#0f1b2d;font-size:14.5px}
.hm-menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:9px;font:600 14px Montserrat,Arial,sans-serif;color:#0f1b2d;cursor:pointer}
.hm-menu button:hover,.hm-menu button:focus-visible{background:#f1f4f9}
.hm-signin{white-space:nowrap}
/* Hero */
.hm-hero{position:relative;overflow:hidden;background:#0a1428;color:#fff;padding:30px 0 92px}
.hm-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(800px 360px at 88% -20%,rgba(255,77,94,.34),transparent 60%),radial-gradient(700px 360px at 0% 130%,rgba(56,120,255,.36),transparent 60%);pointer-events:none}
.hm-hero .hm-in{position:relative;display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap}
.hm-hero .hx{flex:1;min-width:260px}
.hm-hero h1{margin:0;font-size:clamp(24px,3vw,32px);font-weight:800;letter-spacing:-.01em;line-height:1.2}
.hm-hero h1 em{font-style:normal;background:linear-gradient(90deg,#ff8a95,#ffd36e);-webkit-background-clip:text;background-clip:text;color:transparent}
.hm-hero p{margin:8px 0 0;color:#c3cfe2;font-size:14.5px;line-height:1.55}
.hm-hero .tag{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;padding:5px 12px 5px 6px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);font-size:12.5px;font-weight:600;color:#dbe4f3}
.hm-hero .tag b{background:#22c55e;color:#06260f;border-radius:999px;padding:2px 8px;font-size:11px;letter-spacing:.04em}
/* Nội dung */
.hm-wrap{position:relative;margin-top:-64px !important;padding-bottom:40px !important}
.hm-dash{display:grid;grid-template-columns:1.45fr 1fr;gap:16px;margin:0 0 18px}
.hm-card{background:#fff;border:1px solid #e3e8f0;border-radius:18px;padding:20px 22px;box-shadow:0 10px 30px -18px rgba(15,27,45,.35)}
.hm-card h2{margin:0 0 14px;font-size:15px;font-weight:800;display:flex;align-items:center;gap:10px}
.hm-card h2 .hint{margin-left:auto;font-size:12px;font-weight:600;color:#7a8799}
.hm-rings{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;text-align:center}
.hm-ring{--p:0;--c:#2aa5bd;width:76px;height:76px;margin:0 auto 6px;border-radius:50%;background:conic-gradient(var(--c) calc(var(--p)*1%),#e8edf4 0);display:grid;place-items:center}
.hm-ring span{width:60px;height:60px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:19px;font-weight:800}
.hm-ring.none span{color:#a3aebd}
.hm-rings small{display:block;font-size:12px;font-weight:700;color:#5a6b7e}
.hm-rings .ov .hm-ring{--c:#0f1b2d}
.hm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.hm-stats div{background:#f6f8fc;border:1px solid #e6ebf2;border-radius:12px;padding:10px 12px}
.hm-stats b{display:block;font-size:20px;font-weight:800}
.hm-stats small{font-size:12px;color:#6b7a8d;font-weight:600}
.hm-empty{margin:14px 0 0;font-size:13.5px;color:#5a6b7e;line-height:1.5}
.hm-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.hm-links .btn{font:700 13px Montserrat,Arial,sans-serif;border-radius:10px;padding:8px 14px;border:1px solid #d5dce8}
.hm-next{background:linear-gradient(140deg,#0e8fa6,#0b6479);color:#fff;border:0;display:flex;flex-direction:column}
.hm-next h2{color:#d8f3f8}
.hm-next .big{font-size:24px;font-weight:800;line-height:1.2;display:flex;align-items:center;gap:10px}
.hm-next .big svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hm-next .why{margin:8px 0 18px;font-size:13.5px;line-height:1.5;color:#e1f5f9}
.hm-next .go{margin-top:auto;align-self:flex-start}
.hm-go{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:12px 20px;font:800 15px Montserrat,Arial,sans-serif;cursor:pointer;background:#fff;color:#0b6479;box-shadow:0 10px 24px -12px rgba(0,0,0,.5);transition:transform .15s}
.hm-go:hover{transform:translateY(-1px)}
.hm-go.red{background:linear-gradient(135deg,#ff4d5e,#e0112b);color:#fff;box-shadow:0 10px 24px -10px rgba(224,17,43,.6)}
.hm-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.hm-next.lockd{background:linear-gradient(140deg,#1e2c46,#0f1b2d)}
/* Chế độ học */
#home .modesw{gap:12px;margin:0 0 14px}
#home .msw{border:1px solid #e3e8f0;border-radius:16px;padding:14px 16px;box-shadow:0 6px 18px -14px rgba(15,27,45,.4)}
#home .msw b{font-size:16.5px}
#home .msw small{font-size:12.5px}
#home .msw svg{width:30px;height:30px}
#home .msw[aria-pressed=true]{background:#0f1b2d;border-color:#0f1b2d}
#home .msw .lk{display:inline-flex;align-items:center;gap:4px;margin-top:5px;font-size:11.5px;font-weight:700;color:#a1620c;background:#fff4df;border-radius:999px;padding:2px 8px}
#home .msw .lk svg{width:12px;height:12px;stroke:#a1620c;stroke-width:2.2}
#home .msw[aria-pressed=true] .lk{background:rgba(255,255,255,.14);color:#ffd9a0}
#home .msw[aria-pressed=true] .lk svg{stroke:#ffd9a0}
#home .msw .lk.free{color:#15803d;background:#dcfce7}
#home .msw[aria-pressed=true] .lk.free{background:rgba(34,197,94,.18);color:#86efac}
/* Bảng luyện kỹ năng */
.hm-panel{background:#fff;border:1px solid #e3e8f0;border-radius:20px;padding:6px 22px 22px;margin:0 0 22px;box-shadow:0 10px 30px -20px rgba(15,27,45,.35)}
.hm-stabs{display:flex;gap:4px;border-bottom:1px solid #e6ebf2;margin:0 -4px 16px;overflow-x:auto}
.hm-stab{display:flex;align-items:center;gap:8px;background:none;border:0;border-bottom:3px solid transparent;padding:14px 14px 11px;font:700 15px Montserrat,Arial,sans-serif;color:#66778a;cursor:pointer;white-space:nowrap}
.hm-stab svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hm-stab small{font-size:11.5px;font-weight:700;background:#eef2f6;color:#5a6b7e;border-radius:999px;padding:2px 8px}
.hm-stab:hover{color:#0f1b2d}
.hm-stab[aria-pressed=true]{color:var(--sc);border-bottom-color:var(--sc)}
.hm-stab[aria-pressed=true] small{background:color-mix(in srgb,var(--sc) 14%,#fff);color:var(--sc)}
.hm-phead{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.hm-phead h2{margin:0;font-size:20px;font-weight:800;color:var(--sc)}
.hm-phead p{margin:0;font-size:13.5px;color:#5a6b7e}
.hm-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.hm-tile{position:relative;aspect-ratio:1/1;border-radius:12px;border:1.5px solid #e1e7ef;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:800 17px Montserrat,Arial,sans-serif;color:#0f1b2d;cursor:pointer;transition:transform .12s,border-color .12s,box-shadow .12s;padding:0}
.hm-tile:hover{border-color:var(--sc);transform:translateY(-1px)}
.hm-tile small{font-size:11px;font-weight:800;color:var(--sc)}
.hm-tile.done{background:color-mix(in srgb,var(--sc) 9%,#fff);border-color:color-mix(in srgb,var(--sc) 35%,#fff)}
.hm-tile.lock{background:#f6f7f9;color:#a3aebd;border-style:dashed}
.hm-tile.lock svg{width:13px;height:13px;fill:none;stroke:#a3aebd;stroke-width:2}
.hm-tile.sug:after{content:"";position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:#ff4d5e;box-shadow:0 0 0 3px #fff}
.hm-tile[aria-pressed=true]{background:var(--sc);border-color:var(--sc);color:#fff;box-shadow:0 10px 20px -10px var(--sc)}
.hm-tile[aria-pressed=true] small{color:#fff}
.hm-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;font-size:12px;color:#6b7a8d;font-weight:600}
.hm-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px;border:1.5px solid #e1e7ef;background:#fff}
.hm-legend i.d{background:color-mix(in srgb,var(--sc) 12%,#fff);border-color:color-mix(in srgb,var(--sc) 35%,#fff)}
.hm-legend i.s{background:#ff4d5e;border-color:#ff4d5e;border-radius:50%}
.hm-legend i.l{background:#f6f7f9;border-style:dashed}
.hm-detail{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:16px;padding:16px 18px;border-radius:14px;background:color-mix(in srgb,var(--sc) 6%,#fff);border:1px solid color-mix(in srgb,var(--sc) 25%,#fff)}
.hm-detail .dx{flex:1;min-width:200px}
.hm-detail h3{margin:0 0 4px;font-size:18px;font-weight:800}
.hm-detail .dm{font-size:13.5px;color:#4b5b6e;display:flex;flex-wrap:wrap;gap:4px 14px}
.hm-detail .dm b{color:var(--sc);font-size:15px}
.hm-detail .acts{display:flex;gap:8px;flex-wrap:wrap}
.hm-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:11px;padding:11px 18px;font:800 14.5px Montserrat,Arial,sans-serif;cursor:pointer;background:var(--sc);color:#fff;box-shadow:0 8px 18px -10px var(--sc)}
.hm-btn:hover{filter:brightness(1.06)}
.hm-btn.line{background:#fff;color:#0f1b2d;border:1px solid #d5dce8;box-shadow:none}
.hm-btn.red{background:linear-gradient(135deg,#ff4d5e,#e0112b);box-shadow:0 8px 18px -10px rgba(224,17,43,.6)}
.hm-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hm-btn:disabled{opacity:.45;cursor:not-allowed}
.hm-gate{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding:12px 14px;border-radius:12px;background:#fff7ec;border:1px solid #f6dcb4;font-size:13.5px;color:#6b4a12}
.hm-gate svg{width:18px;height:18px;flex:none;fill:none;stroke:#a1620c;stroke-width:2}
.hm-gate span{flex:1;min-width:200px}
/* Lịch sử + chân trang */
#home .prog{margin:8px 0 0}
.hm-hist{background:#fff;border:1px solid #e3e8f0;border-radius:18px;padding:0 20px}
.hm-hist>summary{list-style:none;cursor:pointer;padding:16px 0;font-weight:800;font-size:15.5px;display:flex;align-items:center;gap:10px}
.hm-hist>summary::-webkit-details-marker{display:none}
.hm-hist>summary:after{content:"";width:9px;height:9px;border-right:2.5px solid #7a8799;border-bottom:2.5px solid #7a8799;transform:rotate(45deg);margin-left:auto;transition:transform .15s}
.hm-hist[open]>summary:after{transform:rotate(-135deg)}
.hm-hist>summary small{font-weight:700;color:#7a8799;font-size:12.5px}
.hm-hist .hbody{padding:0 0 18px}
.hm-hist table{width:100%;border-collapse:collapse;font-size:14px}
.hm-hist th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:#7a8799;padding:8px 10px;border-bottom:1px solid #e6ebf2}
.hm-hist td{padding:9px 10px;border-bottom:1px solid #f0f3f7}
.hm-foot{margin-top:26px;font-size:12.5px;color:#7a8799;line-height:1.55}
.hm-foot p{margin:0 0 6px}
.hm-foot a{color:#5a6b7e}
#home #feedback .fbbox,#home .asgbox{border-radius:18px}
#home .fbbox{border:1px solid #cfe0ff;box-shadow:0 10px 30px -20px rgba(15,27,45,.35);margin:0 0 18px}
@media (max-width:900px){
  .hm-dash{grid-template-columns:1fr}
  .hm-top .bt{display:none}
}
@media (max-width:640px){
  .hm-root .hm-in,.hm-root .hm-wrap{padding:0 14px}
  .hm-top .hm-in{gap:8px;height:56px}
  .hm-xsw{display:none}
  .hm-ubtn .nm{display:none}
  .hm-ubtn{padding:3px}
  .hm-ubtn svg{display:none}
  .hm-hero{padding:22px 0 80px}
  .hm-card{padding:16px}
  .hm-rings{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:14px}
  .hm-panel{padding:4px 14px 16px}
  .hm-stab{padding:12px 10px 10px;font-size:14px}
  .hm-stab small{display:none}
  .hm-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}
  .hm-detail .acts,.hm-detail .acts .hm-btn{width:100%;justify-content:center}
  .hm-hist td:nth-child(3),.hm-hist th:nth-child(3),.hm-hist td:nth-child(5),.hm-hist th:nth-child(5){display:none}
}
.hm-root .s-listening{--sc:#1f98b0;--sb:#cfe8ed}
/* Trang chủ TOEFL / Aptis / VSTEP: cùng bố cục với trang chính IELTS */
.hm-xroot .hm-hero .ex{display:inline-block;margin-bottom:10px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9fb3cf}
.hm-xroot .hm-rings.n6{grid-template-columns:repeat(6,minmax(0,1fr))}
.hm-xroot .hm-ring span{font-size:17px}
.hm-xroot .hm-ring span small{display:block;font-size:10px;font-weight:700;color:#7a8799;margin-top:-4px}
.hm-xroot .hm-panel{padding-top:18px}
.hm-xroot .hm-tile small{font-size:10.5px}
.xh-secs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 0}
.xh-secs.n5{grid-template-columns:repeat(5,minmax(0,1fr))}
.xh-sec{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:14px;border-radius:14px;border:1.5px solid #e1e7ef;background:#fff;cursor:pointer;font:inherit;color:#0f1b2d;transition:border-color .12s,transform .12s,box-shadow .12s}
.xh-sec:hover{border-color:var(--c);transform:translateY(-1px);box-shadow:0 10px 20px -14px var(--c)}
.xh-sec svg{width:24px;height:24px;fill:none;stroke:var(--c);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}
.xh-sec b{font-size:15px;font-weight:800}
.xh-sec small{font-size:12px;color:#6b7a8d;font-weight:600}
.xh-sec .sc{margin-top:6px;font-size:13px;font-weight:800;color:var(--c)}
.xh-sec .sc.none{color:#9aa6b5;font-weight:700}
.xh-sec.lock{background:#f6f7f9;border-style:dashed;color:#8b98a8}
.xh-sec.lock svg{stroke:#a3aebd}
.xh-full{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}
.xh-full .fx{flex:1;min-width:200px;font-size:13.5px;color:#4b5b6e}
.xh-full .fx b{display:block;color:#0f1b2d;font-size:15px}
.hm-guide table{width:100%;border-collapse:collapse;font-size:13.5px}
.hm-guide th{text-align:left;padding:9px 10px;border-bottom:1px solid #f0f3f7;white-space:nowrap;vertical-align:top;font-weight:800}
.hm-guide td{padding:9px 10px;border-bottom:1px solid #f0f3f7;color:#44566b;line-height:1.5;vertical-align:top}
.hm-guide td:last-child{white-space:nowrap;text-align:right;font-weight:700;color:#0f1b2d}
.hm-guide p{font-size:13px;color:#5a6b7e;line-height:1.55;margin:12px 0 0}
.hm-xroot .hm-hist{margin-bottom:12px}
@media (max-width:900px){.xh-secs,.xh-secs.n5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .hm-xroot .hm-rings,.hm-xroot .hm-rings.n6{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:12px}
  .hm-xroot .hm-ring{width:62px;height:62px}.hm-xroot .hm-ring span{width:50px;height:50px;font-size:15px}
  .hm-guide td:nth-child(2){font-size:12.5px}
}
@media (max-width:640px){
  .hm-next{order:-1}
  .hm-rings{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .hm-ring{width:56px;height:56px}.hm-ring span{width:44px;height:44px;font-size:15px}
  .hm-rings small{font-size:10.5px}
  .hm-stats b{font-size:17px}.hm-stats small{font-size:11px}
  .hm-stabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 14px}
  .hm-stab{flex-direction:column;gap:3px;padding:10px 2px 8px;font-size:12.5px}
  #home .modesw{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  #home .msw{flex-direction:column;text-align:center;gap:6px;padding:12px 6px}
  #home .msw b{font-size:13px}
  #home .msw small{display:none}
  #home .msw .lk{margin-top:4px;font-size:0;padding:3px 6px}
  #home .msw .lk svg{width:12px;height:12px}
  #home .msw .lk.free{font-size:10.5px;padding:2px 6px}
}
.hm-xmob{display:none}
@media (max-width:640px){.hm-xmob{display:flex;margin:0 0 14px}.hm-xmob.hm-xsw{background:#fff;border-color:#e3e8f0;overflow-x:auto}.hm-xmob.hm-xsw button{color:#5a6b7e;flex:1}.hm-xmob.hm-xsw button[aria-pressed=true]{background:#0f1b2d;color:#fff}}
