/* =============================================================================
   KHU HỌC VIÊN – giao diện trung tính, cam thương hiệu chỉ làm điểm nhấn
   Chỉ áp dụng khi <body class="student-ui"> (account/layout, practice/layout).
   Màn hình thi thử (exam/layout_exam, exam/layout_simple) KHÔNG dùng file này.
============================================================================= */
.student-ui {
    --st-bg: #f5f6f8;
    --st-surface: #ffffff;
    --st-subtle: #f3f4f6;
    --st-border: #e5e7eb;
    --st-border-strong: #d1d5db;
    --st-text: #111827;
    --st-body: #374151;
    --st-muted: #6b7280;
    --st-radius: 14px;
    --st-radius-sm: 10px;
    --st-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    --st-shadow-hover: 0 4px 14px rgba(16, 24, 40, .08);
    --st-brand-tint: #fff4ed;
    --st-bottom-nav-h: 62px;
    background-color: var(--st-bg) !important;
    color: var(--st-body);
}

/* ---------- Chữ ---------- */
.student-ui h1, .student-ui h2, .student-ui h3, .student-ui h4, .student-ui h5, .student-ui h6 { color: var(--st-text); letter-spacing: -0.01em; }
.student-ui .text-dark { color: var(--st-text) !important; }
.student-ui .text-muted, .student-ui .text-secondary { color: var(--st-muted) !important; }
.student-ui .display-6 { font-size: calc(1.3rem + .6vw); }
@media (min-width: 1200px) { .student-ui .display-6 { font-size: 1.75rem; } }

/* ---------- Thẻ ---------- */
.student-ui .card,
.student-ui .skill-hub-card {
    background: var(--st-surface);
    border: 1px solid var(--st-border) !important;
    border-radius: var(--st-radius) !important;
    box-shadow: var(--st-shadow) !important;
}
.student-ui .card.shadow-sm, .student-ui .shadow-sm { box-shadow: var(--st-shadow) !important; }
.student-ui .shadow, .student-ui .shadow-lg { box-shadow: 0 10px 30px rgba(16, 24, 40, .10) !important; }
.student-ui .rounded-4 { border-radius: var(--st-radius) !important; }
.student-ui .card-header { background: transparent !important; }
.student-ui a.card:hover, .student-ui .card-hover:hover { box-shadow: var(--st-shadow-hover) !important; border-color: var(--st-border-strong) !important; }

/* Ô biểu tượng: nền xám nhạt, icon xám đậm (không phủ cam) */
.student-ui .bg-brand-light { background-color: var(--st-subtle) !important; }
.student-ui .bg-brand-light.text-brand,
.student-ui .bg-brand-light .text-brand { color: var(--st-body) !important; }
.student-ui .icon-shape { background: var(--st-subtle) !important; color: var(--st-body) !important; }
/* Icon nhỏ đứng trước tiêu đề: xám, không cam */
.student-ui h4 > .bi.text-brand, .student-ui h5 > .bi.text-brand, .student-ui h6 > .bi.text-brand,
.student-ui label > .bi.text-brand, .student-ui label .bi.text-brand { color: var(--st-muted) !important; }

/* ---------- Nút ---------- */
.student-ui .btn { border-radius: var(--st-radius-sm); font-weight: 600; }
.student-ui .btn.rounded-pill { border-radius: var(--st-radius-sm) !important; }
.student-ui .btn.rounded-circle { border-radius: 50% !important; }
.student-ui .btn-brand { box-shadow: none !important; }
/* Nút phụ: trung tính */
.student-ui .btn-outline-brand,
.student-ui .btn-brand-light,
.student-ui .btn-outline-secondary,
.student-ui .btn-outline-primary {
    color: var(--st-text) !important;
    background: var(--st-surface) !important;
    border: 1px solid var(--st-border-strong) !important;
}
.student-ui .btn-outline-brand:hover, .student-ui .btn-brand-light:hover,
.student-ui .btn-outline-secondary:hover, .student-ui .btn-outline-primary:hover {
    background: var(--st-subtle) !important;
    color: var(--st-text) !important;
}
.student-ui .btn-light { background: var(--st-subtle); border-color: var(--st-border); color: var(--st-text); }
.student-ui .btn-primary { background-color: var(--brand); border-color: var(--brand); }
.student-ui .btn-primary:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); }

