/* ========================================
   HOME PAGE — MODERN BLUE UI
   PREMIUM THPT STYLE
======================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --blue-main:#2563eb;
    --blue-dark:#1d4ed8;

    --blue-soft:#eff6ff;
    --blue-border:#dbeafe;

    --text-main:#0f172a;
    --text-soft:#64748b;

    --white:#ffffff;

    --green:#10b981;
    --purple:#7c3aed;
    --orange:#f59e0b;

    --bg-main:#f4f8ff;

    /* BO GÓC NỀN */
    --bg-radius:28px;

    --shadow-soft:
    0 10px 30px rgba(37,99,235,0.08);

    --shadow-hover:
    0 20px 45px rgba(37,99,235,0.14);

    --hero-gradient:
    linear-gradient(
        135deg,
        #0f172a 0%,
        #162d63 50%,
        #2563eb 100%
    );

}

/* ========================================
   BASE
======================================== */

html{
    scroll-behavior:smooth;
}

body{

    background:var(--bg-main);
    border-radius:var(--bg-radius);
    color:var(--text-main);

    font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

.home-page{

    min-height:100vh;

    padding:28px;

    overflow:hidden;

    background:
    radial-gradient(
        circle at top left,
        rgba(37,99,235,0.08),
        transparent 28%
    ),
    radial-gradient(
        circle at bottom right,
        rgba(96,165,250,0.08),
        transparent 32%
    ),
    var(--bg-main);
    border-radius:var(--bg-radius);
}

/* ========================================
   HERO
======================================== */

.hero-section{
    
    position:relative;

    overflow:hidden;

    border-radius:38px;

    padding:42px;

    background:var(--hero-gradient);

    display:grid;

    grid-template-columns: 1fr 0.9fr;

    gap:34px;

    align-items:start;

    border:1px solid rgba(255,255,255,0.08);

    box-shadow:0 20px 60px rgba(15,23,42,0.22);
}

/* ========================================
   HERO GLOW
======================================== */

.hero-glow{

    position:absolute;

    border-radius:50%;

    filter:blur(90px);

    pointer-events:none;
}

.hero-glow-1{

    width:320px;
    height:320px;

    background:
    rgba(96,165,250,0.20);

    top:-120px;
    right:-80px;
}

.hero-glow-2{

    width:260px;
    height:260px;

    background:
    rgba(59,130,246,0.14);

    bottom:-120px;
    left:-80px;
}

/* ========================================
   HERO LEFT
======================================== */

.hero-left{

    position:relative;
    z-index:2;

    display:flex;
    flex-direction:column;

    gap:15px; /* tạo nhịp dọc thay vì rỗng */

    max-width:720px; /* 🔥 quan trọng: không cho tràn quá rộng */
}

@media(max-width:768px){

.hero-left{

    gap:6px;

    padding:4px 2px -2px;

}

}

/* ========================================
HERO BADGE — FIX CÂN ĐỐI LOGO + TEXT
======================================== */

.hero-badge{

    display:flex;
    align-items:center;

    gap:12px;

    padding:10px 16px;

    border-radius:999px;

    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.14);

    backdrop-filter:blur(14px);

    margin-bottom:23px;

    max-width:fit-content;

}


/* LOGO WRAPPER */
.hero-badge-logo{

    width:64px;
    height:64px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

}


/* LOGO IMAGE */
.hero-logo{

    width:72px;
    height:72px;

    object-fit:contain;

    display:block;

    transition:transform .2s ease;

    margin-left:0;

}


/* hover rung */
.hero-badge-logo:hover .hero-logo{

    animation:logoShake .45s ease-in-out;

}


@keyframes logoShake{

0%   { transform:translateX(0) rotate(0deg); }
15%  { transform:translateX(-2px) rotate(-3deg); }
30%  { transform:translateX(2px) rotate(3deg); }
45%  { transform:translateX(-2px) rotate(-2deg); }
60%  { transform:translateX(2px) rotate(2deg); }
100% { transform:translateX(0) rotate(0deg); }

}


/* ========================================
TEXT BLOCK
======================================== */

.hero-badge-text{

    display:flex;
    flex-direction:column;

    justify-content:center;

    line-height:1.25;

    letter-spacing:0.2px;

    margin-left:4px;
    margin-right:4px;

}


/* TITLE */
.hero-badge-title{

    font-size:20px;

    font-weight:900;

    color:#e0f2fe;


    letter-spacing:0.5px;

    line-height:1.25;

    word-spacing:normal;

    white-space:normal;


    text-shadow:
    0 2px 10px rgba(0,0,0,0.25);

}


/* SUB TITLE (nếu có) */
.hero-badge-sub{

    margin-top:3px;

    font-size:13px;

    font-weight:600;

    color:rgba(255,255,255,0.75);

    letter-spacing:0.3px;

    line-height:1.3;

}

/* SUB TITLE */
.hero-badge-sub {
    font-size: 15px;
    font-weight: 600;

    color: #93c5fd;

    margin-top: 6px;

    letter-spacing: 0.4px;

    line-height: 1.5;

    opacity: 0.9;

    word-spacing: normal;

    white-space: normal;

    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.hero-title{

    font-size:40px;

    line-height:1.1;

    font-weight:900;

    color:white;
    margin-top:-12px;   /* 👈 kéo lên */
    margin-bottom:20px;

    letter-spacing:-1.0px;
}

/* =====================================================
   MOBILE - GIẢM KHOẢNG CÁCH DƯỚI HERO TITLE
===================================================== */

@media(max-width:768px){

.hero-title{

    margin-bottom:20px;

}

}

.hero-title span{

    display:block;

    margin-top:8px;

    color:#93c5fd;
}

.hero-sub{

    max-width:620px;

    font-size:16px;

    line-height:1.9;

    color:#dbeafe;

    margin-bottom:30px;
}

/* ========================================
   INLINE STATS
======================================== */

.hero-inline-stats{

    display:flex;
    flex-wrap:wrap;

    gap:12px;

    margin-bottom:18px;
}

.inline-stat{

    min-width:140px;

    padding:18px 20px;

    border-radius:22px;

    background:
    rgba(255,255,255,0.10);

    border:
    1px solid rgba(255,255,255,0.08);

    backdrop-filter:blur(12px);
}

.inline-number{

    font-size:24px;

    font-weight:900;

    color:white;

    margin-bottom:6px;
}

.inline-label{

    font-size:13px;

    color:#cbd5e1;

    font-weight:600;
}

/* ========================================
   HERO BUTTONS
======================================== */

.hero-actions{

    display:flex;

    flex-wrap:wrap;

    gap:14px;
}

.hero-btn{

    height:56px;

    padding:0 24px;

    border-radius:18px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    font-size:15px;

    font-weight:800;

    transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease;

    cursor:pointer;
}

.mobile-text{
    display:none;
}


@media(max-width:768px){

    .desktop-text{
        display:none;
    }


    .mobile-text{
        display:inline;
        font-size: 11px;
    }

}

.hero-btn:hover{

    transform:translateY(-2px);
}

.primary-btn{

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:white;

    box-shadow:
    0 14px 30px rgba(37,99,235,0.34);
}

.secondary-btn{

    background:
    linear-gradient(
        135deg,
        #10b981,
        #059669
    );

    color:white;

    box-shadow:
    0 14px 30px rgba(16,185,129,0.26);
}

.glass-btn{

    background:
    rgba(255,255,255,0.10);

    color:white;

    border:
    1px solid rgba(255,255,255,0.12);

    backdrop-filter:blur(12px);
}

.glass-btn:hover{

    background:
    rgba(255,255,255,0.16);
}

/* ========================================
   HERO RIGHT
======================================== */

.hero-right{

    position:relative;

    z-index:2;

    display:flex;

    flex-direction:column;

    gap:20px;
}

.hero-right-layout{
    display:grid;
    grid-template-columns: 1.5fr 1fr;
    gap:18px;
    align-items:start;
}

.hero-stats-stack{
    display:flex;
    flex-direction:column;
    gap:14px;
    text-align: center;
}

.hero-stats-stack .inline-stat{
    padding:14px 16px;
    border-radius:18px;
}

.hero-stats-stack .inline-number{
    font-size:16px;
    line-height:1.1;
}

.hero-stats-stack .inline-label{
    font-size:13px;
    color:#eff3f9;
    font-weight:400;   /* 👈 bỏ in đậm */
}

.user-card{
    height:100%;
}

.user-card-bottom{
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    gap:0;
}

.user-mini-box{
    flex:1;
    text-align:center;
}

/* ĐƯỜNG KẺ GIỮA */
.mini-divider{
    width:1px;
    background:rgba(255,255,255,0.12);
    margin:0 10px;
    border-radius:999px;
}
/* ========================================
   USER CARD
======================================== */

.user-card{

    background:
    rgba(255,255,255,0.12);

    border:
    1px solid rgba(255,255,255,0.10);

    border-radius:30px;

    padding:20px;

    backdrop-filter:blur(16px);

    box-shadow:
    0 12px 30px rgba(0,0,0,0.08);
}

.user-card-top{

    display:flex;

    align-items:center;

    gap:16px;
}

.user-avatar{

    width:60px;
    height:60px;

    border-radius:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:
    linear-gradient(
        135deg,
        #60a5fa,
        #2563eb
    );

    color:white;

    font-size:28px;

    font-weight:900;

    flex-shrink:0;
}

.user-card-info{

    display:flex;

    flex-direction:column;

    gap:4px;
}

.user-hello{

    font-size:13px;

    color:#cbd5e1;
}

.user-name{

    font-size:15px;

    font-weight:900;

    color:white;
}

.user-meta{

    font-size:12px;

    color:#dbeafe;
}

.user-card-line{

    width:100%;

    height:1px;

    background:
    rgba(255,255,255,0.10);

    margin:20px 0;
}

.exam-grid{

    display:grid;

    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));

    gap:14px; /* ↓ từ 24px */
}

.user-mini-box{

    background:
    rgba(255,255,255,0.08);

    border:
    1px solid rgba(255,255,255,0.08);

    border-radius:20px;

    padding:15px;

    text-align:center;
}

.mini-box-number{

    font-size:18px;

    font-weight:900;

    color:white;

    margin-bottom:6px;
}

.mini-box-label{

    font-size:13px;

    color:#cbd5e1;
}

/* ========================================
   FLOAT CARD
======================================== */

.hero-floating-card{

    background:white;

    border-radius:32px;

    padding:28px;

    border:
    1px solid rgba(219,234,254,0.95);

    box-shadow:
    var(--shadow-soft);
}

.floating-top{

    display:flex;

    gap:10px;

    margin-bottom:24px;
}

.floating-dot{

    width:12px;
    height:12px;

    border-radius:50%;
}

.floating-dot.blue{
    background:#2563eb;
}

.floating-dot.white{
    background:#cbd5e1;
}

.floating-dot.soft{
    background:#93c5fd;
}

.floating-body{

    text-align:center;
}

.floating-number{

    font-size:50px;

    line-height:1;

    font-weight:900;

    color:#0f172a;

    margin-bottom:14px;
}

.floating-text{

    font-size:18px;

    font-weight:700;

    color:#64748b;

    margin-bottom:24px;
}

.floating-progress{

    width:100%;

    height:14px;

    border-radius:999px;

    overflow:hidden;

    background:#dbeafe;
}

.floating-progress-bar{

    width:82%;
    height:100%;

    border-radius:999px;

    background:
    linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );
}

.exam-id-badge{

    display:inline-block;

    padding:3px 8px;

    margin-right:8px;

    border-radius:999px;

    background:#eff6ff;

    border:1px solid #bfdbfe;

    color:#2563eb;

    font-size:11px;

    font-weight:700;

    vertical-align:middle;

    white-space:nowrap;

}

@media (max-width:768px){

    .exam-id-badge{

        padding:2px 6px;

        margin-right:6px;

        font-size:10px;

        font-weight:700;

        border-radius:999px;

        vertical-align:middle;

        line-height:1.2;

    }

}


@media (max-width:420px){

    .exam-id-badge{

        padding:2px 5px;

        margin-right:5px;

        font-size:9px;
        vertical-align:middle;

        line-height:1.2;

    }

}
/* ========================================
   FEATURE SECTION
======================================== */

.feature-section{

    margin-top:20px;
}

.feature-header{

    margin-bottom:24px;
}

.feature-badge{

    display:inline-flex;

    padding:10px 16px;

    border-radius:999px;

    background:#dbeafe;

    color:#1d4ed8;

    font-size:12px;

    font-weight:800;

    margin-bottom:16px;

    margin-top: -2px;
}

.feature-heading{

    font-size:18px;

    font-weight:900;

    color:#0f172a;
}

/* ========================================
   FEATURE GRID
======================================== */

.feature-grid{

    display:grid;

    grid-template-columns:
    repeat(4,minmax(0,1fr));

    gap:20px;

    align-items:stretch;
}

/* ========================================
   FEATURE CARD
======================================== */

.feature-card{

    position:relative;

    overflow:hidden;

    background:white;

    border-radius:30px;

    padding:26px;

    border:
    1px solid rgba(219,234,254,0.95);

    box-shadow:
    var(--shadow-soft);

    transition:
    transform .24s ease,
    box-shadow .24s ease;

    display:flex;

    flex-direction:column;

    min-height:100%;
}

.feature-card:hover{

    transform:translateY(-5px);

    box-shadow:
    var(--shadow-hover);
}

.feature-icon{

    width:72px;
    height:72px;

    border-radius:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:30px;

    margin-bottom:22px;

    flex-shrink:0;
}

.blue-icon{

    background:
    linear-gradient(
        135deg,
        #dbeafe,
        #bfdbfe
    );
}

.green-icon{

    background:
    linear-gradient(
        135deg,
        #dcfce7,
        #bbf7d0
    );
}

.purple-icon{

    background:
    linear-gradient(
        135deg,
        #ede9fe,
        #ddd6fe
    );
}

.orange-icon{

    background:
    linear-gradient(
        135deg,
        #def9ff,
        #9fd8fc
    );
}

.orange-icon1{

    background:
    linear-gradient(
        135deg,
        #ffedd5,
        #fed7aa
    );
}

.feature-icon1{

    width:72px;
    height:72px;

    border-radius:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:30px;

    margin-bottom:22px;

    flex-shrink:0;
}


.feature-content{

    margin-bottom:20px;
}

.feature-title{

    font-size:17px;

    line-height:1.3;

    font-weight:900;

    color:#0f172a;

    margin-bottom:12px;
}

.feature-sub{

    font-size:14px;

    line-height:1.8;

    color:#64748b;
}

/* ========================================
   ONE LINE UPLOAD BAR
======================================== */

.upload-bar-section{

    margin-top:20px;
}

.upload-bar{

    width:100%;

    background:white;

    border-radius:28px;

    padding:18px 22px;

    border:
    1px solid rgba(219,234,254,0.95);

    box-shadow:
    var(--shadow-soft);

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:22px;

    transition:
    transform .22s ease,
    box-shadow .22s ease;
}

.upload-bar:hover{

    transform:translateY(-2px);

    box-shadow:
    var(--shadow-hover);
}

/* ========================================
   LEFT
======================================== */

.upload-bar-left{

    display:flex;

    align-items:center;

    gap:18px;

    min-width:0;

    flex:1;
}

.upload-bar-content{

    min-width:0;
}

.upload-bar-title{

    font-size:17px;

    font-weight:900;

    color:#0f172a;

    margin-bottom:6px;
}

.upload-bar-sub{

    font-size:13px;

    color:#64748b;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
    margin-bottom:12px;
}

/* ========================================
   FORM
======================================== */

.upload-bar-form{

    display:flex;

    align-items:center;

    gap:14px;

    flex-shrink:0;
}

/* ========================================
   FILE INPUT
======================================== */

.upload-input{

    height:52px;

    padding:10px 14px;

    border-radius:16px;

    border:
    1px solid #dbeafe;

    background:#f8fbff;

    color:#334155;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    min-width:280px;

    transition:
    border .2s ease,
    background .2s ease;
}

.upload-input:hover{

    border-color:#93c5fd;

    background:#eff6ff;
}

/* ========================================
   BUTTON
======================================== */

.upload-btn{

    height:52px;

    border:none;

    padding:0 24px;

    border-radius:16px;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:white;

    font-size:14px;

    font-weight:800;

    cursor:pointer;

    transition:
    transform .2s ease,
    box-shadow .2s ease;

    box-shadow:
    0 10px 24px rgba(37,99,235,0.22);
}

.upload-btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 14px 28px rgba(37,99,235,0.28);
}

/* ========================================
   RESPONSIVE
======================================== */

@media(max-width:950px){

    .upload-bar{

        flex-direction:column;

        align-items:stretch;
    }

    .upload-bar-left{

        width:100%;
    }

    .upload-bar-form{

        width:100%;

        flex-direction:column;

        align-items:stretch;
    }

    .upload-input{

        width:100%;

        min-width:unset;
    }

    .upload-btn{

        width:100%;
    }

    .upload-bar-sub{

        white-space:normal;
    }
}
/* ========================================
   EXAM SECTION
======================================== */

.exam-section{

    margin-top:20px;
}

.exam-section-top{

    display:flex;

    align-items:flex-end;

    justify-content:space-between;

    gap:20px;

    margin-bottom:24px;
}

.section-badge{

    display:inline-flex;

    padding:10px 16px;

    border-radius:999px;

    background:#dbeafe;

    color:#1d4ed8;

    font-size:12px;

    font-weight:800;

    margin-bottom:16px;
}

.section-title{

    font-size:18px;

    font-weight:900;

    color:#0f172a;
    margin-top: -2px;
}

.section-pill{

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 18px;

    border-radius:20px;

    background:
    rgba(255,255,255,0.75);

    backdrop-filter:blur(14px);

    border:
    1px solid rgba(37,99,235,0.12);

    box-shadow:
    0 10px 30px rgba(37,99,235,0.08);

    transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.section-pill:hover{

    transform:translateY(-2px);

    box-shadow:
    0 16px 36px rgba(37,99,235,0.14);
}

.pill-dot{

    width:12px;
    height:12px;

    border-radius:50%;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );

    box-shadow:
    0 0 14px rgba(37,99,235,0.45);

    flex-shrink:0;
}

.pill-number{

    font-size:22px;

    line-height:1;

    font-weight:900;

    color:#2563eb;
}

.pill-text{

    font-size:13px;

    font-weight:700;

    color:#64748b;

    white-space:nowrap;
}

/* ========================================
   EXAM CARD
======================================== */

.exam-card{

    position:relative;

    overflow:hidden;

    text-decoration:none;

    background:white;

    border-radius:30px;

    padding:16px;

    border:
    1px solid rgba(219,234,254,0.95);

    box-shadow:
    var(--shadow-soft);

    transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease;
}

.exam-card:hover{

    transform:translateY(-6px);

    border-color:#93c5fd;

    box-shadow:
    var(--shadow-hover);
}

.exam-card-bg{

    position:absolute;

    width:180px;
    height:180px;

    border-radius:50%;

    background:
    rgba(37,99,235,0.05);

    top:-70px;
    right:-60px;
}

.exam-card-top{

    position:relative;

    z-index:2;

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:26px;
}

.exam-icon{

    width:48px;
    height:48px;

    border-radius:14px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    background:
    linear-gradient(
        135deg,
        #dbeafe,
        #bfdbfe
    );

    color:#1d4ed8;
}

.exam-status{

    padding:10px 16px;

    border-radius:999px;

    background:#dcfce7;

    color:#166534;

    font-size:12px;

    font-weight:800;
}

.exam-card-body{

    position:relative;

    z-index:2;
}

.exam-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* tối đa 2 dòng và thêm ... */

    overflow: hidden;

    height: calc(17px * 1.4 * 2);
    word-break: break-word;
}

.exam-info{

    font-size:13px;

    line-height:1.7;

    color:#64748b;

    margin-bottom:16px;
}

.exam-card-footer{

    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    justify-content:space-between;
}

.exam-tag{

    padding:6px 10px;

    border-radius:999px;

    background:#eff6ff;

    color:#2563eb;

    font-size:11px;

    font-weight:800;
}

.exam-open{

    font-size:13px;

    font-weight:800;

    color:#2563eb;
}

/* ========================================
   SCROLLBAR
======================================== */

::-webkit-scrollbar{
    width:7px;
}

::-webkit-scrollbar-thumb{

    background:#cbdcfb;

    border-radius:999px;
}

/* =========================
   SCROLL TOP BUTTON
========================= */

#scrollTopBtn{

    position:fixed;

    bottom:25px;

    right:25px;

    width:50px;

    height:50px;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:white;

    border:none;

    border-radius:50%;

    font-size:20px;

    font-weight:900;

    cursor:pointer;

    box-shadow:
    0 10px 24px rgba(37,99,235,0.28);

    display:none;

    transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;

    z-index:999;

    font-family:inherit;
}

#scrollTopBtn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 14px 28px rgba(37,99,235,0.34);
}

.exam-card.exam-done {

    border: 1px solid rgba(245, 158, 11, 0.08); /* cam cực nhạt */

    box-shadow: var(--shadow-soft);

    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;

    position: relative;
}

.exam-card.exam-done:hover {

    transform: translateY(-6px);

    border-color: rgba(245, 158, 11, 0.35); /* vẫn nhẹ */

    box-shadow: var(--shadow-hover);
}

.exam-card.exam-done .exam-status {
    background: #fff7ed;   /* cam rất nhạt */
    color: #f59e0b;        /* cam chính */
    font-weight: 800;
    border: 0px solid rgba(245, 158, 11, 0.25);
}

.exam-card.exam-done .exam-icon {
    filter: none;
    opacity: 1;
}

.feature-link{
    text-decoration:none;
    color:inherit;
    display:block;
}
.feature-card {
    text-decoration: none !important;
    color: inherit;
}
.upload-input::file-selector-button{
    height:38px;

    padding:0 16px;
    margin-right:12px;

    border:none;
    border-radius:12px;

    cursor:pointer;

    font-size:13px;
    font-weight:800;

    color:white;

    background:linear-gradient(135deg,#3b82f6,#2563eb);

    box-shadow:0 10px 24px rgba(79,140,255,0.25);

    transition:0.2s;
}

.upload-input::file-selector-button:hover{
    transform:translateY(-2px);
}

.download-template-link{

    display:inline-flex;
    align-items:center;
    gap:8px;

    margin-top:-1px;

    padding:8px 14px;

    border-radius:10px;

    background:rgba(37,99,235,.08);
    border:1px solid rgba(37,99,235,.18);

    color:#2563eb;
    font-size:13px;
    font-weight:600;

    text-decoration:none;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

.download-template-link:hover{

    background:rgba(37,99,235,.14);

    border-color:rgba(37,99,235,.35);

    color:#1d4ed8;

    transform:translateY(-2px);

    box-shadow:
        0 8px 20px rgba(37,99,235,.15);
}

.download-template-link:hover .download-icon{

    animation:downloadBounce .6s ease;
}

.download-template-link:active{

    transform:translateY(0);
}

@keyframes downloadBounce{

    0%,100%{
        transform:translateY(0);
    }

    30%{
        transform:translateY(-4px);
    }

    60%{
        transform:translateY(2px);
    }
}

/* =========================
   TEACHER ADMIN
========================= */

.teacher-admin-section{
    margin:20px 0;
}

.teacher-admin-card{
    background:#ffffff;
    border:1px solid #dbeafe;
    border-radius:24px;
    padding:24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    box-shadow:0 10px 30px rgba(37,99,235,.08);
}

.teacher-admin-left{
    display:flex;
    align-items:center;
    gap:18px;
}

.teacher-admin-icon{
    width:64px;
    height:64px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    background:#eff6ff;
}

.teacher-admin-title{
    font-size:18px;
    font-weight:700;
    color:#1f3365;
}

.teacher-admin-sub{
    margin-top:6px;
    color:#64748b;
    font-size: 15px;
}

.teacher-admin-btn{
    background:#2563eb;
    color:#fff;
    padding:12px 22px;
    border-radius:12px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.25s;
}

.teacher-admin-btn:hover{
    transform:translateY(-2px);
}


.lb-title{
    font-size:22px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:14px;
}

.lb-item{
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:10px 12px;
    border-radius:14px;

    background:#f8fbff;
    border:1px solid #e0ecff;

    margin-bottom:10px;

    transition:0.2s;
}

.lb-item:hover{
    background:#eff6ff;
    transform:translateY(-2px);
}

.lb-rank{
    font-weight:900;
    color:#2563eb;
    width:24px;
    font-size:14px;
}

.lb-name{
    flex:1;
    padding-left:10px;
    font-weight:700;
    color:#0f172a;
    font-size:14px;
}

.lb-score{
    font-weight:900;
    color:#f59e0b;
    font-size:14px;
}

.lb-empty{
    color:#64748b;
    font-size:14px;
    padding:12px;
    text-align:center;
    background:#f8fbff;
    border-radius:12px;
    border:1px dashed #dbeafe;
}
/* =========================
   LEADERBOARD — FIX ĐỒNG BỘ FEATURE CARD
========================= */

.leaderboard-preview{
    background:white;
    border-radius:30px;
    padding:26px;
    border:1px solid rgba(219,234,254,0.95);
    box-shadow:var(--shadow-soft);

    display:flex;
    flex-direction:column;
    height:100%;
    transition:transform .24s ease, box-shadow .24s ease;
}

.leaderboard-preview:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-hover);
}

/* =========================
   TOP STUDENTS
========================= */

.top-students-card{
    background:white;
    border-radius:24px;
    padding:18px 20px;
    box-shadow:var(--shadow);

    margin-top:20px;   /* 👈 thêm dòng này */
    margin-bottom:30px;
}

.card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;
}

.card-header h2{

    margin:0;

    color:var(--text-main);

    font-size:18px;
}

.top-students-grid{

    display:grid;

    grid-template-columns:
        repeat(5,1fr);

    gap:18px;
}

.top-student{

    border:1px solid #e2e8f0;

    padding:14px;

    border-radius:16px;

    text-align:center;

    transition:.25s;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    gap:4px;
    
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #f5f9ff 45%,
        #eaf2ff 100%
    );

    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.06);
}
.top-student:hover{
    transform:translateY(-4px);
    box-shadow:
        0 12px 24px rgba(37,99,235,.12),
        0 0 0 1px rgba(37,99,235,.08);
}
html {
    scroll-behavior: smooth;
}

.top-rank{

    font-size:28px;

    margin-bottom:10px;
}

.top-avatar{

    width:52px;

    height:52px;

    font-size:20px;

    margin-bottom:8px;

    margin:auto;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        var(--blue-main),
        var(--blue-dark)
    );

    color:white;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:800;
}

.top-name{

    font-weight:700;

    color:var(--text-main);

    margin-bottom:2px;
}

.top-school{

    color:var(--text-soft);

    font-size:12px;

    margin-bottom:6px;

    min-height:34px;
}

.top-score{

    font-size:13px;

    margin-bottom:6px;
}

.top-score strong{

    color:var(--green);
}

.mini-progress{

    height:6px;

    background:#e2e8f0;

    border-radius:999px;

    overflow:hidden;

    margin-bottom:5px;
}

.mini-progress-fill{

    height:100%;

    background:linear-gradient(
        90deg,
        var(--blue-main),
        var(--blue-dark)
    );

    border-radius:999px;
}

.top-progress-wrapper span{

    font-size:13px;

    color:var(--text-soft);
}

.exam-table-wrapper{
    margin-top:20px;
}

.exam-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

.exam-table th,
.exam-table td{
    padding:12px;
    border-bottom:1px solid #eee;
    text-align:left;
}

.exam-table th{
    background:#f8fafc;
}

.tag-done{
    background:#dcfce7;
    color:#166534;
    padding:4px 8px;
    border-radius:8px;
    font-size:12px;
}

.tag-new{
    background:#fee2e2;
    color:#991b1b;
    padding:4px 8px;
    border-radius:8px;
    font-size:12px;
}

.table-btn{
    padding:6px 10px;
    background:#2563eb;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
}

