/* ==========================================================
   account.css – Khu vực tài khoản học viên (my.html)
   Dùng biến màu xanh – trắng + kính mờ từ site.css
   ========================================================== */
.acc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 48px; align-items: start; }
.acc-card {
  background: var(--glass-bg, #fff); border: 1px solid var(--glass-border, var(--line)); border-radius: 16px;
  box-shadow: var(--glass-shadow, var(--shadow)); padding: 20px;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.acc-card h3 { margin: 0 0 12px; font-size: 1.08rem; }
.acc .muted { color: var(--ink-2); }
.linkbtn { background: none; border: none; padding: 0; font: inherit; font-size: .86rem; color: var(--brand); font-weight: 600; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.req { color: #d92d20; font-style: normal; }
.acc .btn svg { width: 16px; height: 16px; }
.btn.big { padding: 14px 18px; font-size: 1rem; border-radius: 12px; }

/* ---------- Cột trái ---------- */
.acc-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.acc-me { text-align: center; padding: 26px 18px; }
.acc-me h3 { margin: 12px 0 8px; font-size: 1.12rem; }
.acc-me p { margin: 10px 0 0; }
.acc-ava { border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin: 0 auto; color: #fff; font-weight: 800;
  background: radial-gradient(circle at 30% 25%, #4a7be6, var(--brand-dark, #0f2257)); box-shadow: 0 10px 24px -12px rgba(15, 34, 87, .6); }
.acc-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-ava.lg { width: 88px; height: 88px; font-size: 2.2rem; }
.acc-ava.xl { width: 100%; max-width: 250px; aspect-ratio: 1; border-radius: 18px; font-size: 5rem; position: relative; }
.acc-ava .change { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .88rem; font-weight: 600;
  text-align: center; padding: 9px 8px; border-radius: 10px; cursor: pointer; margin: 0; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.acc-ava .change:hover { background: #fff; color: var(--brand); }
.lvchip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  color: var(--lv, var(--brand)); background: color-mix(in srgb, var(--lv, var(--brand)) 12%, #fff); border: 1px solid color-mix(in srgb, var(--lv, var(--brand)) 25%, transparent); }

.acc-menu { padding: 10px; display: grid; gap: 2px; }
.acc-menu a, .acc-menu button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--ink); font-weight: 500;
  background: none; border: none; font: inherit; font-size: .95rem; cursor: pointer; text-align: left; width: 100%; text-decoration: none; }
.acc-menu svg { width: 19px; height: 19px; flex-shrink: 0; }
.acc-menu a:hover { background: var(--brand-soft, #eaf0fb); text-decoration: none; }
.acc-menu a.on { background: var(--brand-soft, #eaf0fb); color: var(--brand); font-weight: 700; }
.acc-menu .out { color: #d92d20; }
.acc-menu .out:hover { background: #fdecea; }
.cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; }
.cnt[hidden] { display: none; }

/* ---------- Tổng quan ---------- */
.acc-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
#dash:empty { display: none; }
#dash { display: grid; gap: 18px; }
.acc-hello h1 { font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem); margin: 0 0 4px; }
.acc-hello p { margin: 0; color: var(--ink-2); }
.wave { display: inline-block; animation: wave 2.2s ease-in-out 1; transform-origin: 70% 70%; }
@keyframes wave { 20%, 60% { transform: rotate(14deg); } 40%, 80% { transform: rotate(-8deg); } }
.acc-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 14px; }
.acc-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: var(--glass-bg, #fff); border: 1px solid var(--glass-border, var(--line)); box-shadow: var(--glass-shadow, var(--shadow));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: transform .15s; }
.acc-stat:hover { transform: translateY(-2px); text-decoration: none; }
.acc-stat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft, #eaf0fb); color: var(--brand); margin-bottom: 10px; font-size: 1.1rem; }
.acc-stat .ic svg { width: 20px; height: 20px; }
.acc-stat b { font-size: 1.55rem; line-height: 1.15; }
.acc-stat small { color: var(--ink-2); font-size: .84rem; }
.acc-stat.hero { color: #fff; border: none; background: radial-gradient(400px 200px at 90% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0f2257, #1f3c88 55%, #2f5fd0); }
.acc-stat.hero .ic { background: rgba(255, 255, 255, .16); color: #fff; }
.acc-stat.hero small { color: rgba(255, 255, 255, .85); }
.lvbar { margin-top: auto; padding-top: 12px; font-size: .78rem; font-weight: 700; }
.lvbar > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lvbar i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.lvbar em { display: block; height: 100%; min-width: 6px; background: var(--gold, #f2b53a); border-radius: 3px; }

.acc-badges h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; }
.acc-badges h4 svg { width: 19px; height: 19px; color: var(--gold-600, #c98f12); }
.acc-badges .list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.bdg { text-align: center; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); display: grid; gap: 3px; }
.bdg .i { font-size: 1.6rem; filter: grayscale(1); opacity: .45; }
.bdg b { font-size: .84rem; color: var(--ink-3); }
.bdg small { font-size: .72rem; color: var(--ink-3); }
.bdg.on { border-color: color-mix(in srgb, var(--gold, #f2b53a) 55%, transparent); background: linear-gradient(160deg, #fffaf0, #fff); box-shadow: 0 6px 16px -10px rgba(201, 143, 18, .6); }
.bdg.on .i { filter: none; opacity: 1; }
.bdg.on b { color: var(--ink); }
.bdg.on small { color: var(--ink-2); }

/* ---------- Tiêu đề section ---------- */
.acc-h { font-size: 1.3rem; margin: 0; }
.acc-sub { color: var(--ink-2); margin: -12px 0 0; }
.acc-headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-headrow h3 { margin: 0; }
#panel { display: grid; gap: 18px; }
.acc-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-pills button { font: inherit; font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--ink-2); cursor: pointer; }
.acc-pills button:hover { border-color: var(--brand); color: var(--brand); }
.acc-pills button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.acc-empty { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.acc-empty svg { width: 52px; height: 52px; color: var(--ink-3); }
.acc-empty p { margin: 10px 0 14px; font-size: 1.05rem; }

/* ---------- Thông tin cá nhân ---------- */
.acc-profile { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.acc-pcol { display: grid; gap: 12px; justify-items: center; }
.acc-pcol .code { margin: 4px 0 0; }
.acc-pcol .code b { color: var(--brand); }
.acc-pcol .btn svg { width: 16px; height: 16px; }
.acc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.acc-form .full { grid-column: 1 / -1; }
.acc-form .field { margin-bottom: 16px; }
.acc-input { position: relative; }
.acc-input > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.acc-input input, .acc-input select { padding-left: 38px; min-height: 46px; border-radius: 11px; }
.acc-input input[readonly] { background-color: rgba(241, 245, 251, .9); color: var(--ink-2); cursor: not-allowed; }

/* ---------- Khóa học của tôi ---------- */
.acc-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.acc-course { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--glass-bg, #fff); border: 1px solid var(--glass-border, var(--line)); box-shadow: var(--glass-shadow, var(--shadow)); }
.acc-course.dim { opacity: .6; }
.acc-course .cv { position: relative; height: 96px; padding: 12px; display: flex; justify-content: space-between; align-items: flex-start; color: #fff; overflow: hidden; }
.acc-course .cv .tag { background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 700; font-size: .72rem; }
.acc-course .cv .badge { position: relative; z-index: 1; }
.acc-course .cv .hz { position: absolute; right: 12px; bottom: -14px; font-family: var(--font-hanzi); font-size: 72px; opacity: .25; line-height: 1; }
.acc-course .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.acc-course h3 { margin: 0 0 2px; font-size: 1rem; line-height: 1.35; }
.acc-course h3 a { color: var(--ink); }
.acc-course .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.acc-course .meta .spacer { flex: 1; }
.acc-course .meta b { color: var(--ink); }
.acc-course .prog { height: 7px; border-radius: 4px; background: var(--line-2, #f1f5fb); overflow: hidden; margin-top: 6px; }
.acc-course .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #4a7be6); border-radius: 4px; }
.acc-course .grade { font-size: .84rem; background: var(--brand-soft, #eaf0fb); color: var(--brand-dark, #0f2257); padding: 6px 10px; border-radius: 8px; }
.acc-course .act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

/* ---------- Lịch học ---------- */
.acc-legend { display: flex; gap: 16px; font-size: .88rem; color: var(--ink-2); }
.acc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.acc-legend i { width: 10px; height: 10px; border-radius: 50%; }
.acc-legend i.c { background: var(--brand); }
.acc-legend i.o { background: var(--gold, #f2b53a); }
.acc-weeknav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; text-align: center; }
.acc-weeknav b { font-size: 1.05rem; display: block; }
.acc-weeknav .wkbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.acc-weeknav .wkbtn:hover { background: var(--brand); color: #fff; }
.acc-weeknav .wkbtn svg { width: 18px; height: 18px; }
.acc-week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.acc-day { display: flex; flex-direction: column; min-height: 220px; border-radius: 14px; overflow: hidden; scroll-snap-align: start;
  background: var(--glass-bg, #fff); border: 1px solid var(--glass-border, var(--line)); box-shadow: var(--glass-shadow, var(--shadow)); }
.acc-day header { padding: 10px 12px; background: rgba(255, 255, 255, .55); border-bottom: 1px solid var(--line-2, #f1f5fb); }
.acc-day header b { display: block; }
.acc-day header small { color: var(--ink-2); }
.acc-day.today { border: 2px solid var(--brand); }
.acc-day.today header { background: var(--brand-soft, #eaf0fb); color: var(--brand); }
.acc-day.today header small { color: var(--brand); }
.acc-day .items { flex: 1; padding: 8px; display: grid; gap: 8px; align-content: start; }
.acc-day .none { margin: 18px 0; text-align: center; color: var(--ink-3); font-size: .86rem; }
.slot { position: relative; padding: 8px 10px; border-radius: 10px; font-size: .8rem; display: grid; gap: 2px; line-height: 1.35; }
.slot b { font-size: .82rem; }
.slot .t { font-weight: 700; color: var(--ink); }
.slot small { color: var(--ink-2); }
.slot.cls { background: #e8effc; border-left: 3px solid var(--brand); }
.slot.cls b { color: var(--brand); }
.slot.cls.pending { background: repeating-linear-gradient(135deg, #eef3fc, #eef3fc 6px, #f6f9fe 6px, #f6f9fe 12px); }
.slot .pd { color: #9a6700; font-weight: 700; }
.slot.own { background: #fff5dc; border-left: 3px solid var(--gold, #f2b53a); padding-right: 26px; }
.slot.own b { color: #9a6700; }
.slot .del { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 6px; border: none; background: rgba(0, 0, 0, .06); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.slot .del:hover { background: #fdecea; color: #d92d20; }
.slot .del svg { width: 12px; height: 12px; }
.acc-day .add { margin: 0 8px 8px; padding: 7px; border: 1px dashed var(--line); border-radius: 9px; background: rgba(255, 255, 255, .6); color: var(--ink-3); font: inherit; font-size: .84rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.acc-day .add svg { width: 14px; height: 14px; }
.acc-day .add:hover { border-color: var(--brand); color: var(--brand); }
.acc-note { margin: 0; font-size: .84rem; color: var(--ink-2); background: #fff8e6; border: 1px solid #f6e1a8; padding: 10px 14px; border-radius: 10px; }

/* ---------- Điểm & thành tích ---------- */
.acc-title { text-align: center; }
.acc-title h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); }
.acc-title p { margin: 0; color: var(--ink-2); }
.acc-rank { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 28px; border-radius: 18px; color: #fff;
  background: radial-gradient(600px 260px at 90% 0%, rgba(255,255,255,.16), transparent 60%), linear-gradient(120deg, #0f2257, #1f3c88 55%, #2f5fd0);
  box-shadow: 0 20px 40px -24px rgba(15, 34, 87, .8); }
.acc-rank .medal { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .5); }
.acc-rank .medal span { font-family: var(--font-hanzi); font-size: 1.8rem; line-height: 1; }
.acc-rank .medal small { font-size: .62rem; font-weight: 800; letter-spacing: .06em; margin-top: 3px; }
.acc-rank h3 { margin: 0 0 4px; font-size: 1.35rem; }
.acc-rank p { margin: 0 0 12px; opacity: .9; font-size: .92rem; }
.acc-rank .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.acc-rank .bar i { display: block; height: 100%; min-width: 8px; background: var(--gold, #f2b53a); border-radius: 4px; }
.acc-rank .ends { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; margin-top: 6px; opacity: .9; }
.acc-rank .pts { text-align: center; }
.acc-rank .pts b { display: block; font-size: 2.2rem; line-height: 1; }
.acc-rank .pts small { font-size: .8rem; opacity: .85; }

.acc-ladder { display: grid; gap: 16px; position: relative; }
.acc-ladder::before { content: ""; position: absolute; left: 32px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.acc-ladder .step { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 16px; position: relative; }
.acc-ladder .tile { width: 66px; height: 66px; border-radius: 16px; display: grid; place-items: center; align-content: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--lv) 75%, #fff), var(--lv)); box-shadow: 0 10px 20px -10px var(--lv); position: relative; }
.acc-ladder .tile span { font-family: var(--font-hanzi); font-size: 1.5rem; line-height: 1; }
.acc-ladder .tile small { font-size: .6rem; font-weight: 800; letter-spacing: .05em; margin-top: 3px; }
.acc-ladder .lock .tile { filter: saturate(.35); opacity: .8; }
.acc-ladder .body { padding: 18px 20px; }
.acc-ladder .cur .body { border: 2px solid var(--brand); }
.acc-ladder .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.acc-ladder .top h3 { margin: 0; }
.acc-ladder .top small { color: var(--ink-2); }
.acc-ladder .chip { font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--line-2, #f1f5fb); color: var(--ink-2); white-space: nowrap; }
.acc-ladder .cur .chip { background: var(--brand-soft, #eaf0fb); color: var(--brand); }
.acc-ladder .done .chip { background: #e6f4ea; color: #1a7f37; }
.acc-ladder .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.acc-ladder h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .9rem; }
.acc-ladder h5 svg { width: 16px; height: 16px; }
.acc-ladder h5.r { color: var(--brand); }
.acc-ladder h5.g { color: var(--gold-600, #c98f12); }
.acc-ladder ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; color: var(--ink); }
.acc-ladder li { position: relative; padding-left: 18px; }
.acc-ladder li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.acc-ladder li.ok::before { content: "✓"; background: none; width: auto; height: auto; top: 0; left: 0; color: #1a7f37; font-weight: 900; }

.acc-rules .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.acc-rules .rule { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .55); }
.acc-rules .i { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft, #eaf0fb); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.acc-rules b { display: block; font-size: .92rem; }
.acc-rules em { font-style: normal; color: var(--brand); font-weight: 800; font-size: .88rem; }
.acc-rules small { display: block; color: var(--ink-3); font-size: .76rem; margin-top: 2px; }

.acc-exams { display: grid; gap: 8px; margin-top: 12px; }
.acc-exams > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .55); }
.acc-exams .lv { grid-row: span 2; font-size: .72rem; font-weight: 800; color: var(--brand); background: var(--brand-soft, #eaf0fb); padding: 4px 8px; border-radius: 6px; }
.acc-exams small { color: var(--ink-3); font-size: .76rem; grid-column: 2; }
.acc-exams .sc { grid-row: 1 / span 2; grid-column: 3; font-weight: 800; background: var(--line-2); padding: 5px 10px; border-radius: 8px; }
.acc-exams .sc.hi { background: var(--brand); color: #fff; }

/* ---------- Giỏ hàng ---------- */
.acc-stepper { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 12px; overflow: hidden; background: rgba(226, 232, 242, .7); }
.acc-stepper > div { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 10px; font-weight: 800; font-size: .9rem; text-transform: uppercase; color: var(--ink-2); letter-spacing: .02em; }
.acc-stepper > div + div::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 18px; background: rgba(255, 255, 255, .8); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.acc-stepper span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .8); font-size: .8rem; }
.acc-stepper .on { background: var(--brand); color: #fff; }
.acc-stepper .on span { background: #fff; color: var(--brand); }
.acc-stepper .done { color: var(--brand); }
.acc-stepper .done span { background: var(--brand); color: #fff; }
.acc-cart { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.acc-buy .field { margin-bottom: 14px; }
.acc-buy input, .acc-buy select { min-height: 46px; border-radius: 11px; }
.acc-radio { display: flex; gap: 18px; align-items: center; min-height: 46px; }
.acc-radio label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; cursor: pointer; }
.acc-radio input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand); }
.acc-pick { display: flex; gap: 10px; }
.acc-pick select { flex: 1; min-width: 0; }
.acc-pick .btn { flex-shrink: 0; }
.acc-sum { position: sticky; top: 84px; }
.acc-sum h4 { margin: 18px 0 8px; font-size: 1rem; border-top: 1px solid var(--line); padding-top: 16px; }
.acc-sum .acc-empty { padding: 26px 10px; }
.acc-items { display: grid; gap: 10px; }
.acc-items .it { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .6); }
.acc-items .nm { flex: 1; min-width: 0; display: grid; gap: 2px; }
.acc-items .nm b { font-size: .94rem; }
.acc-items small { color: var(--ink-2); font-size: .8rem; }
.acc-items .warn { color: #b42318; font-weight: 600; }
.acc-items .okt { color: #1a7f37; font-weight: 600; }
.acc-items .fee { font-weight: 800; color: var(--brand); white-space: nowrap; }
.acc-items .del { width: 26px; height: 26px; border-radius: 8px; border: none; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; padding: 0; }
.acc-items .del:hover { background: #fdecea; color: #d92d20; }
.acc-items .del svg, .acc-items .st svg { width: 14px; height: 14px; }
.acc-items .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.acc-items .st.ok { background: #1a7f37; }
.acc-items .st.bad { background: #d92d20; }
.acc-voucher { display: flex; gap: 10px; margin-top: 16px; }
.acc-voucher input { flex: 1; min-width: 0; min-height: 46px; border-radius: 11px; text-transform: uppercase; }
.acc-voucher .btn { border-radius: 11px; }
.vok { color: #1a7f37; margin: 8px 0 0; }
.acc-sum .ln { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--ink-2); }
.acc-sum .ln b { color: var(--ink); }
.acc-sum .ln.tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.acc-sum .ln.tot b { color: var(--brand); font-size: 1.25rem; }
.acc-sum .btn.block { margin-top: 14px; }
.acc-paym { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; margin: 0 0 12px; cursor: pointer; font-weight: 400; background: rgba(255, 255, 255, .6); }
.acc-paym input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.acc-paym > div { flex: 1; min-width: 0; }
.acc-paym b { display: block; }
.acc-paym small { color: var(--ink-2); }
.acc-paym.on { border-color: var(--brand); background: var(--brand-soft, #eaf0fb); }
.acc-paym .bank { display: none; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 12px; padding: 12px; background: #fff; border-radius: 10px; font-size: .86rem; }
.acc-paym.on .bank { display: grid; }
.acc-paym .bank span { display: block; color: var(--ink-3); font-size: .76rem; }
.acc-who { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.acc-who h4 { margin: 0 0 6px; font-size: .95rem; }
.acc-who p { margin: 0 0 6px; }
.acc-done { text-align: center; max-width: 720px; justify-self: center; width: 100%; padding: 32px 24px; }
.acc-done .big { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: #1a7f37; color: #fff; box-shadow: 0 12px 26px -12px #1a7f37; }
.acc-done .big.fail { background: #d92d20; box-shadow: 0 12px 26px -12px #d92d20; }
.acc-done .big svg { width: 36px; height: 36px; }
.acc-done h2 { margin: 0 0 6px; }
.acc-done .acc-items { text-align: left; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .acc-stats { grid-template-columns: 1fr 1fr; }
  .acc-cart { grid-template-columns: 1fr; }
  .acc-sum { position: static; }
  .acc-rules .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .acc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .acc-side, .acc-main, .acc-card { min-width: 0; }
  .acc-side { position: static; }
  .acc-me { display: grid; grid-template-columns: auto 1fr; text-align: left; gap: 2px 16px; align-items: center; padding: 16px; }
  .acc-me .acc-ava { grid-row: span 3; width: 64px; height: 64px; font-size: 1.6rem; margin: 0; }
  .acc-me h3, .acc-me p { margin: 0; }
  .acc-me .lvchip { justify-self: start; }
  .acc-menu { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .acc-menu::-webkit-scrollbar { display: none; }
  .acc-menu a, .acc-menu button { width: auto; white-space: nowrap; padding: 9px 12px; }
  .acc-profile { grid-template-columns: 1fr; }
  .acc-ava.xl { max-width: 200px; }
  .acc-badges .list { grid-template-columns: repeat(5, minmax(110px, 1fr)); overflow-x: auto; }
  .acc-rank { grid-template-columns: auto 1fr; }
  .acc-rank .pts { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 8px; }
}
@media (max-width: 640px) {
  .acc-form, .acc-ladder .cols, .acc-rules .grid { grid-template-columns: 1fr; }
  .acc-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .acc-stat.hero { grid-column: 1 / -1; }
  .acc-stat { padding: 14px; }
  .acc-stat b { font-size: 1.25rem; }
  .acc-stepper > div { font-size: .72rem; padding: 12px 4px; gap: 6px; }
  .acc-pick { flex-direction: column; }
  .acc-ladder::before { left: 24px; }
  .acc-ladder .step { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
  .acc-ladder .tile { width: 50px; height: 50px; border-radius: 12px; }
  .acc-ladder .tile span { font-size: 1.15rem; }
  .acc-paym .bank { grid-template-columns: 1fr; }
  .acc-rank { padding: 20px; gap: 16px; }
  .acc-rank .medal { width: 60px; height: 60px; }
}
.lvbar > div span:first-child { white-space: nowrap; } .lvbar > div span:last-child { text-align: right; }
.acc-main table td:nth-child(2) { white-space: nowrap; }

/* ---------- Lớp học của tôi ---------- */
.acc-clist { display: grid; gap: 12px; }
.acc-cls { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; color: inherit; text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.acc-cls:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(15, 34, 87, .45); }
.acc-cls .cv { position: relative; height: 84px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.acc-cls .cv .hz { font-family: var(--font-hanzi); font-size: 2.1rem; color: rgba(255, 255, 255, .92); }
.acc-cls .cv .dot { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 99px; background: #16a34a; color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; }
.acc-cls .bd { display: grid; gap: 3px; min-width: 0; }
.acc-cls .bd > b { font-size: 1.02rem; }
.acc-cls .bd small { color: var(--ink-2); font-size: .84rem; }
.acc-cls .go svg { width: 20px; height: 20px; color: var(--ink-3); }
.acc-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 600; color: var(--ink-2); }
.acc-back svg { width: 16px; height: 16px; }
.acc-clshead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; color: #fff;
  background: var(--hero-grad, linear-gradient(120deg, var(--brand), #2f5bd3)); box-shadow: var(--hero-shadow); margin-bottom: 14px; }
.acc-clshead small { opacity: .85; }
.acc-clshead h2 { margin: 2px 0 6px; font-size: 1.4rem; color: #fff; }
.acc-clshead p { margin: 0; font-size: .88rem; opacity: .92; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.acc-clshead p svg { width: 14px; height: 14px; }
.acc-clsstat { display: flex; gap: 10px; }
.acc-clsstat span { min-width: 82px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .16); text-align: center; display: grid; }
.acc-clsstat b { font-size: 1.3rem; }
.acc-clsstat small { font-size: .74rem; }
.acc-clstabs { margin-bottom: 12px; }
.acc-clstabs a { font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.acc-clstabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.acc-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #e8f1fd; color: #0f2257; font-size: .86rem; }
.acc-tests { display: grid; gap: 8px; }
.acc-test { display: grid; grid-template-columns: 44px minmax(0, 1fr) 70px 150px 70px 150px 140px; align-items: center; gap: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.acc-test.closed { background: #f8fafc; }
.acc-test .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; background: #eef2ff; }
.acc-test .ic.final { background: #fef3c7; }
.acc-test .ic.prac { background: #ecfdf5; }
.acc-test .nm { display: grid; gap: 3px; min-width: 0; }
.acc-test .nm a { font-weight: 700; color: var(--brand); font-size: .98rem; }
.acc-test .nm small { color: var(--ink-2); font-size: .82rem; }
.acc-test .col { display: grid; gap: 2px; text-align: center; padding-left: 10px; border-left: 1px solid var(--line); font-size: .9rem; }
.acc-test .col small { color: var(--ink-3); font-size: .76rem; }
.acc-test .act { text-align: right; }
.acc-test .btn { min-width: 120px; justify-content: center; }
.btn.ok { background: #16a34a; border-color: #16a34a; color: #fff !important; }
.btn.ok:hover { background: #15803d; }
.btn.done { background: #e2e8f0; border-color: #e2e8f0; color: #64748b !important; }
.btn.off { background: #f1f5f9; border-color: #f1f5f9; color: #94a3b8; cursor: default; }
.btn.fail { background: #fef2f2; border-color: #fecaca; color: #dc2626 !important; }
/* Bài kiểm tra: tách Thường xuyên / KTHP + nhãn Đạt / Không đạt */
.acc-subtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.acc-subtabs button { font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.acc-subtabs button:hover { border-color: var(--brand); color: var(--brand); }
.acc-subtabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(47, 95, 208, .18); }
.acc-subtabs em { font-style: normal; font-size: .78rem; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(15, 23, 42, .08); }
.acc-subtabs button.on em { background: rgba(255, 255, 255, .25); }
.acc-vd { display: inline-block; justify-self: center; margin-top: 2px; font-style: normal; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.acc-vd.ok { background: #dcfce7; color: #15803d; }
.acc-vd.bad { background: #fee2e2; color: #dc2626; }
.acc-test .nm small.acc-reopen { color: #b45309; font-weight: 600; }
.acc-gtable td.vd-ok { color: #15803d; font-weight: 700; }
.acc-gtable td.vd-bad { color: #dc2626; font-weight: 700; }
@media (max-width: 560px) { .acc-subtabs button { font-size: .86rem; padding: 10px 8px; } }
.acc-gtable { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.acc-gtable table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.acc-gtable th, .acc-gtable td { padding: 10px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; }
.acc-gtable th { background: #eef4fc; font-weight: 600; color: #334155; }
.acc-gtable td:first-child, .acc-gtable th:first-child { text-align: left; }
.acc-gtable td:nth-child(2) { white-space: nowrap; }
.acc-ok { color: var(--ok); font-weight: 700; }
/* Popup bài kiểm tra đang mở */
.acc-pop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.acc-pop-c { width: min(440px, 100%); padding: 26px 24px 22px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.acc-pop-c .ic { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; background: #dcfce7; }
.acc-pop-c h3 { margin: 0 0 6px; }
.acc-pop-c p { margin: 0 0 6px; font-size: 1.02rem; }
.acc-pop-c small { color: var(--ink-2); }
.acc-pop-f { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.acc-pop-f .btn { min-width: 140px; justify-content: center; }
.acc-pop-f .btn.danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.acc-pop-f .btn.danger:hover { background: #b91c1c; }
@media (max-width: 560px) {
  .acc-cls { grid-template-columns: 80px minmax(0, 1fr); }
  .acc-cls .go { display: none; }
  .acc-clsstat { width: 100%; }
  .acc-clsstat span { flex: 1; min-width: 0; }
}

/* ==========================================================
   Bố cục co giãn theo màn hình (Desktop rộng → Laptop → Tablet → Mobile)
   ========================================================== */
/* Trang học viên dùng gần hết bề ngang màn hình (cả header, footer) */
body.acc-page .container { max-width: min(1680px, 100%); padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); }
.acc { grid-template-columns: clamp(240px, 18vw, 300px) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); }

/* Dòng bài kiểm tra: lưới theo vùng */
.acc-test { grid-template-columns: 44px minmax(220px, 2.4fr) minmax(70px, .6fr) minmax(130px, 1fr) minmax(70px, .6fr) minmax(150px, 1fr) auto;
  grid-template-areas: "ic nm sc kd at du ac"; gap: 12px 16px; padding: 14px 18px; }
.acc-test .ic { grid-area: ic; }
.acc-test .nm { grid-area: nm; }
.acc-test .c-score { grid-area: sc; }
.acc-test .c-kind { grid-area: kd; }
.acc-test .c-att { grid-area: at; }
.acc-test .c-due { grid-area: du; }
.acc-test .act { grid-area: ac; }
.acc-test .nm a { overflow-wrap: anywhere; }
.acc-test .col span, .acc-test .col b { white-space: nowrap; }
.acc-test .c-due span { white-space: normal; }

/* Laptop: bỏ cột "Hình thức" (đã có tab Thường xuyên / KTHP) */
@media (max-width: 1360px) {
  .acc-test { grid-template-columns: 44px minmax(200px, 2.4fr) minmax(70px, .6fr) minmax(70px, .6fr) minmax(140px, 1fr) auto; grid-template-areas: "ic nm sc at du ac"; }
  .acc-test .c-kind { display: none; }
}
/* Tablet: tên bài + nút ở dòng trên, thông số ở dòng dưới */
@media (max-width: 1100px) {
  .acc-test { grid-template-columns: 44px repeat(3, minmax(0, 1fr)) auto; grid-template-areas: "ic nm nm nm ac" "ic sc at du ac"; row-gap: 8px; }
  .acc-test .col { text-align: left; border-left: 0; padding: 8px 10px; border-radius: 8px; background: #f8fafc; }
  .acc-test .c-score, .acc-test .c-att, .acc-test .c-due { align-self: stretch; align-content: start; }
  .acc-test.closed .col { background: #fff; }
  .acc-test .acc-vd { justify-self: start; }
  .acc-test .act { align-self: center; }
}
/* Mobile: xếp dọc, nút bấm rộng hết dòng */
@media (max-width: 640px) {
  .acc-test { grid-template-columns: 40px repeat(3, minmax(0, 1fr)); grid-template-areas: "ic nm nm nm" "sc sc at du" "ac ac ac ac"; gap: 8px; padding: 12px; }
  .acc-test .ic { width: 36px; height: 36px; font-size: 1.1rem; }
  .acc-test .col { padding: 6px 8px; font-size: .84rem; }
  .acc-test .act { text-align: center; }
  .acc-test .act .btn { width: 100%; min-width: 0; }
  .acc-clshead { padding: 16px; }
  .acc-clshead h2 { font-size: 1.15rem; }
  .acc-clstabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .acc-clstabs::-webkit-scrollbar { display: none; }
  .acc-clstabs > * { flex: none; }
  .acc-subtabs { gap: 6px; }
  .acc-subtabs button { flex-direction: column; gap: 2px; text-align: center; line-height: 1.25; }
  .acc-gtable th, .acc-gtable td { padding: 8px; font-size: .82rem; }
  .acc-pop-f { flex-direction: column-reverse; }
  .acc-pop-f .btn { width: 100%; }
}
/* Màn hình rất rộng: thẻ, chữ thoáng hơn */
@media (min-width: 1600px) {
  .acc-clshead { padding: 22px 26px; }
  .acc-clshead h2 { font-size: 1.6rem; }
  .acc-test .nm a { font-size: 1.04rem; }
}
@media (max-width: 900px) { .acc { grid-template-columns: minmax(0, 1fr); } }
.acc-test .acc-max { font-size: .78rem; font-weight: 600; color: var(--ink-3, #94a3b8); }

/* ---------- Học phí (QR chuyển khoản) ---------- */
.acc-fee-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.acc-fee-sum > div { padding: 14px 16px; border-radius: 12px; background: #f5f8ff; border: 1px solid #e3eafc; }
.acc-fee-sum small, .acc-fee-row small { display: block; font-size: .76rem; color: var(--ink-2); font-weight: 600; }
.acc-fee-sum b { font-size: 1.35rem; color: var(--brand); }
.acc-fee { display: grid; gap: 12px; }
.acc-fee-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acc-fee-h b { display: block; font-size: 1.02rem; }
.acc-fee-h small { color: var(--ink-2); font-size: .82rem; }
.acc-fee-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.acc-fee-row b { font-size: 1rem; }
.acc-fee-row b.ok { color: var(--ok); } .acc-fee-row b.due { color: var(--danger); }
.acc-fee .btn { justify-self: start; }
@media (max-width: 560px) { .acc-fee .btn { justify-self: stretch; } .acc-fee-h { flex-direction: column; } }
/* Biểu tượng nét mảnh (đồng bộ hệ thống) */
.acc-stat .ic svg, .acc-rules .i svg, .acc-test .ic svg { width: 20px; height: 20px; color: var(--brand); }
.acc-rules .i { color: var(--brand); }
.bdg .i svg { width: 28px; height: 28px; }
.bdg .i { color: var(--ink-3); }
.bdg.on .i { color: var(--gold-600, #c98f12); filter: none; opacity: 1; }
.acc-test .ic.final svg { color: #b45309; } .acc-test .ic.prac svg { color: #047857; }
.acc-pop-c .ic svg { width: 30px; height: 30px; color: #15803d; }