/* ==============================================================================
 * TAILIEUHUE - BẢNG KIỂU CHÍNH PHÍA SINH VIÊN (assets/css/main.css)
 * ==============================================================================
 * Bộ nhận diện Trường Đại học Kinh tế, Đại học Huế:
 *  - Xanh dương chủ đạo: #006BFE (Royal Blue)
 *  - Vàng nắng sáng sang trọng (màu nhấn): #FFD13B / #FFE066 -> nền kem #FFF9E0
 *  - Nền chính: Trắng tinh (#FFFFFF)
 *  - Nền phụ: Xám xanh rất nhạt (#F4F7FC)
 *  - Phông chữ: Roboto
 *  - KHÔNG sử dụng màu đỏ làm màu chủ đạo.
 */

:root {
    --primary: #006BFE;
    --primary-hover: #0054CC;
    --primary-deep: #003A96;
    --primary-soft: rgba(0, 107, 254, 0.10);

    /* Bảng vàng nắng sáng hiện đại, hài hòa cùng xanh #006BFE */
    --gold: #FFD13B;
    --gold-bright: #FFE066;
    --gold-hover: #F5BE0B;
    --gold-soft: #FFF9E0;
    --gold-border: #FFE58F;
    --gold-ink: #172554;
    --gold-badge-text: #7A4F01;

    --bg-body: #FFFFFF;
    --bg-subtle: #F4F7FC;
    --border-color: #E2E8F0;
    --border-strong: #CBD5E1;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    --success: #059669;
    --success-soft: #D1FAE5;
    --info: #0284C7;
    --info-soft: #E0F2FE;

    --radius-sm: 9px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 14px 32px rgba(0, 107, 254, 0.09);
    --shadow-gold: 0 8px 20px rgba(255, 209, 59, 0.34);
    --header-height: 78px;
    --container-max: 1220px;
    --font-sans: 'Roboto', system-ui, -apple-system, "Segoe UI", sans-serif;
    --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg-body); color: var(--text-primary);
    font-family: var(--font-sans); line-height: 1.6; overflow-x: clip;
}
button, input, select, textarea { font-family: inherit; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; background: var(--bg-subtle); padding: 2px 6px; border-radius: 6px; word-break: break-word; }

.skip-link { position: absolute; top: -100px; left: 16px; background: var(--primary); color: #FFF; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: 12px; color: #FFF; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.site-main { flex: 1 0 auto; width: 100%; }

/* --- HEADER --- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.header-inner { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); flex-shrink: 0; }

/* --- LOGO CHÍNH THỨC & HIỆU ỨNG VẾT SÁNG LƯỚT BÁM NÉT (MASKED LIGHT SHEEN) --- */
.brand-logo-shine {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    isolation: isolate;
    padding: 3px 2px;
    transition: transform 0.24s ease;
}

.brand-logo-img {
    height: 58px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 107, 254, 0.14));
    transition: filter 0.24s ease;
}

.brand-logo-footer {
    height: 72px;
}

.brand-logo-shine:hover {
    transform: translateY(-1px) scale(1.025);
}

.brand-logo-shine:hover .brand-logo-img {
    filter: drop-shadow(0 4px 12px rgba(0, 107, 254, 0.26)) drop-shadow(0 0 10px rgba(255, 209, 59, 0.42));
}

.logo-sheen-layer {
    position: absolute;
    inset: 3px 2px;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: var(--logo-mask);
    mask-image: var(--logo-mask);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.logo-sheen-layer::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -125%;
    width: 52%;
    height: 160%;
    background: linear-gradient(
        108deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 26%,
        rgba(255, 253, 232, 0.96) 50%,
        rgba(255, 224, 102, 0.52) 64%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-24deg);
    animation: tailieuhueLogoShine 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.brand-logo-shine:hover .logo-sheen-layer::before {
    animation-duration: 1.35s;
}

@keyframes tailieuhueLogoShine {
    0% {
        left: -125%;
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    46% {
        left: 165%;
        opacity: 1;
    }
    50%, 100% {
        left: 165%;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-sheen-layer::before {
        animation: none;
        display: none;
    }
}
.brand-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #2C88FF 100%);
    color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 107, 254, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }
.brand-text strong span { color: var(--gold-ink); background: linear-gradient(180deg, transparent 58%, var(--gold) 58%); padding: 0 2px; border-radius: 3px; }
.brand-text small { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-link { padding: 8px 13px; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 600; font-size: 0.91rem; white-space: nowrap; }
.nav-link:hover, .nav-link.is-active { background: var(--primary-soft); color: var(--primary); }
.nav-link-pro { color: var(--gold-badge-text); background: var(--gold-soft); border: 1px solid var(--gold-border); }
.nav-link-pro:hover, .nav-link-pro.is-active { background: var(--gold); color: var(--gold-ink); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.auth-actions-desktop { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.inline-form { display: inline-flex; margin: 0; }
.points-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; white-space: nowrap;
    background: var(--gold-soft); color: var(--gold-badge-text); border: 1px solid var(--gold-border);
}
.points-chip:hover { background: var(--gold); color: var(--gold-ink); }

/* Menu tài khoản xổ xuống (giải quyết triệt để lỗi gãy dòng header khi Admin đăng nhập) */
.user-dropdown { position: relative; }
.user-menu-trigger {
    display: inline-flex; align-items: center; gap: 7px; height: 38px;
    padding: 4px 12px 4px 5px; border-radius: 999px;
    background: #FFFFFF; border: 1px solid var(--border-strong); color: var(--text-primary);
    font-size: 0.86rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.user-menu-trigger:hover { border-color: var(--primary); background: var(--bg-subtle); }
.user-dot {
    width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #FFF;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
}
.mini-pro-tag { padding: 1px 6px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 0.68rem; font-weight: 800; }
.user-dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); width: 248px;
    background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14); padding: 8px; z-index: 200;
}
.user-dropdown-menu[hidden] { display: none !important; }
.ud-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border-color); margin-bottom: 6px; }
.ud-head strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.ud-head small { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.ud-item {
    display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px;
    color: var(--text-primary); font-size: 0.87rem; font-weight: 500; background: none; border: none; cursor: pointer;
}
.ud-item:hover { background: var(--primary-soft); color: var(--primary); }
.ud-item-admin { background: var(--gold-soft); color: var(--gold-badge-text); font-weight: 700; }
.ud-item-admin:hover { background: var(--gold); color: var(--gold-ink); }
.ud-divider { height: 1px; background: var(--border-color); margin: 6px 0; }
.ud-logout-form { margin: 0; }
.ud-logout-btn { color: var(--text-secondary); font-weight: 600; }

.icon-btn { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: #FFF; color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu-toggle { display: none; }
.mobile-nav { border-top: 1px solid var(--border-color); background: #FFF; padding: 14px 0 18px; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav-inner { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-link { display: block; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-primary); font-weight: 600; }
.mobile-nav-link.is-active, .mobile-nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.mobile-nav-divider { height: 1px; background: var(--border-color); margin: 8px 0; }
.mobile-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }

/* --- BUTTONS (Xanh #006BFE + Vàng sáng #FFD13B tinh tế) --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 600;
    line-height: 1.25; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: all var(--transition);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #FFFFFF; box-shadow: 0 4px 12px rgba(0, 107, 254, 0.22); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #FFFFFF; transform: translateY(-1px); }

.btn-gold, .btn-accent {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    color: var(--gold-ink); font-weight: 700; border-color: #F3C21A;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover:not(:disabled), .btn-accent:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: var(--gold-ink); transform: translateY(-1px);
}

.btn-outline { background: #FFFFFF; border-color: var(--border-strong); color: var(--text-primary); }
.btn-outline:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-outline.is-favorited { background: var(--gold-soft); border-color: var(--gold-border); color: var(--gold-badge-text); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-subtle); color: var(--primary); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-xs { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 0.96rem; }
.btn-block { width: 100%; }

/* --- FLASH ALERTS --- */
.flash-stack { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.91rem; font-weight: 600; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warning { background: var(--gold-soft); color: var(--gold-badge-text); border: 1px solid var(--gold-border); }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-close { background: none; border: none; color: inherit; font-size: 1.25rem; cursor: pointer; }

/* --- HERO 2 CỘT HIỆN ĐẠI --- */
.hero-section {
    padding: 36px 0 42px;
    background: radial-gradient(circle at 88% 15%, rgba(255, 209, 59, 0.22) 0%, transparent 38%),
                linear-gradient(135deg, #0049B8 0%, #006BFE 55%, #1A84FF 100%);
    color: #FFFFFF;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 36px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 224, 102, 0.48);
    color: #FFF6C7; font-size: 0.8rem; font-weight: 700; margin-bottom: 14px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 209, 59, 0.3); }
.hero-title { margin: 0 0 14px; font-size: clamp(1.75rem, 3.2vw, 2.55rem); font-weight: 800; line-height: 1.22; letter-spacing: -0.02em; }
.hero-title span { color: var(--gold-bright); }
.hero-title em { font-style: normal; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.hero-subtitle { margin: 0 0 22px; color: rgba(255, 255, 255, 0.92); font-size: 0.97rem; max-width: 590px; }

.hero-search-form {
    display: flex; gap: 8px; background: #FFFFFF; padding: 7px; border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0, 32, 92, 0.22); margin-bottom: 14px;
}
.search-input-wrap { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; padding-left: 12px; min-width: 0; }
.search-icon { color: var(--primary); flex-shrink: 0; }
.hero-search-input { width: 100%; height: 44px; border: none; outline: none; background: transparent; color: var(--text-primary); font-size: 0.94rem; }
.hero-search-btn { height: 44px; padding: 0 22px; border-radius: 10px; }

.hero-quick-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 22px; }
.quick-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.quick-tag {
    padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
    background: rgba(255, 255, 255, 0.14); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.22);
}
.quick-tag:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat-pill-card {
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px; padding: 12px 14px; display: flex; flex-direction: column;
}
.stat-pill-card strong { font-size: 1.35rem; font-weight: 800; color: var(--gold-bright); line-height: 1.2; }
.stat-pill-card span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.9); }

/* Hero Right Illustration + Floating UI Elements */
.hero-visual-frame { position: relative; padding: 10px; }
.hero-main-img {
    width: 100%; border-radius: 20px; border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 50px rgba(0, 26, 77, 0.35);
}
.hero-float-card {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: #FFFFFF; color: var(--text-primary); padding: 10px 14px; border-radius: 13px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18); border: 1px solid var(--border-color);
}
.hero-float-card strong { display: block; font-size: 0.82rem; line-height: 1.2; }
.hero-float-card small { font-size: 0.72rem; color: var(--text-muted); }
.float-top-left { top: -8px; left: -12px; }
.float-bottom-right { bottom: -10px; right: -10px; }
.float-icon { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; }
.float-icon-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--gold-ink); }
.float-icon-blue { background: var(--primary); color: #FFFFFF; }

/* --- DẢI 4 ĐIỂM MẠNH --- */
.highlights-strip { background: #FFFFFF; border-bottom: 1px solid var(--border-color); padding: 22px 0; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.highlight-item { display: flex; align-items: flex-start; gap: 12px; }
.highlight-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.highlight-item p { margin: 0; font-size: 0.81rem; color: var(--text-secondary); }
.hl-icon { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hl-blue { background: var(--primary-soft); color: var(--primary); }
.hl-gold { background: var(--gold-soft); color: var(--gold-badge-text); border: 1px solid var(--gold-border); }

/* --- SECTIONS & HEADINGS --- */
.section { padding: 40px 0; }
.section-subtle { background: var(--bg-subtle); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 4px; }
.section-title { margin: 0 0 4px; font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 800; color: var(--text-primary); }
.section-desc { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }

/* --- CATEGORIES --- */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    color: var(--text-primary); transition: all var(--transition);
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-icon-blue { background: var(--primary-soft); color: var(--primary); }
.cat-icon-gold { background: var(--gold-soft); color: var(--gold-badge-text); border: 1px solid var(--gold-border); }
.category-info { display: flex; flex-direction: column; min-width: 0; }
.category-info strong { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.category-info span { font-size: 0.8rem; color: var(--text-muted); }

/* --- INTERACTIVE TABS --- */
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-tab {
    padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border-strong);
    background: #FFFFFF; color: var(--text-secondary); font-weight: 600; font-size: 0.84rem; cursor: pointer;
    transition: all var(--transition);
}
.doc-tab:hover { border-color: var(--primary); color: var(--primary); }
.doc-tab.is-active { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.doc-tab.doc-tab-pro.is-active { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--gold-ink); border-color: #F3C21A; }
.doc-tab-panel[hidden] { display: none !important; }

/* --- DOCUMENT CARDS --- */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc-card {
    background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.doc-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.doc-card-pro { border-color: var(--gold-border); }
.doc-card-pro:hover { border-color: var(--gold-hover); box-shadow: 0 14px 32px rgba(255, 209, 59, 0.22); }

.doc-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-subtle); display: block; overflow: hidden; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.doc-card:hover .doc-thumb img { transform: scale(1.03); }
.doc-ext-badge {
    position: absolute; bottom: 10px; left: 10px; padding: 3px 9px; border-radius: 6px;
    background: rgba(15, 23, 42, 0.78); color: #FFFFFF; font-size: 0.72rem; font-weight: 700;
}
.doc-access-badge {
    position: absolute; top: 10px; right: 10px; padding: 4px 11px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
}
.doc-access-inline { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; }
.badge-free { background: var(--primary); color: #FFFFFF; }
.badge-pro { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--gold-ink); box-shadow: 0 4px 10px rgba(255, 209, 59, 0.35); }
.badge-blue-soft { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.76rem; font-weight: 700; }
.badge-gold-soft { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-badge-text); border: 1px solid var(--gold-border); font-size: 0.76rem; font-weight: 700; }
.badge-pro-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--gold-ink); font-size: 0.74rem; font-weight: 800; }
.badge-gray-soft { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-subtle); color: var(--text-secondary); font-size: 0.76rem; font-weight: 700; }