/* =========================
   EXAM TABLE WRAPPER (CARD STYLE)
========================= */

.exam-table-wrapper{
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    margin-top: 20px;
    overflow: hidden;
}

.table-title{
    display:flex;

    justify-content:flex-start;

    align-items:center;

    width:100%;

    text-align:left;

    font-size:16px;
    font-weight:700;
    color:#0f172a;

    gap:8px;

    margin:0 0 12px;
}
/* =========================
   TABLE
========================= */

.exam-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

/* HEADER */
.exam-table thead th{
    text-align: left;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    padding: 10px 14px;
    text-transform: uppercase;
}

/* ROW */
.exam-table tbody tr{
    background: #f8fafc;
    transition: all .2s ease;
    border-radius: 12px;
}

/* hover row */
.exam-table tbody tr:hover{
    background: #eef6ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

/* CELL */
.exam-table tbody td{
    padding: 12px 14px;
    font-size: 14px;
    color: #0f172a;
}

/* bo góc từng row */
.exam-table tbody tr td:first-child{
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.exam-table tbody tr td:last-child{
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* =========================
   STATUS TAG
========================= */

.tag-done,
.tag-new{
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.tag-done{
    padding:6px 10px;

    border-radius:999px;

    background: #fff8ef;

    color: #f59e0b;  

    font-size:12px;

    font-weight:800;
}

.tag-new{
    padding:6px 10px;

    border-radius:999px;

    background:#dcfce7;

    color:#166534;

    font-size:12px;

    font-weight:800;
}
/* =========================
   TABLE ACTION LINK
========================= */

.table-btn{
    display:inline-flex;
    align-items:center;
    gap:5px;

    padding:0;
    border:none;
    background:none;

    font-size:14px;
    font-weight:700;

    color:#2563eb;
    text-decoration:none;

    transition:color .2s ease,
               transform .2s ease;
}


/* Hover làm bài */
.table-btn:hover{
    color:#1d4ed8;
    animation: shake .35s ease;
    transform: translateX(3px);
}


/* Đã làm */
.table-btn.done{
    color:#ea580c;
}


/* Hover xem lại */
.table-btn.done:hover{
    color:#c2410c;
}


/* Hiệu ứng rung nhẹ */
@keyframes shake {

    0%{
        transform: translateX(0);
    }

    25%{
        transform: translateX(-2px);
    }

    50%{
        transform: translateX(2px);
    }

    75%{
        transform: translateX(-2px);
    }

    100%{
        transform: translateX(3px);
    }

}
/* =========================
   EXAM TABLE PAGINATION
========================= */

.table-pagination{

    margin-top: 22px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

}


.page-btn{

    width: 38px;

    height: 38px;

    border: none;

    border-radius: 10px;

    background: #f1f5f9;

    color: #334155;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: all .25s ease;

}


.page-btn:hover{

    background: #dbeafe;

    color: #2563eb;

    transform: translateY(-2px);

}


.page-btn.active{

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: white;

    box-shadow:
        0 8px 20px rgba(37,99,235,.35);

}

/* =========================
   EXAM TABLE COLUMN WIDTH
========================= */

/* ID */
.exam-table th:nth-child(1),
.exam-table td:nth-child(1){
    width: 8%;
    text-align: center;
}


/* Tên đề */
.exam-table th:nth-child(2),
.exam-table td:nth-child(2){
    width: 45%;
}


/* Số câu */
.exam-table th:nth-child(3),
.exam-table td:nth-child(3){
    width: 12%;
    text-align: center;
}


/* Trạng thái */
.exam-table th:nth-child(4),
.exam-table td:nth-child(4){
    width: 15%;
    text-align: center;
}


/* Hành động */
.exam-table th:nth-child(5),
.exam-table td:nth-child(5){
    width: 20%;
    text-align: center;
}

.exam-table td:nth-child(2){
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* =========================
   EXAM SEARCH
========================= */

.exam-search{

    margin: 16px 0 10px;

    display: flex;

    align-items: center;

    gap: 10px;

    background: #f8fafc;

    border: 1px solid #dbeafe;

    border-radius: 12px;

    padding: 12px 13px;

    transition: all .25s ease;

}


.exam-search:focus-within{

    border-color: #2563eb;

    box-shadow: 
        0 0 0 4px rgba(37,99,235,.12);

}


.search-icon{

    font-size: 16px;

    color: #64748b;

}


.search-input{

    flex: 1;

    border: none;

    outline: none;

    background: transparent;

    font-size: 14px;

    color: #0f172a;

}


.search-input::placeholder{

    color: #94a3b8;

}

.exam-date{

    margin-top: -18px;

    font-size: 13px;

    color: #64748b;

    font-weight: 500;

    display: flex;

    align-items: center;

    gap: 2px;

}
.exam-meta {

    margin-top: 6px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 14px;

    color: #64748b;

}

.exam-info,
.exam-date {

    font-weight: 500;

}

/* =========================
   EXAM TABLE COLUMN SIZE
========================= */

.exam-table {

    width: 100%;
    table-layout: fixed;

}


/* ID */
.exam-table th:nth-child(1),
.exam-table td:nth-child(1) {

    width: 6%;

}


/* TÊN ĐỀ */
.exam-table th:nth-child(2),
.exam-table td:nth-child(2) {

    width: 38%;
    text-align: left;

}


/* NGÀY UPLOAD */
.exam-table th:nth-child(3),
.exam-table td:nth-child(3) {

    width: 15%;

}


/* SỐ CÂU */
.exam-table th:nth-child(4),
.exam-table td:nth-child(4) {

    width: 10%;

}


/* TRẠNG THÁI */
.exam-table th:nth-child(5),
.exam-table td:nth-child(5) {

    width: 13%;

}


/* HÀNH ĐỘNG */
.exam-table th:nth-child(6),
.exam-table td:nth-child(6) {

    width: 18%;
    white-space: nowrap;

}

/* ========================================
   LEARNING HUB
======================================== */

.learning-section{

    margin-top:20px;

}


/* HEADER */

.learning-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    gap:20px;

    margin-bottom:28px;

}


/* BUTTON GIÁO VIÊN */

.learning-btn{

    height:50px;

    padding:0 22px;

    border:none;

    border-radius:16px;

    background:
    linear-gradient(
        135deg,
        var(--blue-main),
        var(--blue-dark)
    );

    color:white;

    font-size:14px;

    font-weight:800;

    cursor:pointer;

    box-shadow:
    0 10px 25px rgba(37,99,235,.25);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.learning-btn:hover{

    transform:translateY(-3px);

    box-shadow:
    0 15px 35px rgba(37,99,235,.35);

}


/* GRID */

.learning-grid{

    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    min-width:0;

}


/* CARD */

.learning-card{

    position:relative;

    overflow:hidden;

    background:white;

    border-radius:26px;

    padding:20px;

    border:
        1px solid rgba(219,234,254,.95);

    box-shadow:
        var(--shadow-soft);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;


    /* FLEX */
    display:flex;

    flex-direction:column;


    /* FIX CHUỖI DÀI */
    min-width:0;

    max-width:100%;


    min-height:300px;

}

/* ÉP TOÀN BỘ CON TRONG CARD ĐƯỢC CO */

.learning-card > *{

    min-width:0;

    max-width:100%;

}


/* TEXT TRONG CARD */

.learning-card,
.learning-card *{

    overflow-wrap:anywhere;

    word-break:break-all;

}


.learning-card::after{

    content:"";

    position:absolute;

    width:130px;

    height:130px;

    border-radius:50%;

    background:
        rgba(37,99,235,.05);

    right:-40px;

    top:-40px;
}
.learning-card:hover{

    transform:translateY(-5px);

    border-color:#93c5fd;

    box-shadow:
        var(--shadow-hover);
}
.learning-card.hot{

    border-color:
        rgba(245,158,11,.35);
}
.learning-icon{

    position:relative;

    z-index:2;

    width:30px;

    height:30px;

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:18px;

    margin-bottom:14px;

    background:
    linear-gradient(
        135deg,
        #dbeafe,
        #bfdbfe
    );

}
.learning-type{

    position:relative;

    z-index:2;

    width:max-content;

    padding:5px 12px;

    border-radius:999px;

    background:#eff6ff;

    color:var(--blue-main);

    font-size:11px;

    font-weight:800;

    margin-bottom:14px;
}

.learning-title {
    position: relative;
    z-index: 2;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    color: var(--text-main);
    margin-bottom: 10px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* FIX: không cắt đôi từ khi xuống dòng */
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.learning-content{

    position:relative;

    z-index:2;

    color:var(--text-soft);

    font-size:14px;

    line-height:1.6;


    display:-webkit-box;


    -webkit-box-orient:vertical;

    overflow:hidden;


    flex:1;

}
.learning-footer{

    position:relative;

    z-index:2;

    margin-top:18px;

    padding-top:14px;

    border-top:
        1px solid #e2e8f0;


    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:12px;
}
.learning-form{

    background:white;

    padding:20px;

    border-radius:24px;

    margin-top:20px;

    border:1px solid #dbeafe;

    box-shadow:var(--shadow-soft);

    display:flex;

    flex-direction:column;

    gap:12px;
}
/* =========================
   TEACHER POST PANEL
========================= */

.learning-post-box{

    margin-top:20px;

    background:white;

    border-radius:28px;

    padding:22px;

    border:1px solid rgba(219,234,254,.95);

    box-shadow:var(--shadow-soft);

}

/* =========================
   LEARNING TOGGLE TEXT
========================= */

.learning-toggle > span:first-child {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

/* Mũi tên giữ kích thước gọn */
.learning-toggle > span:last-child {
    font-size: 14px;
    line-height: 1;
}

@media (max-width:768px){

    .learning-toggle > span:first-child{
        font-size:13px;
        font-weight:700;
        line-height:1.3;
    }

    .learning-toggle > span:last-child{
        font-size:12px;
        line-height:1;
    }

}
/* TITLE */

.learning-post-title{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:18px;

    font-size:18px;

    font-weight:900;

    color:var(--text-main);

}


/* tạo gạch xanh bên trái */

.learning-post-title::before{

    content:"";

    width:6px;

    height:24px;

    border-radius:999px;

    background:linear-gradient(
        180deg,
        var(--blue-main),
        var(--blue-dark)
    );

}
/* =========================
   LEARNING TOGGLE PANEL
========================= */

.learning-post-box{

    margin-top:15px;

    background:#ffffff;

    border-radius:24px;

    border:1px solid var(--blue-border);

    box-shadow:var(--shadow-soft);

    overflow:hidden;
}

.learning-toggle{

    width:100%;

    height:40px;

    padding:0 0px;

    border:none;

    background:transparent;

    display:flex;

    align-items:center;

    justify-content:space-between;

    cursor:pointer;

    font-size:15px;

    font-weight:800;

    color:var(--text-main);

    transition:.25s;
}

/* KHU VỰC FORM */

.learning-form-area{

    display:none;
    border-top:1px solid #e2e8f0;
}


/* FORM */

.learning-form{

    display:flex;

    flex-direction:column;

    background:none;

    padding:0;

    border:none;

    box-shadow:none;

    border-radius:0;
}

/* INPUT */

.learning-form input,
.learning-form textarea,
.learning-form select{

    width:100%;

    background:#f8fbff;

    border:1px solid #dbeafe;

    border-radius:14px;

    padding:10px 10px;

    font-size:14px;

    color:var(--text-main);

    font-family:inherit;

    outline:none;

    transition:.25s;
}


.learning-form input:focus,
.learning-form textarea:focus,
.learning-form select:focus{

    border-color:var(--blue-main);

    box-shadow:
        0 0 0 4px rgba(37,99,235,.12);
}
/* TEXTAREA */

.learning-form textarea{

    resize:vertical;

    min-height:80px;
}

/* BUTTON */

.learning-submit{

    width:160px;

    height:43px;

    margin-left:auto;

    border:none;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            var(--blue-main),
            var(--blue-dark)
        );

    color:white;

    font-size:14px;

    font-weight:800;

    cursor:pointer;

    box-shadow:
        0 8px 20px rgba(37,99,235,.25);

    transition:.25s;
}

.learning-submit:hover{

    transform:translateY(-2px);

    box-shadow:
        0 12px 24px rgba(37,99,235,.35);
}
/* =========================
   BÀI MỚI NHẤT (NỔI BẬT)
========================= */

.learning-main{

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #ffffff
        );

    border:1px solid #dbeafe;

    border-radius:18px;

    padding:10px 8px;

    margin-top:10px;

    margin-bottom:8px;

}

.learning-main .learning-title{

    font-size:13px;

    font-weight:900;

    color:var(--text-main);

    line-height:1.4;

    margin-bottom:4px;

}

.learning-main .learning-content{

    font-size:14px;

    color:var(--text-soft);

    line-height:1.6;
    margin-top:-12px;

    display:-webkit-box;

    -webkit-box-orient:vertical;

    overflow:hidden;

}


.learning-main .learning-footer{

    margin-top:5px;

    padding-top:6px;

    border-top:1px dashed #dbeafe;

    font-size:12px;

    color:#64748b;

    font-weight:700;

}


/* =========================
   DANH SÁCH TIN CŨ
========================= */

.learning-item{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    padding:10px 6px;

    border-bottom:1px solid #eef2ff;

    transition:.25s ease;

    cursor:pointer;

}

.learning-item:last-child{

    border-bottom:none;

}

.learning-item:hover{

    padding-left:10px;

    background:#f8fbff;

    border-radius:10px;

}

/* chấm trạng thái */

.learning-item::before{

    content:"";

    width:7px;

    height:7px;

    border-radius:50%;

    background:var(--blue-main);

    flex-shrink:0;

    box-shadow:
        0 0 8px rgba(37,99,235,.45);

}

/* Tiêu đề tin cũ */

.learning-item-title{

    flex:1;

    font-size:13px;

    font-weight:700;

    color:#334155;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

}


/* Ngày */

.learning-item-date{

    font-size:11px;

    font-weight:700;

    color:#94a3b8;

    flex-shrink:0;

}


/* =========================
   CARD CỐ ĐỊNH CHIỀU CAO
========================= */

.learning-card{

    display:flex;

    flex-direction:column;

    min-height:220px;

}

/* =========================
   LEARNING HEADER CARD
========================= */

.learning-head{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:-15px;

}


/* ICON nhỏ gọn */

.learning-icon{

    width:42px;

    height:42px;

    border-radius:14px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    flex-shrink:0;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #bfdbfe
        );

}


/* LABEL */

.learning-type{

    display:flex;

    align-items:center;

    height:32px;

    padding:0 14px;

    border-radius:999px;

    background:#eff6ff;

    color:var(--blue-main);

    font-size:16px;

    font-weight:800;

    letter-spacing:0.3px;

}
/* =========================
   NỘI DUNG BÀI ĐĂNG
========================= */

.learning-content {

    white-space: pre-line;
    line-height: 1.6;
    color: #334155;
    font-size: 15px;
    margin-bottom: 14px;

    /* tránh nội dung dài làm vỡ card */
    word-break: break-word;
    overflow-wrap: break-word;
}


/* =========================
   LINK / FILE ĐÍNH KÈM
========================= */

.learning-attach {

    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;
    margin-bottom: 10px;

    padding: 10px 12px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    font-size: 14px;

    transition: all 0.25s ease;

    overflow: hidden;
}


.learning-attach:hover {

    background: #eff6ff;
    border-color: #93c5fd;

    transform: translateX(3px);
}


.learning-attach a {

    color: #2563eb;
    text-decoration: none;

    font-weight: 600;

    flex: 1;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.learning-attach a:hover {

    text-decoration: underline;
    color: #1d4ed8;
}


/* =========================
   KHÔNG CÓ DỮ LIỆU
========================= */

.learning-empty {

    display: flex;

    justify-content: center;
    align-items: center;

    min-height: 200px;
    margin-top: 10px;
    padding: 20px;

    text-align: center;

    color: #64748b;

    font-size: 14px;
    font-style: italic;

    background: linear-gradient(
        135deg,
        #f8fafc,
        #eef2ff
    );

    border: 2px dashed #cbd5e1;

    border-radius: 14px;
}


/* =========================
   DANH SÁCH BÀI CŨ
========================= */

.learning-item {

    padding: 10px 6px;

    border-top: 1px solid #e5e7eb;

    cursor: pointer;

    transition: all 0.25s ease;
}


.learning-item:hover {

    background: #f8fafc;

    padding-left: 16px;
}


.learning-item-title {

    color: #0f172a;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 2px;

    line-height: 1.4;

    overflow: hidden;

    display: -webkit-box;

    -webkit-box-orient: vertical;
}


.learning-item-date {

    font-size: 12px;

    color: #64748b;
}


/* =========================
   NGÀY ĐĂNG BÀI CHÍNH
========================= */

.learning-footer {

    margin-top: 2px;

    padding-top: 10px;

    border-top: 1px dashed #cbd5e1;

    color: #64748b;

    font-size: 13px;
}


/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 768px) {


    .learning-content {

        font-size: 14px;
    }


    .learning-attach {

        padding: 9px;
    }


    .learning-attach a {

        font-size: 13px;
    }


    .learning-empty {

        min-height: 150px;
    }

}
/* =========================
   TRUNG TÂM HỌC TẬP - LMS UI
========================= */
/* grid 3 cột */
.learning-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:20px;
}

/* =========================
   CARD
========================= */
.learning-card{
    background:#fff;
    border-radius:18px;
    padding:18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition:.25s;
    display:flex;
    flex-direction:column;
}

.learning-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* header */
.learning-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
}

.learning-icon{
    font-size:20px;
}

.learning-type{
    font-weight:800;
    color:#0f172a;
    font-size:16px;
}

/* =========================
   MAIN POST
========================= */
.learning-main{
    background:#f1f5f9;
    border-radius:14px;
    padding:14px;
    cursor:pointer;
    transition:.25s;
    margin-bottom:12px;
    position:relative;
}

.learning-main:hover{
    background:#e0f2fe;
    transform: translateY(-2px);
}

/* badge mới */
.learning-tag{
    position:absolute;
    top:10px;
    right:10px;
    color:#fff;
    font-size:10px;
    padding:3px 6px;
    border-radius:999px;
    font-weight:500;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff;

    box-shadow:0 8px 10px rgba(245,158,11,0.22); /* ↓ nhẹ hơn */

    animation:newTagPulse 1.6s ease-in-out infinite;
    transform-origin:center;
}

/* title */
.learning-title{
    font-weight:800;
    color:#0f172a;
    margin-bottom:8px;
}

/* preview */
.learning-preview{
    font-size:13px;
    color:#475569;
    line-height:1.4;
    margin-bottom:10px;
}

/* footer */
.learning-footer{
    display:flex;
    justify-content:space-between;
    font-size:12px;
    color:#64748b;
}

/* =========================
   LIST ITEM
========================= */
.learning-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.learning-item{
    padding:10px 12px;
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:12px;
    cursor:pointer;
    transition:.2s;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.learning-item:hover{
    background:#eff6ff;
    transform: translateX(3px);
}

.learning-item-title{
    font-size:13px;
    font-weight:600;
    color:#0f172a;
}

.learning-item-date{
    font-size:11px;
    color:#64748b;
}

/* =========================
   EMPTY
========================= */
.learning-empty{
    padding:20px;
    text-align:center;
    color:#94a3b8;
    font-size:14px;
    background:#f8fafc;
    border-radius:12px;
}

/* =========================
   FORM GIÁO VIÊN
========================= */
.learning-post-box{
    margin-top:25px;
    background:#fff;
    padding:18px;
    border-radius:16px;
    box-shadow:0 6px 20px rgba(0,0,0,0.05);
}

.learning-toggle{
    width:100%;
    padding:12px;
    border:none;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    border-radius:12px;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
}

.learning-form-area{
    margin-top:15px;
    display:none;
}

.learning-form input,
.learning-form textarea,
.learning-form select{
    width:100%;
    margin-bottom:10px;
    border:1px solid #e2e8f0;
    border-radius:10px;
    outline:none;
}

.learning-submit{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#2245c5;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

/* =========================
   MODAL OVERLAY
========================= */
.learning-modal{
    position:fixed;
    inset:0;
    background: rgba(0,0,0,0.55);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding:20px;
}

.learning-modal.show{
    display:flex;
    animation: fadeIn .2s ease;
}

/* modal box */
.learning-modal-box{
    width:min(750px, 95%);
    background:#fff;
    border-radius:18px;
    padding:22px;
    position:relative;
    max-height:85vh;
    overflow-y:auto;
    animation: slideUp .25s ease;
    box-shadow:0 25px 60px rgba(0,0,0,0.25);
}

/* close */
.modal-close{
    position:absolute;
    top:12px;
    right:12px;
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    cursor:pointer;
    font-weight:700;
}

.modal-header{
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ép toàn bộ về trái */
    gap: 8px; /* khoảng cách icon - title */
}

.modal-icon{
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title{
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    margin: 10px  0px 0px 0px; /* rất quan trọng để tránh lệch */
}

/* body */
.modal-body{
    white-space:pre-line;
    color:#334155;
    line-height:1.6;
    font-size:14px;
}

/* attach */
.modal-attach{
    margin-top:15px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.modal-attach a{
    display:inline-block;
    padding:8px 12px;
    background:#eff6ff;
    color:#2563eb;
    border-radius:10px;
    font-weight:600;
    text-decoration:none;
}

/* footer */
.modal-footer{
    margin-top:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    color:#64748b;
}

.modal-close-btn{
    padding:8px 14px;
    border:none;
    border-radius:10px;
    background:#0f172a;
    color:#fff;
    cursor:pointer;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}

@keyframes slideUp{
    from{
        transform:translateY(20px);
        opacity:0;
    }
    to{
        transform:translateY(0);
        opacity:1;
    }
}

/* =========================
   HOVER GLOBAL
========================= */
.learning-main,
.learning-item{
    cursor:pointer;
}

.exam-new-badge{
    padding:5px 9px;   /* ↓ nhỏ hơn nhẹ */
    border-radius:999px;

    font-size:7px;     /* ↓ từ 8px xuống */
    font-weight:400;

    color:#fff;

    background:linear-gradient(135deg,#f59e0b,#ef4444);

    box-shadow:0 8px 16px rgba(239,68,68,0.22); /* ↓ nhẹ hơn */

    animation:newPulse 1.8s ease-in-out infinite;
}

@keyframes newPulse{
    0%{ transform:scale(1); }
    50%{ transform:scale(1.04); } /* ↓ từ 1.06 -> 1.04 */
    100%{ transform:scale(1); }
}

.exam-tag{
    padding:5px 9px;  /* ↓ nhỏ hơn nhẹ */
    border-radius:999px;

    font-size:10px;    /* ↓ từ 10px xuống */
    font-weight:800;

    background:#e2e8f0;
    color:#475569;

    display:inline-flex;
    align-items:center;
    transition:0.25s ease;
}
.exam-tag2{
    padding:5px 9px;  /* ↓ nhỏ hơn nhẹ */
    border-radius:999px;

    font-size:10px;    /* ↓ từ 10px xuống */
    font-weight:800;
    background:#e2e8f0;

    color:#ea5a00;

    display:inline-flex;
    align-items:center;
    transition:0.25s ease;
}

.exam-tag.newest{
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff;

    box-shadow:0 8px 10px rgba(245,158,11,0.22); /* ↓ nhẹ hơn */

    animation:newTagPulse 1.6s ease-in-out infinite;
    transform-origin:center;
}

@keyframes newTagPulse{
    0%{
        transform:scale(1);
        box-shadow:0 8px 16px rgba(245,158,11,0.22);
    }
    50%{
        transform:scale(1.05); /* ↓ từ 1.08 -> 1.05 */
        box-shadow:0 12px 22px rgba(239,68,68,0.30);
    }
    100%{
        transform:scale(1);
        box-shadow:0 8px 16px rgba(245,158,11,0.22);
    }
}
/* =========================
   CHAT SECTION
========================= */
.chat-section{
    width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.chat-wrapper{
    display: grid;
    grid-template-columns: 2fr 1fr; /* trái chat - phải info */
    gap: 20px;
    margin-top: 16px;
    border-radius: 18px;
}

/* Cột thông tin bên phải */
.chat-right{
    display: flex;
    flex-direction: column;
    gap: 4px; /* giảm khoảng cách giữa 4 card */
    border-radius: 18px;
}

.info-card{
    background: white;
    border-radius: 26px;
    padding: 14px;
    border: 1px solid rgba(219,234,254,0.95);
    box-shadow: var(--shadow-soft);
    transition: .25s;
    margin-top: 20px;
    border-radius: 18px;
    width: 100%;
    max-width: 348px; /* 👈 chỉnh nhỏ lại ở đây */
    font-size: 14px;
}

.info-card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.info-card h3{
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
}
@media (max-width: 992px){
    .chat-wrapper{
        grid-template-columns: 1fr;
    }
}
/* HEADER */
.chat-header{
    padding: 18px;
    background: linear-gradient(135deg,#2563eb,#1e40af);
    color: #fff;
    border-radius: 18px;
}

.chat-title{
    font-size: 18px;
    font-weight: 800;
}

.chat-sub{
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

/* BODY */
.chat-body{
    height: 420px;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

/* empty */
.chat-empty{
    text-align: center;
    color: #94a3b8;
    margin-top: 20px;
}

/* INPUT */
.chat-input-box{
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
}

.chat-input{
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    outline: none;
}

.chat-input:focus{
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.chat-send{
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.chat-send:hover{
    background: #1e40af;
}

/* disabled */
.chat-input-box.disabled{
    opacity: 0.6;
}

.chat-body{
    overflow-y: auto;
    max-height: 400px; /* hoặc tùy layout của bạn */
}

.scroll-link{
    text-decoration:none;
    color:inherit;
    cursor:pointer;
    transition: all .2s ease;
}

.scroll-link:hover{
    transform: translateY(-2px);
    opacity: 0.85;
}

.chat-container{
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* LEFT CHAT */
.chat-left{
    flex: 2;
    display: flex;
    flex-direction: column;
}

/* RIGHT INFO */
.chat-right{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 18px;
}

.info-card{
    background: #fff;
    border-radius: 14px;

    padding: 8px 16px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: .2s;
}

.info-card:hover{
    transform: translateY(-2px);
}

.info-card h3{
    margin-bottom: 5px;
    color: #0f172a;
}

/* mobile responsive */
@media (max-width: 992px){
    .chat-container{
        flex-direction: column;
    }
}
.chat-body{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:16px;
    background:#f8fafc;
    height:420px;
    overflow-y:auto;
}

/* ROW */
.msg{
    display:flex;
    width:100%;
    align-items:flex-start;
}

/* LEFT */
.msg.student{
    justify-content:flex-start;
    text-align:left; /* 👈 thêm */
}

/* RIGHT */
.msg.teacher,
.msg.admin{
    justify-content:flex-end;
    text-align:right; /* 👈 thêm */
}

.msg-avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;
    font-weight:700;
    font-size:14px;

    flex-shrink:0;
}

.msg.teacher .msg-content,
.msg.admin .msg-content{
    align-items:flex-end;
}

.msg.teacher .msg-avatar,
.msg.admin .msg-avatar{
    margin-left:8px;
    flex-shrink:0;
}

/* spacing */
.msg.student .msg-avatar{
    margin-right:8px;
}

.msg.teacher .msg-avatar,
.msg.admin .msg-avatar{
    margin-left:8px;
}

/* CONTENT */
.msg-content{
    display:flex;
    flex-direction:column;
    max-width:70%;
}

.msg-bubble{
    display:block;
    width:fit-content;
    max-width:100%;
    padding:10px 12px;
    border-radius:16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}


/* LEFT BUBBLE */
.msg.student .msg-bubble{
    background:#ffffff;
    border:1px solid #e5e7eb;
    color:#0f172a;
}

/* RIGHT BUBBLE */
.msg.teacher .msg-bubble,
.msg.admin .msg-bubble{
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:#fff;
}

/* TIME */
.msg-time{
    font-size:11px;
    color:#94a3b8;
    margin-top:4px;
}

/* 👇 canh lại time cho đúng bên */
.msg.student .msg-time{
    text-align:left;
}

.msg.teacher .msg-time,
.msg.admin .msg-time{
    text-align:left;
}

/* 👇 nền chat nhẹ hơn (nếu chat-body đang đậm) */
.chat-body{
    background:#f3f6fb; /* nhẹ hơn #f8fafc */
}
.msg.student .msg-content{
    align-items:flex-start;
}
.msg.student .msg-bubble{
    text-align:left !important;
}
/* =========================
   AUTO COLOR PER USER
========================= */

/* JS sẽ gán class màu */
.msg.color-1 .msg-avatar{ background:#2563eb; }
.msg.color-2 .msg-avatar{ background:#10b981; }
.msg.color-3 .msg-avatar{ background:#f59e0b; }
.msg.color-4 .msg-avatar{ background:#ef4444; }
.msg.color-5 .msg-avatar{ background:#fff200; }
.msg.color-6 .msg-avatar{ background:#14b8a6; }

/* =========================
   FIX CHAT AVATAR TEXT
========================= */

.msg-avatar{
    width:36px !important;
    height:36px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:50%;

    color:#ffffff !important;

    font-size:15px !important;
    font-weight:800 !important;
    line-height:1 !important;

    text-transform:uppercase;

    overflow:visible !important;

    flex-shrink:0;
}
/* =========================
   CHAT DISABLED TOOLTIP
========================= */

.chat-input-box.disabled {
    position: relative;
    cursor: not-allowed;
}

/* Tooltip ẩn mặc định */
.chat-tooltip {
    position: absolute;

    bottom: calc(100% + 12px);
    left: 50%;

    transform: translateX(-50%) translateY(10px);

    background: #0f172a;
    color: white;

    padding: 10px 16px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: all .25s ease;

    z-index: 100;
}

/* Mũi tên tooltip */
.chat-tooltip::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    border: 8px solid transparent;
    border-top-color: #0f172a;
}


/* Hover vào toàn vùng chat disabled */
.chat-input-box.disabled:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);
}


/* Hiệu ứng vùng bị khóa */
.chat-input-box.disabled .chat-input,
.chat-input-box.disabled .chat-send {
    cursor: not-allowed;
    opacity: .75;
}
/* =========================
   CHAT AVATAR USER TOOLTIP
========================= */

.msg-avatar{
    position: relative;
    cursor: pointer;
}


/* =========================
   STYLE CHUNG
========================= */

.msg-avatar::after{
    content: attr(data-username);

    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);

    color: #0f172a;

    padding: 4px 10px;
    border-radius: 8px;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;

    border: 1px solid rgba(15,23,42,0.12);

    box-shadow:
        0 4px 10px rgba(0,0,0,0.12);

    opacity: 0;
    visibility: hidden;

    transition: .25s ease;

    pointer-events: none;

    z-index: 99999;
}


.msg-avatar::before{
    content: "";

    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    border: 6px solid transparent;

    opacity: 0;
    visibility: hidden;

    transition: .25s ease;

    z-index: 99999;
}


/* =========================
   AVATAR BÊN TRÁI (HỌC SINH)
   Tooltip hiện bên phải
========================= */

.msg.student .msg-avatar::after{
    left: calc(100% + 8px);
}

.msg.student .msg-avatar::before{
    left: 100%;
    border-right-color: rgba(255,255,255,0.9);
}


/* =========================
   AVATAR BÊN PHẢI (GIÁO VIÊN)
   Tooltip hiện bên trái
========================= */

.msg.teacher .msg-avatar::after,
.msg.admin .msg-avatar::after{
    right: calc(100% + 8px);
}

.msg.teacher .msg-avatar::before,
.msg.admin .msg-avatar::before{
    right: 100%;
    border-left-color: rgba(255,255,255,0.9);
}


/* =========================
   HOVER HIỆN TOOLTIP
========================= */

.msg-avatar:hover::after,
.msg-avatar:hover::before{
    opacity: 1;
    visibility: visible;
}
/* =========================
   WEBSITE PARTNER
========================= */

.partner-card h3{
    margin-bottom: 10px;
}

.partner-links{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.partner-links a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: .25s ease;
}

.partner-links a:hover{
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37,99,235,.25);
}

.partner-links img{
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.chat-body{
    scroll-behavior: smooth;
}

.chat-body-wrapper{
    position: relative;
}

/* khung chat */
.chat-body{
    height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* blur khi chưa login */
.chat-body-wrapper:not(.logged-in) .chat-body{
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* overlay khóa */
.chat-lock-overlay{
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);

    z-index: 10;
}

/* box thông báo */
.lock-box{
    background: #fff;
    padding: 14px 18px;
    border-radius: 12px;

    font-weight: 300;
    color: #0f172a;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.chat-upload{
    display:flex;
    align-items:center;
    justify-content:center;

    width:40px;
    height:40px;

    border-radius:10px;
    background:#f1f5f9;
    cursor:pointer;
    font-size:18px;
    margin-right:6px;
    transition:0.2s;
}

.chat-upload:hover{
    background:#e2e8f0;
}

.chat-upload input{
    display:none;
}

.chat-image img{
    max-width:220px;
    border-radius:12px;
    margin-top:6px;
    cursor:pointer;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

.chat-file{
    margin-top:6px;
    font-size:14px;
}

.chat-file a{
    color:#2563eb;
    text-decoration:none;
}

.chat-file a:hover{
    text-decoration:underline;
}

.chat-image img{
    max-width: 220px;
    border-radius: 12px;
    margin-top: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.chat-file{
    margin-top:6px;
    padding:6px 10px;
    border-radius:8px;
    background:#f1f5f9;
    font-size:13px;
    display:inline-block;
}

.chat-docx{
    background:#e0f2fe;
    color:#0369a1;
}

.chat-pdf{
    background:#fee2e2;
    color:#b91c1c;
}

.chat-zip{
    background:#fef3c7;
    color:#92400e;
}

.chat-image img{
    max-width:220px;
    border-radius:10px;
    margin-top:6px;
}

/* =========================
   FILE MODAL - PREMIUM
========================= */

.file-modal {

    position: fixed;
    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.88);

    z-index: 9999;

    padding: 20px;
}


.file-modal.show {

    display: flex;
}


/* =========================
   KHUNG CHỨA NỘI DUNG
   Tự co theo ảnh/file
========================= */

.file-modal-content {

    position: relative;

    display: inline-flex;

    justify-content: center;
    align-items: center;

    width: fit-content;
    height: fit-content;

    max-width: 95vw;
    max-height: 95vh;
}


/* =========================
   ẢNH
   Giữ nguyên tỷ lệ gốc
========================= */

.modal-image {

    display: block;

    width: auto;
    height: auto;

    max-width: 92vw;
    max-height: 92vh;

    object-fit: unset;

    border-radius: 14px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.55);
}


/* =========================
   PDF
========================= */

.modal-pdf {

    width: 88vw;
    height: 88vh;

    border: none;

    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 15px 45px rgba(0,0,0,.5);
}


/* =========================
   WORD / ZIP / TXT...
========================= */

.modal-file-info {

    width: 340px;

    background: white;

    border-radius: 18px;

    padding: 35px 25px;

    text-align: center;

    box-shadow:
        0 15px 40px rgba(0,0,0,.45);
}


.file-icon {

    font-size: 52px;

    margin-bottom: 15px;
}


.modal-file-info h3 {

    margin: 10px 0;

    font-size: 22px;

    color: #111827;
}


.modal-file-info p {

    color: #6b7280;

    line-height: 1.5;

    margin-bottom: 20px;
}


/* Nút tải file */

.download-file-btn {

    display: inline-block;

    padding: 12px 22px;

    background: #2563eb;

    color: white;

    text-decoration: none;

    border-radius: 10px;

    font-weight: 700;

    transition: .25s;
}


.download-file-btn:hover {

    background: #1d4ed8;

    transform: translateY(-2px);
}

/* =========================
   NÚT ĐÓNG MODAL
========================= */

.file-modal-close {

    position: fixed;

    top: 20px;
    right: 20px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.95);

    color: #111827;

    font-size: 30px;
    font-weight: 700;

    cursor: pointer;

    z-index: 10001;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow:
        0 8px 25px rgba(0,0,0,.45);

    transition: .25s;
}


/* Hover */

.file-modal-close:hover {

    background: #ef4444;

    color: white;

    transform: scale(1.15) rotate(90deg);
}


/* Mobile */

@media (max-width:768px) {

    .file-modal-close {

        top: 15px;
        right: 15px;

        width: 42px;
        height: 42px;

        font-size: 26px;
    }
}

/* =========================
   FILE ĐANG CHỌN TRƯỚC KHI GỬI
========================= */

.selected-file{
    display:none;

    position:absolute;
    bottom:65px;
    left:15px;

    background:#eff6ff;
    color:#1e40af;

    border:1px solid #bfdbfe;
    border-radius:14px;

    padding:6px 10px;

    font-size:13px;
    font-weight:600;

    align-items:center;
    gap:10px;

    max-width:70%;

    box-shadow:
        0 4px 10px rgba(0,0,0,.08);

    z-index:20;
}


.remove-file{
    background:none;
    border:none;

    color:#ef4444;

    font-size:15px;
    cursor:pointer;

    font-weight:700;
}

.chat-input-box{
    position:relative;
}

/* =========================
   CHAT PUBLIC NOTICE
========================= */

.chat-note{

    margin-top: 10px;

    font-size: 12px;

    line-height: 1.5;

    color: #64748b;

    background: #f8fafc;

    border-left: 3px solid #f59e0b;

    padding: 8px 12px;

    border-radius: 8px;

    width: 100%;

    box-sizing: border-box;
}

.user-ai-action {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.ai-test-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;

    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;

    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(59,130,246,0.3);

    transition: 0.2s ease;
}

.ai-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59,130,246,0.4);
}

.ai-report-box {
    margin-top: 12px;
}

.ai-card {
    background: #0f172a;
    color: white;
    padding: 12px;
    border-radius: 12px;
}

.ai-card h3 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #60a5fa;
}

.ai-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ai-report-box {
    margin-top: 12px;
    min-height: 40px;
}

.ai-card {
    background: #0f172a;
    color: white;
    padding: 12px;
    border-radius: 12px;
}

.ai-card h3 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #60a5fa;
}

.ai-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* =========================
   AI BUTTON
========================= */

.ai-test-btn{

    background:#2563eb;
    color:white;

    border:none;

    padding:12px 24px;

    border-radius:12px;

    font-size:16px;
    font-weight:700;

    cursor:pointer;

    transition:.3s;
}


.ai-test-btn:hover{

    transform:translateY(-2px);

    background:#1d4ed8;
}

/* ========================================
   AI REPORT SECTION
   PREMIUM THPT STYLE
======================================== */

.ai-report-section{

    margin-top:24px;

    animation:
    aiFade .5s ease;

}


/* CONTAINER */
.ai-report-container{

    background:white;

    border-radius:32px;

    padding:36px;

    border:
    1px solid var(--blue-border);

    box-shadow:
    var(--shadow-soft);

}


/* HEADER */

.ai-header{

    text-align:center;

    margin-bottom:32px;

}


.ai-badge{

    display:inline-flex;

    padding:10px 18px;

    border-radius:999px;

    background:var(--blue-soft);

    color:var(--blue-dark);

    font-size:12px;

    font-weight:900;

    letter-spacing:.5px;

    margin-bottom:14px;

}


.ai-header h2{

    font-size:18px;

    font-weight:900;

    color:var(--text-main);

    margin-bottom:10px;

}


.ai-header p{

    font-size:14px;

    color:var(--text-soft);

}


/* ======================
   OVERVIEW
====================== */

.ai-summary-card{

background:
    linear-gradient(
        135deg,
        #f59e0b,
        #fcd34d
    );

    color:white;

    border-radius:28px;

    padding:20px;

    text-align:center;

    margin-bottom:6px;

}


.ai-summary-card h3{

    font-size:14px;

    font-weight:600;

    opacity:.9;

}


.ai-big-level{

    font-size:14px;

    font-weight:500;

    margin-top:6px;

}


/* ======================
   SCORE GRID
====================== */

.ai-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:20px;

    margin-bottom:10px;

}


.ai-card{

    background:#f8fbff;

    border-radius:24px;

    padding:18px;

    border:
    1px solid var(--blue-border);

    text-align:center;

    transition:
    transform .25s ease,
    box-shadow .25s ease;

}


.ai-card:hover{

    transform:
    translateY(-5px);

    box-shadow:
    var(--shadow-hover);

}


.ai-card h3{

    font-size:15px;

    color:var(--text-main);

    margin-bottom:10px;

}


.ai-number{

    font-size:18px;

    font-weight:700;

    color:var(--blue-main);

}


.ai-card span{

    color:var(--text-soft);

    font-size:14px;

}


/* ======================
   TEXT CARD
====================== */

.ai-text-card{

    background:white;

    border-radius:24px;

    padding:18px;

    border:
    1px solid var(--blue-border);

    box-shadow:
    0 6px 18px rgba(37,99,235,.06);

    margin-bottom:10px;

}


.ai-text-card h3{

    font-size:16px;

    font-weight:900;

    color:var(--text-main);

    margin-bottom:10px;

}


.ai-text-card p{

    font-size:15px;

    line-height:1.8;

    color:var(--text-soft);

}

/* ========================================
   AI REPORT SECTION - COMPACT PREMIUM
======================================== */

.ai-report-section{

    margin-top:14px;

    animation:
    aiFade .4s ease;

}


/* CONTAINER */

.ai-report-container{

    background:white;

    border-radius:26px;

    padding:20px;

    border:
    1px solid var(--blue-border);

    box-shadow:
    var(--shadow-soft);

}


/* HEADER */

.ai-header{

    text-align:center;

    margin-bottom:20px;

}


.ai-badge{

    display:inline-flex;

    padding:8px 16px;

    border-radius:999px;

    background:var(--blue-soft);

    color:var(--blue-dark);

    font-size:11px;

    font-weight:900;

    letter-spacing:.5px;

    margin-bottom:10px;

}


.ai-header h2{

    font-size:20px;

    font-weight:900;

    color:var(--text-main);

    margin-bottom:6px;

}


.ai-header p{

    font-size:13px;

    color:var(--text-soft);

}


/* ======================
   OVERVIEW
====================== */

.ai-summary-card{

background:
    linear-gradient(
        135deg,
        #d64b00,
        #ff8119
    );

    color:white;

    border-radius:22px;

    padding:18px;

    text-align:center;

    margin-bottom:18px;

}


.ai-summary-card h3{

    font-size:14px;

    font-weight:700;

    opacity:.9;

}


.ai-big-level{

    font-size:18px;

    font-weight:800;

    margin-top:3px;

}


/* ======================
   SCORE GRID
====================== */

.ai-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:14px;

    margin-bottom:18px;

}


.ai-card{

    background:#f8fbff;

    border-radius:18px;

    padding:18px;

    border:
    1px solid var(--blue-border);

    text-align:center;

    transition:
    .25s ease;

}


.ai-card:hover{

    transform:
    translateY(-3px);

    box-shadow:
    var(--shadow-hover);

}


.ai-card h3{

    font-size:15px;

    color:var(--text-main);

    margin-bottom:6px;

}


.ai-number{

    font-size:30px;

    font-weight:900;

    color:var(--blue-main);

}


.ai-card span{

    font-size:12px;

    color:var(--text-soft);

}


/* ======================
   TEXT CARD
====================== */

.ai-text-card{

    background:white;

    border-radius:18px;

    padding:16px 18px;

    border:
    1px solid var(--blue-border);

    box-shadow:
    0 4px 12px rgba(37,99,235,.06);

    margin-bottom:14px;

}


.ai-text-card h3{

    font-size:15px;

    font-weight:900;

    color:var(--text-main);

    margin-bottom:8px;

}


.ai-text-card p{

    font-size:15px;

    line-height:1.55;

    color:var(--text-main);

    font-weight:500;

}


/* ======================
   TOPIC ANALYSIS
====================== */

.ai-topic-card{

    background:white;

    border-radius:18px;

    padding:16px;

    border:
    1px solid var(--blue-border);

}


.ai-topic-card h3{

    font-size:15px;

    font-weight:900;

    margin-bottom:12px;

    color:var(--text-main);

}


.ai-topic-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:10px 14px;

    margin-bottom:8px;

    border-radius:12px;

    background:
    var(--blue-soft);

    transition:
    .2s ease;

}


.ai-topic-row:hover{

    transform:
    translateX(4px);

}


.ai-topic-row span{

    font-size:14px;

    font-weight:500;

    color:var(--text-main);

}


.ai-topic-row strong{

    color:#ef4444;

    font-size:15px;

    font-weight:900;

}


/* ======================
   ANIMATION
====================== */

@keyframes aiFade{

    from{

        opacity:0;

        transform:
        translateY(20px);

    }

    to{

        opacity:1;

        transform:
        translateY(0);

    }

}


/* ======================
   RESPONSIVE
====================== */

@media(max-width:768px){

    .ai-report-container{

        padding:18px;

    }


    .ai-grid{

        grid-template-columns:1fr;

    }


    .ai-header h2{

        font-size:20px;

    }


    .ai-big-level{

        font-size:18px;

    }

}
/* ======================
   CLOSE REPORT
====================== */

.ai-close-area{

    text-align:center;

    margin-top:22px;

}


.ai-hide-btn{

    background:white;

    color:var(--blue-main);

    border:1px solid var(--blue-border);

    padding:12px 22px;

    border-radius:999px;

    font-size:14px;

    font-weight:400;

    cursor:pointer;

    transition:.25s ease;

    box-shadow:
        0 8px 18px rgba(37,99,235,.08);

}


.ai-hide-btn:hover{

    background:var(--blue-main);

    color:white;

    transform:
        translateY(-2px);

}

/* =========================
   AI ACCORDION
========================= */

.ai-learning-card{

    margin-top:18px;

}


/* Ẩn mặc định */

.ai-report-content{

    display:none;

    margin-top:14px;

}


/* Mũi tên xoay */

.ai-preview-arrow{

    transition:.3s ease;

}


.ai-preview-arrow.open{

    transform:rotate(180deg);

}

/* ========================================
   AI PREVIEW CARD
======================================== */
/* ========================================
   AI PREVIEW CARD (SYNC WITH ADMIN STYLE)
======================================== */

.ai-preview-card{
    margin:20px 0;

    background:#ffffff;
    border:1px solid #dbeafe;
    border-radius:24px;

    padding:24px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    box-shadow:0 10px 30px rgba(37,99,235,.08);

    cursor:pointer;
    transition:.25s ease;
}

.ai-preview-card:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 40px rgba(37,99,235,.12);
}

/* LEFT */
.ai-preview-left{
    display:flex;
    align-items:center;
    gap:18px;
}

/* ICON */
.ai-preview-icon{
    width:64px;
    height:64px;

    border-radius:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:30px;

    background:#eff6ff;

    box-shadow:0 8px 20px rgba(37,99,235,.10);
}

/* TEXT */
.ai-preview-text{
    display:flex;
    flex-direction:column;
}

.ai-preview-title{
    font-size:18px;
    font-weight:800;
    color:#0f172a;
}

.ai-preview-sub{
    margin-top:6px;
    font-size:15px;
    color:#64748b;
    line-height:1.4;
}

/* ARROW */
.ai-preview-arrow{
    font-size:18px;
    font-weight:900;
    color:#2563eb;
    transition:.25s ease;
}

.ai-preview-card:hover .ai-preview-arrow{
    transform:translateX(4px);
}

/* MOBILE */
@media(max-width:768px){

    .ai-preview-card{
        padding:16px;
        border-radius:18px;
    }

    .ai-preview-icon{
        width:48px;
        height:48px;
        font-size:22px;
    }

    .ai-preview-title{
        font-size:16px;
    }

    .ai-preview-sub{
        font-size:12px;
    }
}

/* =========================
   AI BACK TO TOP BUTTON
========================= */

.ai-close-area{

    text-align:center;

    margin-top:18px;

}


.ai-hide-btn{

    background:var(--blue-soft);

    color:var(--blue-main);

    border:1px solid var(--blue-border);

    border-radius:999px;

    padding:12px 22px;

    font-size:13px;

    font-weight:600;

    cursor:pointer;

    transition:.25s ease;

}


.ai-hide-btn:hover{

    background:var(--blue-main);

    color:white;

    transform:
        translateY(-3px);

}

/* =========================
   AI TOPIC NEW STYLE
========================= */

.ai-topic-info {

    flex: 1;

}


.ai-topic-name {

    font-size: 15px;

    font-weight: 800;

    color: var(--text-main);

}


.ai-subtopic {

    margin-top: 3px;

    font-size: 13px;

    color: var(--blue-main);

    font-weight: 600;

}


.ai-topic-detail {

    margin-top: 4px;

    font-size: 12px;
    font-weight: 600px;

    color: var(--text-soft);

}


.ai-topic-score {

    min-width: 70px;

    text-align: right;

    font-size: 14px;

    font-weight: 700;

    color: #ef4444;

}


.ai-empty {

    text-align: center;

    padding: 14px;

    color: var(--text-soft);

    font-size: 14px;

}

.ai-summary-row{
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 14px;
    border-radius: 10px;

    background: rgba(255,255,255,0.05);
    font-size: 14px;
}

.ai-item{
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* 🔥 BẮT BUỘC */
}

.ai-number{
    font-weight: 700;
    color: #ff4d4f;
    font-size: 15px;
}

.ai-divider{
    opacity: 0.4;
}

.ai-summary-row{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:14px;
    font-weight:600;
    padding:8px 0;
}

.ai-item{
    display:flex;
    align-items:center;
    gap:6px;
}

.ai-number{
    font-weight:500;
    color:#ef4444;
    font-size: 15px;
}

.ai-divider{
    opacity:0.5;
}

.ai-topic-name{
    font-size:15px;
    font-weight:800;
    color:var(--text-main);
}

.ai-subtopic{
    font-size:14px;
    color:var(--blue-main);
    font-weight:600;
    margin-top:2px;
}

.ai-topic-detail{
    font-size:13px;
    color:var(--text-soft);
    margin-top:4px;
}

/* GRID 2 CỘT */
.ai-topic-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
}

/* CARD MINI */
.ai-topic-card-mini{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:12px 14px;
    border-radius:14px;

    background: var(--blue-soft);
    border:1px solid var(--blue-border);

    transition:.2s ease;
}

.ai-topic-card-mini:hover{
    transform: translateY(-2px);
}

/* LEFT */
.ai-topic-left{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.ai-topic-name{
    font-size:14px;
    font-weight:800;
    color:var(--text-main);
}

.ai-subtopic{
    font-size:12px;
    color:var(--blue-main);
    font-weight:600;
}

.ai-topic-detail{
    font-size:12px;
    color:var(--text-soft);
}

/* RIGHT SCORE */
.ai-topic-right{
    text-align:right;
}

.ai-topic-score{
    font-size:18px;
    font-weight:900;
    color:#ef4444;
}

.ai-topic-label{
    font-size:11px;
    color:var(--text-soft);
}

/* MOBILE = 1 CỘT */
@media(max-width:768px){
    .ai-topic-grid{
        grid-template-columns:1fr;
    }
}

/* =========================
AI LOCKED STATE
========================= */

.ai-locked{

    cursor: not-allowed;
    opacity: .95;

}

.ai-locked:hover{

    transform: none !important;

}


.ai-locked .ai-preview-icon{

    background: #f1f5f9;

}


.ai-locked .ai-preview-arrow{

    color: #ef4444;

}

/*==========================================
STUDY STREAK
==========================================*/

.study-section{

    margin:28px 0;

}

.study-banner{

    background:#fff;

    border-radius:22px;

    padding:18px 24px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:24px;

    border:1px solid #edf2f7;

    box-shadow:
        0 10px 30px rgba(15,23,42,.06);

    transition:.3s;

}

.study-banner:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 40px rgba(15,23,42,.08);

}

/*========================*/

.study-left{

    display:flex;

    align-items:flex-start;

    gap:18px;

    flex:1;

}

/*========================*/

.study-icon{

    width:56px;

    height:56px;

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

    font-size:28px;

    background:

    linear-gradient(
        135deg,
        #fff6dd,
        #ffe5b5
    );

}

/*========================*/

.study-content{

    flex:1;

}

/*========================*/

.study-title-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

}

/*========================*/

.study-title{

    font-size:18px;

    font-weight:800;

    color:#0f172a;

}

/*========================*/

.study-day-badge{

    padding:6px 14px;

    border-radius:999px;

    background:#fff5d7;

    color:#c96b00;

    font-size:13px;

    font-weight:700;

}

/*========================*/

.study-status{

    margin-top:5px;

    font-size:14px;

    color:#64748b;

}

/*========================*/

.study-progress-wrapper{

    display:flex;

    align-items:center;

    gap:12px;

    margin-top:10px;

}

/*========================*/

.study-progress{

    flex:1;

    height:10px;

    border-radius:999px;

    overflow:hidden;

    background:#edf2f7;

}

/*========================*/

.study-progress-bar{

    width:0;

    height:100%;

    border-radius:999px;

    background:

    linear-gradient(
        90deg,
        #ff9800,
        #ff6b00
    );

    transition:.5s;

}

/*========================*/

.study-progress-percent{

    width:42px;

    text-align:right;

    font-size:14px;

    font-weight:700;

    color:#ff6b00;

}

/*========================*/

.study-detail-row{

    display:flex;

    flex-wrap:wrap;

    gap:24px;

    margin-top:12px;

}

/*========================*/

.study-detail-item{

    display:flex;

    align-items:center;

    gap:6px;

    font-size:14px;

    color:#64748b;

}

.study-detail-item b{

    color:#0f172a;

}

/*========================*/

.study-right{

    display:flex;

    flex-direction:column;

    align-items:flex-end;

    justify-content:center;

    gap:12px;

}

/*========================*/

.study-check-status{

    padding:7px 16px;

    border-radius:999px;

    background:#fff8df;

    color:#b7791f;

    font-size:13px;

    font-weight:700;

}

/*========================*/

.study-btn{

    border:none;

    border-radius:12px;

    padding:10px 18px;

    cursor:pointer;

    color:#fff;

    font-size:14px;

    font-weight:700;

    background:

    linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );

    transition:.25s;

}

.study-btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 8px 20px rgba(34,197,94,.25);

}

/* =====================================================
MOBILE RESPONSIVE - HERO SECTION ULTRA COMPACT
===================================================== */

@media (max-width:768px){


/* =================
HOME PAGE
================= */

.home-page{

    padding:10px;

}



/* =================
HERO
================= */

.hero-section{

    grid-template-columns:1fr;

    padding:12px;

    gap:10px;

    border-radius:18px;

}



/* =================
LEFT
================= */

.hero-left{

    max-width:100%;

}



/* =================
HERO BADGE MOBILE
EXTRA COMPACT
================= */

.hero-badge{

    width:calc(100% - 28px);

    max-width:none;

    margin:0 auto 10px;

    padding:5px 9px;

    gap:6px;

    border-radius:16px;

    align-items:center;

    max-width:fit-content;

}


/* LOGO WRAPPER */

.hero-badge-logo{

    width:28px;

    height:28px;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

}


/* LOGO IMAGE */

.hero-logo{

    width:24px;

    height:24px;

    max-width:24px;

    max-height:24px;

    object-fit:contain;

    display:block;

}



/* TEXT BLOCK */

.hero-badge-text{

    margin:0 15px;

    line-height:1.1;

    letter-spacing:0;

    min-width:0;

    text-align: center;

}



/* TITLE */

.hero-badge-title{

    font-size:13px;

    font-weight:800;

    line-height:1.15;

    letter-spacing:0;

    text-shadow:
    0 1px 5px rgba(0,0,0,0.2);

    text-align: center;

}



/* SUBTITLE */

.hero-badge-sub{

    font-size:9px;

    line-height:1.15;

    margin-top:1px;

}



/* TẮT HIỆU ỨNG RUNG MOBILE */

.hero-badge-logo:hover .hero-logo{

    animation:none;

}



/* =================
TITLE
================= */

.hero-title{

    font-size:23px;

    line-height:1.12;

}



.hero-title span{

    margin-top:3px;

}



/* =================
BUTTON
================= */

.hero-actions{

    flex-direction:row;

    gap:6px;

    width:100%;

}



.hero-btn{

    flex:1;

    width:auto;

    height:34px;

    padding:0 8px;

    border-radius:9px;

    font-size:11px;

    font-weight:700;

}



/* =================
RIGHT
================= */

.hero-right-layout{

    grid-template-columns:1fr;

    gap:8px;

}



/* =================
USER CARD MINI
================= */

.user-card{

    width:100%;

    padding:8px 10px;

    border-radius:14px;

}



.user-card-top{

    gap:7px;

}



.user-avatar{

    width:34px;

    height:34px;

    font-size:14px;

}



.user-name{

    font-size:12px;

    line-height:1.2;

}



.user-meta{

    font-size:9px;

    line-height:1.2;

}



.user-card-bottom{

    gap:5px;

    margin-top:5px;

}



.user-mini-box{

    padding:5px;

    border-radius:8px;

    font-size:9px;

}



/* =================
STATS MINI
================= */

.hero-stats-stack{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:5px;

}



.hero-stats-stack .inline-stat{

    min-height:45px;

    padding:6px 3px;

    border-radius:9px;

}



.inline-number{

    font-size:14px;

    line-height:1.1;

}



.inline-label{

    font-size:8px;

    line-height:1.1;

}


}



/* =====================================================
IPHONE NHỎ
===================================================== */

@media(max-width:430px){



.hero-section{

    padding:10px;

    border-radius:15px;

}



/* =================
HERO TITLE
================= */

.hero-title{

    font-size:21px;

}



/* =================
BADGE SIÊU GỌN
================= */

.hero-badge{

    width:calc(100% - 32px);

    padding:4px 7px;

    gap:5px;

    border-radius:14px;

    margin-bottom:10px;

}



.hero-badge-logo{

    width:30px;

    height:30px;

}



.hero-logo{

    width:30px;

    height:30px;

    max-width:22px;

    max-height:22px;

}



/* TEXT */

.hero-badge-title{

    font-size:10px;

    line-height:1.1;

    text-align: center;

}



.hero-badge-sub{

    font-size:8px;

    line-height:1.1;
    text-align: center;

}



/* =================
BUTTON
================= */

.hero-actions{

    gap:5px;

}



.hero-btn{

    height:32px;

    font-size:10px;

    border-radius:8px;

    padding:0 5px;

}



/* =================
USER CARD
================= */

.user-card{

    padding:7px 8px;

    border-radius:12px;

}



.user-avatar{

    width:30px;

    height:30px;

    font-size:12px;

}



.user-name{

    font-size:11px;

}



.user-meta{

    font-size:8px;

}



.user-mini-box{

    padding:4px;

    font-size:8px;

}



/* =================
STATS
================= */

.hero-stats-stack{

    gap:4px;

}



.hero-stats-stack .inline-stat{

    min-height:40px;

    padding:5px 2px;

    border-radius:8px;

}



.inline-number{

    font-size:12px;

}



.inline-label{

    font-size:7px;

}



}
/* =====================================================
   MOBILE RESPONSIVE - AI REPORT
===================================================== */

@media (max-width:768px){

    /* Preview Card */

    .ai-preview-card{

        padding:16px;

        border-radius:18px;
    }

    .ai-preview-left{

        display:flex;

        align-items:flex-start;

        gap:12px;
    }

    .ai-preview-icon{

        width:48px;
        height:48px;

        min-width:48px;

        font-size:22px;
    }

    .ai-preview-title{

        font-size:16px;

        line-height:1.45;
    }

    .ai-preview-sub{

        font-size:13px;

        line-height:1.6;
    }

    .ai-preview-arrow{

        font-size:20px;
    }

    /* Report */

    .ai-report-container{

        padding:18px;

        border-radius:20px;
    }

    .ai-header{

        text-align:center;
    }

    .ai-header h2{

        font-size:22px;

        line-height:1.35;
    }

    .ai-header p{

        font-size:14px;

        line-height:1.7;
    }

    /* Overall */

    .ai-big-level{

        font-size:28px;

        text-align:center;
    }

    /* Text card */

    .ai-text-card{

        padding:18px;

        border-radius:18px;
    }

    .ai-text-card h3{

        font-size:18px;
    }

    .ai-text-card p{

        font-size:14px;

        line-height:1.8;
    }

    /* Summary */

    .ai-summary-row{

        display:flex;

        flex-direction:column;

        align-items:flex-start;

        gap:10px;
    }

    .ai-divider{

        display:none;
    }

    .ai-item{

        width:100%;
    }

    /* Topic */

    .ai-topic-grid{

        grid-template-columns:1fr;

        gap:14px;
    }

    .ai-topic-card-mini{

        flex-direction:column;

        align-items:flex-start;

        gap:14px;

        padding:16px;
    }

    .ai-topic-left{

        width:100%;
    }

    .ai-topic-right{

        width:100%;

        display:flex;

        justify-content:space-between;

        align-items:center;
    }

    .ai-topic-name{

        font-size:16px;
    }

    .ai-subtopic{

        font-size:13px;
    }

    .ai-topic-detail{

        font-size:13px;

        line-height:1.6;
    }

    .ai-topic-score{

        font-size:20px;
    }

    .ai-topic-label{

        font-size:13px;
    }

    .ai-hide-btn{

        width:100%;

        height:48px;
    }

}


/* iPhone */

@media (max-width:430px){

    .ai-preview-title{

        font-size:16px;
    }

    .ai-preview-sub{

        font-size:12px;
    }

    .ai-header h2{

        font-size:20px;
    }

    .ai-big-level{

        font-size:24px;
    }

    .ai-topic-right{

        flex-direction:column;

        align-items:flex-start;

        gap:4px;
    }

}

/* =====================================================
MOBILE RESPONSIVE - LEARNING CENTER COMPACT FINAL
GIẢM CHIỀU CAO + FONT NHỎ HƠN + CÂN ĐỐI CARD
===================================================== */

@media (max-width:768px){


/* =================
3 CARD
================= */

.learning-grid{

    display:grid;

    grid-template-columns:1fr;

    gap:6px;

}



.learning-card{

    border-radius:12px;

    padding:7px;

}



/* =================
HEADER
================= */

.learning-head{

    gap:6px;

}



.learning-icon{

    width:32px;

    height:32px;

    font-size:14px;

    flex-shrink:0;

}



.learning-type{

    font-size:11px;

    line-height:1.2;

}



/* =================
MAIN
================= */

.learning-main{

    padding:7px;

}



.learning-tag{

    font-size:8px;

    padding:2px 5px;

    line-height:1.2;

}



.learning-title{

    font-size:12px;

    line-height:1.25;

    margin-top:3px;

}



.learning-preview{

    font-size:9px;

    line-height:1.35;

    margin-top:3px;

}



/* =================
FOOTER CARD
================= */

.learning-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:3px;

    font-size:8px;

}



/* =================
LIST
================= */

.learning-list{

    gap:5px;

}



.learning-item{

    padding:6px;

    border-radius:8px;

}



.learning-item-title{

    font-size:9px;

    line-height:1.3;

}



.learning-item-date{

    font-size:8px;

}



}



/* =====================================================
IPHONE NHỎ
===================================================== */

@media(max-width:430px){



.learning-grid{

    gap:5px;

}



.learning-card{

    padding:6px;

    border-radius:10px;

}



/* ICON */

.learning-icon{

    width:28px;

    height:28px;

    font-size:12px;

}



/* HEADER */

.learning-type{

    font-size:10px;

}



/* CONTENT */

.learning-main{

    padding:6px;

}



.learning-tag{

    font-size:7px;

    padding:2px 4px;

}



.learning-title{

    font-size:11px;

    line-height:1.2;

}



.learning-preview{

    font-size:8px;

    line-height:1.3;

    margin-top:2px;

}



/* FOOTER */

.learning-footer{

    font-size:7px;

}



/* LIST */

.learning-list{

    gap:4px;

}



.learning-item{

    padding:5px;

    border-radius:7px;

}



.learning-item-title{

    font-size:8px;

    line-height:1.25;

}



.learning-item-date{

    font-size:7px;

}



}
/* ===========================
FORM GIÁO VIÊN - MOBILE COMPACT
=========================== */


.learning-post-box{

    margin-top:12px;

}



.learning-toggle{

    width:100%;

    font-size:12px;

    padding:10px 12px;

    border-radius:10px;

}



.learning-form{

    display:flex;

    flex-direction:column;

    gap:8px;

}



.learning-form select,

.learning-form input,

.learning-form textarea{

    width:100%;

    font-size:12px;

    padding:8px 10px;

    border-radius:8px;

}



.learning-submit{

    width:100%;

    height:36px;

    font-size:12px;

    border-radius:8px;

}


/* =========================================================
   MODAL COMPACT — CHỈ ÁP DỤNG TRÊN MOBILE
========================================================= */

@media (max-width: 768px){

    .learning-modal{
        padding:10px;
    }


    .learning-modal-box{

        width:100%;
        max-width:100%;

        max-height:88vh;

        border-radius:14px;
    }


    .modal-header{

        gap:8px;
    }


    .modal-icon{

        width:34px;
        height:34px;

        font-size:16px;
    }


    .modal-title{

        font-size:14px;

        line-height:1.3;
    }


    .modal-body{

        font-size:11px;

        line-height:1.5;
    }


    .modal-footer{

        flex-direction:column;

        align-items:stretch;

        gap:8px;
    }


    .modal-close-btn{

        width:100%;

        height:34px;

        font-size:12px;

        border-radius:8px;
    }

}


/* =========================================================
   IPHONE NHỎ
========================================================= */

@media (max-width:430px){

    .learning-title{

        font-size:13px;
    }


    .learning-preview{

        font-size:10px;
    }


    .learning-item-title{

        font-size:11px;
    }


    .learning-toggle{

        font-size:11px;

        padding:9px 10px;
    }


    .learning-form{

        gap:6px;
    }


    .learning-form select,
    .learning-form input,
    .learning-form textarea{

        font-size:11px;

        padding:7px 8px;
    }


    .learning-submit{

        height:32px;

        font-size:11px;
    }


    .learning-modal{

        padding:8px;
    }


    .learning-modal-box{

        border-radius:12px;
    }


    .modal-icon{

        width:30px;
        height:30px;

        font-size:14px;
    }


    .modal-title{

        font-size:13px;
    }


    .modal-body{

        font-size:10px;
    }


    .modal-close-btn{

        height:32px;

        font-size:11px;
    }

}
/* =====================================================
   MOBILE RESPONSIVE - FEATURE + EXAM
===================================================== */

@media (max-width:768px){

    /* =========================
       FEATURE
    ========================= */

    .feature-section{

        margin-top:20px;
    }

    .feature-header{

        text-align:center;

        margin-bottom:18px;
    }

    .feature-heading{

        font-size:22px;

        line-height:1.35;
    }

    .feature-grid{

        grid-template-columns:1fr;

        gap:16px;
    }

    .feature-card{

        padding:20px;

        border-radius:22px;

        min-height:auto;
    }

    .feature-icon,

    .feature-icon1{

        width:60px;

        height:60px;

        font-size:26px;

        margin-bottom:16px;
    }

    .feature-title{

        font-size:18px;

        line-height:1.4;
    }

    .feature-sub{

        font-size:14px;

        line-height:1.8;
    }

    /* =========================
       EXAM
    ========================= */

    .exam-section{

        margin-top:24px;
    }

    .exam-section-top{

        flex-direction:column;

        align-items:flex-start;

        gap:14px;
    }

    .section-title{

        font-size:22px;

        line-height:1.4;
    }

    .section-pill{
        width:20%;
        justify-content:center;
        margin-left:auto;
        margin-right:0;
    }

    /* Grid */

    .exam-grid{

        grid-template-columns:1fr;

        gap:18px;
    }

    .exam-card{

        padding:18px;

        border-radius:22px;
    }

    .exam-card-top{

        margin-bottom:18px;
    }

    .exam-icon{

        width:46px;

        height:46px;

        font-size:20px;
    }

    .exam-status{

        font-size:11px;

        padding:8px 12px;
    }

    .exam-title{

        font-size:18px;

        line-height:1.45;
    }

    .exam-sub{

        font-size:14px;

        line-height:1.7;
    }

    .exam-meta{

        display:flex;

        flex-wrap:wrap;

        gap:10px;
    }

    .exam-meta span{

        font-size:13px;
    }

    .exam-footer{

        flex-direction:column;

        align-items:stretch;

        gap:12px;
    }

    .exam-btn{

        width:100%;

        justify-content:center;
    }

}


/* iPhone */

@media (max-width:430px){

    .feature-heading{

        font-size:20px;
    }

    .feature-title{

        font-size:17px;
    }

    .feature-sub{

        font-size:13px;
    }

    .section-title{

        font-size:20px;
    }

    .exam-title{

        font-size:17px;
    }

    .exam-sub{

        font-size:13px;
    }

}

/* =====================================================
MOBILE RESPONSIVE - LEADERBOARD
===================================================== */

@media (max-width:768px){


/* ===========================
   LEADERBOARD
=========================== */

.leaderboard-section{

    margin-top:24px;

}


.leaderboard-header{

    text-align:center;

}


.leaderboard-grid{

    display:grid;

    grid-template-columns:1fr;

    gap:18px;

}


.leaderboard-card{

    width:100%;

    border-radius:22px;

    padding:18px;

}


.leaderboard-title{

    font-size:20px;

}


.leaderboard-sub{

    font-size:13px;

    line-height:1.7;

}



/* TABLE */

.leaderboard-table{

    width:100%;

    overflow-x:auto;

    display:block;

    white-space:nowrap;

    -webkit-overflow-scrolling:touch;

}


table{

    min-width:640px;

}


}
/* =====================================================
   MOBILE GLOBAL OPTIMIZATION
===================================================== */

@media (max-width:768px){

    /* =========================
       TOÀN TRANG
    ========================= */

    *{
        -webkit-tap-highlight-color:transparent;
    }

    html{

        overflow-x:hidden;
    }

    body{

        overflow-x:hidden;

        width:100%;
    }

    img{

        max-width:100%;

        height:auto;
    }

    iframe,
    video{

        max-width:100%;
    }

    /* Không cho phần tử nào làm tràn */

    section,
    div,
    article{

        max-width:100%;
    }

    /* =========================
       CARD
    ========================= */

    .card,
    .box,
    .panel{

        border-radius:20px;
    }

    /* =========================
       BUTTON
    ========================= */

    button{

        min-height:46px;
    }

    a{

        word-break:break-word;
    }

    /* =========================
       TABLE
    ========================= */

    table{

        display:block;

        overflow-x:auto;

        white-space:nowrap;

        width:100%;

        -webkit-overflow-scrolling:touch;
    }

    /* =========================
       FORM
    ========================= */

    input,
    select,
    textarea{

        font-size:16px;
    }

    textarea{

        resize:vertical;
    }

    /* =========================
       FLEX
    ========================= */

    .d-flex{

        flex-wrap:wrap;
    }

    /* =========================
       GRID
    ========================= */

    [class*="grid"]{

        gap:16px;
    }

    /* =========================
       TEXT
    ========================= */

    h1{

        font-size:30px;
    }

    h2{

        font-size:24px;
    }

    h3{

        font-size:20px;
    }

    p{

        line-height:1.7;
    }

}


/* ==========================================
   ĐIỆN THOẠI NHỎ (320-430px)
========================================== */

@media (max-width:430px){

    body{

        font-size:14px;
    }

    h1{

        font-size:26px;
    }

    h2{

        font-size:21px;
    }

    h3{

        font-size:18px;
    }

    .hero-btn,
    .exam-btn,
    .upload-btn,
    .learning-submit{

        height:48px;

        font-size:14px;
    }

}

/* =================================================
INDEX AI REPORT - MOBILE POLISH
BO GÓC + KHOẢNG CÁCH + VIỀN
================================================= */
/* =================================================
AI REPORT MOBILE ULTRA COMPACT
GIẢM CHIỀU CAO - GIỮ ĐẸP
================================================= */

@media(max-width:768px){

.ai-report-container{

    padding:6px !important;

    border-radius:14px !important;

}



/* HEADER */

.ai-header{

    padding:8px 10px !important;

    border-radius:12px !important;

    margin-bottom:6px !important;

}


.ai-header h2{

    font-size:15px !important;

    line-height:1.25 !important;

    margin:4px 0 !important;

}


.ai-header p{

    font-size:12px !important;

    line-height:1.3 !important;

    margin:0 !important;

}


.ai-badge{

    font-size:11px !important;

    padding:4px 8px !important;

    border-radius:8px !important;

}



/* CARD CHUNG */

.ai-summary-card,
.ai-text-card{

    padding:8px !important;

    border-radius:10px !important;

    margin-bottom:6px !important;

    box-shadow:
    0 2px 8px rgba(37,99,235,.05) !important;

}



/* TIÊU ĐỀ */

.ai-text-card h3{

    font-size:13px !important;

    line-height:1.25 !important;

    padding-bottom:4px !important;

    margin-bottom:6px !important;

}



/* TEXT */

.ai-text-card p{

    font-size:12px !important;

    line-height:1.4 !important;

    margin:0 !important;

}



/* ĐIỂM TỔNG */

.ai-big-level{

    font-size:12px !important;

    padding:5px 8px !important;

    border-radius:8px !important;

}



/* PHÂN TÍCH ITEM */

.ai-summary-row{

    gap:5px !important;

}


.ai-item{

    padding:5px 6px !important;

    border-radius:7px !important;

    font-size:11px !important;

    line-height:1.25 !important;

}



/* TOPIC */

.ai-topic-card-mini{

    padding:8px !important;

    border-radius:8px !important;

    margin-bottom:6px !important;

}



.ai-topic-name{

    font-size:13px !important;

}


.ai-subtopic,
.ai-topic-detail,
.ai-topic-label{

    font-size:11px !important;

    line-height:1.25 !important;

}


.ai-topic-score{

    font-size:16px !important;

}



.ai-topic-right{

    padding-top:5px !important;

}



/* NÚT THU GỌN */

.ai-close-area{

    padding:4px 0 !important;

}


.ai-hide-btn{

    height:26px !important;

    padding:0 12px !important;

    font-size:10px !important;

    border-radius:8px !important;

}



/* đồng bộ ngoài */

.exam-page{

    padding-left:8px !important;

    padding-right:8px !important;

}

}




@media(max-width:420px){


.ai-report-container{

    padding:5px !important;

}



.ai-header{

    padding:7px 8px !important;

}



.ai-summary-card,
.ai-text-card{

    padding:7px !important;

    margin-bottom:5px !important;

}



.ai-text-card h3{

    font-size:12px !important;

}


.ai-text-card p{

    font-size:11px !important;

}



.ai-item{

    font-size:10px !important;

    padding:4px 5px !important;

}



.ai-topic-card-mini{

    padding:7px !important;

}



.ai-topic-name{

    font-size:12px !important;

}



.ai-hide-btn{

    height:24px !important;

    padding:0 10px !important;

    font-size:10px !important;

}

}
/* =================================================
MOBILE - HERO SECTION RESPONSIVE FIX
THU NHỎ CARD + BUTTON + BO GÓC HÀI HÒA
================================================= */

@media(max-width:768px){

.hero-section{

    width:100% !important;

    padding:22px 12px !important;

    display:flex !important;

    flex-direction:column !important;

    gap:14px !important;

    overflow:hidden !important;

}


/* GLOW */

.hero-glow{

    transform:scale(.6) !important;

    opacity:.35 !important;

}


/* =========================
LEFT CONTENT
========================= */

.hero-left{

    width:100% !important;

    text-align:center !important;

}


.hero-badge-sub{

    font-size:10px !important;

    line-height:1.25 !important;

}



/* TITLE */

.hero-title{

    font-size:26px !important;

    line-height:1.05 !important;

    margin:0 0 8px 0 !important;

}


.hero-title span{

    display:block !important;

    font-size:24px !important;

    line-height:1.05 !important;

}



/* =========================
BUTTON ACTION
========================= */


.hero-actions{

    width:100% !important;

    display:flex !important;

    flex-wrap:wrap !important;

    justify-content:center !important;

    gap:8px !important;

}


.hero-btn{

    min-height:38px !important;

    height:38px !important;

    padding:0 14px !important;

    border-radius:12px !important;

    font-size:12px !important;

    display:flex !important;

    align-items:center !important;

    justify-content:center !important;

}


.primary-btn,
.secondary-btn{

    flex:1 1 calc(50% - 8px) !important;

}


.glass-btn{

    width:100% !important;

}



/* =========================
RIGHT AREA - SMALLER COMPACT
GIỮ NGUYÊN BỐ CỤC
========================= */

.hero-right-layout{

    width:100% !important;

    display:flex !important;

    flex-direction:column !important;

    gap:8px !important;

}



/* =========================
USER CARD
========================= */

.user-card{

    width:100% !important;

    padding:9px !important;

    border-radius:14px !important;

}



.user-card-top{

    gap:7px !important;

}



.user-avatar{

    width:34px !important;

    height:34px !important;

    font-size:14px !important;

}



.user-hello{

    font-size:10px !important;

}



.user-name{

    font-size:12px !important;

}



.user-meta{

    font-size:9px !important;

}



/* LINE */

.user-card-line{

    margin:7px 0 !important;

}



/* MINI BOX */

.user-card-bottom{

    gap:6px !important;

}



.user-mini-box{

    padding:6px !important;

    border-radius:9px !important;

}



.mini-box-number{

    font-size:14px !important;

}



.mini-box-label{

    font-size:9px !important;

}



.mini-divider{

    height:26px !important;

}



/* =========================
STATS
GIỮ 2 CỘT
========================= */

.hero-stats-stack{

    width:100% !important;

    display:grid !important;

    grid-template-columns:repeat(2,1fr) !important;

    gap:7px !important;

}



.inline-stat{

    padding:8px 6px !important;

    border-radius:12px !important;

    text-align:center !important;

}



.inline-number{

    font-size:16px !important;

}



.inline-label{

    font-size:9px !important;

    line-height:1.2 !important;

}



/* =================================================
MOBILE NHỎ 320-420px
================================================= */

@media(max-width:420px){


.hero-right-layout{

    gap:6px !important;

}



.user-card{

    padding:8px !important;

    border-radius:12px !important;

}



.user-avatar{

    width:30px !important;

    height:30px !important;

    font-size:12px !important;

}



.user-name{

    font-size:11px !important;

}



.user-meta{

    font-size:8px !important;

}



.user-card-line{

    margin:5px 0 !important;

}



.user-card-bottom{

    gap:5px !important;

}



.user-mini-box{

    padding:5px !important;

    border-radius:8px !important;

}



.mini-box-number{

    font-size:13px !important;

}



.mini-box-label{

    font-size:8px !important;

}



.hero-stats-stack{

    gap:6px !important;

}



.inline-stat{

    padding:7px 5px !important;

    border-radius:10px !important;

}



.inline-number{

    font-size:14px !important;

}



.inline-label{

    font-size:8px !important;

}


}

/* =================================================
MOBILE - TEACHER ADMIN CARD (COMPACT)
ĐỒNG BỘ AI REPORT
================================================= */

@media (max-width:768px){

    .teacher-admin-section{
        margin:10px 0;
    }

    .teacher-admin-card{
        display:flex;
        flex-direction:column;
        gap:10px;

        padding:12px;
        border-radius:16px;
    }

    .teacher-admin-left{
        display:flex;
        align-items:flex-start;
        gap:10px;
    }

    .teacher-admin-icon{
        width:48px;
        height:48px;

        flex-shrink:0;

        display:flex;
        align-items:center;
        justify-content:center;

        font-size:22px;
        border-radius:12px;
    }

    .teacher-admin-title{
        font-size:15px;
        line-height:1.3;
        font-weight:800;
        margin-bottom:3px;
    }

    .teacher-admin-sub{
        font-size:12px;
        line-height:1.5;
    }

    .teacher-admin-actions{
        width:100%;
    }

    .teacher-admin-btn{
        width:100%;

        display:flex;
        justify-content:center;
        align-items:center;

        padding:10px 12px;

        border-radius:11px;

        font-size:12.5px;
        font-weight:700;

        text-align:center;
    }

}

@media (max-width:768px){

    .feature-badge{
        padding:4px 9px;
        font-size:9px;
        margin-bottom:6px;
        border-radius:999px;
    }

    .learning-grid{
        gap:8px;
    }

    .learning-card{
        padding:9px;
        border-radius:14px;
    }

    .learning-head{
        margin-bottom:7px;
        gap:7px;
    }

    .learning-icon{
        width:32px;
        height:32px;
        font-size:16px;
        border-radius:8px;
    }

    .learning-type{
        font-size:13px;
        font-weight:800;
        line-height:1.2;
    }

    .learning-main{
        padding:9px;
        border-radius:11px;
    }

    .learning-tag{
        padding:2px 6px;
        font-size:8px;
        margin-bottom:5px;
        border-radius:999px;
    }

    .learning-title{
        font-size:13px;
        line-height:1.28;
        margin-bottom:3px;

        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    .learning-preview{
        font-size:10px;
        line-height:1.4;
        margin-bottom:6px;

        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    .learning-footer{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:6px;

        font-size:9px;
        line-height:1.3;
    }

    .learning-list{
        margin-top:7px;
        gap:4px;
    }

    .learning-item{
        padding:6px 8px;
        border-radius:9px;
    }

    .learning-item-title{
        font-size:10px;
        line-height:1.3;

        display:-webkit-box;
        -webkit-line-clamp:1;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    .learning-item-date{
        font-size:8px;
    }

    .learning-empty{
        padding:12px 8px;
        border-radius:10px;
        font-size:11px;
        line-height:1.45;
    }

}

/* =================================================
MOBILE - LEARNING POST COMPACT
ĐỒNG BỘ AI REPORT
================================================= */

@media (max-width:768px){

    .learning-post-box{
        margin:10px 0;
        border-radius:16px;
        overflow:hidden;
    }

    /* Nút mở */

    .learning-toggle{
        min-height:42px;
        padding:10px 12px;

        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:10px;

        font-size:13px;
        font-weight:700;
        line-height:1.3;

        border-radius:16px;
    }

    #learningArrow{
        font-size:12px;
        flex-shrink:0;
    }

    /* Form */

    .learning-form-area{
        padding:10px;
    }

    .learning-form{
        gap:8px;
    }

    .learning-form select,
    .learning-form input[type="text"],
    .learning-form input[type="url"],
    .learning-form input[type="file"],
    .learning-form textarea{

        width:100%;

        font-size:12px;

        border-radius:10px;

        padding:10px 12px;
    }

    .learning-form select,
    .learning-form input[type="text"],
    .learning-form input[type="url"]{

        height:42px;
    }

    .learning-form textarea{

        min-height:110px;
        resize:vertical;
        line-height:1.45;
    }

    .learning-form input[type="file"]{

        padding:8px 10px;
        font-size:11px;
    }

    .learning-submit{

        width:100%;

        height:42px;

        border-radius:10px;

        font-size:13px;
        font-weight:700;
    }

}

/* =================================================
MOBILE - LEARNING MODAL COMPACT
ĐỒNG BỘ AI REPORT
================================================= */

@media (max-width:768px){

    .learning-modal{
        padding:12px;
    }

    .learning-modal-box{
        width:100%;
        max-width:100%;

        max-height:90vh;

        border-radius:16px;

        padding:14px;
    }

    /* Nút X */

    .modal-close{
        top:10px;
        right:10px;

        width:45px;
        height:5px;

        font-size:15px;

        border-radius:50%;
    }

    /* Header */

    .modal-header{
        gap:10px;
        margin-bottom:10px;
        padding-right:28px;
    }

    .modal-icon{
        width:40px;
        height:40px;

        font-size:18px;

        border-radius:10px;

        flex-shrink:0;
    }

    .modal-title{
        font-size:16px;
        line-height:1.35;
        font-weight:800;
    }

    /* Nội dung */

    .modal-body{
        font-size:13px;
        line-height:1.6;

        margin:10px 0;
    }

    /* Link + File */

    .modal-attach{
        margin-top:10px;
        gap:8px;
    }

    .modal-attach a,
    .modal-attach button,
    .modal-attach div{

        font-size:12px;
        line-height:1.45;
    }

    /* Footer */

    .modal-footer{
        margin-top:12px;

        gap:10px;

        flex-wrap:wrap;
    }

    #modalDate{
        font-size:11px;
    }

    .modal-close-btn{

        min-width:90px;

        height:38px;

        padding:0 14px;

        border-radius:10px;

        font-size:12px;
        font-weight:700;
    }

}

/* =================================================
MOBILE - FEATURE GRID COMPACT
2 CỘT - GỌN NHƯ APP
================================================= */

@media (max-width:768px){

    .feature-heading{
        font-size:18px;
        text-align:center;
        margin-bottom:12px;
    }

    .feature-grid{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .feature-card{

        min-height:90px;

        padding:12px 10px;

        border-radius:16px;

        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;

        text-align:center;

        gap:8px;
    }

    .feature-icon{

        width:42px;
        height:42px;

        border-radius:12px;

        font-size:20px;

        margin:0;
        flex-shrink:0;
    }

    .feature-content{
        width:100%;
    }

    .feature-title{

        font-size:13px;
        font-weight:800;
        line-height:1.3;

        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    /* Ẩn mô tả trên mobile */

    .feature-sub{
        display:none;
    }

}

/* =================================================
MOBILE - STUDY BANNER ULTRA COMPACT
================================================= */

@media (max-width:768px){

    .study-banner{
        display:flex;
        flex-direction:column;
        gap:8px;

        padding:10px;
        border-radius:14px;
    }

    .study-left{
        display:flex;
        align-items:flex-start;
        gap:8px;
    }

    .feature-icon1{
        width:34px;
        height:34px;

        font-size:16px;

        border-radius:9px;

        flex-shrink:0;
    }

    .study-content{
        flex:1;
        min-width:0;
    }

    .study-title-row{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:6px;

        margin-bottom:4px;
    }

    .study-title{
        font-size:14px;
        font-weight:800;
        line-height:1.2;
    }

    .study-day-badge{
        padding:2px 7px;

        font-size:9px;

        border-radius:999px;

        white-space:nowrap;
    }

    /* Ẩn trạng thái dài */

    .study-status{
        display:none;
    }

    .study-progress-wrapper{
        gap:5px;
        margin-bottom:6px;
    }

    .study-progress{
        height:6px;
        border-radius:999px;
    }

    .study-progress-bar{
        border-radius:999px;
    }

    .study-progress-percent{
        font-size:9px;
        min-width:30px;
    }

    /* Chỉ còn 2 ô */

    .study-detail-row{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:5px;
    }

    .study-detail-item{
        padding:5px 6px;

        font-size:9px;
        line-height:1.3;

        border-radius:8px;
    }

    .study-detail-item b{
        font-size:10px;
    }

    /* Ẩn ô "Đã điểm danh" */

    .study-detail-item:nth-child(3){
        display:none;
    }

    .study-right{
        display:flex;
        gap:6px;
        width:100%;
    }

    .study-check-status{
        flex:1;

        padding:7px 8px;

        font-size:10px;

        border-radius:9px;

        text-align:center;
    }

    .study-btn{
        flex:1;

        height:36px;

        padding:0 8px;

        font-size:11px;
        font-weight:700;

        border-radius:9px;
    }

}

/* =================================================
MOBILE - UPLOAD BAR ULTRA COMPACT
================================================= */

@media (max-width:768px){

.upload-bar-section{
    margin:8px 0;
}

.upload-bar{
    display:flex;
    flex-direction:column;
    gap:8px;

    padding:10px;
    border-radius:14px;
}

/* LEFT */

.upload-bar-left{
    display:flex;
    align-items:flex-start;
    gap:8px;
}

.upload-bar .feature-icon{
    width:34px;
    height:34px;
    font-size:16px;
    border-radius:9px;
    flex-shrink:0;
}

.upload-bar-content{
    flex:1;
    min-width:0;
}

.upload-bar-title{
    font-size:13px;
    font-weight:800;
    line-height:1.3;
    margin-bottom:2px;
}

.upload-bar-sub{
    display:none;
}

.download-template-link{
    display:inline-flex;
    align-items:center;
    gap:4px;

    margin-top:4px;

    padding:3px 8px;

    font-size:10px;

    border-radius:999px;
}

.download-icon{
    font-size:11px;
}

/* FORM */

.upload-bar-form{
    display:grid;
    grid-template-columns:1fr auto;
    gap:6px;
    align-items:center;
}

.upload-input{
    width:100%;
    min-width:0;

    font-size:10px;

    padding:5px 8px;

    border-radius:9px;
}

.upload-input::file-selector-button{
    padding:5px 8px;
    margin-right:8px;

    border:none;
    border-radius:7px;

    font-size:10px;
    font-weight:700;
}

.upload-btn{
    height:34px;

    padding:0 12px;

    border-radius:9px;

    font-size:11px;
    font-weight:700;

    white-space:nowrap;
}

}

/* =================================================
MOBILE - EXAM SECTION ULTRA COMPACT
================================================= */

@media (max-width:768px){

/* =========================
SECTION
========================= */

.exam-section{
    margin-top:18px;
}

/* HEADER */

.exam-section-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    margin-bottom:10px;
}

.exam-section-top > div:first-child{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
}

/* BADGE */

.section-badge{
    display:inline-flex;
    align-items:center;

    align-self:flex-start;

    padding:4px 8px;

    font-size:10px;
    font-weight:700;

    border-radius:999px;

    margin:0 0 5px 0;

    text-align:left;
}

/* TITLE */

.section-title{
    display:block;

    width:100%;

    margin:0;

    text-align:left;

    font-size:17px;
    font-weight:800;
    line-height:1.25;
}

/* PILL */

.section-pill{
    flex-shrink:0;

    display:flex;
    align-items:center;
    gap:5px;

    padding:5px 8px;

    border-radius:999px;
}

.pill-dot{
    width:7px;
    height:7px;
}

.pill-number{
    font-size:12px;
    font-weight:700;
}

.pill-text{
    display:none;
}

/* =========================
GRID
========================= */

.exam-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

/* =========================
CARD
========================= */

.exam-card{
    min-height:150px;
    padding:11px;
    border-radius:15px;
}

.exam-card-top{
    margin-bottom:8px;
}

.exam-icon{
    width:34px;
    height:34px;

    border-radius:10px;

    font-size:17px;
}

.exam-status{
    padding:3px 7px;

    font-size:9px;

    border-radius:999px;
}

.exam-name{
    font-size:13px;
    line-height:1.35;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;

    min-height:34px;
}

.exam-meta{
    margin-top:6px;

    display:flex;
    flex-direction:column;
    gap:3px;
}

.exam-info,
.exam-date{
    font-size:10px;
}

.exam-card-footer{
    margin-top:8px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.exam-tag,
.exam-tag2{
    padding:3px 7px;

    font-size:9px;

    border-radius:999px;
}

.exam-open{
    font-size:11px;
    font-weight:700;
}

/* =========================
TABLE
========================= */

.exam-table-wrapper{
    margin-top:14px;
    padding:10px;
    border-radius:15px;
}

.table-title{
    display:flex;
    align-items:center;
    justify-content:flex-start;

    width:100%;

    text-align:left;

    font-size:15px;
    font-weight:700;

    gap:6px;

    margin:0 0 8px;
}

.exam-search{
    margin-bottom:10px;
}

.search-input{
    height:38px;

    padding-left:34px;

    font-size:12px;

    border-radius:10px;
}

.search-icon{
    left:10px;
    font-size:13px;
}

.exam-table{
    min-width:680px;
}

.exam-table th{
    padding:10px 8px;
    font-size:10px;
}

.exam-table td{
    padding:10px 8px;
    font-size:11px;
}

.tag-new,
.tag-done{
    padding:3px 7px;
    font-size:9px;
    border-radius:999px;
}

.table-btn{
    height:30px;
    padding:0 10px;

    font-size:10px;

    border-radius:8px;
}

.table-pagination{
    margin-top:10px;
    gap:5px;
}

.table-pagination button{
    min-width:32px;
    height:32px;

    font-size:11px;

    border-radius:8px;
}

}


/* =================================================
MOBILE - EXAM TABLE APP STYLE FINAL V7
TABLE THẬT SỰ RỘNG + SEARCH ĐỒNG BỘ
================================================= */


@media (max-width:768px){


/* ==========================
CARD WRAPPER
========================== */


.exam-table-wrapper{


    margin-top:10px;


    width:100%;


    padding:9px;


    border-radius:14px;


    overflow-x:auto;


    overflow-y:hidden;


    -webkit-overflow-scrolling:touch;


    touch-action:pan-x;


    scrollbar-width:thin;


}



/* scrollbar */


.exam-table-wrapper::-webkit-scrollbar{

    height:5px;

}


.exam-table-wrapper::-webkit-scrollbar-thumb{

    border-radius:999px;

}



/* ==========================
TITLE
========================== */


.table-title{


    width:820px !important;


    min-width:820px;


    margin-bottom:6px;


    font-size:14px;


    font-weight:800;


}





/* ==========================
SEARCH
========================== */


.exam-search{


    width:820px !important;


    min-width:820px;


    margin-bottom:6px;


}



.search-input{


    display:block;


    width:820px !important;


    height:26px !important;


    box-sizing:border-box;


    padding-left:26px;


    padding-right:8px;


    font-size:10px;


    border-radius:7px;


}



.search-input::placeholder{


    font-size:9px;


}



.search-icon{


    left:8px;


    font-size:10px;


}



/* ==========================
TABLE CORE
QUAN TRỌNG
========================== */


.exam-table{


    display:table !important;


    width:820px !important;


    min-width:820px !important;


    max-width:none !important;


    border-collapse:separate !important;


    border-spacing:0;


    table-layout:fixed !important;


}





/* ÉP BODY */

.exam-table tbody,
.exam-table thead{


    width:820px !important;


}





/* ==========================
HEADER
========================== */


.exam-table thead th{


    padding:8px 7px !important;


    font-size:9px !important;


    font-weight:700;


    white-space:nowrap;


}





/* ==========================
CONTENT
========================== */


.exam-table tbody td{


    padding:8px 7px !important;


    font-size:10px !important;


    line-height:1.3 !important;


    white-space:nowrap;


    vertical-align:middle;


}





/* ==========================
COLUMN WIDTH
========================== */


/* STT */


.exam-table th:nth-child(1),
.exam-table td:nth-child(1){


    width:55px !important;


    min-width:55px !important;


    text-align:center;


}





/* TÊN ĐỀ */


.exam-table th:nth-child(2),
.exam-table td:nth-child(2){


    width:270px !important;


    min-width:270px !important;


    max-width:270px !important;


    white-space:normal;


    line-height:1.35;


}





/* NGÀY */


.exam-table th:nth-child(3),
.exam-table td:nth-child(3){


    width:120px !important;


    min-width:120px !important;


    text-align:center;


}





/* SỐ CÂU */


.exam-table th:nth-child(4),
.exam-table td:nth-child(4){


    width:75px !important;


    min-width:75px !important;


    text-align:center;


}





/* TRẠNG THÁI */


.exam-table th:nth-child(5),
.exam-table td:nth-child(5){


    width:110px !important;


    min-width:110px !important;


    text-align:center;


}





/* ACTION */


.exam-table th:nth-child(6),
.exam-table td:nth-child(6){


    width:95px !important;


    min-width:95px !important;


    text-align:center;


}





/* ==========================
STATUS
========================== */


.tag-new,
.tag-done{


    min-width:60px;


    padding:4px 7px;


    font-size:8px !important;


    border-radius:6px;


}





/* ==========================
BUTTON
========================== */


.table-btn{


    width:65px;


    height:26px;


    border-radius:7px;


    font-size:9px !important;


    display:inline-flex;


    align-items:center;


    justify-content:center;


}





/* ==========================
PAGINATION
========================== */


.table-pagination{


    display:flex;


    justify-content:center;


    gap:4px;


    margin-top:8px;


}



.table-pagination button{


    width:24px;


    min-width:24px;


    height:24px;


    padding:0;


    border-radius:6px;


    font-size:9px !important;


    display:flex;


    align-items:center;


    justify-content:center;


}



}





/* =================================================
IPHONE NHỎ
================================================= */


@media(max-width:430px){



.exam-table-wrapper{


    padding:7px;


}



/* giữ cùng chiều ngang */


.table-title{


    width:820px !important;


    min-width:820px;


    font-size:13px;


}



.exam-search{


    width:820px !important;


    min-width:820px;


}



.search-input{


    width:820px !important;


    height:25px !important;


}



.exam-table{


    width:820px !important;


    min-width:820px !important;


}





.exam-table thead th{


    font-size:8px !important;


    padding:7px 6px !important;


}



.exam-table tbody td{


    font-size:9px !important;


    padding:7px 6px !important;


}



.table-btn{


    width:58px;


    height:24px;


    font-size:8px !important;


}



}
/* =================================================
MOBILE - TOP STUDENTS COMPACT
================================================= */

@media (max-width:768px){

/* HEADER */

.card-header{

    display:flex;
    align-items:flex-start;
    justify-content:space-between;

    gap:10px;

    margin-bottom:10px;
}

.card-header .section-badge{

    display:inline-flex;

    align-self:flex-start;

    margin:0 0 5px;

    padding:4px 8px;

    font-size:10px;

    font-weight:700;

    border-radius:999px;
}

.card-header h2{

    font-size:17px;

    line-height:1.25;

    margin:0;

    text-align:left;
}

/* GRID */

.top-students-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:10px;
}

/* CARD */

.top-student{

    padding:10px;

    border-radius:15px;

    text-align:center;

    min-height:auto;
}

/* HẠNG */

.top-rank{

    font-size:20px;

    margin-bottom:5px;
}

/* AVATAR */

.top-avatar{

    width:46px;
    height:46px;

    margin:0 auto 6px;

    font-size:18px;
}

/* NAME */

.top-name{

    font-size:12px;

    font-weight:800;

    line-height:1.3;

    margin-bottom:3px;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* SCHOOL */

.top-school{

    font-size:10px;

    line-height:1.3;

    margin-bottom:5px;

    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* SCORE */

.top-score{

    font-size:10px;

    margin-bottom:7px;
}

.top-score strong{

    font-size:12px;
}

/* PROGRESS */

.top-progress-wrapper{

    gap:4px;
}

.mini-progress{

    height:6px;

    border-radius:999px;
}

.mini-progress-fill{

    border-radius:999px;
}

.top-progress-wrapper span{

    font-size:9px;

    font-weight:700;
}

}

/* ================================================
ĐIỆN THOẠI NHỎ
================================================ */

@media (max-width:430px){

.top-students-grid{

    gap:8px;
}

.top-student{

    padding:8px;

    border-radius:13px;
}

.top-avatar{

    width:40px;
    height:40px;

    font-size:16px;
}

.top-rank{

    font-size:18px;
}

.top-name{

    font-size:11px;
}

.top-school{

    font-size:9px;
}

.top-score{

    font-size:9px;
}

.top-score strong{

    font-size:11px;
}

.top-progress-wrapper span{

    font-size:8px;
}

}

/* =================================================
MOBILE - CHAT UI MODERN APP STYLE (COMPACT)
CHỈ HIỂN THỊ CHAT
================================================= */

@media (max-width:768px){


/* =========================
CONTAINER
========================= */

.chat-container{

    display:block;

    width:100%;

}


/* =========================
LEFT CHAT
========================= */

.chat-left{

    width:100% !important;

    max-width:100%;

    border-radius:15px;

    overflow:hidden;

}


/* =========================
HEADER
========================= */

.chat-header{

    padding:11px 12px;

    border-radius:14px;

    margin-bottom:8px;

}


.chat-title{

    font-size:15px;

    font-weight:800;

    line-height:1.2;

    margin-bottom:2px;

}


.chat-sub{

    font-size:10px;

    line-height:1.35;

    opacity:.75;

}



/* =========================
BODY
========================= */

.chat-body-wrapper{

    border-radius:14px;

    overflow:hidden;

}


.chat-body{

    height:330px;

    padding:6px;

    overflow-y:auto;

    gap:6px;

}



/* =========================
MESSAGE
========================= */

.msg{

    display:flex;

    align-items:flex-end;

    gap:5px;

    margin-bottom:6px;

}


.msg.teacher{

    justify-content:flex-end;

}

/* =================================================
GIỚI HẠN BÓNG CHAT - MOBILE COMPACT
================================================= */


/* GIỚI HẠN BÓNG CHAT */

.msg-content{

    max-width:78%;

    display:flex;

    flex-direction:column;

}


/* AVATAR MINI */

.msg-avatar{

    width:22px;

    height:22px;

    min-width:22px;

    min-height:22px;

    border-radius:50%;

    font-size:9px !important;

    font-weight:700;

    line-height:1;

    flex-shrink:0;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

}


/* BONG BÓNG CHAT */

.msg-bubble{

    max-width:100%;

    padding:6px 8px;

    border-radius:12px;

    font-size:10px;

    line-height:1.35;

    word-break:break-word;

}


/* THỜI GIAN */

.msg-time{

    font-size:7px;

    margin-top:1px;

    opacity:.6;

}



/* =================================================
IPHONE NHỎ
================================================= */

@media(max-width:430px){

.msg-content{

    max-width:82%;

}


.msg-avatar{

    width:20px;

    height:20px;

    min-width:20px;

    min-height:20px;

    font-size:9px !important;

}


.msg-bubble{

    padding:5px 7px;

    font-size:9px;

    border-radius:10px;

}


.msg-time{

    font-size:6px;

}

}



/* =========================
IMAGE
========================= */

.chat-image img{

    max-width:120px;

    border-radius:8px;

}



/* =========================
FILE
========================= */

.chat-file{

    margin-top:4px;

    padding:5px 6px;

    border-radius:7px;

    font-size:9px;

    line-height:1.3;

}


.chat-file a{

    text-decoration:none;

}



/* =========================
INPUT
========================= */

.chat-input-box{

    display:flex;

    align-items:center;

    gap:6px;

    padding:8px;

    margin-top:8px;

    border-radius:14px;

}



.chat-input{

    flex:1;

    height:34px;

    padding:0 10px;

    border-radius:10px;

    font-size:11px;

}



.chat-upload{

    width:34px;

    height:34px;

    border-radius:9px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:14px;

    flex-shrink:0;

}



.chat-send{

    min-width:52px;

    height:34px;

    border-radius:9px;

    font-size:11px;

    font-weight:700;

}



/* =========================
SELECTED FILE
========================= */

.selected-file{

    width:100%;

    margin-top:5px;

    padding:5px 7px;

    border-radius:8px;

    font-size:9px;

}



.remove-file{

    width:20px;

    height:20px;

    border-radius:50%;

    font-size:9px;

}



/* =========================
LOCK
========================= */

.lock-box{

    width:88%;

    padding:14px;

    border-radius:14px;

    font-size:11px;

    line-height:1.4;

    text-align:center;

}



/* =========================
ẨN CỘT PHẢI MOBILE
========================= */

.chat-right{

    display:none !important;

}



}



/* =================================
ĐIỆN THOẠI NHỎ
================================= */

@media(max-width:430px){


.chat-left{

    border-radius:13px;

}


.chat-header{

    padding:10px;

}


.chat-title{

    font-size:14px;

}


.chat-sub{

    font-size:9px;

}


.chat-body{

    height:300px;

    padding:5px;

    gap:5px;

}



.msg{

    gap:4px;

    margin-bottom:5px;

}



.msg-content{

    max-width:74%;

}



.msg-avatar{

    width:22px;

    height:22px;

    font-size:9px;

}



.msg-bubble{

    padding:6px 8px;

    font-size:11px;

    border-radius:10px;

    line-height:1.35;

}



.msg-time{

    font-size:6px;

}



.chat-image img{

    max-width:110px;

}



.chat-file{

    padding:4px 6px;

    font-size:8px;

}



.chat-input-box{

    gap:5px;

    padding:7px;

}



.chat-input{

    height:32px;

    font-size:10px;

}



.chat-upload{

    width:30px;

    height:30px;

    font-size:12px;

}



.chat-send{

    min-width:46px;

    height:32px;

    font-size:10px;

}



.selected-file{

    font-size:8px;

}



.remove-file{

    width:18px;

    height:18px;

    font-size:8px;

}



.lock-box{

    padding:12px;

    font-size:10px;

}



}

/* =====================================================
MOBILE - SCROLL TOP BUTTON COMPACT BALANCED
===================================================== */

@media(max-width:768px){

    #scrollTopBtn,
    .scroll-top{

        width:34px !important;

        height:34px !important;

        min-width:34px !important;

        min-height:34px !important;

        padding:0 !important;

        border-radius:50% !important;

        display:flex;

        align-items:center;

        justify-content:center;

        line-height:1;

        font-size:15px;

        right:12px;

        bottom:12px;

    }

}



@media(max-width:430px){

    #scrollTopBtn,
    .scroll-top{

        width:32px !important;

        height:32px !important;

        min-width:32px !important;

        min-height:32px !important;

        padding:0 !important;

        border-radius:50% !important;

        display:flex;

        align-items:center;

        justify-content:center;

        line-height:1;

        font-size:14px;

        right:10px;

        bottom:10px;

    }

}

/* =====================================================
MOBILE - PAGINATION EXTRA COMPACT
===================================================== */

@media(max-width:768px){

.table-pagination{

    gap:4px !important;

    margin-top:8px !important;

}


.table-pagination button,
.table-pagination a,
.table-pagination span,
.table-pagination .page-link{

    width:22px !important;

    height:22px !important;

    min-width:22px !important;

    min-height:22px !important;

    padding:0 !important;

    margin:0 !important;

    display:flex !important;

    align-items:center !important;

    justify-content:center !important;

    font-size:9px !important;

    line-height:1 !important;

    border-radius:6px !important;

}


}



@media(max-width:430px){

.table-pagination button,
.table-pagination a,
.table-pagination span,
.table-pagination .page-link{

    width:20px !important;

    height:20px !important;

    min-width:20px !important;

    min-height:20px !important;

    font-size:8px !important;

    border-radius:5px !important;

}

}

/* =========================
   RING
========================= */

.hero-ring{

    position:absolute;

    inset:0;

    border-radius:50%;

    border:3px solid transparent;

}

/* vòng 1 */

.ring1{

    border-top-color:#2563eb;

    animation:spin1 3s linear infinite;

}

/* vòng 2 */

.ring2{

    inset:-10px;

    border-right-color:#60a5fa;

    animation:spin2 5s linear infinite reverse;

}

/* vòng 3 */

.ring3{

    inset:10px;

    border-left-color:#93c5fd;

    animation:spin3 2.5s linear infinite;

}

/* =========================
   ANIMATION
========================= */

@keyframes spin1{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

@keyframes spin2{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(-360deg);

    }

}

@keyframes spin3{

    from{

        transform:rotate(360deg);

    }

    to{

        transform:rotate(0deg);

    }

}

@keyframes logoFloat{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-6px);

    }

    100%{

        transform:translateY(0);

    }

}

/* =====================================================
INDEX HERO MOBILE - LOGO BALANCE FIX
SYNC THEORY + PRACTICE
===================================================== */


@media(max-width:768px){


/* =========================
HERO BADGE MOBILE
========================= */

.hero-badge{

    width:calc(100% - 16px);

    min-height:46px;

    padding:6px 14px 6px 6px;

    gap:6px;

    border-radius:999px;

    margin:0 auto 10px;

    align-items:center;

}



/* =========================
LOGO WRAPPER
========================= */

.hero-badge-logo{

    width:38px;

    height:38px;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

}



/* =========================
LOGO IMAGE
========================= */

.hero-logo{

    width:34px;

    height:34px;

    max-width:34px;

    max-height:34px;

    object-fit:contain;

    display:block;

}



/* =========================
TEXT BLOCK
========================= */

.hero-badge-text{

    transform:translateX(-2px);

    margin:0;

    gap:2px;

    line-height:1.12;

    min-width:0;

    text-align:left;

}



/* =========================
TITLE
========================= */

.hero-badge-title{

    font-size:13px;

    line-height:1.12;

    letter-spacing:-0.2px;

    text-align:left;

}



/* =========================
SUBTITLE
========================= */

.hero-badge-sub{

    font-size:10px;

    line-height:1.12;

    margin-top:1px;

    text-align:left;

}



/* =========================
USER CARD
========================= */

.user-card{

    padding:7px 12px;

    border-radius:16px;

}


.user-avatar{

    width:34px;

    height:34px;

    font-size:14px;

}


.user-name{

    font-size:13px;

}


.user-meta{

    font-size:11px;

}


}



/* =====================================================
IPHONE NHỎ <=390px
===================================================== */


@media(max-width:390px){


.hero-badge{

    min-height:42px;

    height:42px;

    padding:5px 12px 5px 8px;

    gap:8px;

}



/* logo */

.hero-badge-logo{

    width:34px;

    height:34px;

}



.hero-logo{

    width:30px;

    height:30px;

    max-width:30px;

    max-height:30px;

}



/* text */

.hero-badge-title{

    font-size:13px;

}



.hero-badge-sub{

    font-size:9px;

}


}

/* =========================================================
   LEARNING DETAIL MODAL — GỌN & CÂN ĐỐI
========================================================= */

.learning-modal-box{

    width:calc(100% - 32px);
    max-width:760px;

    max-height:88vh;

    padding:24px 28px 20px;

    border-radius:22px;

    background:#fff;

    box-shadow:
        0 20px 60px rgba(0,0,0,.18);

    position:relative;

    overflow:hidden;
}


/* =========================================================
   NÚT ĐÓNG
========================================================= */

.learning-modal-box .modal-close{

    position:absolute;

    top:16px;
    right:16px;

    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;
    border-radius:50%;

    background:#f04444;
    color:#fff;

    font-size:28px;
    font-weight:500;

    cursor:pointer;

    transition:.2s ease;
}


.learning-modal-box .modal-close:hover{

    transform:scale(1.06);

}


/* =========================================================
   HEADER
========================================================= */

.learning-modal-box .modal-header{

    display:flex;

    align-items:flex-start;

    gap:14px;

    padding-right:55px;

    margin-bottom:18px;
}


/* ICON */

.learning-modal-box .modal-icon{

    width:42px;
    height:42px;

    flex:0 0 42px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:26px;

    background:#eef5ff;

    border-radius:12px;
}


/* =========================================================
   CATEGORY
========================================================= */

.learning-modal-box .modal-category{

    margin-bottom:4px;

    font-size:14px;

    font-weight:600;

    color:#2563eb;

    line-height:1.3;
}


/* =========================================================
   TITLE
========================================================= */

.learning-modal-box .modal-title{

    font-size:24px;

    font-weight:750;

    line-height:1.25;

    color:#111827;

    word-break:break-word;
}


/* =========================================================
   NỘI DUNG
========================================================= */

.learning-modal-box .modal-body{

    min-height:90px;

    padding:16px 0 20px;

    border-top:1px solid #edf1f7;

    border-bottom:1px solid #edf1f7;

    font-size:16px;

    line-height:1.7;

    color:#374151;

    white-space:pre-wrap;

    word-break:break-word;
}


/* =========================================================
   FILE + LINK
========================================================= */

.learning-modal-box .modal-attach{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    padding:16px 0 4px;
}


.learning-modal-box .modal-attach a{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:8px 12px;

    border-radius:9px;

    background:#f3f7ff;

    color:#2563eb;

    text-decoration:none;

    font-size:13px;

    font-weight:600;

    border:1px solid #dbe7ff;

    transition:.2s ease;
}


.learning-modal-box .modal-attach a:hover{

    background:#e8f0ff;

}


/* =========================================================
   FOOTER
========================================================= */

.learning-modal-box .modal-footer{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    padding-top:18px;
}


/* NGÀY */

.learning-modal-box #modalDate{

    font-size:14px;

    color:#64748b;

    white-space:nowrap;
}


/* NÚT ĐÓNG */

.learning-modal-box .modal-close-btn{

    min-width:82px;

    height:40px;

    padding:0 18px;

    border:none;

    border-radius:11px;

    background:#111827;

    color:#fff;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.2s ease;
}


.learning-modal-box .modal-close-btn:hover{

    background:#1f2937;

}

/* =========================================================
FIX CHUỖI DÀI PHÁ CARD
ÁP DỤNG TOÀN BỘ TRUNG TÂM HỌC TẬP
========================================================= */


/* TẤT CẢ PHẦN TỬ TRONG CARD ĐƯỢC PHÉP CO LẠI */

.learning-card *,
.learning-main *,
.learning-list *,
.learning-item *{

    min-width:0;

    max-width:100%;

    box-sizing:border-box;

}


/* CARD */

.learning-card,
.learning-main,
.learning-item{

    width:100%;

    min-width:0;

    overflow:hidden;

}


/* TEXT */

.learning-title,
.learning-preview,
.learning-item-title,
.learning-footer span,
.learning-card a,
.learning-card p,
.learning-card span{

    min-width:0;

    max-width:100%;

    white-space:normal;

    overflow-wrap:anywhere;

    word-break:break-all;

}

/* =========================================================
   MOBILE EXTRA COMPACT
========================================================= */

@media(max-width:768px){


.learning-modal{

    padding:6px;

}



/* BOX */

.learning-modal-box{

    width:92%;

    max-height:74vh;

    border-radius:16px;

}



/* HEADER */

.modal-header{

    padding:10px 12px;

    gap:8px;

}



/* ICON */

.modal-icon{

    width:34px;

    height:34px;

    border-radius:10px;

    font-size:18px;

}



/* CATEGORY */

.modal-category{

    padding:2px 7px;

    font-size:9px;

    margin-bottom:3px;

}



/* TITLE */

.modal-title{

    font-size:14px !important;

    line-height:1.3 !important;

    padding-right:18px;

    margin-bottom:4px;

}



/* BODY */

.modal-body{

    padding:12px;

    font-size:12.5px;

    line-height:1.5;

}



/* RESOURCE */

.modal-attach{

    gap:6px;

    padding:

        0 12px 8px;

}



.modal-attach a{

    font-size:11.5px;

    padding:

        6px 9px;

    border-radius:10px;

}



/* FOOTER */

.modal-footer{

    padding:

        8px 12px;

}



#modalDate{

    font-size:10px;

}



.modal-close-btn{

    height:28px;

    padding:

        0 12px;

    border-radius:8px;

    font-size:11px;

}



/* CLOSE X */

.modal-close{

    width:26px;

    height:26px;

    top:6px;

    right:6px;

    font-size:14px;

}


}

/* =========================================================
   AI HEADER
   DESKTOP + MOBILE
   ========================================================= */


/* =========================================================
   DESKTOP
   ========================================================= */

.ai-header{

    width:100%;

    box-sizing:border-box;

    text-align:center;

    padding:
        20px 24px 18px;

    margin:
        0 0 16px;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eef5ff
        );

    border:
        1px solid #dbeafe;

    box-shadow:
        0 6px 18px rgba(37,99,235,.08);

}


/* =========================================================
   AI BADGE
   ========================================================= */

.ai-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:max-content;

    max-width:100%;

    box-sizing:border-box;

    padding:
        5px 11px;

    margin:
        0 auto 8px;

    border-radius:999px;

    background:#dbeafe;

    color:#1d4ed8;

    font-size:11px;

    font-weight:700;

    line-height:1.3;

    white-space:nowrap;

}


/* =========================================================
   AI TITLE
   ========================================================= */

.ai-header h2{

    margin:
        0 0 8px;

    padding:0;

    color:#0f172a;

    font-size:20px;

    font-weight:800;

    line-height:1.3;

    letter-spacing:.2px;

}


/* =========================================================
   STUDENT NAME
   ========================================================= */

.ai-student-name{

    display:flex;

    align-items:center;

    justify-content:center;

    flex-wrap:wrap;

    gap:4px;

    margin:
        4px 0 3px;

    color:#475569;

    font-size:13px;

    font-weight:500;

    line-height:1.5;

}

.ai-student-name strong{

    color:#92400e;

    font-weight:700;

}


/* =========================================================
   EXAM ID
   ========================================================= */

.ai-exam-id{

    display:flex;

    align-items:center;

    justify-content:center;

    flex-wrap:wrap;

    gap:4px;

    margin:
        2px 0 8px;

    color:#475569;

    font-size:13px;

    font-weight:500;

    line-height:1.5;

}

.ai-exam-id strong{

    color:#1d4ed8;

    font-weight:800;

}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.ai-header p{

    max-width:720px;

    margin:
        7px auto 0;

    padding:0;

    color:#64748b;

    font-size:12px;

    font-weight:400;

    line-height:1.5;

}


/* =========================================================
   MOBILE <= 768px
   ========================================================= */

@media (max-width:768px){

    .ai-header{

        width:100%;

        box-sizing:border-box;

        padding:
            13px 12px 12px;

        margin:
            0 0 10px;

        border-radius:13px;

        box-shadow:
            0 4px 12px rgba(37,99,235,.07);

    }


    /* =========================
       BADGE
       ========================= */

    .ai-badge{

        padding:
            4px 9px;

        margin:
            0 auto 6px;

        font-size:9.5px;

        line-height:1.25;

        border-radius:999px;

    }


    /* =========================
       TITLE
       ========================= */

    .ai-header h2{

        margin:
            0 0 6px;

        font-size:15px;

        line-height:1.3;

        letter-spacing:0;

        word-break:normal;

        overflow-wrap:normal;

    }


    /* =========================
       STUDENT
       ========================= */

    .ai-student-name{

        gap:3px;

        margin:
            3px 0 2px;

        font-size:11px;

        line-height:1.4;

    }

    .ai-student-name strong{

        font-size:11px;

    }


    /* =========================
       EXAM
       ========================= */

    .ai-exam-id{

        gap:3px;

        margin:
            1px 0 5px;

        font-size:11px;

        line-height:1.4;

    }

    .ai-exam-id strong{

        font-size:11px;

    }


    /* =========================
       DESCRIPTION
       ========================= */

    .ai-header p{

        margin:
            5px auto 0;

        font-size:9.5px;

        line-height:1.4;

        max-width:100%;

    }

}


/* =========================================================
   MOBILE <= 390px
   ========================================================= */

@media (max-width:390px){

    .ai-header{

        padding:
            11px 9px 10px;

        margin-bottom:8px;

        border-radius:11px;

    }


    .ai-badge{

        padding:
            3px 8px;

        margin-bottom:5px;

        font-size:9px;

    }


    .ai-header h2{

        font-size:13px;

        line-height:1.3;

        margin-bottom:5px;

    }


    .ai-student-name{

        font-size:10px;

        line-height:1.35;

        margin:
            2px 0 1px;

    }

    .ai-student-name strong{

        font-size:10px;

    }


    .ai-exam-id{

        font-size:10px;

        line-height:1.35;

        margin:
            1px 0 4px;

    }

    .ai-exam-id strong{

        font-size:10px;

    }


    .ai-header p{

        font-size:9px;

        line-height:1.35;

        margin-top:4px;

    }

}


/* =========================================================
   MOBILE <= 360px
   SIÊU GỌN NHƯNG KHÔNG BÓP CHỮ
   ========================================================= */

@media (max-width:360px){

    .ai-header{

        padding:
            10px 8px 9px;

        border-radius:10px;

    }


    .ai-badge{

        font-size:8.5px;

        padding:
            3px 7px;

    }


    .ai-header h2{

        font-size:12px;

        line-height:1.3;

    }


    .ai-student-name,
    .ai-student-name strong{

        font-size:9.5px;

    }


    .ai-exam-id,
    .ai-exam-id strong{

        font-size:9.5px;

    }


    .ai-header p{

        font-size:8.5px;

        line-height:1.3;

    }

}

}
/* =========================
   MODAL XÁC NHẬN LÀM BÀI
========================= */