/* ---------- Huy hiệu, bảng, form ---------- */
.student-ui .badge.bg-light { background: var(--st-subtle) !important; color: var(--st-body) !important; border-color: var(--st-border) !important; }
.student-ui .table { --bs-table-bg: transparent; color: var(--st-body); }
.student-ui .table > thead > tr > th,
.student-ui .table-light > tr > th, .student-ui thead.table-light th {
    background: var(--st-subtle) !important; color: var(--st-muted) !important;
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
    border-bottom: 1px solid var(--st-border) !important;
}
.student-ui .table > tbody > tr > * { border-color: var(--st-border); }
.student-ui .table > tbody > tr:last-child > * { border-bottom-width: 0; }
.student-ui .form-control, .student-ui .form-select { border-color: var(--st-border-strong); border-radius: var(--st-radius-sm); }
.student-ui .form-control:focus, .student-ui .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(235, 85, 5, .12); }
.student-ui .progress { background-color: #eceef1 !important; }
.student-ui .alert { border-radius: var(--st-radius); }

/* ---------- Thanh bên (máy tính) ---------- */
.student-ui .sidebar { border-right: 1px solid var(--st-border); padding-top: 1rem !important; }
.student-ui .sidebar-header { justify-content: flex-start !important; padding: 0 1rem; margin-bottom: .75rem !important; }
.student-ui .sidebar .brand-link { justify-content: flex-start !important; gap: .6rem; }
.student-ui .sidebar .brand-wordmark { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--st-text); line-height: 1.1; }
.student-ui .sidebar .brand-wordmark small { display: block; font-size: .7rem; font-weight: 500; color: var(--st-muted); letter-spacing: .02em; }
.student-ui .sidebar hr { display: none; }
.student-ui .sidebar .nav-pills { padding: 0 .6rem !important; }
.student-ui .sidebar .nav-link {
    border-radius: var(--st-radius-sm) !important;
    padding: .6rem .85rem !important;
    color: var(--st-body);
    font-size: .92rem;
    position: relative;
}
.student-ui .sidebar .nav-link:not(.active):hover { background: var(--st-subtle) !important; color: var(--st-text) !important; }
.student-ui .sidebar .nav-link:not(.active):hover i { color: var(--st-text) !important; }
.student-ui .sidebar .nav-link.active {
    background: var(--st-subtle) !important;
    color: var(--st-text) !important;
    font-weight: 600;
}
.student-ui .sidebar .nav-link.active i { color: var(--brand) !important; }
.student-ui .sidebar .nav-link.active::before {
    content: ""; position: absolute; left: -.6rem; top: 22%; bottom: 22%; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--brand);
}
.student-ui .sidebar-section { font-size: .7rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; padding: 1rem 1.45rem .35rem; }
.student-ui .sidebar-foot { padding: .75rem .6rem; border-top: 1px solid var(--st-border); }
.student-ui .sidebar-plan {
    margin: 0 .6rem .75rem; padding: .75rem .85rem; border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm); background: var(--st-surface); font-size: .8rem; white-space: normal;
}

/* ---------- Thanh trên (máy tính) ---------- */
.student-ui .app-topbar { border-bottom: 1px solid var(--st-border); padding: .7rem 2rem; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(6px); }
.student-ui .search-input-group .input-group { background: var(--st-subtle); border-color: transparent; border-radius: var(--st-radius-sm); }
.student-ui .user-profile-pill { border-radius: var(--st-radius-sm); box-shadow: none; border-color: var(--st-border); }
.student-ui .user-avatar-circle { background: var(--st-brand-tint); color: var(--brand-dark); border: 1px solid rgba(235, 85, 5, .18); }
.student-ui .user-profile-pill:hover .user-avatar-circle { background: var(--st-brand-tint); color: var(--brand-dark); }