.doc-body { padding: 16px; display: flex; flex-direction: column; flex: 1 1 auto; }
.doc-category { font-size: 0.77rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.doc-title { margin: 0 0 6px; font-size: 0.98rem; font-weight: 700; line-height: 1.4; }
.doc-title a { color: var(--text-primary); }
.doc-title a:hover { color: var(--primary); }
.doc-subject { margin: 0 0 10px; font-size: 0.83rem; color: var(--text-secondary); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.79rem; color: var(--text-muted); margin-bottom: 12px; }
.doc-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.doc-price { font-size: 0.9rem; font-weight: 800; }
.is-pro-price { color: var(--gold-badge-text); }
.is-free-price { color: var(--primary); }

/* --- SHOWCASE BANNER HUE --- */
.showcase-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.showcase-img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.mini-steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 24px; }
.mini-step { display: flex; align-items: flex-start; gap: 14px; }
.mini-step-num {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 0.9rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.mini-step-num.num-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--gold-ink); }
.mini-step strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.mini-step p { margin: 0; font-size: 0.87rem; color: var(--text-secondary); }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- CARDS, FORMS, TABLES --- */
.card { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.empty-card { background: #FFFFFF; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 34px 22px; text-align: center; }
.empty-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.empty-card p { margin: 0 auto 16px; max-width: 580px; color: var(--text-secondary); font-size: 0.92rem; }

.posts-grid, .info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card, .info-card { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.post-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-badge-text); border: 1px solid var(--gold-border); font-size: 0.75rem; font-weight: 700; margin-bottom: 10px; }
.post-title, .info-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.post-title a { color: var(--text-primary); }
.post-title a:hover { color: var(--primary); }
.post-excerpt, .info-card p { margin: 0 0 12px; color: var(--text-secondary); font-size: 0.9rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--text-muted); }

/* --- CATALOG & SIDEBAR --- */
.catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.sidebar-box { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; margin-bottom: 18px; }
.sidebar-title { margin: 0 0 12px; font-size: 0.96rem; font-weight: 700; }
.sidebar-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 8px; color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; }
.sidebar-cat-list a:hover, .sidebar-cat-list a.is-active { background: var(--primary-soft); color: var(--primary); }
.sidebar-cat-list small { background: var(--bg-subtle); padding: 2px 7px; border-radius: 999px; font-size: 0.75rem; }
.sidebar-promo-box { background: linear-gradient(180deg, #FFFFFF 0%, var(--gold-soft) 100%); border-color: var(--gold-border); }
.sidebar-promo-img { width: 100%; border-radius: 10px; margin-bottom: 12px; }
.sidebar-promo-box h4 { margin: 0 0 6px; font-size: 0.96rem; }
.sidebar-promo-box p { margin: 0 0 12px; font-size: 0.84rem; color: var(--text-secondary); }

.catalog-header { margin-bottom: 16px; }
.catalog-header h1 { margin: 0 0 6px; font-size: 1.5rem; }
.catalog-header p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }
.inline-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; background: var(--bg-subtle); padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.inline-filter-bar input, .inline-filter-bar select { height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: #FFF; font-size: 0.88rem; flex: 1 1 150px; }

.pagination-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 30px;
}
.pagination {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 6px;
    margin-top: 0;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 107, 254, 0.05);
    font-variant-numeric: tabular-nums;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.page-divider {
    width: 1px;
    height: 20px;
    background: #E8EEF5;
    margin: 0 3px;
    flex-shrink: 0;
}
.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.86rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.page-btn.page-num {
    width: 36px;
    padding: 0;
    font-weight: 700;
    color: #334155;
}
.page-btn-nav {
    padding: 0 13px;
    color: #334155;
    font-weight: 600;
    font-size: 0.84rem;
}
.page-btn-prev {
    padding-left: 10px;
}
.page-btn-next {
    padding-right: 10px;
}
.page-btn:hover:not(.is-disabled):not(.is-active) {
    background: #EFF6FF;
    color: var(--primary);
}
.page-btn.is-active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 107, 254, 0.30);
    cursor: default;
}
.page-btn-nav.is-disabled {
    color: #94A3B8;
    opacity: 0.55;
    cursor: not-allowed;
}
.page-ellipsis {
    min-width: 24px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-weight: 700;
    letter-spacing: 0.05em;
    user-select: none;
}
.pagination-meta {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.79rem;
    color: #64748B;
    font-variant-numeric: tabular-nums;
}
.pagination-meta strong {
    color: #334155;
    font-weight: 600;
}
.pagination-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #CBD5E1;
}

/* --- DOCUMENT DETAIL & PDF VIEWER --- */
.breadcrumb { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 16px; word-break: break-word; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) 340px; gap: 24px; align-items: start; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.detail-title { margin: 0 0 10px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; }
.detail-meta-strip { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: var(--text-muted); margin-bottom: 18px; }
.detail-cover-box { margin-bottom: 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color); max-height: 360px; }
.detail-cover-box img { width: 100%; height: 100%; object-fit: cover; }
.detail-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; background: var(--bg-subtle); padding: 16px; border-radius: 12px; margin-bottom: 20px; font-size: 0.88rem; }
.detail-info-grid span { color: var(--text-muted); }
.detail-description h2 { margin: 0 0 8px; font-size: 1.08rem; }
.detail-description p { margin: 0; color: var(--text-secondary); }

.pdf-viewer-box { margin-top: 22px; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.pdf-viewer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-subtle); border-bottom: 1px solid var(--border-color); }
.pdf-viewer-head h3 { margin: 0; font-size: 0.94rem; }
.pdf-iframe { width: 100%; height: 560px; border: none; display: block; }
.pro-lock-banner { margin-top: 20px; padding: 20px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-border); }
.pro-lock-banner h3 { margin: 0 0 6px; font-size: 1rem; color: var(--gold-badge-text); }
.pro-lock-banner p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

.download-box-pro { border: 2px solid var(--gold-border); background: linear-gradient(180deg, #FFFDF2 0%, #FFFFFF 100%); }
.pro-price-header, .free-price-header { margin-bottom: 16px; }
.pro-price-values { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.pro-price-values strong { font-size: 1.45rem; color: var(--gold-ink); }
.free-price-header strong { display: block; margin-top: 8px; font-size: 1.08rem; color: var(--primary); }
.access-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin: 10px 0 0; }
.access-lock-msg { font-size: 0.88rem; color: var(--gold-badge-text); margin: 0 0 14px; font-weight: 600; }
.drive-policy-note { font-size: 0.78rem; color: var(--text-muted); background: var(--bg-subtle); padding: 8px 10px; border-radius: 8px; margin-top: 10px; }
.bank-info-box { margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--bg-subtle); font-size: 0.8rem; color: var(--text-secondary); }
.favorite-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.related-box { margin-top: 18px; }
.related-box h3 { margin: 0 0 12px; font-size: 1rem; }
.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related-list a { display: block; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); }
.related-list strong { display: block; font-size: 0.88rem; }
.related-list small { color: var(--text-muted); font-size: 0.78rem; }

.detail-interact-card { margin: 20px 0; }
.interact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.interact-grid h3 { margin: 0 0 10px; font-size: 0.98rem; }
.star-select { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.star-opt { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--gold-border); background: var(--gold-soft); font-size: 0.84rem; font-weight: 700; color: var(--gold-badge-text); cursor: pointer; }
.report-form { display: flex; flex-direction: column; gap: 8px; }
.comment-list { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.comment-item { padding: 14px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border-color); }
.comment-head { display: flex; justify-content: space-between; font-size: 0.84rem; margin-bottom: 6px; }
.comment-head small { color: var(--text-muted); }
.comment-body { margin: 0; font-size: 0.91rem; color: var(--text-primary); word-break: break-word; }
.comment-actions { display: flex; gap: 12px; margin-top: 8px; font-size: 0.82rem; align-items: flex-start; }
.link-btn { background: none; border: none; color: var(--primary); font-weight: 600; cursor: pointer; padding: 0; font-size: 0.82rem; }

