/* ===== TOEIC hub ===== */
.toeic-hero { background: linear-gradient(135deg, #111114 0%, #3a0a12 45%, #d90429 100%); background-size: 220% 220%; }
.home-features { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .home-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .home-features { grid-template-columns: 1fr; } }
.toeic-struct { padding: 26px 30px; }
.ts-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; margin-bottom: 16px; }
.ts-label { font-family: var(--font-head); font-weight: 600; font-size: 16px; display: flex; flex-direction: column; }
.ts-label small { font-family: var(--font); font-weight: 400; font-size: 12.5px; color: var(--muted); }
.ts-bar { display: flex; gap: 6px; }
.ts-seg { flex: var(--w) 1 0; min-width: 92px; border-radius: 12px; padding: 10px 12px; color: #fff; display: flex; flex-direction: column; line-height: 1.3; position: relative; overflow: hidden; transform-origin: left; animation: segIn .9s cubic-bezier(.16, 1, .3, 1) both; }
.ts-seg:nth-child(2) { animation-delay: .08s; } .ts-seg:nth-child(3) { animation-delay: .16s; } .ts-seg:nth-child(4) { animation-delay: .24s; }
@keyframes segIn { from { transform: scaleX(.2); opacity: 0; } }
.ts-seg.L { background: linear-gradient(135deg, #d90429, #8d0718); }
.ts-seg.R { background: linear-gradient(135deg, #2b2b30, #0f0f10); }
.ts-seg b { font-size: 13px; } .ts-seg span { font-size: 12px; opacity: .85; } .ts-seg em { font-style: normal; font-size: 18px; font-weight: 700; margin-top: 4px; font-family: var(--font-head); }
.ts-seg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18), transparent 70%); transform: translateX(-100%); animation: segShine 3.5s ease-in-out 1.2s infinite; }
@keyframes segShine { 60%, 100% { transform: translateX(100%); } }
@media (max-width: 760px) { .ts-row { grid-template-columns: 1fr; } .ts-bar { flex-wrap: wrap; } }
.part-pill { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s; }
.part-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.toeic-test .tile-foot { flex-wrap: wrap; }

/* ===== Levels page ===== */
.lv-conv { padding: 28px 32px; background: linear-gradient(160deg, var(--surface) 55%, color-mix(in srgb, var(--primary) 6%, var(--surface))); }
.lv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.lv-tabs .pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font: inherit; font-weight: 500; font-size: 13.5px; transition: all .25s; }
.lv-tabs .pill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(217, 4, 41, .3); }
.lv-conv-body { display: grid; grid-template-columns: 1.1fr auto 1.2fr; gap: 34px; align-items: center; }
@media (max-width: 900px) { .lv-conv-body { grid-template-columns: 1fr; justify-items: stretch; } .lv-badge { justify-self: center; } }
.lv-score { font-family: var(--font-head); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -2px; color: var(--text); font-variant-numeric: tabular-nums; }
.lv-input input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; margin: 18px 0 6px; background: linear-gradient(90deg, var(--primary) var(--p, 50%), var(--bg-2) var(--p, 50%)); outline: none; cursor: pointer; }
.lv-input input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); box-shadow: 0 4px 14px rgba(217, 4, 41, .45); transition: transform .2s; }
.lv-input input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.lv-input input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); }
.lv-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.lv-badge { --c: #7c3aed; width: 170px; height: 170px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 45%, transparent), inset 0 -6px 18px rgba(0, 0, 0, .2); transition: background .5s, box-shadow .5s; position: relative; }
.lv-badge::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--c) 60%, transparent); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lv-badge b { font-family: var(--font-head); font-size: 58px; line-height: 1; letter-spacing: -1px; }
.lv-badge span { font-size: 12px; padding: 0 16px; margin-top: 6px; opacity: .95; line-height: 1.35; }
.lv-badge.pop { animation: pop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { 0% { transform: scale(.8) rotate(-8deg); } 100% { transform: none; } }
.lv-eq-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 6px; font-size: 14px; animation: eqIn .45s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 60ms); }
.lv-eq-row span { color: var(--muted); } .lv-eq-row b { text-align: right; }
@keyframes eqIn { from { opacity: 0; transform: translateX(16px); } }
.lv-can { margin-top: 12px; font-size: 14px; } .lv-can ul { margin: 6px 0 0; padding-left: 20px; color: var(--text-2); }

/* staircase */
.lv-stairs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; padding-top: 10px; }
@media (max-width: 1000px) { .lv-stairs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .lv-stairs { grid-template-columns: 1fr 1fr; } }
.lv-step { --c: #888; position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 0 0 14px; overflow: hidden; display: flex; flex-direction: column; opacity: 0; transform: translateY(60px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; transition-delay: calc(var(--i) * 110ms); }
.lv-stairs.up .lv-step { opacity: 1; transform: none; }
.lv-step-top { padding: 16px 16px 0; min-height: var(--h); background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 75%, #000)); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 14px; transform-origin: bottom; }
.lv-stairs.up .lv-step-top { animation: rise 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 110ms + .1s); }
@keyframes rise { from { transform: scaleY(.15); } }
.lv-k { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1; }
.lv-name { font-weight: 600; font-size: 14px; margin-top: 4px; } .lv-sub { font-size: 11.5px; opacity: .85; }
.lv-step ul { margin: 12px 0 8px; padding: 0 14px 0 28px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; flex: 1; }
.lv-step li { margin: 4px 0; }
.lv-pillar { display: flex; flex-direction: column; gap: 4px; padding: 0 14px; }
.lv-pillar span { font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 12%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text)); }
.lv-step:hover { box-shadow: 0 16px 36px color-mix(in srgb, var(--c) 30%, transparent); transform: translateY(-4px); }
.lv-step.me { box-shadow: 0 0 0 3px var(--c), 0 18px 40px color-mix(in srgb, var(--c) 35%, transparent); }
.lv-step.me::after { content: "Bạn ở đây"; position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 700; background: #fff; color: var(--c); padding: 2px 8px; border-radius: 99px; }

/* table */
.lv-table td { vertical-align: middle; }
.lv-dot { display: inline-grid; place-items: center; width: 36px; height: 26px; border-radius: 8px; background: var(--c); color: #fff; font-weight: 700; font-size: 13px; margin-right: 6px; }
.lv-table tbody tr { transition: background .3s; }
.lv-table tbody tr.me td { background: color-mix(in srgb, var(--c) 10%, transparent); }

/* certificates */
.lv-cert { --c: #d90429; border-top: 4px solid var(--c); }
.lv-cert-icon { font-size: 26px; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); }
.lv-cert h3 { color: var(--c); font-size: 20px; }
.lv-cert-type { font-weight: 500; color: var(--text-2) !important; margin-bottom: 12px !important; -webkit-line-clamp: unset !important; }
.lv-cert dl { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: 13.5px; }
.lv-cert dt { color: var(--muted); font-weight: 500; } .lv-cert dd { margin: 0; color: var(--text-2); }
.lv-cert .tile-body p { display: block; }