/* ---------- Tiêu đề trang ---------- */
.student-ui .page-head { margin-bottom: 1.5rem; }
.student-ui .page-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.student-ui .page-head p { color: var(--st-muted); margin: .25rem 0 0; font-size: .925rem; }

/* ---------- Tab phụ (Lịch sử) ---------- */
.student-ui .nav-pills-brand { background: var(--st-subtle); border-radius: var(--st-radius-sm); padding: 4px; gap: 2px !important; display: inline-flex; max-width: 100%; }
.student-ui .nav-pills-brand .nav-link {
    background: transparent !important; border: 0 !important; color: var(--st-muted) !important;
    border-radius: 8px !important; padding: .45rem .9rem !important; font-size: .875rem; box-shadow: none !important;
}
.student-ui .nav-pills-brand .nav-link:hover { color: var(--st-text) !important; }
.student-ui .nav-pills-brand .nav-link.active {
    background: var(--st-surface) !important; color: var(--st-text) !important; font-weight: 600;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .1) !important;
}
.student-ui .nav-pills-brand .nav-link.active i { color: var(--brand); }

/* Thẻ chọn mục (Lịch sử: Thi thử / Viết / Nói / Đọc / Nghe) – thẻ chia đều, biểu tượng trên, chữ dưới */
.student-ui .tab-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.student-ui .tab-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 64px; padding: 10px 6px; text-align: center; text-decoration: none;
    background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-radius-sm);
    color: var(--st-body); font-size: .875rem; font-weight: 500; box-shadow: var(--st-shadow);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.student-ui .tab-card i { font-size: 1.25rem; color: var(--st-muted); line-height: 1; }
.student-ui .tab-card:hover { border-color: var(--st-border-strong); box-shadow: var(--st-shadow-hover); transform: translateY(-1px); color: var(--st-text); }
.student-ui .tab-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.student-ui .tab-card.active { background: var(--st-brand-tint); border: 2px solid var(--brand); color: var(--st-text); font-weight: 700; padding: 9px 5px; }
.student-ui .tab-card.active i { color: var(--brand); }
@media (min-width: 768px) {
    .student-ui .tab-card { flex-direction: row; gap: 8px; min-height: 52px; font-size: .9375rem; }
}