/* --- FORMS, AUTH & PROFILE --- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-span-2 { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.form-control { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: #FFFFFF; color: var(--text-primary); font-size: 0.92rem; }
.form-control:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field-error { color: #B91C1C; font-size: 0.8rem; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.search-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.search-count-note { margin-left: auto; font-size: 0.88rem; color: var(--text-secondary); }
.pro-config-box { background: var(--gold-soft); border: 1px solid var(--gold-border); border-radius: 12px; padding: 14px; }

.auth-section { background: var(--bg-subtle); padding: 48px 0 60px; }
.auth-single-card { max-width: 480px; margin: 0 auto; }
.auth-switch { text-align: center; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #F1F5F9; font-size: 0.9rem; color: var(--text-secondary); }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.small-link { font-size: 0.82rem; font-weight: 600; }
.password-input-wrap { position: relative; display: flex; align-items: center; }
.password-input-wrap .form-control { padding-right: 46px; }
.pw-toggle-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 6px; padding: 4px 9px; font-size: 0.76rem; font-weight: 700; cursor: pointer; }

.profile-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-mini-card { background: linear-gradient(135deg, #004EC2 0%, #006BFE 100%); color: #FFF; border-radius: var(--radius-md); padding: 22px 18px; text-align: center; margin-bottom: 14px; }
.profile-avatar { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 10px; background: var(--gold); color: var(--gold-ink); font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.45); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-mini-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.profile-mini-card p { margin: 0 0 10px; font-size: 0.84rem; opacity: 0.85; }
.profile-badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.profile-nav { background: #FFF; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.profile-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; }
.profile-nav a:hover, .profile-nav a.is-active { background: var(--primary-soft); color: var(--primary); }
.profile-nav a.profile-nav-upload { margin-top: 6px; text-align: center; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--gold-ink); font-weight: 700; }

.profile-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-box { background: #FFF; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi-box-gold { background: var(--gold-soft); border-color: var(--gold-border); }
.kpi-box span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.kpi-box strong { font-size: 1.35rem; font-weight: 800; }
.kpi-box a, .kpi-box small { font-size: 0.8rem; }

.table-wrap { width: 100%; overflow-x: auto; }
.simple-table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
.simple-table th, .simple-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-color); text-align: left; }
.simple-table th { background: var(--bg-subtle); font-size: 0.78rem; text-transform: uppercase; color: var(--text-muted); }
.muted-text { color: var(--text-muted); font-size: 0.9rem; }
.muted-small { color: var(--text-muted); font-size: 0.78rem; }
.post-detail-card h1 { margin: 6px 0 10px; font-size: 1.65rem; }
.post-content-body { font-size: 0.98rem; line-height: 1.8; color: var(--text-primary); margin: 18px 0; }
.post-detail-footer { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-color); align-items: flex-start; }

/* --- FOOTER --- */
.site-footer { margin-top: auto; background: #FFFFFF; border-top: 1px solid var(--border-color); padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
.footer-desc { margin: 12px 0 16px; color: var(--text-secondary); font-size: 0.9rem; max-width: 440px; }
.footer-status-list { display: flex; flex-wrap: wrap; gap: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--bg-subtle); border: 1px solid var(--border-color); color: var(--text-secondary); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-online { color: var(--success); border-color: rgba(5, 150, 105, 0.3); }
.footer-heading { margin: 0 0 12px; font-size: 0.95rem; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { background: var(--bg-subtle); border-top: 1px solid var(--border-color); padding: 16px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.84rem; color: var(--text-muted); }
.footer-bottom-inner p { margin: 0; }

/* --- TOAST & MODAL --- */
.toast-container { position: fixed; right: 18px; bottom: 18px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 36px); width: 340px; }
.toast-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: #FFF; border: 1px solid var(--border-color); border-left: 4px solid var(--primary); box-shadow: var(--shadow-md); font-size: 0.9rem; }
.toast-item.toast-success { border-left-color: var(--success); }
.toast-item.toast-warning { border-left-color: var(--gold-hover); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1300; background: rgba(15, 23, 42, 0.55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop[hidden] { display: none !important; }
.modal-dialog { width: 100%; max-width: 420px; background: #FFF; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.modal-title { margin: 0 0 10px; font-size: 1.12rem; }
.modal-message { margin: 0 0 20px; color: var(--text-secondary); font-size: 0.94rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* --- CÁC ELEMENT HIỆN ĐẠI MỚI (SEARCH DOCK, DUAL CTA, DRIVE GUIDE, VÍ ĐIỂM, GÓI PRO) --- */
.hero-with-dock { padding-bottom: 72px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.btn-outline-hero {
    background: rgba(255, 255, 255, 0.14); border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #FFFFFF; font-weight: 700;
}
.btn-outline-hero:hover { background: #FFFFFF; color: var(--primary); }

/* Floating Search Dock kiểu Ohdidi giữ màu TailieuHue */
.search-dock-wrap { margin-top: -46px; position: relative; z-index: 20; }
.search-dock-card {
    background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 18px;
    padding: 20px 22px 16px; box-shadow: 0 20px 44px rgba(0, 58, 150, 0.13);
}
.dock-search-grid { display: grid; grid-template-columns: 1.8fr 1fr 0.95fr 170px; gap: 12px; align-items: end; }
.dock-field { display: flex; flex-direction: column; gap: 5px; }
.dock-field label { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dock-field input, .dock-field select {
    height: 44px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--border-strong);
    background: var(--bg-subtle); color: var(--text-primary); font-size: 0.92rem;
}
.dock-field input:focus, .dock-field select:focus { background: #FFFFFF; outline: 2px solid var(--primary); border-color: var(--primary); }
.dock-btn { height: 44px; border-radius: 10px; }
.dock-quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.dock-quick-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.dock-chip { padding: 4px 12px; border-radius: 999px; background: var(--bg-subtle); color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border-color); }
.dock-chip:hover { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }

/* Dual CTA Cards tách biệt Điểm thưởng & Gói PRO */
.dual-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dual-cta-card {
    border-radius: 18px; padding: 24px; border: 1px solid var(--border-color);
    display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.dual-cta-gold { background: linear-gradient(135deg, #FFFDF2 0%, var(--gold-soft) 100%); border-color: var(--gold-border); }
.dual-cta-blue { background: linear-gradient(135deg, #F5F9FF 0%, #EBF3FF 100%); border-color: #BFDBFE; }
.dual-cta-card h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.dual-cta-card p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }
.dual-cta-action { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Hộp hướng dẫn Google Drive & kiểm tra link */
.drive-guide-card {
    background: linear-gradient(135deg, #F5F9FF 0%, var(--gold-soft) 100%);
    border: 1px solid var(--gold-border); border-radius: 14px; padding: 18px 22px; margin-bottom: 20px;
}
.drive-guide-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary); color: #FFF; font-size: 0.78rem; font-weight: 700; margin-bottom: 10px; }
.drive-guide-steps { margin: 0; padding-left: 20px; font-size: 0.9rem; color: var(--text-primary); }
.drive-guide-steps li + li { margin-top: 5px; }
.drive-input-box { background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; }
.drive-check-row { display: flex; gap: 8px; align-items: center; }
.drive-feedback { font-size: 0.83rem; font-weight: 600; margin-top: 6px; }
.drive-feedback.is-ok { color: var(--success); }
.drive-feedback.is-bad { color: #B91C1C; }
.reward-notice-bar { margin-top: 16px; padding: 13px 16px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold-border); color: var(--gold-badge-text); font-size: 0.88rem; }

/* Ví điểm thưởng & Mở khóa tài liệu */
.wallet-hero-card {
    background: linear-gradient(135deg, #0049B8 0%, #006BFE 100%); color: #FFFFFF;
    border-radius: 18px; padding: 26px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.wallet-hero-card h1 { margin: 10px 0 6px; font-size: 2rem; color: var(--gold-bright); }
.wallet-hero-card p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, 0.92); font-size: 0.92rem; }
.wallet-hero-actions { display: flex; flex-direction: column; gap: 8px; }
.wallet-mini-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-subtle); margin-bottom: 12px; font-size: 0.88rem; }
.insufficient-box { background: var(--gold-soft); border: 1px solid var(--gold-border); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.insufficient-box strong { display: block; color: var(--gold-badge-text); margin-bottom: 4px; font-size: 0.9rem; }
.insufficient-box p { margin: 0 0 10px; font-size: 0.83rem; color: var(--text-secondary); }
.pro-alt-divider { text-align: center; margin: 14px 0 10px; position: relative; font-size: 0.78rem; color: var(--text-muted); }

/* Trang Gói PRO trả phí bằng tiền */
.pro-hero-banner {
    background: linear-gradient(135deg, #0046B5 0%, #006BFE 100%); color: #FFFFFF;
    border-radius: 20px; padding: 36px 30px; text-align: center; margin-bottom: 22px;
}
.pro-hero-banner h1 { margin: 0 auto 10px; max-width: 760px; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.pro-hero-banner h1 span { color: var(--gold-bright); }
.pro-hero-banner p { margin: 0 auto; max-width: 680px; color: rgba(255, 255, 255, 0.92); font-size: 0.95rem; }
.pro-status-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-radius: 14px; background: var(--bg-subtle); border: 1px solid var(--border-color); margin-bottom: 20px; font-size: 0.9rem;
}
.pro-status-strip.is-pro-on { background: var(--gold-soft); border-color: var(--gold-border); }
.compare-dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.compare-card { background: #FFF; border: 1px solid var(--border-color); border-radius: 14px; padding: 20px; }
.compare-card-gold { background: var(--gold-soft); border-color: var(--gold-border); }
.compare-card h3 { margin: 8px 0 6px; font-size: 1.04rem; }
.compare-card p { margin: 0 0 12px; font-size: 0.89rem; color: var(--text-secondary); }
.pro-plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pro-plan-card {
    position: relative; background: #FFFFFF; border: 1.5px solid var(--border-color); border-radius: 16px;
    padding: 22px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.pro-plan-card.is-popular { border-color: var(--gold-hover); box-shadow: 0 16px 36px rgba(255, 209, 59, 0.25); background: linear-gradient(180deg, #FFFDF2 0%, #FFFFFF 45%); }
.plan-ribbon { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 0.72rem; font-weight: 800; margin-bottom: 10px; }
.pro-plan-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.plan-price { margin-bottom: 14px; }
.plan-price strong { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.plan-price span { font-size: 0.84rem; color: var(--text-muted); }
.plan-benefits { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; color: var(--text-secondary); flex: 1; }
.plan-form { margin-top: auto; }


/* ==============================================================================
 * LỚP NÂNG CẤP ICON VECTOR SVG, BANNER CHUYÊN NGHIỆP & HIỆU ỨNG CHUYỂN ĐỘNG
 * ============================================================================== */
.ui-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Header scroll glass elevation + icon alignment */
.site-header {
    transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-bottom-color: rgba(226, 232, 240, 0.85);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-link .ui-icon { opacity: 0.78; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-link:hover .ui-icon, .nav-link.is-active .ui-icon { opacity: 1; transform: translateY(-1px); }

.user-menu-trigger {
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.user-menu-trigger:hover {
    box-shadow: 0 4px 12px rgba(0, 107, 254, 0.12);
}
.dropdown-chevron { transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.user-menu-trigger[aria-expanded="true"] .dropdown-chevron { transform: rotate(180deg); }

.user-dropdown-menu {
    transform-origin: top right;
    animation: thDropdownIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes thDropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ud-item {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.ud-item:hover { transform: translateX(2px); }
.ud-item .ui-icon { opacity: 0.78; }
.ud-item:hover .ui-icon { opacity: 1; }

/* Hiệu ứng ánh sáng lướt (Gold Shimmer) cho nút CTA chính */
.btn {
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}
.btn-primary:hover:not(:disabled) {
    box-shadow: 0 10px 24px rgba(0, 107, 254, 0.30);
}
.btn-gold:hover:not(:disabled) {
    box-shadow: 0 10px 26px rgba(255, 209, 59, 0.48);
}
.btn-shimmer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-shimmer::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -110%;
    width: 48%;
    height: 180%;
    background: linear-gradient(108deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.58) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-24deg);
    pointer-events: none;
    transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-shimmer:hover::after {
    left: 150%;
}

/* Hero Ambient Orbs & Real Photo Polish */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-container-rel {
    position: relative;
    z-index: 2;
}
.hero-ambient-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(64px);
    opacity: 0.42;
    z-index: 1;
}
.hero-ambient-orb.orb-1 {
    width: 380px;
    height: 380px;
    top: -120px;
    right: -60px;
    background: radial-gradient(circle, rgba(255, 224, 102, 0.68) 0%, rgba(255, 209, 59, 0) 70%);
    animation: thFloatSlow 9s ease-in-out infinite alternate;
}
.hero-ambient-orb.orb-2 {
    width: 320px;
    height: 320px;
    bottom: -110px;
    left: -80px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.65) 0%, rgba(0, 107, 254, 0) 70%);
    animation: thFloatSlow 11s ease-in-out infinite alternate-reverse;
}
@keyframes thFloatSlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(18px, -16px) scale(1.06); }
}

.stat-pill-card {
    backdrop-filter: blur(8px);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, border-color 0.22s ease;
}
.stat-pill-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 224, 102, 0.48);
}
.stat-pill-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-mini-ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-real-photo-frame {
    padding: 6px;
}
.hero-real-img {
    border-radius: 22px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 28px 60px rgba(0, 24, 72, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.hero-real-photo-frame:hover .hero-real-img {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 34px 70px rgba(0, 24, 72, 0.44);
}
.float-animate {
    animation: thCardFloat 4.6s ease-in-out infinite;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96);
}
@keyframes thCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* Search Dock icons & elevation */
.search-dock-card {
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.search-dock-card:focus-within {
    box-shadow: 0 26px 54px rgba(0, 74, 190, 0.18), 0 0 0 2px rgba(0, 107, 254, 0.14);
}
.dock-field label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrap .input-leading-ic {
    position: absolute;
    left: 13px;
    color: var(--primary);
    pointer-events: none;
}
.input-icon-wrap input {
    width: 100%;
    padding-left: 38px;
}
.dock-quick-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
}
.dock-chip {
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.dock-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 107, 254, 0.22);
}

/* Banner Quảng Bá Chuyên Nghiệp (Editorial 3D Glassmorphic Banner) */
.editorial-promo-banner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background-color: #003B9E;
    background-size: cover;
    background-position: right center;
    padding: 40px 42px;
    color: #FFFFFF;
    box-shadow: 0 22px 48px rgba(0, 58, 150, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.editorial-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(96deg, rgba(0, 42, 122, 0.94) 0%, rgba(0, 72, 194, 0.86) 46%, rgba(0, 107, 254, 0.22) 78%, rgba(0, 107, 254, 0.05) 100%);
    pointer-events: none;
}
.editorial-banner-content {
    position: relative;
    z-index: 2;
    max-width: 630px;
}
.editorial-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 224, 102, 0.45);
    color: #FFF6C7;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}
.editorial-promo-banner h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    font-weight: 900;
    line-height: 1.24;
    letter-spacing: -0.015em;
}
.editorial-promo-banner h2 span {
    color: var(--gold-bright);
}
.editorial-promo-banner p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.96rem;
    max-width: 560px;
}
.editorial-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.editorial-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.editorial-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.editorial-trust-row .ui-icon {
    color: var(--gold-bright);
}

/* Pro Hero & Wallet Hero Editorial Backdrop */
.pro-hero-editorial {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: right center;
    text-align: left;
    padding: 44px 40px;
    box-shadow: 0 22px 46px rgba(0, 58, 150, 0.22);
}
.pro-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 650px;
}
.pro-hero-editorial h1, .pro-hero-editorial p {
    margin-left: 0;
    margin-right: 0;
}
.wallet-hero-editorial {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: right center;
    box-shadow: 0 18px 40px rgba(0, 58, 150, 0.2);
}
.wallet-hero-content, .wallet-hero-actions {
    position: relative;
    z-index: 2;
}

/* Dual CTA & Badges Inline Icon Alignment */
.dual-cta-card {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.dual-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}
.dual-cta-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dual-cta-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dual-ic-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--gold-ink);
    box-shadow: 0 6px 14px rgba(255, 209, 59, 0.35);
}
.dual-ic-blue {
    background: linear-gradient(135deg, var(--primary), #2C88FF);
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(0, 107, 254, 0.26);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-pro-pill, .badge-blue-soft, .badge-gold-soft, .badge-gray-soft, .doc-access-badge, .doc-access-inline, .doc-ext-badge, .drive-guide-badge, .plan-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pro-status-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Category Cards Enhanced Micro-Interaction */
.category-card {
    position: relative;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 107, 254, 0.11);
}
.category-icon {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.category-card:hover .category-icon {
    transform: scale(1.08) rotate(-3deg);
}
.cat-arrow {
    margin-left: auto;
    color: var(--text-muted);
    opacity: 0.45;
    transform: translateX(-4px);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, color 0.22s ease;
}
.category-card:hover .cat-arrow {
    opacity: 1;
    color: var(--primary);
    transform: translateX(2px);
}

/* Document Tabs & Cards Icon Alignment + Smooth Hover */
.doc-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.doc-card {
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}
.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 38px rgba(0, 107, 254, 0.12);
}
.doc-card:hover .doc-thumb img {
    transform: scale(1.05);
}
.doc-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.doc-meta, .post-meta, .detail-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.meta-star {
    color: #D97706;
    font-weight: 700;
}

/* Empty State Icon Ring */
.empty-icon-ring {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin: 0 auto 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Real Campus Showcase Photo + Glassmorphic Caption */
.showcase-photo-wrap {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 58, 150, 0.16);
    border: 1px solid var(--border-color);
}
.showcase-photo-wrap .showcase-img {
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-photo-wrap:hover .showcase-img {
    transform: scale(1.035);
}
.showcase-glass-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(11, 27, 59, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.caption-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 209, 59, 0.35);
    flex-shrink: 0;
}

/* Profile Sidebar & Catalog Sidebar Icon Alignment */
.profile-nav a, .sidebar-title, .sidebar-cat-name, .access-lock-msg, .wallet-mini-bar > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.profile-nav a { display: flex; transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.profile-nav a:hover { transform: translateX(3px); }
.profile-nav a.profile-nav-upload { justify-content: center; }

/* PRO Plan Card Hover + Check Icon */
.pro-plan-card {
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}
.pro-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(0, 74, 190, 0.14);
}
.pro-plan-card.is-popular:hover {
    box-shadow: 0 24px 48px rgba(255, 209, 59, 0.32);
}
.plan-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.benefit-check {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}
.pro-plan-card.is-popular .benefit-check {
    color: var(--gold-badge-text);
}

/* Post Card Hover */
.post-card, .info-card {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}
.post-card:hover, .info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Scroll-Reveal Animation (chỉ ẩn khi JS đã sẵn sàng gán .js-reveal-ready trên <html>) */
html.js-reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1), transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
html.js-reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Toast entrance */
.toast-item {
    animation: thToastIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes thToastIn {
    from { opacity: 0; transform: translateX(20px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    html.js-reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero-ambient-orb, .float-animate, .toast-item, .user-dropdown-menu { animation: none !important; }
    .btn-shimmer::after { display: none; }
}


/* ==============================================================================
 * HIỆU ỨNG LIQUID GLASS (KÍNH LỎNG PHẢN CHIẾU ÁNH SÁNG HIỆN ĐẠI)
 * ==============================================================================
 * Kính mờ đa lớp kết hợp viền phản quang specular, khúc xạ sáng theo con trỏ chuột
 * và độ nét ảnh tối ưu — giữ trọn nhận diện Xanh #006BFE + Vàng #FFD13B của TailieuHue.
 */

/* Nâng độ sắc nét khi trình duyệt co giãn ảnh đồ họa & ảnh thật */
.hero-real-img,
.showcase-img,
.doc-thumb img,
.sidebar-promo-img {
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

/* Header Liquid Glass */
.site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(248, 251, 255, 0.74) 100%);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 26px rgba(0, 58, 150, 0.06), inset 0 -1px 0 rgba(226, 232, 240, 0.75);
}
.site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(244, 248, 255, 0.68) 100%);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    box-shadow: 0 14px 36px rgba(0, 58, 150, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* User Dropdown Liquid Glass */
.user-dropdown-menu {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 52px rgba(0, 42, 122, 0.16), 0 0 0 1px rgba(0, 107, 254, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Hero Eyebrow, Stat Pills & Floating Card: Kính lỏng trong suốt ánh pha lê */
.hero-eyebrow,
.editorial-pill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.09) 100%);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 8px 24px rgba(0, 24, 72, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.stat-pill-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(185%);
    -webkit-backdrop-filter: blur(20px) saturate(185%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 12px 28px rgba(0, 24, 72, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 1px 0 0 rgba(255, 255, 255, 0.25);
}

.btn-outline-hero {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 8px 22px rgba(0, 24, 72, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

/* Khung viền kính lỏng bao quanh ảnh thật Hero */
.hero-real-photo-frame {
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 30px 64px rgba(0, 22, 68, 0.34), inset 0 1.5px 0 rgba(255, 255, 255, 0.65);
}
.hero-real-img {
    border-radius: 20px;
    border: none;
    box-shadow: 0 12px 32px rgba(0, 20, 60, 0.24);
}

.hero-float-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86) 0%, rgba(244, 248, 255, 0.72) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(0, 32, 96, 0.22), inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
}

/* Search Dock Liquid Glass — nổi trên ranh giới Hero */
.search-dock-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.86) 0%, rgba(246, 250, 255, 0.78) 100%);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 54px rgba(0, 58, 150, 0.14), 0 0 0 1px rgba(0, 107, 254, 0.08), inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
}
.search-dock-card::before,
.dual-cta-card::before,
.stat-pill-card::before,
.pro-plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(320px circle at var(--lg-x, 50%) var(--lg-y, 0%), rgba(255, 255, 255, 0.42), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}
.search-dock-card:hover::before,
.dual-cta-card:hover::before,
.stat-pill-card:hover::before,
.pro-plan-card:hover::before {
    opacity: 1;
}
.search-dock-card > *,
.dual-cta-card > *,
.stat-pill-card > *,
.pro-plan-card > * {
    position: relative;
    z-index: 2;
}

/* Dual CTA & Pro Plan Liquid Glass Sheen */
.dual-cta-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 12px 30px rgba(0, 58, 150, 0.06), inset 0 1.5px 0 rgba(255, 255, 255, 0.9);
}
.dual-cta-gold {
    background: linear-gradient(140deg, rgba(255, 253, 240, 0.88) 0%, rgba(255, 246, 206, 0.78) 100%);
}
.dual-cta-blue {
    background: linear-gradient(140deg, rgba(244, 249, 255, 0.88) 0%, rgba(230, 241, 255, 0.78) 100%);
}

/* Showcase Glass Caption Liquid Lens */
.showcase-glass-caption {
    background: linear-gradient(135deg, rgba(11, 27, 59, 0.64) 0%, rgba(0, 62, 168, 0.56) 100%);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 28px rgba(0, 20, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Pro Plan & Modal Liquid Glass */
.pro-plan-card {
    overflow: hidden;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 251, 255, 0.84) 100%);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05), inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
}
.modal-backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.toast-item {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    box-shadow: 0 16px 38px rgba(0, 42, 122, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* ==============================================================================
 * HỆ THỐNG THÔNG BÁO THÔNG MINH (BELL DROPDOWN + TRANG THÔNG BÁO + LIQUID GLASS)
 * ============================================================================== */
.notif-dropdown { position: relative; }
.notif-bell-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.notif-bell-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}
.notif-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--gold-ink);
    font-size: 0.68rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(255, 209, 59, 0.55);
}
.notif-count-badge.is-empty { display: none; }

.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 380px;
    max-width: calc(100vw - 24px);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 56px rgba(0, 42, 122, 0.18), 0 0 0 1px rgba(0, 107, 254, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    overflow: hidden;
    z-index: 260;
    transform-origin: top right;
    animation: thDropdownIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.notif-panel[hidden] { display: none !important; }

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border-color);
}
.notif-panel-head strong { font-size: 0.98rem; font-weight: 800; color: var(--text-primary); }
.notif-markall-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 7px;
}
.notif-markall-btn:hover { background: var(--primary-soft); }

.notif-cat-tabs {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    background: rgba(244, 247, 252, 0.6);
}
.notif-cat-pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.16s ease;
}
.notif-cat-pill.is-active, .notif-cat-pill:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.notif-list { max-height: 360px; overflow-y: auto; }
.notif-empty { padding: 28px 18px; text-align: center; font-size: 0.86rem; color: var(--text-muted); }

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    color: var(--text-primary);
    transition: background-color 0.16s ease;
    position: relative;
}
.notif-item:hover { background: rgba(0, 107, 254, 0.05); color: var(--text-primary); }
.notif-item.is-unread { background: rgba(0, 107, 254, 0.065); }
.notif-item.is-unread:hover { background: rgba(0, 107, 254, 0.10); }

.notif-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.notif-ic.tone-blue { background: var(--primary-soft); color: var(--primary); }
.notif-ic.tone-gold { background: var(--gold-soft); color: var(--gold-badge-text); border: 1px solid var(--gold-border); }
.notif-ic.tone-amber { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }

.notif-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.notif-body strong { font-size: 0.85rem; line-height: 1.3; color: var(--text-primary); }
.notif-msg { font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-body small { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.notif-unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 3px rgba(0, 107, 254, 0.2);
}

.notif-panel-foot {
    padding: 11px 16px;
    text-align: center;
    background: rgba(244, 247, 252, 0.85);
    border-top: 1px solid var(--border-color);
}
.notif-panel-foot a { font-size: 0.84rem; font-weight: 700; color: var(--primary); }

/* Trang Thông báo của tôi (/profile/notifications) */
.notif-page-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.notif-filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.notif-status-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.notif-cat-select-wrap select { min-width: 190px; height: 38px; padding: 4px 10px; }

.notif-page-list { display: flex; flex-direction: column; gap: 10px; }
.notif-page-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.notif-page-item.is-unread {
    background: linear-gradient(135deg, rgba(0, 107, 254, 0.05) 0%, rgba(255, 249, 224, 0.45) 100%);
    border-color: rgba(0, 107, 254, 0.28);
}
.notif-page-item:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(0, 107, 254, 0.08); }
.notif-page-main-link { display: flex; align-items: flex-start; gap: 13px; flex: 1; min-width: 0; color: var(--text-primary); }
.notif-page-content { min-width: 0; flex: 1; }
.notif-page-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 4px; }
.notif-page-top strong { font-size: 0.94rem; }
.notif-page-content p { margin: 0 0 6px; font-size: 0.88rem; color: var(--text-secondary); }
.notif-page-content small { display: inline-flex; align-items: center; gap: 5px; font-size: 0.77rem; color: var(--text-muted); }
.notif-status-pill { padding: 2px 8px; border-radius: 999px; background: var(--primary); color: #FFF; font-size: 0.7rem; font-weight: 700; }
.notif-page-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Nâng cấp Toast góc màn hình không che nội dung */
.toast-container { pointer-events: none; }
.toast-item { pointer-events: auto; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 14px; }
.toast-item .toast-ic { flex-shrink: 0; margin-top: 1px; color: var(--primary); }
.toast-item.toast-success .toast-ic { color: var(--success); }
.toast-item.toast-warning .toast-ic { color: var(--gold-badge-text); }
.toast-item.toast-error { border-left-color: #DC2626; }
.toast-item.toast-error .toast-ic { color: #DC2626; }
.toast-body { flex: 1; min-width: 0; }
.toast-body strong { display: block; font-size: 0.85rem; margin-bottom: 2px; color: var(--text-primary); }
.toast-body span { display: block; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }


/* ==============================================================================
 * TINH CHỈNH NỀN TRẮNG TINH DROPDOWN/SEARCH DOCK + MÀU VÀNG CHỮ TRẮNG TƯƠNG PHẢN CAO
 * ============================================================================== */

/* 1. Dropdown tài khoản, Dropdown chuông thông báo & Hộp tìm kiếm nổi: Nền trắng tinh 100% không bị lộ nền xanh bên dưới */
.user-dropdown-menu,
.notif-panel {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(0, 58, 150, 0.08) !important;
}

.search-dock-card {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 22px 48px rgba(0, 58, 150, 0.13), 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}
.search-dock-card::before {
    display: none !important;
}

/* 2. Bảng Cam Vàng chuẩn #F59E0B theo mẫu khách chọn + Chữ Trắng (#FFFFFF) sắc nét */
:root {
    --gold-rich-start: #F8AC1D;
    --gold-rich-end: #F59E0B;
    --gold-rich-hover-start: #F59E0B;
    --gold-rich-hover-end: #E38D04;
    --gold-rich-border: #EA9408;
}

.btn-gold,
.btn-accent,
.profile-nav a.profile-nav-upload {
    background: linear-gradient(135deg, var(--gold-rich-start) 0%, var(--gold-rich-end) 100%) !important;
    color: #FFFFFF !important;
    border-color: var(--gold-rich-border) !important;
    text-shadow: 0 1px 1px rgba(146, 64, 14, 0.22);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.30);
}
.btn-gold:hover:not(:disabled),
.btn-accent:hover:not(:disabled),
.profile-nav a.profile-nav-upload:hover {
    background: linear-gradient(135deg, var(--gold-rich-hover-start) 0%, var(--gold-rich-hover-end) 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.38);
}

.badge-pro,
.badge-pro-pill,
.plan-ribbon,
.notif-count-badge,
.mini-pro-tag,
.float-icon-gold,
.dual-ic-gold,
.mini-step-num.num-gold,
.doc-tab.doc-tab-pro.is-active {
    background: #F59E0B !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    text-shadow: 0 1px 1px rgba(146, 64, 14, 0.20);
}

.ud-item-admin {
    background: #F59E0B !important;
    color: #FFFFFF !important;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(146, 64, 14, 0.20);
}
.ud-item-admin:hover {
    background: linear-gradient(135deg, var(--gold-rich-hover-start) 0%, var(--gold-rich-hover-end) 100%) !important;
    color: #FFFFFF !important;
}

.nav-link-pro:hover,
.nav-link-pro.is-active,
.points-chip:hover {
    background: linear-gradient(135deg, var(--gold-rich-start) 0%, var(--gold-rich-end) 100%) !important;
    color: #FFFFFF !important;
    border-color: var(--gold-rich-border) !important;
}


/* ==============================================================================
 * THIẾT KẾ LẠI TOAST HIỆN ĐẠI (SONNER STYLE - KHÔNG DẢI VIỀN TRÁI KIỂU AI)
 * + KHỐI QUY TRÌNH 3 BƯỚC CAO CẤP + CỔNG KHÓA ĐĂNG NHẬP XEM/TẢI ĐỀ CƯƠNG
 * ============================================================================== */

/* 1. Toast gọn sang kiểu hiện đại */
.toast-container {
    right: 20px;
    bottom: 20px;
    width: 360px;
}
.toast-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px 15px;
    border-radius: 14px !important;
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(15, 23, 42, 0.09) !important;
    border-left: 1px solid rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.13), 0 3px 10px rgba(0, 58, 150, 0.06) !important;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast-item.is-leaving {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
}
.toast-badge-ic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-item.toast-success .toast-badge-ic { background: #ECFDF5; color: #059669; }
.toast-item.toast-info .toast-badge-ic { background: #EFF6FF; color: #006BFE; }
.toast-item.toast-warning .toast-badge-ic { background: #FEF3C7; color: #D97706; }
.toast-item.toast-error .toast-badge-ic { background: #FEF2F2; color: #DC2626; }

.toast-body { flex: 1; min-width: 0; }
.toast-body strong { display: block; font-size: 0.86rem; font-weight: 700; color: #0F172A; line-height: 1.3; margin-bottom: 2px; }
.toast-body span { display: block; font-size: 0.84rem; font-weight: 500; color: #334155; line-height: 1.42; }

.toast-close-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.toast-close-btn:hover { background: #F1F5F9; color: #0F172A; }

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2.5px;
    width: 100%;
    transform-origin: left center;
    animation: thToastBar linear forwards;
}
.toast-item.toast-success .toast-progress { background: linear-gradient(90deg, #10B981, #34D399); }
.toast-item.toast-info .toast-progress { background: linear-gradient(90deg, #006BFE, #60A5FA); }
.toast-item.toast-warning .toast-progress { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.toast-item.toast-error .toast-progress { background: linear-gradient(90deg, #EF4444, #FCA5A5); }

@keyframes thToastBar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* 2. Khối Quy trình 3 bước Chia sẻ & Tích điểm (Light Editorial Bento — sáng thoáng đồng bộ TailieuHue) */
.reward-journey-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 36px 38px;
    background:
        radial-gradient(circle at 96% 8%, rgba(245, 158, 11, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 4% 92%, rgba(0, 107, 254, 0.07) 0%, transparent 42%),
        linear-gradient(155deg, #FFFFFF 0%, #F5F9FF 62%, #FFFDF7 100%);
    border: 1px solid #E2E8F0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
    color: #0F172A;
}
.reward-journey-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 107, 254, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
    pointer-events: none;
}
.rj-top-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 28px;
}
.rj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #0056D6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.rj-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #006BFE;
    box-shadow: 0 0 0 3px rgba(0, 107, 254, 0.16);
}
.rj-title {
    margin: 14px 0 12px;
    font-size: clamp(1.56rem, 2.5vw, 2.1rem);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #0F172A;
}
.rj-title span {
    background: linear-gradient(95deg, #006BFE 0%, #0284C7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rj-lead {
    margin: 0 0 22px;
    font-size: 0.94rem;
    line-height: 1.62;
    color: #475569;
    max-width: 530px;
}
.rj-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
}
.rj-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 21px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF !important;
    border: 1px solid #D97706;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.rj-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.36);
    filter: brightness(1.03);
    color: #FFFFFF !important;
}
.rj-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 19px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #1E293B !important;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.rj-btn-glass:hover {
    background: #EFF6FF;
    border-color: #93C5FD;
    color: #006BFE !important;
    transform: translateY(-2px);
}

.rj-visual {
    position: relative;
}
.rj-photo-frame {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #FFFFFF;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.11), 0 0 0 1px #E2E8F0;
    background: #F1F5F9;
}
.rj-photo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 42%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.rj-photo-frame:hover .rj-photo-img {
    transform: scale(1.04);
}
.rj-photo-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.32) 100%);
    pointer-events: none;
}
.rj-float-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #0F172A;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.rj-float-pill strong {
    color: #D97706;
    font-weight: 900;
}
.rj-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.20);
}
.rj-float-card {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}
.rj-float-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rj-float-card strong {
    display: block;
    font-size: 0.83rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
}
.rj-float-card small {
    display: block;
    font-size: 0.73rem;
    color: #475569;
    margin-top: 1px;
}

.rj-steps-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.rj-step-card {
    padding: 20px 21px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}
.rj-step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 107, 254, 0.38);
    box-shadow: 0 16px 32px rgba(0, 107, 254, 0.09);
}
.rj-step-card.is-featured {
    background: linear-gradient(155deg, #FFFFFF 45%, #FFFBEB 100%);
    border-color: #FDE68A;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.09);
}
.rj-step-card.is-featured:hover {
    border-color: #F59E0B;
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.16);
}
.rj-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.rj-step-ic {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.rj-ic-blue {
    background: linear-gradient(145deg, #EFF8FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
}
.rj-ic-gold {
    background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FDE68A;
}
.rj-ic-emerald {
    background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid #A7F3D0;
}
.rj-step-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #0056D6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.rj-step-tag.is-gold-tag {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #B45309;
}
.rj-step-tag.is-emerald-tag {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #047857;
}
.rj-step-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.32;
}
.rj-step-card p {
    margin: 0;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.55;
}
.rj-step-card p strong {
    color: #D97706;
}

@media (max-width: 960px) {
    .reward-journey-shell {
        padding: 28px 24px;
    }
    .rj-top-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .rj-steps-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .reward-journey-shell {
        padding: 22px 18px;
        border-radius: 22px;
    }
    .rj-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 2b. (Legacy fallback classes retained for secondary layouts) */
.showcase-surface {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 36px;
    background: radial-gradient(circle at 96% 8%, rgba(245, 158, 11, 0.08) 0%, transparent 36%),
                radial-gradient(circle at 4% 96%, rgba(0, 107, 254, 0.07) 0%, transparent 40%),
                linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
    border: 1px solid #E2E8F0;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.05);
}
.showcase-surface .showcase-grid {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 36px;
    align-items: center;
}
.showcase-surface .showcase-media {
    display: flex;
    align-items: center;
    justify-content: center;
}
.showcase-surface .showcase-photo-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 819 / 1024;
    min-height: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 22px 46px rgba(0, 42, 122, 0.15);
    border: 4px solid #FFFFFF;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}
.showcase-surface .showcase-poster-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(0, 58, 150, 0.22);
}
.showcase-surface .showcase-img {
    position: static;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.showcase-top-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}
.showcase-corner-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.9);
}
.showcase-badge-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.showcase-corner-badge strong { display: block; font-size: 0.82rem; line-height: 1.2; color: #0F172A; }
.showcase-corner-badge small { display: block; font-size: 0.73rem; color: #64748B; }

.showcase-lead {
    margin: 6px 0 20px;
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.58;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.timeline-step-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.timeline-step-card:hover {
    transform: translateX(4px);
    border-color: rgba(0, 107, 254, 0.45);
    box-shadow: 0 10px 24px rgba(0, 107, 254, 0.08);
}
.timeline-step-card.is-highlight {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFFBEB 100%);
    border-color: #FDE68A;
}
.timeline-step-card.is-highlight:hover {
    border-color: #F59E0B;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.14);
}
.tl-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.tl-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tl-blue { background: var(--primary-soft); color: var(--primary); }
.tl-gold { background: #F59E0B; color: #FFFFFF; box-shadow: 0 6px 14px rgba(245, 158, 11, 0.32); }
.tl-line {
    width: 2px;
    flex: 1;
    min-height: 12px;
    margin-top: 6px;
    background: linear-gradient(180deg, rgba(0, 107, 254, 0.28) 0%, rgba(226, 232, 240, 0.5) 100%);
    border-radius: 99px;
}
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.tl-num {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 2px 8px;
    border-radius: 999px;
}
.tl-num-gold { background: #FEF3C7; color: #B45309; }
.tl-head strong { font-size: 0.96rem; color: #0F172A; line-height: 1.35; }
.tl-body p { margin: 0; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; }

/* 3. Cổng yêu cầu đăng nhập để xem & tải đề cương */
.guest-lock-banner {
    margin-top: 22px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F0F6FF 0%, #FFFFFF 100%);
    border: 1.5px solid #BFDBFE;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.guest-lock-ic {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0, 107, 254, 0.26);
}
.guest-lock-banner h3 { margin: 0 0 6px; font-size: 1.06rem; color: #0F172A; }
.guest-lock-banner p { margin: 0 0 14px; font-size: 0.9rem; color: var(--text-secondary); }
.guest-lock-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 768px) {
    .showcase-surface { padding: 22px 18px; border-radius: 20px; }
    .guest-lock-banner { flex-direction: column; }
    .showcase-top-tag { display: none; }
}


/* ==============================================================================
 * GÓC HỌC TẬP (STREAK, FLASHCARD 3D, POMODORO, GHI CHÚ ĐỀ CƯƠNG) & BẢNG VINH DANH
 * ============================================================================== */
.study-hub-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 34px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0046B5 0%, #006BFE 62%, #1D82FF 100%);
    color: #FFFFFF;
    margin-bottom: 20px;
    box-shadow: 0 20px 44px rgba(0, 58, 150, 0.2);
}
.study-hero-left { max-width: 640px; }
.study-hero-left h1 { margin: 0 0 8px; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.25; }
.study-hero-left p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 0.94rem; }

.study-streak-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 14px 32px rgba(0, 24, 72, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.streak-flame-badge {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(145deg, #FBBF24 0%, #F59E0B 52%, #EA580C 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.44), inset 0 1.5px 0 rgba(255, 255, 255, 0.55);
}
.streak-flame-svg {
    display: block;
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 2px 6px rgba(154, 52, 18, 0.35));
}
.streak-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.streak-label {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    line-height: 1.25;
}
.streak-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}
.streak-count #th-streak-num {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.streak-record {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 0.77rem;
    color: #FEF3C7;
    font-weight: 700;
    line-height: 1.25;
}
.streak-record .ui-icon {
    color: #FDE047;
}

.study-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.study-kpi-box {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.study-kpi-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.study-kpi-ic.kpi-blue { background: var(--primary-soft); color: var(--primary); }
.study-kpi-ic.kpi-gold { background: #FEF3C7; color: #D97706; }
.study-kpi-box small { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.study-kpi-box strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }

.study-main-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) 330px; gap: 22px; align-items: start; }
.study-side-col { display: flex; flex-direction: column; gap: 18px; }

/* Flashcards 3D Flip */
.fc-create-box { padding: 16px; border-radius: 14px; background: var(--bg-subtle); border: 1px solid var(--border-color); margin-bottom: 16px; }
.fc-create-box[hidden] { display: none !important; }
.fc-subject-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.dock-chip.is-active-chip { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }

.fc-progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.fc-card-3d {
    perspective: 1100px;
    height: 250px;
    cursor: pointer;
    margin-bottom: 16px;
    user-select: none;
}
.fc-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}
.fc-card-3d.is-flipped .fc-card-inner { transform: rotateY(180deg); }
.fc-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 18px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}
.fc-front {
    background: linear-gradient(155deg, #F8FBFF 0%, #FFFFFF 100%);
    border: 1.5px solid #BFDBFE;
    box-shadow: 0 12px 28px rgba(0, 107, 254, 0.08);
}
.fc-back {
    background: linear-gradient(155deg, #FFFDF5 0%, #FFFBEB 100%);
    border: 1.5px solid #FDE68A;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.14);
    transform: rotateY(180deg);
}
.fc-face-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 10px;
    border-radius: 999px;
}
.fc-label-gold { background: #FEF3C7; color: #B45309; }
.fc-face-text { font-size: 1.12rem; font-weight: 700; color: #0F172A; line-height: 1.5; max-height: 135px; overflow-y: auto; }
.fc-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--text-muted); margin-top: auto; }
.fc-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }

/* Pomodoro Widget */
.pomodoro-card { text-align: center; }
.pomo-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.pomo-mode-btn {
    padding: 7px 6px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.pomo-mode-btn.is-active { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.pomo-clock {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: var(--primary);
    padding: 12px 0;
    font-variant-numeric: tabular-nums;
}
.pomo-actions { display: flex; justify-content: center; gap: 8px; }

/* Study Notes Grid & Document Detail Study Widget */
.study-widget-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.study-status-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.study-pill-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}
.study-pill-opt:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.study-pill-opt.is-done-opt:has(input:checked) { background: #FEF3C7; border-color: #F59E0B; color: #B45309; }
.inline-fc-panel { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border-color); }

.study-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.study-note-card {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}
.study-note-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.study-note-card h3 { margin: 0 0 4px; font-size: 0.96rem; line-height: 1.38; }
.study-note-excerpt { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-subtle); font-size: 0.85rem; color: var(--text-secondary); flex: 1; }

/* Leaderboard Table */
.lb-top-row { background: linear-gradient(90deg, rgba(254, 243, 199, 0.25) 0%, rgba(255, 255, 255, 0) 60%); }
.rank-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; background: var(--bg-subtle); color: var(--text-secondary); }
.rank-pill.rank-1 { background: #F59E0B; color: #FFFFFF; }
.rank-pill.rank-2 { background: #64748B; color: #FFFFFF; }
.rank-pill.rank-3 { background: #B45309; color: #FFFFFF; }
.lb-user-cell { display: flex; align-items: center; gap: 10px; }

.pwa-install-pill {
    cursor: pointer;
    background: var(--primary-soft);
    color: var(--primary);
    border-color: rgba(0, 107, 254, 0.3);
    font-weight: 700;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.pwa-install-pill[hidden] {
    display: none !important;
}
.pwa-install-pill:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 107, 254, 0.24);
}
.pwa-guide-dialog {
    max-width: 460px;
}
.pwa-guide-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}
.pwa-guide-app-ic {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.pwa-guide-sub {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.4;
}
.pwa-guide-steps {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 16px;
}
.pwa-guide-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.5;
}

/* ==============================================================================
 * NÂNG CẤP KHỐI ĐÁNH GIÁ SAO & BÁO CÁO VI PHẠM CHUYÊN NGHIỆP (TRANG CHI TIẾT)
 * ============================================================================== */
.detail-interact-card {
    margin: 22px 0;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}
.detail-interact-card .interact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}
.interact-panel {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.interact-panel-rate {
    border-right: 1px solid #E2E8F0;
    background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 48%);
}
.interact-panel-report {
    background: linear-gradient(180deg, #FFFBFB 0%, #FFFFFF 48%);
}
.interact-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.interact-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.interact-ic-gold {
    background: #FEF3C7;
    color: #F59E0B;
    border: 1px solid #FDE68A;
}
.interact-ic-danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}
.interact-head-text {
    flex: 1;
    min-width: 0;
}
.interact-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.interact-panel-head h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.3;
}
.interact-panel-head p {
    margin: 3px 0 0;
    font-size: 0.81rem;
    color: #64748B;
    line-height: 1.45;
}
.interact-score-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #FEF3C7;
    color: #B45309;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}