.exam-confirm-overlay{

    position:fixed;

    inset:0;

    background:rgba(15,23,42,.45);

    backdrop-filter:blur(4px);

    display:flex;

    align-items:center;

    justify-content:center;

    padding:20px;

    opacity:0;

    visibility:hidden;

    transition:
        opacity .2s ease,
        visibility .2s ease;

    z-index:99999;

}


/* HIỆN MODAL */

.exam-confirm-overlay.show{

    opacity:1;

    visibility:visible;

}


/* =========================
   HỘP MODAL
========================= */

.exam-confirm-modal{

    width:100%;

    max-width:390px;

    background:#ffffff;

    border-radius:18px;

    padding:24px;

    text-align:center;

    box-shadow:
        0 20px 60px rgba(15,23,42,.22);

    transform:
        translateY(15px)
        scale(.96);

    transition:
        transform .25s ease;

}


.exam-confirm-overlay.show
.exam-confirm-modal{

    transform:
        translateY(0)
        scale(1);

}


/* =========================
   ICON
========================= */

.exam-confirm-icon{

    width:58px;

    height:58px;

    margin:0 auto 12px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #dbeafe
        );

    font-size:28px;

}


/* =========================
   TIÊU ĐỀ
========================= */

.exam-confirm-title{

    font-size:20px;

    font-weight:900;

    color:#0f172a;

    margin-bottom:8px;

}