/* ---------- Xem lại bài thi (exam/review.php) ---------- */
.student-ui .review-scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.student-ui .review-score-tile { width: 100%; font: inherit; color: inherit; cursor: pointer; }
.student-ui .review-score-tile.is-total { cursor: default; background: var(--st-subtle); }
.student-ui .review-score-tile.active { border-color: var(--brand) !important; box-shadow: inset 0 0 0 1px var(--brand); }
.student-ui .review-score-tile.active .stat-icon { color: var(--brand); }
@media (max-width: 767.98px) {
    /* Điện thoại: 1 hàng 5 ô nhỏ – chỉ điểm + tên kỹ năng */
    .student-ui .review-scores { gap: 6px; }
    .student-ui .review-score-tile { padding: .55rem .4rem !important; text-align: center !important; }
    .student-ui .review-score-tile .stat-value { font-size: 1.15rem; }
    .student-ui .review-score-tile .stat-icon, .student-ui .review-score-tile .stat-label:not(.fw-semibold) { display: none; }
    .student-ui .review-score-tile .d-flex { justify-content: center !important; }
    .student-ui .review-score-tile .stat-label.fw-semibold { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.student-ui .review-nav { position: sticky; z-index: 1010; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 12px; flex-wrap: wrap; }
.student-ui .review-nav-parts { display: flex; gap: 6px 18px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.student-ui .review-nav-parts::-webkit-scrollbar { display: none; }
.student-ui .review-nav-group { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.student-ui .review-nav-label { font-size: .8rem; font-weight: 600; color: var(--st-muted); margin-right: 2px; white-space: nowrap; }
.student-ui .review-chip {
    min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--st-border); border-radius: 8px;
    background: var(--st-surface); color: var(--st-body); font-size: .875rem; font-weight: 600; line-height: 1;
    transition: border-color .15s, background .15s;
}
.student-ui .review-chip:hover { border-color: var(--st-border-strong); color: var(--st-text); }
.student-ui .review-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.student-ui .review-nav-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.student-ui .review-nav-tools .btn.active { background: var(--st-brand-tint); border-color: var(--brand) !important; color: var(--st-text); }
@media (max-width: 767.98px) {
    .student-ui .review-nav { padding: 8px 10px; }
    .student-ui .review-nav-tools { width: 100%; }
}
.student-ui .review-part-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; color: var(--st-text); }
.student-ui .review-part-title i { color: var(--brand); }
.student-ui .review-text { font-size: 1rem; line-height: 1.75; color: var(--st-body); overflow-wrap: anywhere; }
.student-ui .review-text p:last-child { margin-bottom: 0; }
.student-ui .review-prompt { background: var(--st-subtle); border-radius: var(--st-radius-sm); padding: 1rem 1.1rem; }
.student-ui .review-answer { border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); padding: 1rem 1.1rem; }
.student-ui .review-answer.is-text { white-space: pre-wrap; }
.student-ui .review-question { padding: 1rem 0; border-top: 1px solid var(--st-border); }
.student-ui .review-question:first-of-type { border-top: 0; padding-top: 0; }
.student-ui .review-question-text { display: flex; gap: 10px; font-weight: 600; color: var(--st-text); margin-bottom: .6rem; line-height: 1.5; }
.student-ui .review-qnum { flex-shrink: 0; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--st-subtle); color: var(--st-body); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.student-ui .review-choices { display: flex; flex-direction: column; gap: 6px; }
.student-ui .review-choice { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--st-border); border-radius: 8px; line-height: 1.45; }
.student-ui .review-choice-key { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--st-border-strong); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: var(--st-muted); }
.student-ui .review-choice-tag { flex-shrink: 0; font-size: .75rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.student-ui .review-choice.is-right { border-color: #9ad5b0; background: #f0faf3; color: #146c43; }
.student-ui .review-choice.is-right .review-choice-key { background: #198754; border-color: #198754; color: #fff; }
.student-ui .review-choice.is-wrong { border-color: #f1aeb5; background: #fdf3f4; color: #b02a37; }
.student-ui .review-choice.is-wrong .review-choice-key { background: #dc3545; border-color: #dc3545; color: #fff; }
.student-ui .review-explain { margin-top: .6rem; padding: .75rem .9rem; border-radius: 8px; background: var(--st-brand-tint); font-size: .925rem; line-height: 1.6; }
.student-ui .review-marks { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--st-border); }
.student-ui .review-mark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.student-ui .review-mark { border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); padding: .7rem .85rem; }
.student-ui .review-mark-value { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--st-text); line-height: 1.1; }
.student-ui .review-mark-label { font-size: .8rem; color: var(--st-muted); margin-top: 2px; }
.student-ui .review-feedback { background: var(--st-subtle); border-radius: var(--st-radius-sm); padding: .9rem 1rem; white-space: pre-line; line-height: 1.7; overflow-wrap: anywhere; }
.student-ui .review-offcanvas { --bs-offcanvas-width: min(560px, 100vw); }

/* Hướng dẫn từng bước: assets/css/tour.css (nạp qua partials/tour.php) */

/* Phân trang */
.student-ui .pagination .page-link { border-radius: 8px !important; margin: 0 2px; border-color: var(--st-border); color: var(--st-body); }
.student-ui .pagination .active > .page-link, .student-ui .pagination .page-item.active .page-link { background: var(--st-text) !important; border-color: var(--st-text) !important; color: #fff !important; }

/* ---------- Điện thoại: thanh trên + thanh tab đáy ---------- */
.student-ui .mobile-topbar { background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--st-border); box-shadow: none !important; }
.student-ui .mobile-topbar .brand-wordmark { font-family: var(--font-heading); font-weight: 700; color: var(--st-text); font-size: 1rem; }
.student-ui .mobile-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--st-brand-tint); color: var(--brand-dark); border: 1px solid rgba(235, 85, 5, .18); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bottom-nav { display: none; }
@media (max-width: 767.98px) {
    .student-ui .main-content { padding-bottom: calc(var(--st-bottom-nav-h) + env(safe-area-inset-bottom)); }
    .student-ui .bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
        height: calc(var(--st-bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--st-border);
    }
    .student-ui .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        color: var(--st-muted); text-decoration: none; font-size: .68rem; font-weight: 500;
    }
    .student-ui .bottom-nav a i { font-size: 1.25rem; line-height: 1; }
    .student-ui .bottom-nav a.active { color: var(--st-text); font-weight: 600; }
    .student-ui .bottom-nav a.active i { color: var(--brand); }
    .student-ui .app-toast-container { top: auto !important; bottom: calc(var(--st-bottom-nav-h) + 8px); }
    .student-ui .page-head h1 { font-size: 1.3rem; }
}