.interact-panel .rate-form,
.interact-panel .report-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.star-rating-stage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 13px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}
.star-rating-inputs {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
}
.star-radio-hidden {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.star-svg-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #CBD5E1;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.14s ease;
    padding: 2px;
}
.star-svg-label svg {
    display: block;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linejoin: round;
}
.star-svg-label:hover,
.star-svg-label:hover ~ .star-svg-label {
    color: #F59E0B;
}
.star-svg-label:hover {
    transform: scale(1.16);
}
.star-radio-hidden:checked ~ .star-svg-label {
    color: #F59E0B;
}
.star-rating-inputs:hover .star-radio-hidden:checked ~ .star-svg-label {
    color: #CBD5E1;
}
.star-rating-inputs:hover .star-svg-label:hover,
.star-rating-inputs:hover .star-svg-label:hover ~ .star-svg-label {
    color: #F59E0B;
}
.star-rating-verdict {
    font-size: 0.82rem;
    font-weight: 700;
    color: #B45309;
    background: #FEF3C7;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.interact-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 2px;
}
.interact-hint-text {
    font-size: 0.78rem;
    color: #64748B;
}
.interact-guest-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    font-size: 0.84rem;
    color: #475569;
}
.report-details-input {
    font-size: 0.85rem !important;
    padding: 9px 12px !important;
}
.btn-report-submit {
    background: #FFFFFF;
    color: #B91C1C;
    border: 1px solid #FECACA;
    font-weight: 700;
}
.btn-report-submit:hover {
    background: #FEF2F2;
    border-color: #F87171;
    color: #991B1B;
}