/* =========================
   TÊN ĐỀ
========================= */

.exam-confirm-name{

    font-size:14px;

    font-weight:800;

    color:#2563eb;

    line-height:1.5;

    margin-bottom:16px;

}


/* =========================
   LƯU Ý
========================= */

.exam-confirm-note{

    padding:11px 13px;

    border-radius:10px;

    background:#fff7ed;

    border:1px solid #fed7aa;

    color:#9a3412;

    font-size:13px;

    line-height:1.5;

}


.exam-confirm-note b{

    font-weight:900;

}


/* =========================
   LỜI CHÚC
========================= */

.exam-confirm-wish{

    margin-top:13px;

    color:#64748b;

    font-size:13px;

    font-weight:600;

}


/* =========================
   BUTTON
========================= */

.exam-confirm-actions{

    display:flex;

    gap:9px;

    margin-top:20px;

}


.exam-confirm-actions button{

    flex:1;

    border:none;

    cursor:pointer;

    padding:10px 12px;

    border-radius:9px;

    font-size:13px;

    font-weight:800;

    transition:
        transform .15s ease,
        opacity .15s ease;

}


.exam-confirm-actions button:hover{

    transform:translateY(-1px);

}


.exam-confirm-cancel{

    background:#f1f5f9;

    color:#475569;

}