/* ---------- Tổng quan ---------- */
.student-ui .stat-tile { padding: 1rem 1.1rem; }
.student-ui .stat-tile .stat-value { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--st-text); line-height: 1.1; }
.student-ui .stat-tile .stat-label { font-size: .8rem; color: var(--st-muted); }
.student-ui .stat-tile .stat-icon { color: var(--st-muted); font-size: 1.1rem; }
@media (max-width: 575.98px) {
    .student-ui .stat-tile { padding: .8rem .75rem; }
    .student-ui .stat-tile .stat-value { font-size: 1.3rem; }
    .student-ui .stat-tile .stat-label { font-size: .72rem; }
}
.student-ui .quick-action {
    display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; color: var(--st-text);
    text-decoration: none; border: 1px solid var(--st-border); border-radius: var(--st-radius); background: var(--st-surface);
    transition: border-color .15s, box-shadow .15s;
}
.student-ui .quick-action:hover { border-color: var(--st-border-strong); box-shadow: var(--st-shadow-hover); color: var(--st-text); }
.student-ui .quick-action .qa-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--st-subtle); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.student-ui .quick-action .qa-title { font-weight: 600; font-size: .95rem; line-height: 1.2; }
.student-ui .quick-action .qa-sub { font-size: .8rem; color: var(--st-muted); }
.student-ui .quick-action .bi-chevron-right { margin-left: auto; color: #9ca3af; }
.student-ui .quick-action.qa-primary .qa-icon { background: var(--st-brand-tint); color: var(--brand); }
.student-ui .list-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--st-border); }
.student-ui .list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.student-ui .list-row:first-child { padding-top: 0; }
.student-ui .skill-dot { width: 36px; height: 36px; border-radius: 10px; background: var(--st-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--st-body); }
.student-ui .section-title { font-size: 1rem; font-weight: 700; margin: 0; }
.student-ui .section-link { font-size: .85rem; font-weight: 600; color: var(--st-muted); text-decoration: none; }
.student-ui .section-link:hover { color: var(--brand); }

/* ---------- Trang làm bài / kết quả (practice/layout) ---------- */
.student-ui .sticky-top.bg-white { background: rgba(255,255,255,.96) !important; border-bottom-color: var(--st-border) !important; }
.student-ui .fixed-bottom.bg-white { border-top-color: var(--st-border) !important; }
.student-ui .choice-card-label { border-radius: var(--st-radius-sm); }
.student-ui .min-w-0 { min-width: 0; }
.student-ui a.list-row { color: inherit; }
.student-ui a.list-row:hover .fw-semibold { color: var(--brand) !important; }
.student-ui .stat-tile:hover { border-color: var(--st-border-strong) !important; }
.student-ui .quick-action.qa-vert { flex-direction: column; justify-content: center; text-align: center; gap: .5rem; padding: .9rem .4rem; }
.student-ui .quick-action.qa-vert .qa-title { font-size: .875rem; }
.student-ui .quick-action.qa-vert:hover .qa-icon { background: var(--st-brand-tint); color: var(--brand); }
@media (max-width: 575.98px) { .student-ui .quick-action.qa-vert { padding: .7rem .2rem; } .student-ui .quick-action.qa-vert .qa-title { font-size: .75rem; } .student-ui .quick-action.qa-vert .qa-icon { width: 36px; height: 36px; } }