/* Huy hiệu Chuỗi ngày học rõ nét trên thẻ hồ sơ nền xanh */
.profile-streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}
.profile-streak-pill .ui-icon {
    color: #FDE047;
}
.doc-lecturer {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Thông báo lỗi nổi bật khi đăng tài liệu thiếu / sai thông tin */
.upload-error-banner {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}
.upload-error-banner[hidden] {
    display: none !important;
}
.upload-error-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.upload-error-head .ui-icon {
    color: #DC2626;
    flex-shrink: 0;
}
.upload-error-list {
    margin: 7px 0 0 26px;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}
.form-control.is-invalid {
    border-color: #EF4444 !important;
    background: #FFFBFB !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
}

/* ==============================================================================
 * NÂNG CẤP GIAO DIỆN DANH MỤC CHUYÊN NGÀNH ĐH KINH TẾ HUẾ (TRANG CHỦ)
 * ============================================================================== */
.categories-showcase-section {
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 107, 254, 0.05) 0%, transparent 42%),
        radial-gradient(circle at 90% 85%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
}
.categories-showcase-section .category-grid {
    display: grid;
    gap: 16px;
}
.categories-showcase-section .category-card {
    min-width: 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
    overflow: hidden;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.categories-showcase-section .category-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3.5px;
    border-radius: 0 4px 4px 0;
    background: var(--primary);
    opacity: 0;
    transform: scaleY(0.5);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.categories-showcase-section .cat-card-gold::after {
    background: #F59E0B;
}
.categories-showcase-section .cat-card-themed::after {
    background: var(--cat-accent, #006BFE);
}
.categories-showcase-section .category-card:hover {
    transform: translateY(-4px);
}
.categories-showcase-section .cat-card-themed:hover {
    border-color: var(--cat-border, rgba(0, 107, 254, 0.35));
    background: var(--cat-hover-bg, linear-gradient(145deg, #FFFFFF 55%, #F2F7FF 100%));
    box-shadow: 0 16px 34px -8px var(--cat-glow, rgba(0, 107, 254, 0.16));
}
.categories-showcase-section .cat-card-blue:hover {
    border-color: rgba(0, 107, 254, 0.42);
    background: linear-gradient(145deg, #FFFFFF 55%, #F2F7FF 100%);
    box-shadow: 0 16px 34px rgba(0, 107, 254, 0.11);
}
.categories-showcase-section .cat-card-gold:hover {
    border-color: rgba(245, 158, 11, 0.55);
    background: linear-gradient(145deg, #FFFFFF 55%, #FFFBEB 100%);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.13);
}
.categories-showcase-section .category-card:hover::after {
    opacity: 1;
    transform: scaleY(1);
}
.categories-showcase-section .category-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}
.categories-showcase-section .cat-icon-pro {
    background: var(--cat-bg, linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%));
    border: 1px solid var(--cat-border, rgba(0, 107, 254, 0.2));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 8px 18px -8px var(--cat-glow, rgba(0, 107, 254, 0.24));
}
.categories-showcase-section .cat-card-themed:hover .cat-icon-pro {
    transform: scale(1.07) translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 12px 22px -6px var(--cat-glow, rgba(0, 107, 254, 0.32));
}
.cat-pro-svg {
    display: block;
    flex-shrink: 0;
}
.categories-showcase-section .cat-icon-blue {
    background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #006BFE;
    border: 1px solid #BFDBFE;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.categories-showcase-section .cat-icon-gold {
    background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
    color: #D97706;
    border: 1px solid #FDE68A;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.categories-showcase-section .category-info {
    gap: 5px;
    flex: 1;
}
.categories-showcase-section .category-info strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.3;
}
.cat-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cat-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #475569 !important;
    font-size: 0.76rem !important;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.categories-showcase-section .cat-card-themed:hover .cat-count-pill {
    background: var(--cat-accent-soft, rgba(0, 107, 254, 0.12));
    color: var(--cat-accent, #0054CC) !important;
}
.categories-showcase-section .cat-card-blue:hover .cat-count-pill {
    background: rgba(0, 107, 254, 0.12);
    color: #0054CC !important;
}
.categories-showcase-section .cat-card-gold:hover .cat-count-pill {
    background: #FEF3C7;
    color: #B45309 !important;
}
.categories-showcase-section .cat-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #64748B;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.categories-showcase-section .cat-card-themed:hover .cat-arrow {
    background: var(--cat-accent, #006BFE);
    border-color: var(--cat-accent, #006BFE);
    color: #FFFFFF;
    transform: translateX(3px);
    box-shadow: 0 6px 14px -2px var(--cat-glow, rgba(0, 107, 254, 0.3));
}
.categories-showcase-section .cat-card-blue:hover .cat-arrow {
    background: #006BFE;
    border-color: #006BFE;
    color: #FFFFFF;
    transform: translateX(3px);
    box-shadow: 0 6px 14px rgba(0, 107, 254, 0.28);
}
.categories-showcase-section .cat-card-gold:hover .cat-arrow {
    background: #F59E0B;
    border-color: #F59E0B;
    color: #FFFFFF;
    transform: translateX(3px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.30);
}

/* Thẻ CTA đóng góp đề cương lấp đầy hàng cuối lưới danh mục (không để ô lẻ trống) */
.category-cta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(125deg, #0052CC 0%, #006BFE 58%, #1E82FF 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 32px rgba(0, 107, 254, 0.22);
    position: relative;
    overflow: hidden;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}
.category-cta-card::before {
    content: "";
    position: absolute;
    right: -35px;
    top: -40px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
    pointer-events: none;
}
.cat-cta-span-2 { grid-column: span 2; }
.cat-cta-span-1 { grid-column: span 1; }
.category-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 107, 254, 0.30);
    color: #FFFFFF;
}
.cat-cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #FDE047;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cat-cta-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cat-cta-body strong {
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
}
.cat-cta-body span {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}
.cat-cta-body b {
    color: #FDE047;
}
.cat-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 11px;
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}
.category-cta-card:hover .cat-cta-btn {
    background: #E38D04;
    transform: translateX(2px);
}

/* ==============================================================================
 * THANH TOÁN CHUYỂN KHOẢN VIETQR TỰ ĐỘNG TỪNG GÓI PRO (/goi-pro)
 * ============================================================================== */
.pro-qr-checkout-card {
    margin-top: 26px;
    padding: 26px 28px !important;
    border-radius: 22px;
    border: 1.5px solid #BFDBFE;
    background: linear-gradient(160deg, #F8FBFF 0%, #FFFFFF 50%, #FFFDF7 100%);
    box-shadow: 0 18px 42px rgba(0, 58, 150, 0.08);
}
.pro-qr-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.pro-qr-head h2 {
    margin: 8px 0 0;
    font-size: 1.25rem;
    color: #0F172A;
}
.pro-qr-plan-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.pro-qr-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 11px 14px;
    border-radius: 13px;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #0F172A;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
}
.pro-qr-tab strong { font-size: 0.88rem; font-weight: 800; }
.pro-qr-tab span { font-size: 0.82rem; font-weight: 700; color: #006BFE; }
.pro-qr-tab:hover {
    border-color: #93C5FD;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 107, 254, 0.08);
}
.pro-qr-tab.is-active {
    border-color: #006BFE;
    background: #EFF6FF;
    box-shadow: 0 8px 20px rgba(0, 107, 254, 0.14);
}
.pro-qr-body {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}
.pro-qr-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.pro-qr-frame {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pro-qr-img {
    width: 100%;
    max-width: 276px;
    height: auto;
    display: block;
    border-radius: 10px;
}
.pro-qr-caption {
    margin: 0;
    font-size: 0.79rem;
    color: #64748B;
    text-align: center;
    line-height: 1.45;
}
.pro-qr-selected-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 12px;
    background: #006BFE;
    color: #FFFFFF;
    margin-bottom: 14px;
}
.pro-qr-selected-bar span { font-size: 0.84rem; opacity: 0.9; }
.pro-qr-selected-bar strong { font-size: 0.98rem; font-weight: 800; }
.pro-qr-info-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pro-qr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}
.pro-qr-row.is-memo-row {
    background: #FFFBEB;
    border-color: #FDE68A;
}
.pro-qr-label {
    font-size: 0.83rem;
    color: #64748B;
    font-weight: 600;
}
.pro-qr-val {
    text-align: right;
}
.pro-qr-val strong { display: block; font-size: 0.95rem; color: #0F172A; }
.pro-qr-val small { display: block; font-size: 0.76rem; color: #64748B; }
.pro-qr-val-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.pro-qr-mono {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #004EC2;
}
.pro-qr-amount-hl {
    font-size: 1.08rem;
    font-weight: 900;
    color: #DC2626;
}
.pro-qr-memo-code {
    font-size: 0.95rem;
    font-weight: 800;
    color: #92400E;
    background: #FEF3C7;
    padding: 4px 10px;
    border-radius: 8px;
}
.pro-qr-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F0F6FF;
    border: 1px solid #BFDBFE;
    color: #1E3A8A;
    font-size: 0.84rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.pro-qr-note .ui-icon { flex-shrink: 0; margin-top: 2px; color: #006BFE; }
@media (max-width: 900px) {
    .pro-qr-plan-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pro-qr-body { grid-template-columns: 1fr; }
    .pro-qr-frame { max-width: 300px; }
}
@media (max-width: 520px) {
    .pro-qr-checkout-card { padding: 18px 16px !important; }
    .pro-qr-plan-tabs { grid-template-columns: 1fr; }
}

/* Bộ chọn nhiều danh mục môn học dạng thẻ tích chọn trên trang Đăng tài liệu cá nhân (/upload) */
.cat-picker-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.cat-picker-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 3px 10px;
    border-radius: 999px;
}
.cat-picker-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    max-height: 220px;
    overflow-y: auto;
}
.cat-chip-opt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}
.cat-chip-opt:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.cat-chip-opt input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.cat-chip-opt.is-checked,
.cat-chip-opt:has(input:checked) {
    background: rgba(0, 107, 254, 0.10);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 107, 254, 0.12);
}