.exam-confirm-start{

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color:white;

    box-shadow:
        0 5px 14px rgba(37,99,235,.22);

}


/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .exam-confirm-modal{

        max-width:330px;

        padding:20px;

        border-radius:15px;

    }

    .exam-confirm-icon{

        width:50px;

        height:50px;

        font-size:24px;

        border-radius:13px;

    }

    .exam-confirm-title{

        font-size:18px;

    }

    .exam-confirm-name{

        font-size:13px;

    }

    .exam-confirm-note{

        font-size:12px;

    }

    .exam-confirm-wish{

        font-size:12px;

    }

    .exam-confirm-actions button{

        padding:9px 8px;

        font-size:12px;

    }

}

/* =========================
   PAGINATION - MŨI TÊN
========================= */

.page-arrow{

    width:34px;
    height:34px;

    border:1px solid #dbe3ef;

    background:#ffffff;

    color:#475569;

    border-radius:8px;

    font-size:22px;
    font-weight:600;

    line-height:1;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:
        all 0.2s ease;

}


/* HOVER */

.page-arrow:hover{

    background:#eff6ff;

    color:#2563eb;

    border-color:#93c5fd;

    transform:translateY(-1px);

}


/* TRANG ĐẦU / CUỐI */

.page-arrow:disabled{

    opacity:0.35;

    cursor:not-allowed;

    transform:none;

}


