.lms-body {
    background: var(--light);
    min-height: 100vh;
}

.lms-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: .85rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.lms-brand {
    font-weight: 800;
    color: var(--navy);
}

.lms-user-pill {
    background: var(--gold-soft);
    color: var(--ink);
    padding: .35rem .75rem;
    border-radius: 50rem;
    font-weight: 700;
}

.lms-shell {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.lms-side-nav {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    position: sticky;
    top: 5.5rem;
}

.lms-side-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: .92rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.lms-side-nav a:hover,
.lms-side-nav a.active {
    background: var(--gold-soft);
    color: var(--navy);
}

.lms-main {
    min-width: 0;
}

.lms-page-title {
    font-family: 'DM Serif Display', Georgia, serif;
    color: var(--ink);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.lms-panel,
.lms-auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: 0 10px 28px rgba(12, 18, 54, .06);
}

.lms-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.lms-stat-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--ink);
    line-height: 1.1;
}

.lms-stat-label {
    color: var(--body);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lms-course-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}

.lms-course-tile img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.lms-course-tile-body {
    padding: 1rem 1.1rem 1.2rem;
}

.lms-course-tile h2 {
    font-size: 1.05rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    color: var(--ink);
}

.lms-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.lms-empty i {
    font-size: 2.2rem;
    color: var(--gold-dark);
    display: block;
    margin-bottom: .75rem;
}

.lms-lesson-list,
.lms-lesson-viewer {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
}

.lms-lesson-link {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .65rem .75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .35rem;
}

.lms-lesson-link:hover {
    background: var(--light);
}

.lms-lesson-link.active {
    background: var(--gold-soft);
    color: var(--navy);
}

.lms-lesson-link i {
    color: var(--gold-dark);
    margin-top: .1rem;
}

.lms-video-wrap,
.lms-video-file {
    border-radius: 12px;
    background: #000;
}

.lms-pdf-frame {
    width: 100%;
    min-height: 480px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.lms-text-lesson {
    line-height: 1.7;
    color: var(--ink);
}

.lms-table th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--body);
}

.lms-auth-section {
    background: var(--light);
}

@media (max-width: 991.98px) {
    .lms-side-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .lms-pdf-frame {
        min-height: 360px;
    }
}