/* Đếm ngược QR 10 phút + Thẻ gửi bill Facebook */
.pro-qr-plan-tabs.pro-qr-tabs-n-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pro-qr-plan-tabs.pro-qr-tabs-n-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pro-qr-head-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.pro-qr-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #004EC2;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.pro-qr-timer-pill strong {
    font-weight: 900;
    font-size: 0.86rem;
}
.pro-qr-timer-pill.is-urgent {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #B45309;
}
.pro-qr-timer-pill.is-expired {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #B91C1C;
}
.pro-qr-timer-pill.is-reviewing {
    background: #EFF6FF;
    border-color: #93C5FD;
    color: #004EC2;
}
.pro-qr-frame {
    min-height: 292px;
}
.pro-qr-selected-bar.is-topup-bar {
    background: linear-gradient(135deg, #0284C7 0%, #006BFE 100%);
}

/* Khối Nạp tiền quy đổi Điểm thưởng (không phải Gói PRO — tối thiểu 5.000đ) */
.topup-points-card {
    margin: 22px 0;
    padding: 22px 24px !important;
    border-radius: 18px !important;
    border: 1.5px solid #BFDBFE !important;
    background: linear-gradient(145deg, #F5F9FF 0%, #FFFFFF 65%) !important;
    box-shadow: 0 12px 30px rgba(0, 107, 254, 0.07);
}
.topup-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.topup-card-head h2 {
    margin: 8px 0 4px;
    font-size: 1.2rem;
    color: #0F172A;
}
.topup-card-head p {
    margin: 0;
    font-size: 0.87rem;
    color: #475569;
    max-width: 620px;
    line-height: 1.5;
}
.topup-rate-badge {
    padding: 9px 14px;
    border-radius: 12px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    text-align: right;
    flex-shrink: 0;
}
.topup-rate-badge small {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0369A1;
}
.topup-rate-badge strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 800;
    color: #004EC2;
    margin-top: 2px;
}
.topup-quick-chips {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.topup-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 13px;
    border-radius: 12px;
    border: 1.5px solid #DCE7F7;
    background: #FFFFFF;
    color: #0F172A;
    cursor: pointer;
    text-align: left;
    transition: all 0.16s ease;
}
.topup-chip strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0F172A;
}
.topup-chip span {
    font-size: 0.77rem;
    font-weight: 700;
    color: #006BFE;
}
.topup-chip:hover {
    border-color: #60A5FA;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 107, 254, 0.10);
}
.topup-chip.is-active {
    border-color: #006BFE;
    background: #EFF6FF;
    box-shadow: 0 8px 18px rgba(0, 107, 254, 0.15);
}
.topup-input-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(170px, 0.9fr) auto;
    gap: 12px;
    align-items: end;
}
.topup-field-wrap label {
    display: block;
    font-size: 0.81rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.topup-money-box {
    position: relative;
    display: flex;
    align-items: center;
}
.topup-money-box .form-control {
    padding-right: 58px;
    font-weight: 800;
    font-size: 0.98rem;
    min-height: 46px;
    border-radius: 11px;
    background: #FFFFFF;
}
.topup-money-unit {
    position: absolute;
    right: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748B;
    pointer-events: none;
}
.topup-preview-pill {
    padding: 8px 14px;
    min-height: 46px;
    border-radius: 11px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.topup-preview-pill span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #B45309;
    line-height: 1.2;
}
.topup-preview-pill strong {
    font-size: 0.98rem;
    font-weight: 900;
    color: #D97706;
    line-height: 1.3;
}
.topup-submit-btn {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.topup-guest-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px dashed #93C5FD;
    font-size: 0.87rem;
    color: #334155;
}
@media (max-width: 900px) {
    .topup-quick-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .topup-input-row {
        grid-template-columns: 1fr;
    }
    .topup-submit-btn {
        width: 100%;
    }
}
@media (max-width: 520px) {
    .topup-points-card {
        padding: 18px 16px !important;
    }
    .topup-quick-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Thanh nhập Mã giảm giá trên trang Gói PRO & Nạp điểm */
.pro-coupon-bar {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 15px;
    background: linear-gradient(135deg, #F5F9FF 0%, #FFFFFF 100%);
    border: 1.5px dashed #93C5FD;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pro-coupon-bar-left {
    display: flex;
    align-items: center;
    gap: 11px;
}
.pro-coupon-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #006BFE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pro-coupon-bar-left strong {
    display: block;
    font-size: 0.9rem;
    color: #0F172A;
}
.pro-coupon-bar-left span {
    display: block;
    font-size: 0.8rem;
    color: #64748B;
}
.pro-coupon-bar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.pro-coupon-bar-form .form-control {
    width: 220px;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
}
.pro-coupon-feedback,
.topup-coupon-feedback {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}
.pro-coupon-feedback[hidden],
.topup-coupon-feedback[hidden],
.plan-price-orig[hidden] {
    display: none !important;
}
.pro-coupon-feedback.is-ok,
.topup-coupon-feedback.is-ok {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}
.pro-coupon-feedback.is-err,
.topup-coupon-feedback.is-err {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}
.plan-price-orig {
    font-size: 0.92rem;
    font-weight: 700;
    color: #94A3B8;
    margin-right: 6px;
}
.topup-coupon-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #CBD5E1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.topup-coupon-lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 700;
    color: #334155;
}
.topup-coupon-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    flex: 1;
}
.topup-coupon-inputs .form-control {
    max-width: 230px;
    min-height: 36px;
    padding: 6px 11px;
    font-size: 0.84rem;
    border-radius: 9px;
}