/* =========================
   KHOẢNG CÁCH GIỮA
   MŨI TÊN VÀ TAB SỐ
========================= */

.table-pagination{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:6px;

}

/* =========================
   GIẢM FONT NÚT BẢNG
========================= */

.exam-table .table-btn{

    font-size:calc(1em - 1px) !important;

}

#examSection{
    scroll-margin-top: 90px;
}

/* =========================
   ẨN SECTION-PILL TRÊN MOBILE
========================= */

@media (max-width: 768px){

    .section-pill{

        display:none;

    }

}

.user-card{
    cursor:pointer;
}

/* =========================
   USER CARD ACCOUNT
========================= */

.user-card{
    cursor:pointer;
    position:relative;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.user-card:hover{

    transform:translateY(-3px);

}

.user-account-hint{

    margin-top:14px;

    padding-top:12px;

    border-top:1px solid rgba(255,255,255,.15);

    display:flex;

    align-items:center;

    justify-content:space-between;

    font-size:13px;

    font-weight:600;

    color:rgba(255,255,255,.75);

}

.user-account-hint span{

    font-size:17px;

    transition:transform .2s ease;

}

.user-card:hover
.user-account-hint span{

    transform:translateX(4px);

}


/* =========================
   ACCOUNT MODAL
========================= */

.account-modal{

    position:fixed;

    inset:0;

    z-index:99999;

    display:none;

    align-items:center;

    justify-content:center;

    padding:20px;

    background:rgba(15,23,42,.65);

    backdrop-filter:blur(8px);

}

.account-modal.show{

    display:flex;

}

.account-modal-box{

    position:relative;

    width:100%;

    max-width:470px;

    max-height:90vh;

    overflow-y:auto;

    padding:28px;

    border-radius:24px;

    background:#fff;

    box-shadow:
        0 25px 70px rgba(15,23,42,.25);

    animation:
        accountModalIn .25s ease;

}

@keyframes accountModalIn{

    from{

        opacity:0;

        transform:translateY(20px) scale(.97);

    }

    to{

        opacity:1;

        transform:translateY(0) scale(1);

    }

}


/* CLOSE */

.account-modal-close{

    position:absolute;

    top:16px;

    right:16px;

    width:34px;

    height:34px;

    border:0;

    border-radius:50%;

    background:#f1f5f9;

    color:#475569;

    font-size:17px;

    cursor:pointer;

}

.account-modal-close:hover{

    background:#e2e8f0;

}


/* HEADER */

.account-header,
.password-header{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:25px;

}

.account-avatar{

    width:58px;

    height:58px;

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );

    color:white;

    font-size:24px;

    font-weight:800;

}

.account-title{

    font-size:22px;

    font-weight:800;

    color:#0f172a;

}

.account-subtitle{

    margin-top:4px;

    font-size:13px;

    color:#64748b;

}


/* INFORMATION */