/* Nút phân đoạn (bộ lọc) */
.student-ui .seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #eceef1; border-radius: var(--st-radius-sm); }
.student-ui .seg button { border: 0; background: transparent; color: var(--st-muted); font-size: .85rem; font-weight: 500; padding: .35rem .8rem; border-radius: 8px; }
.student-ui .seg button:hover { color: var(--st-text); }
.student-ui .seg button.active { background: var(--st-surface); color: var(--st-text); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.student-ui a.card { color: inherit; }

/* Trang có thanh nổi riêng ở đáy (Xem lại bài thi): đặt trên thanh tab điện thoại */
@media (max-width: 767.98px) {
    .student-ui .floating-dock { bottom: calc(var(--st-bottom-nav-h) + env(safe-area-inset-bottom) + 6px) !important; }
    .student-ui:has(.floating-dock) .main-content { padding-bottom: calc(var(--st-bottom-nav-h) + 96px); }
}

/* Hướng dẫn (trang /guide + hộp hướng dẫn nhanh) */
.student-ui .help-steps { counter-reset: hs; list-style: none; padding: 0; margin: 0 0 .75rem; }
.student-ui .help-steps li { counter-increment: hs; position: relative; padding: 0 0 .7rem 2.1rem; font-size: .92rem; line-height: 1.6; color: var(--st-body); }
.student-ui .help-steps li::before { content: counter(hs); position: absolute; left: 0; top: .05rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--st-brand-tint); color: var(--brand-dark); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.student-ui .help-tips { background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); padding: .6rem .8rem; font-size: .85rem; color: var(--st-body); }
.student-ui .help-tips > div + div { margin-top: .35rem; }
.student-ui .help-chip { border: 1px solid var(--st-border); background: var(--st-surface); color: var(--st-body); border-radius: 50rem; font-size: .8rem; white-space: nowrap; }
.student-ui .help-chip:hover, .student-ui .help-chip.active { border-color: var(--brand); color: var(--brand-dark); background: var(--st-brand-tint); }
.student-ui .help-section { scroll-margin-top: 84px; }
.student-ui .help-toc a { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: 8px; color: var(--st-body); text-decoration: none; font-size: .9rem; }
.student-ui .help-toc a i { color: var(--st-muted); }
.student-ui .help-toc a:hover, .student-ui .help-toc a.active { background: var(--st-subtle); color: var(--st-text); font-weight: 600; }
.student-ui .help-toc a.active i { color: var(--brand); }
.student-ui .help-toc-mobile { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.student-ui .help-toc-mobile::-webkit-scrollbar { display: none; }
.student-ui .help-flow ol { padding-left: 1.1rem; margin: 0; font-size: .88rem; color: var(--st-body); }
.student-ui .help-flow li + li { margin-top: .3rem; }
.student-ui .faq-item summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--st-text); padding: .8rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.student-ui .faq-item summary::-webkit-details-marker { display: none; }
.student-ui .faq-item summary::after { content: "\F282"; font-family: "bootstrap-icons"; color: var(--st-muted); transition: transform .15s; }
.student-ui .faq-item[open] summary::after { transform: rotate(180deg); }
.student-ui .faq-item { border-bottom: 1px solid var(--st-border); }
.student-ui .faq-item:last-child { border-bottom: 0; }
.student-ui .faq-item div { padding-bottom: .8rem; font-size: .9rem; color: var(--st-body); }
.student-ui .help-btn { width: 38px; height: 38px; border-radius: var(--st-radius-sm); border: 1px solid var(--st-border); background: var(--st-surface); color: var(--st-body); display: inline-flex; align-items: center; justify-content: center; }
.student-ui .help-btn:hover { background: var(--st-subtle); color: var(--brand); }