.pro-qr-checkout-card.is-clearing {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.pro-qr-img[hidden] {
    display: none !important;
}
.pro-qr-frame.is-expired {
    background: #F8FAFC;
    border-style: dashed;
    border-color: #CBD5E1;
}
.pro-qr-frame.is-reviewing {
    background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
    border-style: dashed;
    border-color: #93C5FD;
}
.pro-qr-review-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 16px;
    gap: 9px;
}
.pro-qr-review-box[hidden] {
    display: none !important;
}
.pro-qr-review-ic {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
    color: #006BFE;
    border: 1px solid #BFDBFE;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 107, 254, 0.14);
}
.pro-qr-review-ic .ui-icon {
    display: block;
}
.pro-qr-review-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #004EC2;
    border: 1px solid #93C5FD;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.pro-qr-review-pill .tx-dot {
    background: #006BFE;
    box-shadow: 0 0 0 3px rgba(0, 107, 254, 0.18);
}
.pro-qr-review-box strong {
    font-size: 0.96rem;
    color: #0F172A;
    line-height: 1.3;
}
.pro-qr-review-box p {
    margin: 0;
    font-size: 0.81rem;
    color: #475569;
    line-height: 1.5;
}
.pro-qr-expired-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 14px;
    gap: 8px;
}
.pro-qr-expired-box[hidden] {
    display: none !important;
}
.pro-qr-expired-ic {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FEF2F2;
    color: #DC2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pro-qr-expired-box strong {
    font-size: 0.96rem;
    color: #0F172A;
}
.pro-qr-expired-box p {
    margin: 0 0 6px;
    font-size: 0.81rem;
    color: #64748B;
    line-height: 1.45;
}

/* Thẻ gửi bill qua Facebook duyệt siêu tốc */
.pro-fb-bill-card {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F0F6FF 0%, #FFFFFF 100%);
    border: 1.5px solid #BFDBFE;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pro-fb-bill-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 220px;
}
.pro-fb-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 107, 254, 0.28);
}
.pro-fb-bill-left strong {
    display: block;
    font-size: 0.89rem;
    color: #0F172A;
    line-height: 1.3;
}
.pro-fb-bill-left p {
    margin: 2px 0 0;
    font-size: 0.79rem;
    color: #475569;
    line-height: 1.4;
}
.pro-fb-bill-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-fb-bill {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF !important;
    border: 1px solid var(--primary-hover);
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 107, 254, 0.26);
    white-space: nowrap;
}
.btn-fb-bill:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-deep) 100%);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 107, 254, 0.34);
}

/* Khối xác nhận "Tôi đã chuyển khoản — Gửi duyệt" chuyên nghiệp */
.pro-confirm-transfer-card {
    margin-top: 14px;
    padding: 15px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
    border: 1.5px solid #A7F3D0;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.08);
}
.pro-confirm-transfer-card.is-submitted {
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
    border-color: #6EE7B7;
}
.pro-confirm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.pro-confirm-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(5, 150, 105, 0.26);
}
.pro-confirm-step-dot .ui-icon {
    display: block;
}
.pro-confirm-head-text strong {
    display: block;
    font-size: 0.9rem;
    color: #064E3B;
    line-height: 1.3;
}
.pro-confirm-head-text span {
    display: block;
    font-size: 0.79rem;
    color: #047857;
    margin-top: 2px;
    line-height: 1.4;
}
.pro-confirm-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 9px;
}
.pro-confirm-note-input {
    flex: 1;
    min-width: 190px;
    font-size: 0.84rem !important;
    padding: 9px 12px !important;
    background: #FFFFFF !important;
    border-color: #A7F3D0 !important;
}
.pro-confirm-note-input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14) !important;
}
.btn-confirm-transfer {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF !important;
    border: 1px solid #047857;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 9px 18px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.28);
}
.btn-confirm-transfer:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(5, 150, 105, 0.36);
}
.pro-confirmed-banner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.pro-confirmed-banner[hidden],
.pro-confirm-form[hidden] {
    display: none !important;
}
.pro-confirmed-ic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #059669;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pro-confirmed-banner strong {
    display: block;
    font-size: 0.9rem;
    color: #065F46;
}
.pro-confirmed-banner p {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: #047857;
    line-height: 1.45;
}
.pro-confirm-guest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    color: #065F46;
}
@media (max-width: 640px) {
    .btn-confirm-transfer {
        width: 100%;
    }
}

/* Huy hiệu trạng thái thanh toán Gói PRO chuyên nghiệp (Thành công / Chờ / Thất bại do hết hạn QR) */
.pro-qr-failed-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.tx-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
    white-space: nowrap;
}
.tx-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tx-pill-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.tx-pill-success .tx-dot { background: #10B981; }
.tx-pill-review {
    background: #EFF6FF;
    color: #004EC2;
    border: 1px solid #BFDBFE;
}
.tx-pill-review .tx-dot { background: #006BFE; }
.tx-pill-pending {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}
.tx-pill-pending .tx-dot { background: #F59E0B; }
.tx-pill-failed {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}
.tx-pill-failed .tx-dot { background: #EF4444; }
.tx-pill-muted {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}
.tx-pill-muted .tx-dot { background: #94A3B8; }
.tx-expired-reason {
    font-size: 0.77rem;
    font-weight: 600;
    color: #DC2626;
    white-space: nowrap;
}
.tx-sub-note {
    font-size: 0.78rem;
    font-weight: 600;
    color: #006BFE;
    white-space: nowrap;
}

/* ==============================================================================
 * TRANG ĐĂNG NHẬP / ĐĂNG KÝ / KHÔI PHỤC MẬT KHẨU — LIGHT EDITORIAL SAAS
 * ==============================================================================
 */
.auth-section {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(620px circle at 10% 14%, rgba(0, 107, 254, 0.085), transparent 64%),
        radial-gradient(560px circle at 92% 86%, rgba(245, 158, 11, 0.08), transparent 62%),
        linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 58%, #F8FAFC 100%);
    padding: 54px 0 68px;
}
.auth-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.065) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
    pointer-events: none;
}
.auth-section > .container {
    position: relative;
    z-index: 1;
}
.auth-section-editorial {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 42px 0 60px;
}

.auth-split-layout {
    display: grid;
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}
.auth-split-login {
    max-width: 1020px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 448px);
}
.auth-split-register {
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 556px);
    gap: clamp(28px, 4.4vw, 58px);
}

/* Cột giới thiệu bên trái (căn thẳng mép trên bằng vạch đầu thẻ biểu mẫu) */
.auth-intro-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-top: 2px;
    position: sticky;
    top: calc(var(--header-height) + 28px);
}
.auth-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 107, 254, 0.16);
    box-shadow: 0 4px 14px -4px rgba(0, 75, 190, 0.12);
    color: #0052CC;
    font-size: 0.81rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.auth-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #006BFE;
    box-shadow: 0 0 0 3px rgba(0, 107, 254, 0.18);
    flex-shrink: 0;
}
.auth-intro-title {
    margin: 14px 0 10px;
    font-size: clamp(1.85rem, 2.85vw, 2.48rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.028em;
    color: #0B1933;
}
.auth-title-accent {
    display: inline-block;
    background: linear-gradient(135deg, #004EC2 0%, #006BFE 55%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-intro-lead {
    margin: 0 0 18px;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.55;
    max-width: 440px;
}

/* Danh sách 4 lợi ích kèm icon duotone gọn đẹp */
.auth-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 11px;
    margin: 0 -11px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.22s ease, transform 0.2s ease;
}
.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 107, 254, 0.12);
    box-shadow: 0 10px 22px -14px rgba(15, 38, 92, 0.16);
    transform: translateX(3px);
}
.auth-feat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.auth-feature-item:hover .auth-feat-icon {
    transform: translateY(-1px) scale(1.04);
}
.auth-feat-icon.is-blue {
    background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #006BFE;
    border: 1px solid rgba(0, 107, 254, 0.2);
    box-shadow: 0 10px 20px -10px rgba(0, 107, 254, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.auth-feat-icon.is-amber {
    background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: 0 10px 20px -10px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.auth-feat-icon.is-emerald {
    background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.24);
    box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.auth-feat-icon.is-violet {
    background: linear-gradient(145deg, #F5F3FF 0%, #EDE9FE 100%);
    color: #6366F1;
    border: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.auth-feat-body {
    min-width: 0;
}
.auth-feat-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin-bottom: 3px;
}
.auth-feat-desc {
    display: block;
    font-size: 0.865rem;
    color: #475569;
    line-height: 1.56;
}

/* Dải cam kết tinh gọn dưới cột giới thiệu */
.auth-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    width: 100%;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.auth-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
}
.auth-trust-chip svg {
    color: #006BFE;
    flex-shrink: 0;
}

/* Thẻ biểu mẫu nổi bên phải (và thẻ khôi phục mật khẩu đơn) */
.auth-card,
.auth-single-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 36px 38px 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 26px 64px -22px rgba(15, 38, 92, 0.14),
        0 6px 18px -6px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}
.auth-card::before,
.auth-single-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0052CC 0%, #006BFE 55%, #38BDF8 100%);
}
.auth-card-register::before {
    background: linear-gradient(90deg, #006BFE 0%, #38BDF8 45%, #F59E0B 100%);
}
.auth-card-register {
    padding: 32px 34px 28px;
}
.auth-card-head {
    text-align: center;
    margin-bottom: 24px;
}
.auth-card-head h1,
.auth-single-card h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0B1933;
}
.auth-sub {
    margin: 0;
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.5;
}
.auth-single-card .auth-sub {
    margin-bottom: 22px;
}
.auth-alert {
    margin-bottom: 18px;
}
.auth-bonus-pill {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FDE68A;
    color: #92400E;
    font-size: 0.855rem;
    line-height: 1.48;
}
.auth-bonus-ic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #D97706;
    box-shadow: 0 4px 10px -4px rgba(217, 119, 6, 0.35);
}