.account-info-list{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.account-info-item{

    display:flex;

    align-items:center;

    gap:13px;

    padding:13px;

    border-radius:15px;

    background:#f8fafc;

    border:1px solid #e2e8f0;

}

.account-info-icon{

    width:40px;

    height:40px;

    border-radius:12px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#eff6ff;

    font-size:18px;

}

.account-info-label{

    font-size:11px;

    color:#64748b;

    margin-bottom:2px;

}

.account-info-value{

    font-size:14px;

    font-weight:700;

    color:#1e293b;

    word-break:break-word;

}


/* ACTION */

.account-actions{

    margin-top:20px;

}

.account-change-password{

    width:100%;

    padding:13px 16px;

    border:0;

    border-radius:14px;

    background:#eff6ff;

    color:#1d4ed8;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    transition:.2s;

}

.account-change-password:hover{

    background:#dbeafe;

}


/* =========================
   PASSWORD
========================= */

.password-icon{

    width:52px;

    height:52px;

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#3b82f6;

    font-size:23px;

    color: white;

}

.change-password-form{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.password-field{

    display:flex;

    flex-direction:column;

    gap:7px;

}

.password-field label{

    font-size:13px;

    font-weight:700;

    color:#334155;

}

.password-field input{

    width:100%;

    height:45px;

    padding:0 13px;

    border:1px solid #cbd5e1;

    border-radius:12px;

    outline:none;

    font-size:14px;

    transition:.2s;

}

.password-field input:focus{

    border-color:#2563eb;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.1);

}

.save-password-btn{

    margin-top:5px;

    height:46px;

    border:0;

    border-radius:13px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    color:#fff;

    font-size:14px;

    font-weight:800;

    cursor:pointer;

}

.save-password-btn:hover{

    filter:brightness(.96);

}

@media (max-width:768px){

    .account-modal{

        padding:14px;

    }

    .account-modal-box{

        padding:22px 18px;

        border-radius:20px;

    }

    .account-title{

        font-size:19px;

    }

    .account-info-value{

        font-size:13px;

    }

}

/* =========================
   PASSWORD EYE
========================= */

.password-input-wrap{
    position:relative;
    width:100%;
}


.password-input-wrap input{
    width:100%;
    padding-right:38px;
}


.password-eye{

    position:absolute;

    top:50%;
    right:12px;

    transform:translateY(-50%);

    width:24px;
    height:24px;

    padding:0;
    margin:0;

    border:none;
    background:transparent;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    color:#94a3b8;
}


.password-eye i{

    font-size:13px;

    line-height:1;

    transition:
        color .2s ease,
        transform .2s ease;
}


.password-eye:hover{
    color:#2563eb;
}


.password-eye:hover i{
    transform:scale(1.08);
}


/* ICON HEADER */

.password-icon i{
    font-size:18px;
}

/* =========================
   QUÊN MẬT KHẨU
========================= */

.account-forgot-password{

    display:flex;

    align-items:center;
    justify-content:center;

    width:100%;

    padding:13px 18px;

    margin-top:10px;

    border-radius:12px;

    background:rgba(37,99,235,.06);

    border:1px solid rgba(37,99,235,.12);

    color:#2563eb;

    font-size:14px;

    font-weight:600;

    text-decoration:none;

    cursor:pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        border-color .2s ease;

}


.account-forgot-password:hover{

    background:rgba(37,99,235,.11);

    border-color:rgba(37,99,235,.25);

    transform:translateY(-1px);

}

/* ==========================================================
   STUDENT EXAM HISTORY MODAL
   TEST / FORCE DISPLAY
========================================================== */

.student-exam-history-overlay{
    position:fixed;
    inset:0;

    width:100%;
    height:100%;

    display:none;

    align-items:center;
    justify-content:center;

    background:rgba(0,0,0,0.55);

    z-index:99999;
}

.student-exam-history-overlay.show{
    display:flex !important;
}

.student-exam-history-modal{
    position:relative;

    width:min(1100px, 92vw);
    max-height:90vh;

    overflow:hidden;

    background:#fff;
    border-radius:20px;

    box-shadow:0 20px 60px rgba(0,0,0,0.25);
}
/* ==========================================================
   STUDENT EXAM PROGRESS
   TIẾN ĐỘ LÀM ĐỀ CỦA TÔI
   Đồng bộ HOME PAGE — MODERN BLUE UI
========================================================== */


/* ==========================================================
   SECTION
========================================================== */

.student-exam-progress-section{

    margin-top:28px;

    padding:28px;

    background:#ffffff;

    border:1px solid var(--blue-border);

    border-radius:28px;

    box-shadow:
        0 10px 30px rgba(37,99,235,0.07);

    overflow:hidden;

}


/* ==========================================================
   HEADER
========================================================== */

.student-progress-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:24px;

}


.student-progress-title-wrap{

    display:flex;

    align-items:center;

    gap:14px;

}


.student-progress-icon{

    width:52px;

    height:52px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:18px;

    background:

        linear-gradient(
            135deg,
            #eff6ff,
            #dbeafe
        );

    border:1px solid #bfdbfe;

    font-size:24px;

    box-shadow:
        0 8px 20px rgba(37,99,235,0.08);

}


.student-progress-title{

    margin:0;

    font-size:20px;

    line-height:1.2;

    font-weight:900;

    color:var(--text-main);

    letter-spacing:-0.3px;

}


.student-progress-subtitle{

    margin:6px 0 0;

    font-size:13px;

    line-height:1.5;

    color:var(--text-soft);

    font-weight:600;

}


/* ==========================================================
   THỐNG KÊ
========================================================== */

.student-progress-stats{

    display:grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:14px;

    margin-bottom:22px;

}


.student-progress-stat{

    min-height:86px;

    display:flex;

    align-items:center;

    gap:14px;

    padding:16px 18px;

    background:#f8fbff;

    border:1px solid var(--blue-border);

    border-radius:20px;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;

}


.student-progress-stat:hover{

    transform:translateY(-2px);

    border-color:#bfdbfe;

    box-shadow:
        0 10px 24px rgba(37,99,235,0.08);

}


/* ==========================================================
   ICON THỐNG KÊ
========================================================== */

.progress-stat-icon{

    width:46px;

    height:46px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:15px;

    background:#ffffff;

    border:1px solid var(--blue-border);

    font-size:21px;

}


.progress-stat-content{

    min-width:0;

    display:flex;

    flex-direction:column;

    gap:3px;

}


.progress-stat-number{

    font-size:23px;

    line-height:1;

    font-weight:900;

    color:var(--text-main);

}


.progress-stat-label{

    font-size:12px;

    line-height:1.3;

    color:var(--text-soft);

    font-weight:700;

}


/* ==========================================================
   TABS
========================================================== */

.student-progress-tabs{

    display:flex;

    align-items:center;

    gap:8px;

    margin-bottom:16px;

    padding:5px;

    width:max-content;

    max-width:100%;

    background:#f1f5f9;

    border:1px solid #e2e8f0;

    border-radius:16px;

}


.student-progress-tab{

    height:38px;

    padding:0 15px;

    border:0;

    border-radius:12px;

    background:transparent;

    color:#64748b;

    font-family:inherit;

    font-size:13px;

    font-weight:800;

    cursor:pointer;

    white-space:nowrap;

    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


.student-progress-tab:hover{

    color:#2563eb;

    background:#ffffff;

}


.student-progress-tab.active{

    color:#1d4ed8;

    background:#ffffff;

    box-shadow:
        0 4px 12px rgba(15,23,42,0.07);

}


/* ==========================================================
   SEARCH
========================================================== */

.student-progress-search{

    width:100%;

    height:46px;

    display:flex;

    align-items:center;

    gap:10px;

    padding:0 15px;

    margin-bottom:18px;

    background:#f8fbff;

    border:1px solid var(--blue-border);

    border-radius:16px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.student-progress-search > span{

    flex-shrink:0;

    font-size:17px;

    line-height:1;

}


.student-progress-search-input{

    width:100%;

    height:100%;

    border:0;

    outline:0;

    background:transparent;

    color:var(--text-main);

    font-family:inherit;

    font-size:13px;

    font-weight:600;

}


.student-progress-search-input::placeholder{

    color:#94a3b8;

    font-weight:500;

}


.student-progress-search:focus-within{

    background:#ffffff;

    border-color:#93c5fd;

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.08);

}


/* ==========================================================
   DANH SÁCH
========================================================== */

.student-progress-list{

    display:flex;

    flex-direction:column;

    gap:10px;

}


/* ==========================================================
   EXAM ROW
========================================================== */

.student-progress-exam-row{

    min-height:76px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:18px;

    padding:14px 16px;

    background:#ffffff;

    border:1px solid #e2e8f0;

    border-radius:18px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.student-progress-exam-row:hover{

    transform:translateY(-1px);

    background:#fbfdff;

    border-color:#bfdbfe;

    box-shadow:
        0 8px 22px rgba(37,99,235,0.07);

}


/* ==========================================================
   MAIN CONTENT
========================================================== */

.progress-exam-main{

    min-width:0;

    flex:1;

    display:flex;

    align-items:center;

    gap:13px;

}


/* ==========================================================
   STATUS ICON
========================================================== */

.progress-exam-status{

    width:38px;

    height:38px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:13px;

    font-size:17px;

    font-weight:900;

}


.progress-exam-status.done{

    color:#059669;

    background:#ecfdf5;

    border:1px solid #a7f3d0;

}


.progress-exam-status.undone{

    color:#d97706;

    background:#fffbeb;

    border:1px solid #fde68a;

}


/* ==========================================================
   EXAM INFO
========================================================== */

.progress-exam-info{

    min-width:0;

    display:flex;

    flex-direction:column;

    gap:6px;

}


.progress-exam-title{

    min-width:0;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    color:var(--text-main);

    font-size:14px;

    font-weight:850;

    line-height:1.3;

}


.progress-exam-meta{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:6px 12px;

    color:#94a3b8;

    font-size:11px;

    font-weight:600;

}


.progress-exam-meta span{

    display:inline-flex;

    align-items:center;

    white-space:nowrap;

}


.progress-exam-meta span + span{

    position:relative;

}


.progress-exam-meta span + span::before{

    content:"";

    width:3px;

    height:3px;

    margin-right:9px;

    border-radius:50%;

    background:#cbd5e1;

}


/* ==========================================================
   RIGHT AREA
========================================================== */

.progress-exam-right{

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:9px;

}


/* ==========================================================
   STATUS BADGE
========================================================== */

.progress-status-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-height:30px;

    padding:0 10px;

    border-radius:999px;

    font-size:11px;

    font-weight:800;

    white-space:nowrap;

}


.progress-status-badge.done{

    color:#047857;

    background:#ecfdf5;

    border:1px solid #a7f3d0;

}


.progress-status-badge.undone{

    color:#b45309;

    background:#fffbeb;

    border:1px solid #fde68a;

}


/* ==========================================================
   ACTION BUTTON
========================================================== */

.progress-exam-btn{

    height:34px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:0 12px;

    border-radius:11px;

    text-decoration:none;

    font-family:inherit;

    font-size:11px;

    font-weight:800;

    white-space:nowrap;

    cursor:pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;

}


/* ĐÃ LÀM */

.progress-exam-btn.done{

    color:#1d4ed8;

    background:#eff6ff;

    border:1px solid #bfdbfe;

}


.progress-exam-btn.done:hover{

    background:#dbeafe;

    border-color:#93c5fd;

    transform:translateY(-1px);

    box-shadow:
        0 6px 15px rgba(37,99,235,0.12);

}


/* CHƯA LÀM */

.progress-exam-btn.undone{

    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    border:1px solid #2563eb;

    box-shadow:
        0 5px 12px rgba(37,99,235,0.18);

}


.progress-exam-btn.undone:hover{

    transform:translateY(-1px);

    box-shadow:
        0 8px 18px rgba(37,99,235,0.24);

}


/* ==========================================================
   EMPTY
========================================================== */

.student-progress-empty{

    padding:38px 20px;

    text-align:center;

    color:#64748b;

    font-size:13px;

    font-weight:600;

    background:#f8fbff;

    border:1px dashed #bfdbfe;

    border-radius:18px;

}


.student-progress-empty-icon{

    margin-bottom:8px;

    font-size:30px;

}


/* ==========================================================
   CHƯA ĐĂNG NHẬP
========================================================== */

.student-progress-login{

    display:flex;

    align-items:center;

    gap:16px;

    padding:20px;

    background:#f8fbff;

    border:1px solid var(--blue-border);

    border-radius:20px;

}


.student-progress-login-icon{

    width:46px;

    height:46px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:15px;

    background:#ffffff;

    border:1px solid var(--blue-border);

    font-size:21px;

}


.student-progress-login-content{

    min-width:0;

    flex:1;

    display:flex;

    flex-direction:column;

    gap:4px;

}


.student-progress-login-content strong{

    color:var(--text-main);

    font-size:14px;

    font-weight:850;

}


.student-progress-login-content span{

    color:var(--text-soft);

    font-size:12px;

    line-height:1.5;

    font-weight:500;

}


.student-progress-login-btn{

    height:38px;

    flex-shrink:0;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:0 16px;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color:#ffffff;

    text-decoration:none;

    font-size:12px;

    font-weight:800;

    box-shadow:
        0 7px 16px rgba(37,99,235,0.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.student-progress-login-btn:hover{

    transform:translateY(-1px);

    box-shadow:
        0 10px 20px rgba(37,99,235,0.25);

}


/* ==========================================================
   TABLET
========================================================== */

@media(max-width:900px){

    .student-progress-stats{

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }


    .student-progress-stat{

        padding:14px;

    }


    .progress-stat-icon{

        width:42px;

        height:42px;

        font-size:19px;

    }


    .progress-stat-number{

        font-size:21px;

    }


    .progress-exam-right{

        gap:6px;

    }


    .progress-status-badge{

        display:none;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:768px){

    .student-exam-progress-section{

        margin-top:20px;

        padding:18px;

        border-radius:22px;

    }


    /* HEADER */

    .student-progress-header{

        margin-bottom:18px;

    }


    .student-progress-title-wrap{

        gap:11px;

    }


    .student-progress-icon{

        width:44px;

        height:44px;

        border-radius:15px;

        font-size:21px;

    }


    .student-progress-title{

        font-size:18px;

    }


    .student-progress-subtitle{

        margin-top:4px;

        font-size:11px;

    }


    /* STATS */

    .student-progress-stats{

        gap:8px;

        margin-bottom:16px;

    }


    .student-progress-stat{

        min-height:70px;

        flex-direction:column;

        justify-content:center;

        gap:6px;

        padding:10px 6px;

        border-radius:16px;

        text-align:center;

    }


    .progress-stat-icon{

        width:32px;

        height:32px;

        border-radius:10px;

        font-size:15px;

    }


    .progress-stat-content{

        align-items:center;

        gap:2px;

    }


    .progress-stat-number{

        font-size:18px;

    }


    .progress-stat-label{

        font-size:9px;

    }


    /* TABS */

    .student-progress-tabs{

        width:100%;

        gap:4px;

        margin-bottom:12px;

        padding:4px;

        border-radius:13px;

    }


    .student-progress-tab{

        flex:1;

        height:34px;

        padding:0 5px;

        border-radius:9px;

        font-size:10px;

    }


    /* SEARCH */

    .student-progress-search{

        height:42px;

        margin-bottom:12px;

        padding:0 12px;

        border-radius:13px;

    }


    .student-progress-search-input{

        font-size:12px;

    }


    /* LIST */

    .student-progress-list{

        gap:8px;

    }


    /* ROW */

    .student-progress-exam-row{

        min-height:0;

        align-items:center;

        gap:8px;

        padding:11px;

        border-radius:15px;

    }


    .progress-exam-main{

        gap:9px;

        min-width:0;

    }


    /* STATUS */

    .progress-exam-status{

        width:32px;

        height:32px;

        border-radius:10px;

        font-size:14px;

    }


    /* INFO */

    .progress-exam-info{

        gap:4px;

        min-width:0;

    }


    .progress-exam-title{

        font-size:12px;

        line-height:1.3;

    }


    .progress-exam-meta{

        gap:4px 8px;

        font-size:9px;

    }


    .progress-exam-meta span + span::before{

        margin-right:6px;

    }


    /* RIGHT */

    .progress-exam-right{

        gap:0;

    }


    .progress-exam-btn{

        height:31px;

        padding:0 8px;

        border-radius:9px;

        font-size:9px;

    }


    /* LOGIN */

    .student-progress-login{

        flex-wrap:wrap;

        gap:12px;

        padding:15px;

        border-radius:16px;

    }


    .student-progress-login-icon{

        width:38px;

        height:38px;

        border-radius:12px;

        font-size:17px;

    }


    .student-progress-login-content{

        flex:1;

    }


    .student-progress-login-content strong{

        font-size:12px;

    }


    .student-progress-login-content span{

        font-size:10px;

    }


    .student-progress-login-btn{

        width:100%;

        height:35px;

        border-radius:10px;

        font-size:11px;

    }

}


/* ==========================================================
   MOBILE NHỎ
========================================================== */

@media(max-width:420px){

    .student-exam-progress-section{

        padding:14px;

        border-radius:19px;

    }


    .student-progress-title{

        font-size:16px;

    }


    .student-progress-subtitle{

        font-size:10px;

    }


    .student-progress-stat{

        min-height:66px;

        padding:8px 4px;

    }


    .progress-stat-number{

        font-size:17px;

    }


    .progress-stat-label{

        font-size:8px;

    }


    .progress-exam-row{

        padding:9px;

    }


    .progress-exam-status{

        width:29px;

        height:29px;

        font-size:13px;

    }


    .progress-exam-title{

        font-size:11px;

    }


    .progress-exam-meta{

        font-size:8px;

    }


    .progress-exam-btn{

        padding:0 7px;

        font-size:8px;

    }

}

/* ==========================================================
   PAGINATION
========================================================== */

.student-progress-pagination{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:6px;

    margin-top:18px;

    padding-top:16px;

    border-top:1px solid #eef2f7;

}


.student-progress-page-btn{

    width:34px;

    height:34px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:0;

    border:1px solid #dbeafe;

    border-radius:10px;

    background:#ffffff;

    color:#64748b;

    font-family:inherit;

    font-size:12px;

    font-weight:800;

    cursor:pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.student-progress-page-btn:hover:not(:disabled){

    color:#1d4ed8;

    background:#eff6ff;

    border-color:#bfdbfe;

    transform:translateY(-1px);

}


.student-progress-page-btn.active{

    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    border-color:#2563eb;

    box-shadow:
        0 5px 12px rgba(37,99,235,0.20);

}


.student-progress-page-btn:disabled{

    opacity:.4;

    cursor:not-allowed;

    background:#f8fafc;

}


.student-progress-page-prev,
.student-progress-page-next{

    font-size:21px;

    font-weight:500;

    line-height:1;

}


.student-progress-page-dots{

    width:24px;

    height:34px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    color:#94a3b8;

    font-size:13px;

    font-weight:800;

}


/* ==========================================================
   MOBILE PAGINATION
========================================================== */

@media(max-width:768px){

    .student-progress-pagination{

        gap:4px;

        margin-top:14px;

        padding-top:13px;

    }


    .student-progress-page-btn{

        width:30px;

        height:30px;

        border-radius:8px;

        font-size:10px;

    }


    .student-progress-page-prev,
    .student-progress-page-next{

        font-size:18px;

    }


    .student-progress-page-dots{

        width:18px;

        height:30px;

        font-size:11px;

    }

}
/* ==========================================================
   PAGINATION - STUDENT EXAM PROGRESS
========================================================== */

.student-progress-pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    margin-top:20px;

    padding:4px 0 8px;

}


.student-progress-page-btn{

    min-width:38px;

    height:38px;

    padding:0 10px;

    border-radius:12px;

    border:1px solid var(--blue-border);

    background:#ffffff;

    color:var(--text-main);

    font-size:13px;

    font-weight:800;

    cursor:pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.student-progress-page-btn:hover:not(:disabled){

    transform:translateY(-2px);

    background:var(--blue-soft);

    color:var(--blue-main);

    box-shadow:
        0 6px 16px rgba(37,99,235,0.10);

}


.student-progress-page-btn.active{

    background:
        linear-gradient(
            135deg,
            var(--blue-main),
            var(--blue-dark)
        );

    color:#ffffff;

    border-color:var(--blue-main);

    box-shadow:
        0 6px 16px rgba(37,99,235,0.20);

}


.student-progress-page-btn:disabled{

    opacity:.4;

    cursor:not-allowed;

}


/* MOBILE */

@media(max-width:768px){

    .student-progress-pagination{

        gap:6px;

        margin-top:16px;

    }


    .student-progress-page-btn{

        min-width:34px;

        height:34px;

        padding:0 8px;

        border-radius:10px;

        font-size:12px;

    }

}

/* ========================================
   QUẢN LÝ TÀI KHOẢN
======================================== */

.user-account-manage{

    display:inline-flex;

    align-items:center;

    gap:6px;

    margin-top:5px;

    width:max-content;

    color:#93c5fd;

    font-size:12px;

    font-weight:700;

    cursor:pointer;

    transition:
        color .2s ease,
        transform .2s ease;

}


.user-account-manage:hover{

    color:#ffffff;

    transform:translateX(2px);

}


.user-account-icon{

    font-size:14px;

}


.user-account-arrow{

    font-size:14px;

    transition:
        transform .2s ease;

}


.user-account-manage:hover
.user-account-arrow{

    transform:translateX(3px);

}

/* ==========================================================
   EXAM TABLE — KHO ĐỀ ÔN LUYỆN
   ĐỒNG BỘ VỚI STUDENT EXAM PROGRESS
========================================================== */


/* ==========================================================
   WRAPPER
========================================================== */

.exam-table-wrapper{

    margin-top:24px;

    width:100%;

    background:#ffffff;

    border:1px solid var(--blue-border);

    border-radius:28px;

    padding:24px;

    box-shadow:
        0 10px 30px rgba(37,99,235,0.08);

    overflow:hidden;

    transition:
        box-shadow .25s ease,
        transform .25s ease;

}


/* ==========================================================
   TITLE
========================================================== */

.exam-table-wrapper .table-title{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:18px;

    color:var(--text-main);

    font-size:20px;

    font-weight:900;

    line-height:1.3;

}


/* ==========================================================
   SEARCH
========================================================== */

.exam-search{

    width:100%;

    height:48px;

    display:flex;

    align-items:center;

    gap:10px;

    padding:0 15px;

    margin-bottom:10px;

    background:#f8fbff;

    border:1px solid var(--blue-border);

    border-radius:15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.exam-search:focus-within{

    background:#ffffff;

    border-color:#93c5fd;

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.08);

}


.exam-search .search-icon{

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

    font-size:16px;

    opacity:.75;

}


.exam-search .search-input{

    width:100%;

    height:100%;

    border:none;

    outline:none;

    background:transparent;

    color:var(--text-main);

    font-family:inherit;

    font-size:14px;

    font-weight:600;

}


.exam-search .search-input::placeholder{

    color:#94a3b8;

    font-weight:500;

}


/* ==========================================================
   TABLE CONTAINER
========================================================== */

.exam-table{

    width:100%;

    border-collapse:separate;

    border-spacing:0;

    overflow:hidden;

    border:1px solid #e5edf8;

    border-radius:18px;

    background:#ffffff;

}


/* ==========================================================
   TABLE HEADER
========================================================== */

.exam-table thead{

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fbff
        );

}


.exam-table th{

    height:50px;

    padding:12px 14px;

    border-bottom:1px solid #dbeafe;

    color:#1e3a8a;

    font-size:12px;

    font-weight:900;

    text-align:left;

    white-space:nowrap;

}


.exam-table th:first-child{

    border-top-left-radius:18px;

}


.exam-table th:last-child{

    border-top-right-radius:18px;

}


/* ==========================================================
   TABLE BODY
========================================================== */

.exam-table tbody tr{

    background:#ffffff;

    transition:
        background .2s ease,
        box-shadow .2s ease;

}


.exam-table tbody tr:hover{

    background:#f8fbff;

}


.exam-table td{

    padding:14px;

    border-bottom:1px solid #edf2f7;

    color:#334155;

    font-size:13px;

    font-weight:600;

    vertical-align:middle;

}


.exam-table tbody tr:last-child td{

    border-bottom:none;

}


.exam-table tbody tr:last-child td:first-child{

    border-bottom-left-radius:18px;

}


.exam-table tbody tr:last-child td:last-child{

    border-bottom-right-radius:18px;

}


/* ==========================================================
   ID
========================================================== */

.exam-table td:first-child{

    width:70px;

    color:#2563eb;

    font-weight:900;

}


/* ==========================================================
   TÊN ĐỀ
========================================================== */

.exam-table td:nth-child(2){

    color:#0f172a;

    font-weight:800;

    min-width:220px;

}


/* ==========================================================
   NGÀY UPLOAD
========================================================== */

.exam-table td:nth-child(3){

    color:#64748b;

    white-space:nowrap;

}


/* ==========================================================
   SỐ CÂU
========================================================== */

.exam-table td:nth-child(4){

    color:#475569;

    font-weight:800;

    white-space:nowrap;

}


/* ==========================================================
   STATUS BADGE
========================================================== */

.exam-table .tag-done,
.exam-table .tag-new{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-height:30px;

    padding:5px 11px;

    border-radius:999px;

    font-size:11px;

    font-weight:900;

    white-space:nowrap;

}

/* ==========================================================
   ACTION — CĂN GIỮA
========================================================== */

.exam-table th:nth-child(6){
    text-align:center;
}

/* ĐÃ LÀM */

.exam-table .tag-done{

    background:#ecfdf5;

    border:1px solid #a7f3d0;

    color:#047857;

}


/* ==========================================================
   SẴN SÀNG - XANH LÁ NHẸ
========================================================== */

.exam-table .tag-new{

    background:#dcfce7;

    border:1px solid #bbf7d0;

    color:#166534;

}

/* ==========================================================
   ACTION CELL
========================================================== */

.exam-table .action-cell{

    text-align:center;

    white-space:nowrap;

}


/* ==========================================================
   TABLE BUTTON
========================================================== */

.exam-table .table-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:108px;

    min-height:36px;

    padding:7px 13px;

    border-radius:11px;

    background:#eff6ff;

    border:1px solid #bfdbfe;

    color:#2563eb;

    text-decoration:none;

    font-size:12px;

    font-weight:900;

    white-space:nowrap;

    cursor:pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;

}


.exam-table .table-btn:hover{

    transform:translateY(-2px);

    background:#dbeafe;

    color:#1d4ed8;

    box-shadow:
        0 7px 16px rgba(37,99,235,0.14);

}


/* ==========================================================
   ĐÃ LÀM — NÚT XEM LẠI
========================================================== */

.exam-table .table-btn.done{

    background:#ecfdf5;

    border-color:#a7f3d0;

    color:#047857;

}


.exam-table .table-btn.done:hover{

    background:#d1fae5;

    color:#065f46;

    box-shadow:
        0 7px 16px rgba(16,185,129,0.14);

}


/* ==========================================================
   PAGINATION
========================================================== */

.exam-table-wrapper .table-pagination{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    margin-top:20px;

    padding:2px 0 4px;

}


/*
   Nếu JS đang tạo button phân trang
   thì đồng bộ luôn với khu vực tiến độ
*/

.exam-table-wrapper .table-pagination button{

    min-width:38px;

    height:38px;

    padding:0 10px;

    border-radius:12px;

    border:1px solid var(--blue-border);

    background:#ffffff;

    color:var(--text-main);

    font-family:inherit;

    font-size:12px;

    font-weight:800;

    cursor:pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.exam-table-wrapper .table-pagination button:hover{

    transform:translateY(-2px);

    background:var(--blue-soft);

    color:var(--blue-main);

    box-shadow:
        0 6px 16px rgba(37,99,235,0.10);

}


.exam-table-wrapper .table-pagination button.active{

    background:
        linear-gradient(
            135deg,
            var(--blue-main),
            var(--blue-dark)
        );

    color:#ffffff;

    border-color:var(--blue-main);

    box-shadow:
        0 6px 16px rgba(37,99,235,0.20);

}


.exam-table-wrapper .table-pagination button:disabled{

    opacity:.4;

    cursor:not-allowed;

}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:768px){

    .exam-table-wrapper{

        margin-top:18px;

        padding:16px;

        border-radius:22px;

    }


    .exam-table-wrapper .table-title{

        margin-bottom:14px;

        font-size:17px;

    }


    .exam-search{

        height:44px;

        margin-bottom:15px;

        border-radius:13px;

    }


    /*
       Cho bảng cuộn ngang trên mobile
    */

    .exam-table{

        min-width:760px;

        border-radius:14px;

    }


    .exam-table th{

        height:44px;

        padding:10px 11px;

        font-size:11px;

    }


    .exam-table td{

        padding:11px;

        font-size:12px;

    }


    .exam-table .table-btn{

        min-width:96px;

        min-height:34px;

        padding:6px 10px;

        font-size:11px;

    }


    .exam-table .tag-done,
    .exam-table .tag-new{

        min-height:27px;

        padding:4px 9px;

        font-size:10px;

    }


    .exam-table-wrapper .table-pagination{

        gap:6px;

        margin-top:16px;

    }


    .exam-table-wrapper .table-pagination button{

        min-width:34px;

        height:34px;

        padding:0 8px;

        border-radius:10px;

        font-size:11px;

    }

}


/* ==========================================================
   MOBILE NHỎ
========================================================== */

@media(max-width:420px){

    .exam-table-wrapper{

        padding:13px;

        border-radius:20px;

    }


    .exam-table-wrapper .table-title{

        font-size:16px;

    }


    .exam-search{

        height:42px;

    }


    .exam-search .search-input{

        font-size:13px;

    }

}

/* ==========================================================
   EXAM TABLE — MOBILE FINAL OVERRIDE
   GHI ĐÈ CSS MOBILE PHÍA TRÊN
   KHÔNG ẢNH HƯỞNG DESKTOP
========================================================== */

@media (max-width:768px){

    /* ======================================================
       WRAPPER
    ====================================================== */

    .exam-table-wrapper{

        width:100%;

        margin-top:18px;

        padding:14px;

        border-radius:22px;

        overflow:hidden;

    }


    /* ======================================================
       TITLE
    ====================================================== */

    .exam-table-wrapper .table-title{

        display:flex;

        align-items:center;

        gap:8px;

        margin-bottom:13px;

        font-size:16px;

        line-height:1.35;

    }


    /* ======================================================
       SEARCH
    ====================================================== */

    .exam-search{

        width:100%;

        height:43px;

        margin-bottom:14px;

        padding:0 12px;

        gap:8px;

        border-radius:12px;

    }


    .exam-search .search-icon{

        font-size:14px;

    }


    .exam-search .search-input{

        font-size:13px;

        min-width:0;

    }


    /* ======================================================
       TABLE SCROLL
       Chỉ bảng cuộn ngang
    ====================================================== */

    .exam-table{

        width:100%;

        min-width:700px;

        border-radius:14px;

    }


    /* ======================================================
       HEADER
    ====================================================== */

    .exam-table th{

        height:43px;

        padding:9px 10px;

        font-size:10px;

        white-space:nowrap;

    }


    /* ======================================================
       BODY
    ====================================================== */

    .exam-table td{

        padding:10px;

        font-size:11px;

        white-space:nowrap;

    }


    /* ======================================================
       ID
    ====================================================== */

    .exam-table td:first-child{

        width:55px;

        min-width:55px;

        text-align:center;

    }


    /* ======================================================
       TÊN ĐỀ
    ====================================================== */

    .exam-table td:nth-child(2){

        min-width:200px;

        max-width:250px;

        overflow:hidden;

        text-overflow:ellipsis;

        white-space:nowrap;

    }


    /* ======================================================
       NGÀY
    ====================================================== */

    .exam-table td:nth-child(3){

        min-width:105px;

    }


    /* ======================================================
       SỐ CÂU
    ====================================================== */

    .exam-table td:nth-child(4){

        min-width:65px;

        text-align:center;

    }


    /* ======================================================
       TRẠNG THÁI
    ====================================================== */

    .exam-table td:nth-child(5){

        min-width:95px;

        text-align:center;

    }


    .exam-table .tag-done,
    .exam-table .tag-new{

        min-height:26px;

        padding:4px 8px;

        border-radius:999px;

        font-size:9px;

        line-height:1;

    }


    /* ======================================================
       ACTION
    ====================================================== */

    .exam-table .action-cell{

        min-width:110px;

        padding-right:10px;

        text-align:center;

    }


    .exam-table .table-btn{

        min-width:92px;

        min-height:32px;

        padding:5px 8px;

        border-radius:10px;

        font-size:10px;

    }


    /* ======================================================
       PAGINATION
    ====================================================== */

    .exam-table-wrapper .table-pagination{

        width:100%;

        display:flex;

        align-items:center;

        justify-content:center;

        flex-wrap:wrap;

        gap:5px;

        margin-top:14px;

        padding:0;

    }


    .exam-table-wrapper .table-pagination button{

        min-width:32px;

        width:32px;

        height:32px;

        padding:0;

        border-radius:9px;

        font-size:10px;

    }

}


/* ==========================================================
   MOBILE RẤT NHỎ
========================================================== */

@media (max-width:420px){

    .exam-table-wrapper{

        padding:12px;

        border-radius:20px;

    }


    .exam-table-wrapper .table-title{

        font-size:15px;

        margin-bottom:11px;

    }


    .exam-search{

        height:40px;

        padding:0 11px;

        border-radius:11px;

    }


    .exam-search .search-input{

        font-size:12px;

    }


    .exam-table{

        min-width:680px;

    }


    .exam-table th{

        padding:8px 9px;

        font-size:9px;

    }


    .exam-table td{

        padding:9px;

        font-size:10px;

    }


    .exam-table td:nth-child(2){

        min-width:180px;

        max-width:220px;

    }


    .exam-table .table-btn{

        min-width:86px;

        min-height:30px;

        padding:5px 7px;

        font-size:9px;

    }


    .exam-table .tag-done,
    .exam-table .tag-new{

        min-height:24px;

        padding:4px 7px;

        font-size:8px;

    }


    .exam-table-wrapper .table-pagination{

        gap:4px;

        margin-top:12px;

    }


    .exam-table-wrapper .table-pagination button{

        width:30px;

        min-width:30px;

        height:30px;

        border-radius:8px;

        font-size:9px;

    }

}

/* ==========================================================
   HERO — NÚT TIẾN ĐỘ
========================================================== */

.progress-btn{

    background:
        rgba(255,255,255,0.10);

    color:white;

    border:
        1px solid rgba(255,255,255,0.12);

    backdrop-filter:blur(12px);

}


.progress-btn:hover{

    background:
        rgba(255,255,255,0.16);

}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:768px){

    .progress-btn{

        min-width:auto;

        padding:0 15px;

    }

}


@media (max-width:768px){

    .progress-btn{
        display:none !important;
    }

}


/* ==========================================================
   GLOBAL FLASH NOTIFICATION
========================================================== */

.global-flash-container{

    position:fixed;

    top:24px;
    right:24px;

    z-index:99999;

    display:flex;

    flex-direction:column;

    gap:10px;

    width:min(390px, calc(100vw - 32px));

    pointer-events:none;

}


/* =========================
   FLASH
========================= */

.global-flash{

    display:flex;

    align-items:center;

    gap:12px;

    padding:13px 14px;

    background:#ffffff;

    border-radius:12px;

    border-left:4px solid;

    box-shadow:
        0 12px 30px rgba(0,0,0,.12),
        0 3px 8px rgba(0,0,0,.06);

    animation:
        globalFlashIn .35s ease;

    pointer-events:auto;

}


/* =========================
   SUCCESS
========================= */

.global-flash-success{

    border-left-color:#22c55e;

}


/* =========================
   ERROR
========================= */

.global-flash-error{

    border-left-color:#ef4444;

}


/* =========================
   WARNING
========================= */

.global-flash-warning{

    border-left-color:#f59e0b;

}


/* =========================
   ICON
========================= */

.global-flash-icon{

    width:30px;
    height:30px;

    flex:0 0 30px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:50%;

    font-size:15px;

    font-weight:800;

}


/* SUCCESS ICON */

.global-flash-success .global-flash-icon{

    background:#dcfce7;

    color:#16a34a;

}


/* ERROR ICON */

.global-flash-error .global-flash-icon{

    background:#fee2e2;

    color:#dc2626;

}


/* WARNING ICON */

.global-flash-warning .global-flash-icon{

    background:#fef3c7;

    color:#d97706;

}


/* =========================
   MESSAGE
========================= */

.global-flash-message{

    flex:1;

    color:#334155;

    font-size:14px;

    font-weight:600;

    line-height:1.4;

}


/* =========================
   CLOSE
========================= */

.global-flash-close{

    border:0;

    background:transparent;

    color:#94a3b8;

    font-size:21px;

    line-height:1;

    cursor:pointer;

    padding:2px 4px;

    transition:.2s;

}


.global-flash-close:hover{

    color:#475569;

}


/* =========================
   ANIMATION
========================= */

@keyframes globalFlashIn{

    from{

        opacity:0;

        transform:translateX(30px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}


/* =========================
   MOBILE
========================= */

@media(max-width:600px){

    .global-flash-container{

        top:14px;

        right:14px;

        left:14px;

        width:auto;

    }

}


/* =========================
   AUTO HIDE
========================= */

.global-flash-hide{

    animation:
        globalFlashOut .5s ease forwards;

}


@keyframes globalFlashOut{

    from{

        opacity:1;

        transform:translateX(0);

    }

    to{

        opacity:0;

        transform:translateX(30px);

    }

}

/* ==========================================================
   MOBILE — KHO ĐỀ ÔN LUYỆN
   BẢNG GỌN — VẪN GIỮ ĐỦ CỘT
========================================================== */

@media(max-width:768px){

    /* ======================================================
       WRAPPER
    ====================================================== */

    .exam-table-wrapper{
        overflow-x:auto !important;
        overflow-y:hidden !important;

        padding:14px !important;
        border-radius:22px !important;

        -webkit-overflow-scrolling:touch;
        scrollbar-width:thin;
    }


    /* ======================================================
       TITLE
    ====================================================== */

    .exam-table-wrapper .table-title{
        margin-bottom:12px;
        font-size:17px;
        font-weight:900;
    }


    /* ======================================================
       SEARCH
    ====================================================== */

    .exam-search{
        height:42px !important;
        margin-bottom:12px !important;
        padding:0 12px !important;
        border-radius:13px !important;
    }

    .exam-search .search-input{
        font-size:12px !important;
    }


    /* ======================================================
       TABLE
    ====================================================== */

    .exam-table{
        width:100% !important;
        min-width:650px !important;

        border-collapse:separate !important;
        border-spacing:0 !important;
    }


    /* ======================================================
       HEADER
    ====================================================== */

    .exam-table th{
        height:40px !important;
        padding:8px 7px !important;

        font-size:9px !important;
        white-space:nowrap;
    }


    /* ======================================================
       BODY
    ====================================================== */

    .exam-table td{
        padding:9px 7px !important;
        font-size:10px !important;

        white-space:nowrap;
        vertical-align:middle;
    }


    /* ======================================================
       ID
    ====================================================== */

    .exam-table th:nth-child(1),
    .exam-table td:nth-child(1){
        width:38px !important;
        min-width:38px !important;
        text-align:center;
    }


    /* ======================================================
       TÊN ĐỀ
    ====================================================== */

    .exam-table th:nth-child(2),
    .exam-table td:nth-child(2){
        min-width:180px !important;
        max-width:220px !important;
    }

    .exam-table td:nth-child(2){
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:11px !important;
    }


    /* ======================================================
       NGÀY UPLOAD
    ====================================================== */

    .exam-table th:nth-child(3),
    .exam-table td:nth-child(3){
        width:85px !important;
        min-width:85px !important;

        text-align:center;
    }


    /* ======================================================
       SỐ CÂU
    ====================================================== */

    .exam-table th:nth-child(4),
    .exam-table td:nth-child(4){
        width:55px !important;
        min-width:55px !important;

        text-align:center;
    }


    /* ======================================================
       TRẠNG THÁI
    ====================================================== */

    .exam-table th:nth-child(5),
    .exam-table td:nth-child(5){
        width:88px !important;
        min-width:88px !important;

        text-align:center;
    }

    .exam-table .tag-done,
    .exam-table .tag-new{
        min-height:24px !important;
        padding:3px 7px !important;

        font-size:9px !important;
        border-radius:999px;
    }


    /* ======================================================
       HÀNH ĐỘNG
    ====================================================== */

    .exam-table th:nth-child(6),
    .exam-table td.action-cell{
        width:80px !important;
        min-width:80px !important;

        text-align:center !important;
    }


    /* ======================================================
       BUTTON
    ====================================================== */

    .exam-table .table-btn{
        min-width:68px !important;
        min-height:31px !important;

        padding:5px 7px !important;

        border-radius:9px !important;

        font-size:9px !important;
        font-weight:800;
    }


    /* ======================================================
       PAGINATION
    ====================================================== */

    .exam-table-wrapper .table-pagination{
        gap:6px;
        margin-top:14px;
    }

    .exam-table-wrapper .table-pagination button{
        min-width:34px;
        height:34px;
        padding:0 8px;

        border-radius:10px;
        font-size:10px;
    }

}


/* ==========================================================
   MOBILE NHỎ
========================================================== */

@media(max-width:420px){

    .exam-table-wrapper{
        padding:12px !important;
        border-radius:20px !important;
    }

    .exam-table-wrapper .table-title{
        font-size:16px;
    }

    .exam-search{
        height:40px !important;
    }

    .exam-table{
        min-width:600px !important;
    }

    .exam-table th{
        height:38px !important;
        padding:7px 5px !important;
        font-size:8px !important;
    }

    .exam-table td{
        padding:8px 5px !important;
        font-size:9px !important;
    }

    .exam-table th:nth-child(1),
    .exam-table td:nth-child(1){
        width:32px !important;
        min-width:32px !important;
    }

    .exam-table th:nth-child(2),
    .exam-table td:nth-child(2){
        min-width:155px !important;
    }

    .exam-table th:nth-child(3),
    .exam-table td:nth-child(3){
        width:75px !important;
        min-width:75px !important;
    }

    .exam-table th:nth-child(4),
    .exam-table td:nth-child(4){
        width:48px !important;
        min-width:48px !important;
    }

    .exam-table th:nth-child(5),
    .exam-table td:nth-child(5){
        width:78px !important;
        min-width:78px !important;
    }

    .exam-table th:nth-child(6),
    .exam-table td.action-cell{
        width:72px !important;
        min-width:72px !important;
    }

    .exam-table .tag-done,
    .exam-table .tag-new{
        min-height:22px !important;
        padding:2px 6px !important;
        font-size:8px !important;
    }

    .exam-table .table-btn{
        min-width:60px !important;
        min-height:28px !important;
        padding:4px 5px !important;
        font-size:8px !important;
    }

}

/* ==========================================================
   EXAM BANK SECTION
========================================================== */

.exam-bank-section{

    margin-top:28px;

    padding:28px;

    background:#ffffff;

    border:1px solid var(--blue-border);

    border-radius:28px;

    box-shadow:
        0 10px 30px rgba(37,99,235,0.07);

    overflow:hidden;
}


/* ==========================================================
   HEADER
========================================================== */

.exam-bank-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:22px;
}


.exam-bank-title-wrap{

    display:flex;

    align-items:center;

    gap:14px;
}


.exam-bank-icon{

    width:52px;
    height:52px;

    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #dbeafe
        );

    border:1px solid #bfdbfe;

    font-size:24px;

    box-shadow:
        0 8px 20px rgba(37,99,235,0.08);
}


.exam-bank-title{

    margin:0;

    color:var(--text-main);

    font-size:20px;

    line-height:1.2;

    font-weight:900;

    letter-spacing:-0.3px;
}


.exam-bank-subtitle{

    margin:6px 0 0;

    color:var(--text-soft);

    font-size:13px;

    line-height:1.5;

    font-weight:600;
}


/* ==========================================================
   SEARCH
========================================================== */

.exam-bank-section .exam-search{

    width:100%;

    height:46px;

    display:flex;

    align-items:center;

    gap:10px;

    padding:0 15px;

    margin-bottom:18px;

    background:#f8fbff;

    border:1px solid var(--blue-border);

    border-radius:16px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.exam-bank-section .search-icon{

    flex-shrink:0;

    font-size:17px;

    line-height:1;
}


.exam-bank-section .search-input{

    width:100%;

    height:100%;

    border:0;

    outline:0;

    background:transparent;

    color:var(--text-main);

    font-family:inherit;

    font-size:13px;

    font-weight:600;
}


.exam-bank-section .search-input::placeholder{

    color:#94a3b8;

    font-weight:500;
}


.exam-bank-section .exam-search:focus-within{

    background:#ffffff;

    border-color:#93c5fd;

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.08);
}


/* ==========================================================
   TABLE SCROLL
========================================================== */

.exam-table-scroll{

    width:100%;

    overflow-x:auto;

    overflow-y:hidden;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:thin;
}

/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:768px){

    .exam-bank-section{

        margin-top:20px;

        padding:18px;

        border-radius:22px;
    }


    .exam-bank-header{

        margin-bottom:16px;
    }


    .exam-bank-title-wrap{

        gap:11px;
    }


    .exam-bank-icon{

        width:44px;
        height:44px;

        border-radius:15px;

        font-size:21px;
    }


    .exam-bank-title{

        font-size:18px;
    }


    .exam-bank-subtitle{

        margin-top:4px;

        font-size:10px;
    }


    .exam-bank-section .exam-search{

        height:42px;

        margin-bottom:12px;

        padding:0 12px;

        border-radius:13px;
    }


    .exam-bank-section .search-input{

        font-size:12px;
    }


    .exam-table-scroll{

        margin:0;

        padding-bottom:3px;
    }


    .exam-table{

        min-width:650px;
    }

}


/* ==========================================================
   MOBILE NHỎ
========================================================== */

@media(max-width:420px){

    .exam-bank-section{

        padding:14px;

        border-radius:19px;
    }


    .exam-bank-title{

        font-size:16px;
    }


    .exam-bank-subtitle{

        font-size:9px;
    }


    .exam-bank-section .exam-search{

        height:40px;
    }


    .exam-table{

        min-width:600px;
    }

}

/* ==========================================================
   HOME SURVEY SECTION
========================================================== */

.home-survey-section {

    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;

}

.home-survey-container {

    width: 100%;

    max-width: 1180px;

    margin: 0 auto;

}

.home-survey-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    padding: 20px 24px;

    border-radius: 20px;

    background: white;

    border: 1px solid #dceaff;

    box-shadow:
        0 8px 30px rgba(30, 100, 180, 0.08);

}

.home-survey-left {

    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 0;

}

.home-survey-icon {

    width: 50px;

    height: 50px;

    flex: 0 0 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: #e8f0ff;

    font-size: 25px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.07);

}

.home-survey-content {

    min-width: 0;

}

.home-survey-title {

    font-size: 17px;

    font-weight: 750;

    color: #172033;

    margin-bottom: 4px;

}

.home-survey-description {

    font-size: 14px;

    line-height: 1.5;

    color: #667085;

}

.home-survey-right {

    flex: 0 0 auto;

}

.home-survey-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 44px;

    padding: 0 18px;

    border: none;

    border-radius: 12px;

    background: #2563eb;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}

.home-survey-btn:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.25);

}

.home-survey-btn-arrow {

    font-size: 18px;

    line-height: 1;

}

.home-survey-done {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 10px 14px;

    border-radius: 10px;

    background: #ecfdf3;

    color: #15803d;

    font-size: 13px;

    font-weight: 700;

}


/* ==========================================================
   SURVEY OVERLAY
========================================================== */

.student-survey-overlay {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(15, 23, 42, 0.65);

    backdrop-filter: blur(5px);

}

.student-survey-overlay.show {

    display: flex;

}


/* ==========================================================
   SURVEY MODAL
========================================================== */

.student-survey-modal {

    width: min(850px, 100%);

    max-height: calc(100vh - 40px);

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);

    animation:
        surveyModalIn 0.22s ease;

}

@keyframes surveyModalIn {

    from {

        opacity: 0;

        transform: translateY(20px) scale(0.98);

    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}


/* ==========================================================
   HEADER
========================================================== */

.student-survey-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 24px 18px;

    border-bottom: 1px solid #edf0f5;

}

.student-survey-header-content {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;

}

.student-survey-modal-icon {

    width: 48px;

    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #eff6ff;

    font-size: 24px;

}

.student-survey-header h2 {

    margin: 0 0 4px;

    font-size: 18px;

    color: #172033;

}

.student-survey-header p {

    margin: 0;

    font-size: 13px;

    line-height: 1.5;

    color: #667085;

}

.student-survey-close {

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    border: none;

    border-radius: 10px;

    background: #f5f6f8;

    color: #667085;

    font-size: 18px;

    cursor: pointer;

    transition: 0.2s ease;

}

.student-survey-close:hover {

    background: #fee2e2;

    color: #dc2626;

}


/* ==========================================================
   PROGRESS
========================================================== */

.student-survey-progress-wrap {

    padding: 12px 24px;

    background: #fafbfc;

    border-bottom: 1px solid #edf0f5;

}

.student-survey-progress-info {

    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 650;

    color: #667085;

}

.student-survey-progress {

    width: 100%;

    height: 6px;

    overflow: hidden;

    border-radius: 99px;

    background: #e5e7eb;

}

.student-survey-progress-bar {

    width: 0%;

    height: 100%;

    border-radius: inherit;

    background: #2563eb;

    transition: width 0.25s ease;

}


/* ==========================================================
   BODY
========================================================== */

.student-survey-body {

    flex: 1;

    overflow-y: auto;

    padding: 22px 24px 28px;

}

.student-survey-body::-webkit-scrollbar {

    width: 7px;

}

.student-survey-body::-webkit-scrollbar-track {

    background: transparent;

}

.student-survey-body::-webkit-scrollbar-thumb {

    border-radius: 99px;

    background: #cbd5e1;

}


/* ==========================================================
   QUESTION
========================================================== */

.survey-question {

    display: grid;

    grid-template-columns: 42px minmax(0, 1fr);

    gap: 14px;

    padding: 20px 0;

    border-bottom: 1px solid #edf0f5;

}

.survey-question:first-child {

    padding-top: 4px;

}

.survey-question:last-child {

    border-bottom: none;

}

.survey-question-number {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;

}

.survey-question-main {

    min-width: 0;

}

.survey-question-title {

    display: block;

    margin-bottom: 12px;

    color: #172033;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.55;

}

.survey-question-title span {

    color: #ef4444;

    margin-left: 3px;

}

.survey-note {

    margin-top: -6px;

    margin-bottom: 12px;

    color: #98a2b3;

    font-size: 12px;

}


/* ==========================================================
   RADIO
========================================================== */

.survey-options {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.survey-radio {

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 42px;

    padding: 9px 12px;

    border: 1px solid #e5e7eb;

    border-radius: 11px;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;

}

.survey-radio:hover {

    background: #f8fbff;

    border-color: #bfdbfe;

}

.survey-radio input {

    width: 17px;

    height: 17px;

    margin: 0;

    accent-color: #2563eb;

}

.survey-radio span {

    color: #344054;

    font-size: 13px;

}


/* ==========================================================
   CHECKBOX
========================================================== */

.survey-checkbox-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

}

.survey-checkbox {

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 42px;

    padding: 9px 12px;

    border: 1px solid #e5e7eb;

    border-radius: 11px;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;

}

.survey-checkbox:hover {

    background: #f8fbff;

    border-color: #bfdbfe;

}

.survey-checkbox input {

    width: 17px;

    height: 17px;

    margin: 0;

    accent-color: #2563eb;

}

.survey-checkbox span {

    color: #344054;

    font-size: 13px;

}


/* ==========================================================
   TEXTAREA
========================================================== */

.survey-textarea {

    width: 100%;

    min-height: 100px;

    resize: vertical;

    padding: 12px 14px;

    border: 1px solid #d0d5dd;

    border-radius: 12px;

    outline: none;

    background: #ffffff;

    color: #172033;

    font-family: inherit;

    font-size: 13px;

    line-height: 1.6;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

    box-sizing: border-box;

}

.survey-textarea:focus {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);

}

.survey-textarea::placeholder {

    color: #98a2b3;

}


/* ==========================================================
   FOOTER
========================================================== */

.student-survey-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 16px 24px;

    border-top: 1px solid #edf0f5;

    background: #ffffff;

}

.student-survey-footer-note {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #667085;

    font-size: 12px;

}

.student-survey-submit {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 0 20px;

    border: none;

    border-radius: 12px;

    background: #2563eb;

    color: #ffffff;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

}

.student-survey-submit:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);

}

.student-survey-submit:disabled {

    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

}

.survey-submit-icon {

    font-size: 16px;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .home-survey-section {

        padding: 0px;

    }

    .home-survey-card {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;

        padding: 17px;

        border-radius: 17px;

    }

    .home-survey-left {

        width: 100%;

    }

    .home-survey-icon {

        width: 44px;

        height: 44px;

        flex-basis: 44px;

        font-size: 21px;

    }

    .home-survey-title {

        font-size: 15px;

    }

    .home-survey-description {

        font-size: 13px;

    }

    .home-survey-right {

        width: 100%;

    }

    .home-survey-btn {

        width: 100%;

    }

    .student-survey-overlay {

        padding: 10px;

        align-items: center;

    }

    .student-survey-modal {

        width: 100%;

        max-height: calc(100vh - 20px);

        border-radius: 20px;

    }

    .student-survey-header {

        padding: 17px;

    }

    .student-survey-header h2 {

        font-size: 15px;

    }

    .student-survey-header p {

        font-size: 12px;

    }

    .student-survey-modal-icon {

        width: 42px;

        height: 42px;

        flex-basis: 42px;

        font-size: 21px;

    }

    .student-survey-progress-wrap {

        padding: 10px 17px;

    }

    .student-survey-body {

        padding: 15px 17px 22px;

    }

    .survey-question {

        grid-template-columns: 34px minmax(0, 1fr);

        gap: 10px;

        padding: 17px 0;

    }

    .survey-question-number {

        width: 32px;

        height: 32px;

        border-radius: 9px;

        font-size: 11px;

    }

    .survey-question-title {

        font-size: 14px;

    }

    .survey-checkbox-grid {

        grid-template-columns: 1fr;

    }

    .student-survey-footer {

        flex-direction: column;

        align-items: stretch;

        padding: 13px 17px;

    }

    .student-survey-footer-note {

        justify-content: center;

        text-align: center;

    }

    .student-survey-submit {

        width: 100%;

    }

}

/* ==========================================================
   SURVEY - ĐÃ THAM GIA + XEM / CHỈNH SỬA
========================================================== */

/* KHU VỰC BÊN PHẢI */
.home-survey-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}


/* ==========================================================
   TRẠNG THÁI ĐÃ THAM GIA
========================================================== */

.home-survey-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 14px;

    border-radius: 10px;

    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    color: #047857;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;
}


/* ICON CHECK */
.home-survey-done span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;

    border-radius: 50%;

    background: #10b981;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    line-height: 1;
}


/* ==========================================================
   NÚT XEM / CHỈNH SỬA
========================================================== */

.home-survey-edit-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 40px;

    padding: 9px 15px;

    border: 1px solid #bfdbfe;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

    white-space: nowrap;
}


/* ICON BÚT */
.home-survey-edit-btn .survey-edit-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 15px;

    line-height: 1;
}


/* HOVER */
.home-survey-edit-btn:hover {

    background: #dbeafe;

    border-color: #93c5fd;

    color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.12);
}


/* ACTIVE */
.home-survey-edit-btn:active {

    transform: translateY(0);

    box-shadow: none;
}


/* FOCUS */
.home-survey-edit-btn:focus-visible {

    outline: 3px solid rgba(59, 130, 246, 0.2);

    outline-offset: 2px;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .home-survey-right {

        width: 100%;

        justify-content: flex-start;

        gap: 8px;

        margin-top: 12px;

    }


    .home-survey-done {

        font-size: 13px;

        padding: 8px 11px;

    }


    .home-survey-done span {

        width: 20px;
        height: 20px;

        font-size: 12px;

    }


    .home-survey-edit-btn {

        min-height: 38px;

        padding: 8px 12px;

        font-size: 13px;

    }

}


/* ==========================================================
   MOBILE NHỎ
========================================================== */

@media (max-width: 480px) {

    .home-survey-right {

        flex-direction: column;

        align-items: stretch;

        width: 100%;

    }


    .home-survey-done,
    .home-survey-edit-btn {

        width: 100%;

        box-sizing: border-box;

    }

}
/* =========================================================
   TYPOGRAPHY SYNC — GIỮ NGUYÊN TOÀN BỘ LOGIC/UI
   Chỉ chuẩn hóa kích thước chữ theo cùng một cấp tiêu đề.
   Không xóa hoặc thay thế các rule CSS hiện có.
   ========================================================= */

/* ===== DESKTOP — HEADING SEMANTIC ===== */
h1{
    font-size:32px !important;
    line-height:1.2;
}

h2{
    font-size:24px !important;
    line-height:1.3;
}

h3{
    font-size:20px !important;
    line-height:1.35;
}

/* ===== DESKTOP — TABLE TYPOGRAPHY =====
   Header và nội dung bảng dùng cùng một cỡ chữ.
*/
table th,
table td{
    font-size:13px !important;
}

/* =========================================================
   MOBILE — GIỮ ĐÚNG CẤP FONT NHƯ HỆ THỐNG MOBILE HIỆN CÓ
   Nhưng ép đồng nhất giữa các section.
   ========================================================= */
@media (max-width:768px){

    h1{
        font-size:30px !important;
        line-height:1.2;
    }

    h2{
        font-size:24px !important;
        line-height:1.3;
    }

    h3{
        font-size:20px !important;
        line-height:1.35;
    }

    table th,
    table td{
        font-size:11px !important;
    }
}

/* =========================================================
   MOBILE NHỎ — 320px → 430px
   ========================================================= */
@media (max-width:430px){

    h1{
        font-size:26px !important;
        line-height:1.2;
    }

    h2{
        font-size:21px !important;
        line-height:1.3;
    }

    h3{
        font-size:18px !important;
        line-height:1.35;
    }

    table th,
    table td{
        font-size:10px !important;
    }
}

/* ==========================================================
   FIX: KHÔNG CẮT ĐÔI TỪ KHI XUỐNG DÒNG
   Áp dụng: Thông báo - Bài tập - Tài liệu
   ========================================================== */

.learning-title,
.learning-preview,
.learning-item-title {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* ==========================================================
   BÀI KIỂM TRA THƯỜNG XUYÊN
   HOME PAGE
========================================================== */

.regular-test-home-section {

    width: 100%;

    margin-top: 28px;

    margin-bottom: 28px;

    padding: 0 0px;

    box-sizing: border-box;

}


/* ==========================================================
   CONTAINER
========================================================== */

.regular-test-home-container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 26px 30px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 24px;

    /*
       NỀN XANH TRẮNG RẤT NHẸ
       HÒA VỚI CÁC THẺ KHÁC
    */

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f8fbff 100%
    );

    border: 1px solid #dbeafe;

    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(30, 90, 150, 0.06);

}


/* ==========================================================
   ICON
========================================================== */

.regular-test-home-icon {

    width: 64px;

    height: 64px;

    flex: 0 0 64px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: #e3f0ff;

    font-size: 30px;

}


/* ==========================================================
   CONTENT
========================================================== */

.regular-test-home-content {

    flex: 1;

    min-width: 0;

}


/* ==========================================================
   LABEL
========================================================== */

.regular-test-home-label {

    display: inline-block;

    margin-bottom: 5px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #2878d4;

}


/* ==========================================================
   TITLE
========================================================== */

.regular-test-home-content h2 {

    margin: 0 0 7px 0;

    font-size: 23px;

    line-height: 1.3;

    font-weight: 700;

    color: #17365d;

}


/* ==========================================================
   DESCRIPTION
========================================================== */

.regular-test-home-content p {

    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: #60758d;

}


/* ==========================================================
   ACTION
========================================================== */

.regular-test-home-action {

    flex-shrink: 0;

}


/* ==========================================================
   NÚT VÀO KIỂM TRA
========================================================== */

.regular-test-home-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-width: 155px;

    padding: 12px 18px;

    box-sizing: border-box;

    border-radius: 12px;

    /*
       CAM VỪA PHẢI
       KHÔNG QUÁ GẮT
    */

    background: #f08a24;

    /*
       CHỮ TRẮNG ĐỂ NÚT GỌN VÀ SẠCH HƠN
    */

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    border: 1px solid #ed8018;

    box-shadow:
        0 5px 14px rgba(240, 138, 36, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;

}


/* ==========================================================
   HOVER
========================================================== */

.regular-test-home-btn:hover {

    background: #f59a3b;

    color: #ffffff;

    border-color: #f08a24;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(240, 138, 36, 0.20);

}


.regular-test-home-arrow {

    font-size: 18px;

    line-height: 1;

    color: #ffffff;

    transition: transform 0.2s ease;

}


.regular-test-home-btn:hover
.regular-test-home-arrow {

    transform: translateX(4px);

    color: #ffffff;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .regular-test-home-section {

        padding: 0 0px;

        margin-top: 20px;

        margin-bottom: 20px;

    }


    .regular-test-home-container {

        padding: 20px;

        flex-direction: column;

        align-items: stretch;

        text-align: center;

        gap: 16px;

        background: linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    }


    .regular-test-home-icon {

        width: 58px;

        height: 58px;

        flex-basis: 58px;

        margin: 0 auto;

        font-size: 27px;

    }


    .regular-test-home-content h2 {

        font-size: 20px;

    }


    .regular-test-home-content p {

        font-size: 13px;

    }


    .regular-test-home-action {

        width: 100%;

    }


    .regular-test-home-btn {

        width: 100%;

    }

}

/* ==========================================================
   KHO ĐỀ ÔN LUYỆN
   NÚT LÀM BÀI — ĐỒNG BỘ HÀNH TRÌNH ÔN LUYỆN
========================================================== */

.exam-table .table-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    min-width: 82px !important;

    width: 82px !important;

    height: 32px !important;

    min-height: 32px !important;

    padding: 0 8px !important;

    box-sizing: border-box;

    border-radius: 8px !important;

    border: 1px solid #2563eb !important;

    background: #2563eb !important;

    color: #ffffff !important;

    font-size: 11px !important;

    font-weight: 800 !important;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.16) !important;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* ==========================================================
   HOVER
========================================================== */

.exam-table .table-btn:hover {

    transform: translateY(-1px) !important;

    background: #1d4ed8 !important;

    border-color: #1d4ed8 !important;

    color: #ffffff !important;

    box-shadow:
        0 7px 15px rgba(37, 99, 235, 0.22) !important;
}


/* ==========================================================
   NÚT XEM LẠI
========================================================== */

.exam-table .table-btn.done {

    min-width: 82px !important;

    width: 82px !important;

    height: 32px !important;

    min-height: 32px !important;

    padding: 0 8px !important;

    border-radius: 8px !important;

    background: #fff7ed !important;

    border: 1px solid #fed7aa !important;

    color: #ea580c !important;

    box-shadow: none !important;
}


.exam-table .table-btn.done:hover {

    background: #ffedd5 !important;

    border-color: #fdba74 !important;

    color: #c2410c !important;

}

.hero-title {
    line-height: 1.15 !important;
}

.hero-title::first-line {
    font-size: 1.12em !important;
}

.hero-title span {
    font-size: 1.2em !important;
}

@media (max-width: 768px) {

    .hero-title {
        line-height: 1.12 !important;
    }

    .hero-title::first-line {
        font-size: 0.98em !important;
    }

    .hero-title span {
        font-size: 1.05em !important;
    }

}

/* =========================================================
   THU GỌN CHỮ KHU VỰC THÔNG TIN
   Áp dụng cho cả DESKTOP và MOBILE
   Không thay đổi HTML
   ========================================================= */

/* Tiêu đề các ô thông tin */
.chat-right .info-card h3{
    font-size: 16px !important;
    line-height: 1.3 !important;
}

/* Nội dung mô tả */
.chat-right .info-card p{
    font-size: 14px !important;
    line-height: 1.45 !important;
}

/* Danh sách gợi ý học tập */
.chat-right .info-card ul{
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.chat-right .info-card li{
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.top-students-card .card-header h2{
    font-size: 20px !important;
}

.teacher-title-mobile{
    display:none;
}

@media (max-width:768px){
    .teacher-title-desktop{
        display:none;
    }

    .teacher-title-mobile{
        display:inline;
    }
}

/* ==========================================================
   MOBILE – THU GỌN THẺ "BÀI KIỂM TRA THƯỜNG XUYÊN"
   ========================================================== */
@media (max-width: 768px){

    /* Thẻ tổng thể */
    .regular-test-home-container{
        padding: 10px 12px !important;
        gap: 6px !important;
    }

    /* Icon */
    .regular-test-home-icon{
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        font-size: 23px !important;
        border-radius: 15px !important;
    }

    /* Nội dung */
    .regular-test-home-content{
        gap: 1px !important;
    }

    .regular-test-home-label{
        font-size: 11px !important;
        line-height: 1.15 !important;
        margin: 0 0 1px !important;
    }

    .regular-test-home-content h2{
        font-size: 20px !important;
        line-height: 1.15 !important;
        margin: 1px 0 2px !important;
    }

    .regular-test-home-content p{
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    /* Khu vực nút */
    .regular-test-home-action{
        width: 100% !important;
        margin-top: 5px !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* NÚT – thu nhỏ rõ rệt */
    .regular-test-home-btn{
        width: 82% !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 5px 12px !important;

        font-size: 14px !important;
        line-height: 1 !important;
        border-radius: 12px !important;

        box-sizing: border-box !important;
    }

    .regular-test-home-btn span{
        font-size: 14px !important;
    }
}

/* Mặc định: desktop */
.upload-title-mobile{
    display: none !important;
}

/* Mobile */
@media (max-width: 768px){

    .upload-title-desktop{
        display: none !important;
    }

    .upload-title-mobile{
        display: inline !important;
    }
}

/* ==========================================================
   MOBILE - TINH CHỈNH AVATAR Q + CỠ CHỮ USER CARD
   Chỉ áp dụng mobile
========================================================== */

@media (max-width: 768px) {

    /* Avatar Q: vuông bo góc nhẹ, cân đối hơn */
    .user-avatar {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 14px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        font-size: 17px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    /* Xin chào */
    .user-hello {
        font-size: 12px !important;
        line-height: 1.25 !important;
        font-weight: 500 !important;
    }

    /* Tên người dùng */
    .user-name {
        font-size: 14px !important;
        line-height: 1.2 !important;
        font-weight: 750 !important;
    }

    /* None • None */
    .user-meta {
        font-size: 11px !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
    }

    /* Quản lý tài khoản */
    .user-account-manage {
        font-size: 11px !important;
    }

    .user-account-icon {
        font-size: 16px !important;
    }

    .user-account-manage > span:not(.user-account-icon):not(.user-account-arrow) {
        font-size: 11px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
    }

    .user-account-arrow {
        font-size: 15px !important;
    }
}


/* ==========================================================
   MOBILE RẤT HẸP
========================================================== */

@media (max-width: 380px) {

    .user-avatar {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 13px !important;
        font-size: 19px !important;
    }

    .user-hello {
        font-size: 12px !important;
    }

    .user-name {
        font-size: 15px !important;
    }

    .user-meta {
        font-size: 10px !important;
    }

    .user-account-manage > span:not(.user-account-icon):not(.user-account-arrow) {
        font-size: 10px !important;
    }
}

/* ==========================================================
   MOBILE - ĐẨY "QUẢN LÝ TÀI KHOẢN" SANG CỘT PHẢI
   Chỉ chỉnh vị trí, không thay đổi bố cục khác
========================================================== */

@media (max-width: 768px) {

    .user-account-manage {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        width: 100px !important;
        min-height: auto !important;

        padding: 6px 4px !important;
        margin: 0 !important;

        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .user-card-top {
        position: relative !important;
    }
}


/* Điện thoại rất hẹp */
@media (max-width: 380px) {

    .user-account-manage {
        right: 0 !important;
        width: 88px !important;
    }
    
}

@media (max-width: 768px) {
    .user-card-top {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 768px) {
    .student-progress-title .ai-smart-text {
        display: none;
    }
}