/* Form controls bên trong auth */
.auth-card .styled-form,
.auth-single-card .styled-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-form-grid {
    gap: 14px;
}
.auth-card .form-group,
.auth-single-card .form-group {
    gap: 7px;
}
.auth-card .form-label,
.auth-single-card .form-label {
    font-size: 0.855rem;
    font-weight: 700;
    color: #1E293B;
}
.auth-card .req-star {
    color: #EF4444;
    font-weight: 700;
}
.auth-card .opt-note {
    font-weight: 500;
    color: #94A3B8;
    font-size: 0.8rem;
}
.auth-forgot-link {
    color: #006BFE;
    font-size: 0.82rem;
    font-weight: 600;
}
.auth-forgot-link:hover {
    color: #004EC2;
    text-decoration: underline;
}
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-ic {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    pointer-events: none;
    transition: color 0.18s ease;
}
.auth-input-wrap:focus-within .auth-input-ic {
    color: #006BFE;
}
.auth-card .form-control,
.auth-single-card .form-control {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 0.925rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.auth-card .form-control::placeholder,
.auth-single-card .form-control::placeholder {
    color: #94A3B8;
}
.auth-card .form-control:hover,
.auth-single-card .form-control:hover {
    border-color: #CBD5E1;
    background: #FFFFFF;
}
.auth-card .form-control:focus,
.auth-single-card .form-control:focus {
    outline: none;
    background: #FFFFFF;
    border-color: #006BFE;
    box-shadow: 0 0 0 4px rgba(0, 107, 254, 0.12);
}
.auth-card .form-control.auth-input-has-ic {
    padding-left: 42px;
}
.auth-card .password-input-wrap .form-control,
.auth-single-card .password-input-wrap .form-control {
    padding-right: 46px;
}

/* Nút biểu tượng con mắt Hiện/Ẩn mật khẩu tinh tế (ẩn nút mắt trùng lặp mặc định của Edge) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
.pw-toggle-btn.pw-toggle-icon {
    right: 6px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: #94A3B8;
    transition: background-color 0.16s ease, color 0.16s ease;
}
.pw-toggle-btn.pw-toggle-icon:hover {
    background: #EFF6FF;
    color: #006BFE;
}
.pw-toggle-btn.pw-toggle-icon:focus-visible {
    outline: 2px solid #006BFE;
    outline-offset: 1px;
}
.pw-toggle-btn.pw-toggle-icon .pw-ic-hide {
    display: none;
}
.pw-toggle-btn.pw-toggle-icon.is-visible {
    color: #006BFE;
}
.pw-toggle-btn.pw-toggle-icon.is-visible .pw-ic-show {
    display: none;
}
.pw-toggle-btn.pw-toggle-icon.is-visible .pw-ic-hide {
    display: block;
}

/* Bẫy Honeypot ẩn hoàn toàn khỏi người dùng thật */
.auth-hp-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Ô xác nhận CAPTCHA chống spam gọn đẹp ăn khớp giao diện sáng */
.auth-captcha-group {
    margin-top: 2px;
}
.auth-captcha-hint {
    font-size: 0.76rem;
    font-weight: 500;
    color: #94A3B8;
}
.auth-captcha-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
}
.auth-card .form-control.auth-captcha-input {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    font-size: 0.96rem;
    text-align: center;
    padding: 10px 12px;
}
.auth-card .form-control.auth-captcha-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    font-size: 0.88rem;
}
.auth-captcha-media {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 3px;
    border-radius: 12px;
    border: 1.5px solid #DCE7F7;
    background: #F8FAFF;
    flex-shrink: 0;
}
.auth-captcha-img {
    width: 152px;
    height: 40px;
    border-radius: 9px;
    display: block;
    cursor: pointer;
    user-select: none;
    object-fit: cover;
}
.auth-captcha-refresh {
    width: 34px;
    height: 36px;
    border: none;
    border-radius: 9px;
    background: #FFFFFF;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.auth-captcha-refresh:hover {
    background: #EFF6FF;
    color: #006BFE;
}
.auth-captcha-refresh.is-spinning svg {
    animation: thCaptchaSpin 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes thCaptchaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Nút submit chính nổi bật */
.auth-submit-btn,
.auth-single-card .styled-form > button[type="submit"] {
    margin-top: 6px;
    min-height: 48px;
    border-radius: 13px;
    font-size: 0.96rem;
    font-weight: 700;
    gap: 8px;
    box-shadow: 0 12px 26px -8px rgba(0, 107, 254, 0.45);
    transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.18s ease;
}
.auth-submit-btn:hover,
.auth-single-card .styled-form > button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -8px rgba(0, 107, 254, 0.52);
}
.auth-submit-btn.auth-submit-gold {
    color: #FFFFFF;
    box-shadow: 0 12px 26px -8px rgba(245, 158, 11, 0.46);
}
.auth-submit-btn.auth-submit-gold:hover {
    color: #FFFFFF;
    box-shadow: 0 16px 32px -8px rgba(245, 158, 11, 0.56);
}
.auth-switch {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
    font-size: 0.895rem;
    color: #64748B;
}
.auth-switch a {
    color: #006BFE;
}
.auth-switch a:hover {
    color: #004EC2;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .pro-plans-grid.pro-plans-n-2,
    .pro-plans-grid.pro-plans-n-3 {
        grid-template-columns: 1fr;
    }
    .btn-fb-bill {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .detail-interact-card .interact-grid {
        grid-template-columns: 1fr;
    }
    .interact-panel-rate {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }
    .interact-panel {
        padding: 18px;
    }
}
.pwa-install-pill:hover { background: var(--primary); color: #FFFFFF; }

@media (max-width: 980px) {
    .study-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .study-main-grid { grid-template-columns: 1fr; }
    .study-notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .study-hub-hero { padding: 24px 20px; }
    .study-kpi-row, .study-notes-grid { grid-template-columns: 1fr; }
}

/* ==============================================================================
 * HỆ THỐNG LIÊN HỆ FANPAGE & WIDGET CHAT NỔI CHUYÊN NGHIỆP (MÀU XANH #006BFE)
 * ============================================================================== */

/* Chừa khoảng trống cho nút chat nổi góc dưới phải để Toast và chân trang không bị chồng lấn */
.toast-container {
    bottom: 88px;
}
.footer-bottom-inner {
    padding-right: 76px;
}

/* --- 1. Cụm nút Fanpage gọn đẹp ở Chân trang (Footer) --- */
.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}
.footer-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-hover);
    background: #EFF6FF;
    border: 1px solid #CFE2FF;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.footer-social-pill:hover {
    background: #E0EDFF;
    border-color: #93C5FD;
    color: var(--primary-deep);
    transform: translateY(-1px);
}
.footer-social-pill.is-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(0, 107, 254, 0.24);
}
.footer-social-pill.is-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-deep) 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(0, 107, 254, 0.34);
}
.footer-link-ext {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.footer-link-ext .ui-icon {
    opacity: 0.65;
    transition: opacity var(--transition), transform var(--transition);
}
.footer-link-ext:hover .ui-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

/* --- 2. Widget Chat nổi góc dưới phải (Gọn, sang, màu xanh #006BFE) --- */
.th-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.th-chat-fab-row {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.th-chat-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    padding: 7px 13px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid rgba(0, 107, 254, 0.16);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(0, 107, 254, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.th-chat-fab-row:hover .th-chat-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.th-chat-widget.is-open .th-chat-tooltip {
    opacity: 0 !important;
    pointer-events: none;
}

.th-chat-fab {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.26);
    background: linear-gradient(135deg, #006BFE 0%, #0050CC 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 10px 26px rgba(0, 107, 254, 0.36), 0 3px 10px rgba(0, 58, 150, 0.16);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease;
}
.th-chat-fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 32px rgba(0, 107, 254, 0.46), 0 4px 12px rgba(0, 58, 150, 0.2);
}
.th-chat-fab:active {
    transform: scale(0.96);
}
.th-chat-fab:focus-visible {
    outline: 3px solid rgba(0, 107, 254, 0.35);
    outline-offset: 3px;
}

.th-chat-fab-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(0, 107, 254, 0.42);
    pointer-events: none;
    animation: thChatPulse 2.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
.th-chat-fab:hover .th-chat-fab-ring,
.th-chat-widget.is-open .th-chat-fab-ring {
    animation: none;
    opacity: 0;
}

@keyframes thChatPulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    70% {
        transform: scale(1.36);
        opacity: 0;
    }
    100% {
        transform: scale(1.36);
        opacity: 0;
    }
}

.th-chat-fab-ic {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.th-chat-fab-ic.is-open-ic {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.th-chat-fab-ic.is-close-ic {
    opacity: 0;
    transform: scale(0.65) rotate(-75deg);
}
.th-chat-widget.is-open .th-chat-fab-ic.is-open-ic {
    opacity: 0;
    transform: scale(0.65) rotate(75deg);
}
.th-chat-widget.is-open .th-chat-fab-ic.is-close-ic {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.th-chat-fab-status {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22C55E;
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.th-chat-widget.is-open .th-chat-fab-status {
    opacity: 0;
    transform: scale(0.4);
}

/* Hộp thoại Popover gọn đẹp mở ra phía trên icon chat */
.th-chat-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: 320px;
    max-width: calc(100vw - 28px);
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid rgba(0, 107, 254, 0.14);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16), 0 6px 18px rgba(0, 107, 254, 0.12);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.th-chat-popover[hidden] {
    display: none !important;
}
.th-chat-widget.is-open .th-chat-popover {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.th-chat-pop-head {
    background: linear-gradient(135deg, #006BFE 0%, #004EC4 100%);
    color: #FFFFFF;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.th-chat-pop-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.th-chat-pop-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 42, 122, 0.22);
}
.th-chat-pop-avatar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.th-chat-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22C55E;
    border: 2px solid #0058D6;
}
.th-chat-pop-meta {
    min-width: 0;
    line-height: 1.25;
}
.th-chat-pop-meta strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
}
.th-chat-pop-meta span {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.th-chat-pop-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}
.th-chat-pop-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.th-chat-pop-body {
    padding: 14px 15px 12px;
}
.th-chat-bubble {
    background: #F4F7FC;
    border: 1px solid #E5EEF9;
    border-radius: 12px 12px 12px 4px;
    padding: 10px 12px;
    font-size: 0.81rem;
    color: #334155;
    line-height: 1.48;
    margin-bottom: 12px;
}

.th-chat-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.th-chat-action-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.th-chat-act-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.th-chat-act-text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.th-chat-act-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}
.th-chat-act-text small {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
}
.th-chat-act-arrow {
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform 0.18s ease;
}
.th-chat-action-btn:hover .th-chat-act-arrow {
    transform: translateX(2px);
}

.th-chat-action-btn.is-messenger {
    background: linear-gradient(135deg, #006BFE 0%, #0054CC 100%);
    color: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0 7px 16px rgba(0, 107, 254, 0.28);
}
.th-chat-action-btn.is-messenger .th-chat-act-ic {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}
.th-chat-action-btn.is-messenger .th-chat-act-text strong {
    color: #FFFFFF;
}
.th-chat-action-btn.is-messenger .th-chat-act-text small {
    color: rgba(255, 255, 255, 0.86);
}
.th-chat-action-btn.is-messenger:hover {
    background: linear-gradient(135deg, #005CE0 0%, #0046B3 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 107, 254, 0.36);
}

.th-chat-action-btn.is-fanpage {
    background: #F4F8FF;
    color: var(--primary-deep);
    border: 1px solid #D6E6FF;
}
.th-chat-action-btn.is-fanpage .th-chat-act-ic {
    background: #E2EEFF;
    color: var(--primary);
}
.th-chat-action-btn.is-fanpage .th-chat-act-text strong {
    color: var(--text-primary);
}
.th-chat-action-btn.is-fanpage .th-chat-act-text small {
    color: var(--text-muted);
}
.th-chat-action-btn.is-fanpage:hover {
    background: #E9F2FF;
    border-color: #93C5FD;
    transform: translateY(-1px);
}

.th-chat-pop-foot {
    border-top: 1px solid #EEF2F7;
    padding: 9px 14px;
    text-align: center;
    background: #FAFBFD;
}
.th-chat-pop-foot a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}
.th-chat-pop-foot a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* --- 3. Trang Liên hệ & Hỗ trợ qua Fanpage (contact.php) --- */
.contact-fanpage-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    margin-bottom: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #006BFE 0%, #004EC4 58%, #003A96 100%);
    color: #FFFFFF;
    box-shadow: 0 18px 42px rgba(0, 107, 254, 0.22);
}
.contact-fanpage-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.contact-fp-main {
    position: relative;
    z-index: 1;
}
.contact-fp-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.78rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
}
.contact-fp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
}
.contact-fp-main h2 {
    margin: 0 0 10px;
    font-size: 1.48rem;
    line-height: 1.28;
    color: #FFFFFF;
}
.contact-fp-main p {
    margin: 0 0 16px;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.58;
}

.contact-fp-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.contact-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 500;
    color: #FFFFFF;
}

.contact-fp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.contact-btn-messenger {
    background: #FFFFFF;
    color: var(--primary) !important;
    border: 1px solid #FFFFFF;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 35, 102, 0.22);
}
.contact-btn-messenger:hover {
    background: #F4F8FF;
    color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 35, 102, 0.28);
}
.contact-btn-fanpage {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.36);
    font-weight: 600;
}
.contact-btn-fanpage:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Thẻ xem trước Fanpage lồng gọn bên phải */
.contact-fp-preview {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    color: var(--text-primary);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 16px 36px rgba(0, 30, 90, 0.2);
}
.contact-fp-preview-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.contact-fp-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #EFF6FF;
    border: 1px solid #CFE2FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-fp-avatar img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.contact-fp-avatar-dot {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22C55E;
    border: 2.5px solid #FFFFFF;
}
.contact-fp-preview-head strong {
    display: block;
    font-size: 0.98rem;
    color: var(--text-primary);
    line-height: 1.25;
}
.contact-fp-preview-head span {
    display: block;
    font-size: 0.79rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.contact-fp-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #F4F7FC;
    border: 1px solid #E2E8F0;
    margin-bottom: 12px;
}
.contact-fp-url {
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.contact-fp-copy {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 7px;
    border: 1px solid #CFE2FF;
    background: #FFFFFF;
    color: var(--primary-hover);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.contact-fp-copy:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.contact-fp-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.contact-fp-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.81rem;
    color: var(--text-secondary);
}
.contact-fp-meta .ui-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
}
.contact-card-ic {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #EFF6FF;
    color: var(--primary);
    border: 1px solid #D6E6FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.contact-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary);
}
.contact-card-link:hover {
    color: var(--primary-hover);
    gap: 7px;
}

/* Dải kết nối Fanpage gọn đẹp ở cuối trang Giới thiệu */
.about-fanpage-strip {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #F3F8FF 0%, #FFFFFF 100%);
    border: 1px solid #CFE2FF;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.about-fp-left {
    display: flex;
    align-items: center;
    gap: 13px;
    flex: 1;
    min-width: 220px;
}
.about-fp-left .contact-card-ic {
    margin-bottom: 0;
}
.about-fp-left strong {
    display: block;
    font-size: 0.96rem;
    color: var(--text-primary);
}
.about-fp-left p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.about-fp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .th-chat-fab-ring {
        animation: none;
        display: none;
    }
    .th-chat-popover,
    .th-chat-fab,
    .th-chat-fab-ic {
        transition: none;
    }
}
