/* =====================================================
   FUTUREVERSE — STUDENT HUB
   Premium Responsive Dashboard
   Desktop + Tablet + Mobile
===================================================== */

/* ---------- 1. GLOBAL ---------- */

:root {
    --sh-primary: #3158e8;
    --sh-primary-dark: #24477f;
    --sh-primary-light: #edf0ff;
    --sh-purple: #7158f5;

    --sh-bg: #f1f3f8;
    --sh-surface: #ffffff;
    --sh-text: #172033;
    --sh-muted: #758098;
    --sh-border: #e8ebf2;

    --sh-blue: #3184ef;
    --sh-green: #20aa83;
    --sh-orange: #f4a623;
    --sh-pink: #bd58e8;

    --sh-radius: 22px;
    --sh-shadow: 0 8px 28px rgba(29, 51, 93, 0.055);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: var(--sh-bg);
    color: var(--sh-text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

button,
input,
a {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(49, 88, 232, 0.35);
    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

[hidden] {
    display: none !important;
}

.student-app {
    min-height: 100vh;
}


/* ---------- 2. TOP HEADER ---------- */

.student-header {
    height: 76px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 28px;

    background: linear-gradient(
        110deg,
        #203f75 0%,
        #2c5597 100%
    );

    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 3px 15px rgba(18, 37, 76, 0.12);
}

.student-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    flex-shrink: 0;
}

.brand-logo {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;

    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -3px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #65d6ff,
        #1683ff 55%,
        #8e76ff
    );

    border-radius: 13px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
}

.menu-toggle,
.sidebar-close {
    display: none;
}

.header-search {
    height: 44px;
    flex: 1;
    max-width: 620px;
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 16px;
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search i {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-button,
.student-avatar {
    display: grid;
    place-items: center;
    border: 0;
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #ffffff;
    background: transparent;
    font-size: 19px;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.icon-button::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff6969;
}

.student-avatar {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--sh-primary-dark);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.55);
}


/* ---------- 3. DASHBOARD LAYOUT ---------- */

.dashboard-layout {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 76px);
}


/* ---------- 4. SIDEBAR ---------- */

.student-sidebar {
    width: 250px;
    min-width: 250px;

    display: flex;
    flex-direction: column;

    padding: 25px 15px 20px;

    background: var(--sh-surface);
    border-right: 1px solid var(--sh-border);

    align-self: stretch;
}

.sidebar-heading {
    min-height: 25px;
    margin: 0 12px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #99a2b5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.student-navigation {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-item {
    min-height: 48px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    gap: 14px;

    border-radius: 12px;
    color: #343d50;
    font-weight: 500;
    font-size: 12px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-item i {
    width: 21px;
    text-align: center;
    font-size: 15px;
}

.nav-item:hover {
    color: var(--sh-primary);
    background: #f3f4ff;
}

.nav-item.active {
    color: var(--sh-primary);
    background: #eef0ff;
    font-weight: 600;
}

.nav-item.active i {
    color: var(--sh-purple);
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--sh-muted);
    font-size: 10px;
    line-height: 1.5;

    border-top: 1px solid var(--sh-border);
}

.sidebar-footer i {
    color: var(--sh-primary);
    font-size: 18px;
}


/* ---------- 5. MAIN CONTENT ---------- */

.student-main {
    flex: 1;
    min-width: 0;
    max-width: 1800px;
    margin: 0 auto;
    padding: 26px 30px 30px;
}

.student-main > section {
    margin-bottom: 22px;
}


/* ---------- 6. WELCOME BANNER ---------- */

.welcome-banner {
    min-height: 245px;
    padding: 30px 34px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-radius: 23px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 82% 30%,
            rgba(73, 82, 232, 0.32),
            transparent 32%
        ),
        linear-gradient(
            115deg,
            #07152f 0%,
            #10275a 58%,
            #152d72 100%
        );

    box-shadow: 0 12px 30px rgba(16, 34, 79, 0.12);
}

.welcome-banner::before {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    right: 8%;
    bottom: -255px;

    border: 1px solid rgba(112, 124, 255, 0.6);
    border-radius: 50%;
    box-shadow:
        0 0 0 23px rgba(112, 124, 255, 0.05),
        0 0 0 48px rgba(112, 124, 255, 0.04);
}

.welcome-content {
    width: 58%;
    max-width: 590px;
    position: relative;
    z-index: 3;
}

.welcome-eyebrow {
    display: inline-block;
    margin-bottom: 12px;

    color: #a8b9ff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.welcome-content h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 43px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.welcome-content h1 span {
    background: linear-gradient(
        90deg,
        #66aaff,
        #9a75ff,
        #d09aff
    );

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.welcome-content p {
    max-width: 420px;
    margin: 13px 0 20px;

    color: #c0cce6;
    font-size: 12px;
    line-height: 1.9;
}

.primary-button {
    min-height: 42px;
    padding: 0 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: #ffffff;
    background: linear-gradient(
        110deg,
        #5265ff,
        #7250ef
    );

    border: 0;
    border-radius: 11px;

    font-size: 11px;
    font-weight: 600;

    box-shadow: 0 5px 15px rgba(74, 73, 241, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 73, 241, 0.3);
}


/* ---------- 7. STUDENT ILLUSTRATION ---------- */

.student-illustration {
    width: 39%;
    max-width: 370px;
    min-width: 240px;
    height: 220px;

    position: relative;
    align-self: flex-end;
    margin-bottom: -30px;
    flex-shrink: 0;
}

.illustration-glow {
    position: absolute;
    width: 230px;
    height: 180px;
    right: 10px;
    bottom: 0;

    border-radius: 50%;
    background: rgba(74, 86, 255, 0.28);
    filter: blur(45px);
}

.student-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.student-head {
    position: absolute;
    width: 67px;
    height: 73px;
    right: 85px;
    top: 38px;
    z-index: 3;
}

.student-face {
    position: absolute;
    inset: 12px 3px 0;
    border-radius: 45% 45% 42% 42%;
    background: linear-gradient(130deg, #ffd5ae, #eaa477);
    transform: rotate(-5deg);
    box-shadow: inset -5px -2px 0 rgba(181, 100, 68, 0.1);
}

.student-hair {
    position: absolute;
    width: 72px;
    height: 39px;
    top: 0;
    left: -2px;
    z-index: 2;

    background: #382541;
    border-radius: 55% 50% 24% 24%;
    transform: rotate(-6deg);
}

.student-hair::after {
    content: "";
    position: absolute;
    width: 27px;
    height: 23px;
    top: 17px;
    left: 1px;

    background: #382541;
    border-radius: 80% 20% 60% 10%;
    transform: rotate(22deg);
}

.student-eye {
    position: absolute;
    top: 29px;
    width: 5px;
    height: 7px;
    border-radius: 50%;
    background: #252641;
}

.student-eye:first-child {
    left: 16px;
}

.student-eye:nth-child(2) {
    right: 15px;
}

.student-smile {
    position: absolute;
    bottom: 13px;
    left: 26px;
    width: 14px;
    height: 7px;

    border-bottom: 2px solid #a44e49;
    border-radius: 0 0 50% 50%;
}

.student-body {
    position: absolute;
    width: 128px;
    height: 98px;
    right: 56px;
    top: 107px;
    z-index: 2;

    background: linear-gradient(
        135deg,
        #39a7ff,
        #1761dc 65%,
        #1245aa
    );

    border-radius: 44px 44px 8px 8px;
    transform: perspective(100px) rotateX(2deg);
}

.student-body::before {
    content: "";
    position: absolute;
    width: 33px;
    height: 49px;
    top: -4px;
    left: 3px;

    border-radius: 50%;
    background: #ffd0a7;
    transform: rotate(-35deg);
}

.student-desk {
    position: absolute;
    right: 5px;
    bottom: 8px;
    width: 255px;
    height: 13px;
    z-index: 5;

    background: linear-gradient(
        90deg,
        #3854b8,
        #172c71
    );

    border-radius: 5px;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12);
}

.student-laptop {
    position: absolute;
    right: 108px;
    bottom: 21px;
    width: 100px;
    height: 77px;
    z-index: 6;
    transform: perspective(200px) rotateY(-8deg);
}

.laptop-screen {
    height: 67px;
    display: grid;
    place-items: center;

    color: #58a9ff;
    font-size: 22px;
    font-weight: 800;
    font-style: italic;

    border: 5px solid #1b2449;
    border-radius: 7px 7px 3px 3px;

    background: linear-gradient(
        140deg,
        #152348,
        #09142c
    );

    box-shadow: inset 0 0 14px rgba(63, 111, 255, 0.15);
}

.laptop-base {
    width: 114px;
    height: 7px;
    margin-left: -7px;

    background: linear-gradient(
        90deg,
        #b5c6e6,
        #f0f3ff,
        #8398c7
    );

    border-radius: 2px 2px 9px 9px;
}

.floating-icon {
    position: absolute;
    z-index: 4;

    display: grid;
    place-items: center;

    color: #ffffff;
    background: linear-gradient(
        140deg,
        rgba(105, 112, 255, 0.95),
        rgba(61, 83, 223, 0.8)
    );

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(64, 91, 255, 0.32);

    animation: sh-float 3.5s ease-in-out infinite;
}

.book-float {
    width: 43px;
    height: 43px;
    top: 80px;
    left: 9%;
    font-size: 20px;
}

.bulb-float {
    width: 48px;
    height: 48px;
    top: 13px;
    right: 39%;
    color: #ffe083;
    font-size: 23px;
    animation-delay: -1s;
}

.video-float {
    width: 43px;
    height: 43px;
    top: 57px;
    right: 4%;
    font-size: 20px;
    animation-delay: -2s;
}

@keyframes sh-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* ---------- 8. STATISTICS CARDS ---------- */

.student-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.stat-card {
    min-width: 0;
    min-height: 165px;
    padding: 19px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 19px;

    box-shadow: 0 4px 15px rgba(35, 50, 85, 0.025);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-courses {
    background: linear-gradient(140deg, #eaf3ff, #f4f7ff);
}

.stat-lessons {
    background: linear-gradient(140deg, #e8f8f2, #f1fbf7);
}

.stat-progress {
    background: linear-gradient(140deg, #fff5df, #fffaf0);
}

.stat-certificates {
    background: linear-gradient(140deg, #f5eaff, #fbf7ff);
}

.stat-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;

    display: grid;
    place-items: center;

    border-radius: 12px;
    font-size: 19px;
}

.stat-courses .stat-icon {
    color: var(--sh-blue);
    background: #d9eaff;
}

.stat-lessons .stat-icon {
    color: var(--sh-green);
    background: #d7f4e8;
}

.stat-progress .stat-icon {
    color: #ec9a17;
    background: #ffedc7;
}

.stat-certificates .stat-icon {
    color: var(--sh-pink);
    background: #efd9ff;
}

.stat-value {
    color: #17223a;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card h2 {
    margin: 6px 0 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.stat-card p {
    margin: 0;
    color: var(--sh-muted);
    font-size: 10px;
    line-height: 1.6;
}


/* ---------- 9. CONTENT PANELS ---------- */

.content-panel {
    min-width: 0;
    padding: 22px;
    border-radius: var(--sh-radius);

    background: var(--sh-surface);
    border: 1px solid #e9edf5;

    box-shadow: var(--sh-shadow);
}

.section-heading {
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.section-title-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;
    background: #efedff;
    color: var(--sh-purple);
    font-size: 19px;
}

.section-title h2 {
    margin: 0;
    color: #182139;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--sh-muted);
    font-size: 11px;
    line-height: 1.6;
}

.outline-button {
    min-height: 36px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    flex-shrink: 0;

    border: 1px solid #a6a2ff;
    border-radius: 10px;

    background: #ffffff;
    color: var(--sh-primary);

    font-size: 10px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.outline-button:hover {
    color: #ffffff;
    background: var(--sh-primary);
    border-color: var(--sh-primary);
}


/* ---------- 10. EMPTY COURSES ---------- */

.empty-courses {
    min-height: 250px;
    padding: 28px 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    border: 1px dashed #dce2f0;
    border-radius: 17px;

    background: linear-gradient(
        135deg,
        #fbfcff,
        #ffffff
    );
}

.empty-books {
    width: 76px;
    height: 65px;
    margin-bottom: 10px;

    position: relative;

    display: grid;
    place-items: center;

    color: var(--sh-purple);
    font-size: 42px;
}

.empty-books > i {
    filter: drop-shadow(0 6px 7px rgba(93, 78, 231, 0.15));
}

.empty-spark {
    position: absolute;
    color: #f5a623;
    font-size: 20px;
}

.spark-one {
    right: 1px;
    top: 0;
}

.spark-two {
    left: 0;
    top: 9px;
    font-size: 14px;
}

.empty-courses h3 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 700;
}

.empty-courses p {
    max-width: 470px;
    margin: 0 0 18px;

    color: var(--sh-muted);
    font-size: 12px;
    line-height: 1.8;
}


/* ---------- 11. COURSE GRIDS ---------- */

.my-course-grid,
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.course-card {
    min-width: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border: 1px solid var(--sh-border);
    border-radius: 15px;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(32, 50, 90, 0.1);
}

.course-card-image {
    position: relative;
    height: 145px;
    margin: 9px 9px 0;

    overflow: hidden;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #dce8ff,
        #e9e4ff
    );
}

.course-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.course-category {
    position: absolute;
    left: 9px;
    top: 9px;

    padding: 5px 9px;

    border-radius: 7px;
    background: rgba(255, 255, 255, 0.93);
    color: #263654;

    font-size: 9px;
    font-weight: 600;
}

.course-card-body {
    padding: 13px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.course-card-title {
    margin: 0 0 7px;

    color: #182139;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.course-card-description {
    margin: 0 0 12px;

    color: var(--sh-muted);
    font-size: 10px;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;
    margin-bottom: 13px;

    color: #566078;
    font-size: 9px;
}

.course-instructor i {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;

    border-radius: 50%;
    background: #eaf0ff;
    color: var(--sh-primary);
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding-top: 11px;
    border-top: 1px solid #edf0f5;
}

.course-price {
    color: #e33b3b;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.course-price.free {
    color: #168c68;
}

.course-action {
    min-height: 34px;
    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--sh-primary);
    background: #ffffff;

    border: 1px solid #a6a2ff;
    border-radius: 9px;

    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.course-action:hover {
    background: var(--sh-primary);
    border-color: var(--sh-primary);
    color: #ffffff;
}

.courses-loading {
    min-height: 140px;
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: var(--sh-muted);
    background: #f8f9fd;
    border-radius: 14px;
}

.courses-loading i {
    color: var(--sh-primary);
    font-size: 25px;
}

.courses-loading p {
    margin: 0;
    font-size: 12px;
}


/* ---------- 12. PROFILE ---------- */

.profile-summary {
    margin-top: 20px;
    padding: 18px;

    display: flex;
    align-items: center;
    gap: 14px;

    border: 1px solid var(--sh-border);
    border-radius: 14px;
    background: #fafbff;
}

.profile-avatar {
    width: 53px;
    height: 53px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #4267e8,
        #8960ed
    );

    font-size: 21px;
    font-weight: 700;
}

.profile-summary h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

.profile-summary p {
    margin: 0;
    color: var(--sh-muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.certificates-empty {
    margin-top: 20px;
    min-height: 105px;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    border-radius: 14px;
    background: #faf9ff;
    color: var(--sh-muted);
}

.certificates-empty i {
    color: var(--sh-purple);
    font-size: 25px;
}

.certificates-empty p {
    font-size: 11px;
    line-height: 1.7;
}


/* ---------- 13. FOOTER ---------- */

.student-footer {
    padding: 15px 5px 5px;

    display: flex;
    justify-content: space-between;
    gap: 12px;

    color: #8a93a6;
    font-size: 10px;
}


/* ---------- 14. MOBILE NAVIGATION ---------- */

.mobile-bottom-nav {
    display: none;
}

.sidebar-backdrop {
    display: none;
}


/* ---------- 15. TABLET ---------- */

@media (max-width: 1180px) {

    .student-sidebar {
        width: 220px;
        min-width: 220px;
    }

    .student-header {
        padding: 0 20px;
        gap: 18px;
    }

    .student-brand {
        min-width: 190px;
    }

    .student-main {
        padding: 22px;
    }

    .welcome-banner {
        padding: 27px;
    }

    .student-illustration {
        min-width: 205px;
        transform: scale(0.92);
        transform-origin: right bottom;
    }

    .student-stats {
        gap: 11px;
    }

    .stat-card {
        padding: 15px;
    }

    .my-course-grid,
    .recommended-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ---------- 16. MOBILE AND SMALL TABLET ---------- */

@media (max-width: 820px) {

    html {
        scroll-padding-top: 75px;
    }

    body {
        font-size: 13px;
        padding-bottom: 75px;
    }

    .student-header {
        height: 66px;
        padding: 0 15px;
        gap: 11px;
    }

    .menu-toggle {
        width: 37px;
        height: 37px;
        flex-shrink: 0;

        display: grid;
        place-items: center;

        border: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        font-size: 18px;
    }

    .student-brand {
        min-width: 0;
        gap: 8px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 23px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text small {
        font-size: 8px;
    }

    .header-search {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-button {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .student-avatar {
        width: 33px;
        height: 33px;
        font-size: 12px;
    }

    .dashboard-layout {
        display: block;
        min-height: calc(100vh - 66px);
    }

    .student-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;

        width: min(290px, 84vw);
        min-width: 0;
        height: 100dvh;

        padding: 24px 15px;
        z-index: 1200;

        overflow-y: auto;

        transform: translateX(-105%);
        visibility: hidden;

        transition:
            transform 0.28s ease,
            visibility 0.28s ease;

        box-shadow: 15px 0 40px rgba(17, 33, 68, 0.14);
    }

    .student-sidebar.open {
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar-heading {
        margin-bottom: 23px;
    }

    .sidebar-close {
        width: 33px;
        height: 33px;

        display: grid;
        place-items: center;

        border: 0;
        border-radius: 9px;
        background: #f0f2fa;
        color: #37445f;
        font-size: 16px;
    }

    .nav-item {
        min-height: 49px;
        font-size: 13px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1100;

        background: rgba(11, 20, 43, 0.48);
        backdrop-filter: blur(3px);
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .student-main {
        width: 100%;
        max-width: none;
        padding: 17px 15px 24px;
    }

    .student-main > section {
        margin-bottom: 16px;
    }

    .welcome-banner {
        min-height: 205px;
        padding: 23px 20px;

        align-items: center;
        gap: 4px;

        border-radius: 18px;
    }

    .welcome-content {
        width: 62%;
    }

    .welcome-eyebrow {
        margin-bottom: 9px;
        font-size: 8px;
        letter-spacing: 1.4px;
    }

    .welcome-content h1 {
        font-size: clamp(23px, 5vw, 33px);
        letter-spacing: -0.7px;
    }

    .welcome-content p {
        margin: 10px 0 15px;
        font-size: 10px;
        line-height: 1.7;
    }

    .primary-button {
        min-height: 38px;
        padding: 0 13px;
        gap: 8px;
        border-radius: 9px;
        font-size: 10px;
    }

    .student-illustration {
        width: 40%;
        min-width: 0;
        max-width: 240px;
        height: 180px;

        margin-right: -12px;
        margin-bottom: -23px;

        transform: scale(0.92);
        transform-origin: right bottom;
    }

    .student-head {
        right: 43px;
        top: 31px;
        transform: scale(0.83);
        transform-origin: top right;
    }

    .student-body {
        right: 17px;
        top: 89px;
        transform: scale(0.82);
        transform-origin: top right;
    }

    .student-desk {
        right: -10px;
        width: 180px;
        bottom: 7px;
    }

    .student-laptop {
        right: 48px;
        bottom: 19px;
        transform: scale(0.83);
        transform-origin: bottom right;
    }

    .book-float {
        left: 0;
        top: 65px;
        transform: scale(0.8);
    }

    .bulb-float {
        right: 33%;
        top: 9px;
        transform: scale(0.8);
    }

    .video-float {
        right: 0;
        top: 45px;
        transform: scale(0.8);
    }

    .student-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        min-height: 136px;
        padding: 15px;
        border-radius: 15px;
    }

    .stat-icon {
        width: 33px;
        height: 33px;
        margin-bottom: 9px;
        border-radius: 10px;
        font-size: 16px;
    }

    .stat-value {
        font-size: 25px;
    }

    .stat-card h2 {
        margin-top: 5px;
        font-size: 11px;
    }

    .stat-card p {
        font-size: 9px;
    }

    .content-panel {
        padding: 16px;
        border-radius: 17px;
    }

    .section-heading {
        margin-bottom: 15px;
        gap: 8px;
    }

    .section-title {
        gap: 9px;
    }

    .section-title-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 15px;
    }

    .section-title p {
        font-size: 9px;
    }

    .outline-button {
        min-height: 33px;
        padding: 0 9px;
        gap: 6px;
        font-size: 9px;
    }

    .empty-courses {
        min-height: 235px;
        padding: 24px 12px;
        border-radius: 13px;
    }

    .empty-books {
        width: 62px;
        height: 54px;
        font-size: 36px;
    }

    .empty-courses h3 {
        font-size: 17px;
    }

    .empty-courses p {
        max-width: 320px;
        font-size: 10px;
        line-height: 1.8;
    }

    .my-course-grid,
    .recommended-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .course-card-image {
        height: 115px;
        margin: 7px 7px 0;
    }

    .course-card-body {
        padding: 10px;
    }

    .course-card-title {
        font-size: 11px;
    }

    .course-card-description {
        font-size: 9px;
    }

    .course-card-footer {
        flex-wrap: wrap;
    }

    .course-price {
        font-size: 13px;
    }

    .course-action {
        min-height: 31px;
        padding: 0 8px;
        font-size: 9px;
    }

    .profile-summary {
        padding: 13px;
    }

    .student-footer {
        font-size: 9px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        min-height: 67px;
        padding: 7px 5px calc(7px + env(safe-area-inset-bottom));

        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;

        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #e9edf4;

        backdrop-filter: blur(14px);
        box-shadow: 0 -5px 22px rgba(24, 43, 77, 0.055);

        z-index: 900;
    }

    .bottom-nav-item {
        min-width: 0;
        min-height: 48px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        border-radius: 10px;
        color: #8b93a4;

        font-size: 9px;
        font-weight: 500;
    }

    .bottom-nav-item i {
        font-size: 18px;
    }

    .bottom-nav-item.active {
        color: var(--sh-primary);
        background: #f0f2ff;
        font-weight: 600;
    }
}


/* ---------- 17. SMALL MOBILE ---------- */

@media (max-width: 420px) {

    .student-header {
        padding: 0 10px;
        gap: 8px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text small {
        font-size: 7px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
        font-size: 21px;
    }

    .header-actions {
        gap: 3px;
    }

    .student-main {
        padding: 13px 10px 20px;
    }

    .welcome-banner {
        min-height: 184px;
        padding: 19px 13px;
    }

    .welcome-content {
        width: 64%;
    }

    .welcome-content h1 {
        font-size: 23px;
    }

    .welcome-content p {
        font-size: 9px;
    }

    .welcome-eyebrow {
        font-size: 7px;
    }

    .student-illustration {
        width: 39%;
        height: 160px;
        margin-right: -9px;
        margin-bottom: -20px;
        transform: scale(0.8);
        transform-origin: right bottom;
    }

    .stat-card {
        min-height: 129px;
        padding: 12px;
    }

    .stat-value {
        font-size: 23px;
    }

    .content-panel {
        padding: 12px;
    }

    .section-title h2 {
        font-size: 13px;
    }

    .section-title p {
        font-size: 8px;
    }

    .section-title-icon {
        width: 31px;
        height: 31px;
        font-size: 14px;
    }

    .outline-button {
        padding: 0 7px;
        font-size: 8px;
    }

    .course-card-image {
        height: 95px;
    }

    .course-card-body {
        padding: 8px;
    }

    .course-card-title {
        font-size: 10px;
    }

    .course-card-description {
        font-size: 8px;
    }

    .course-instructor {
        font-size: 8px;
    }

    .course-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-action {
        width: 100%;
    }

    .empty-courses p {
        font-size: 9px;
    }
}


/* ---------- 18. LARGE DESKTOP ---------- */

@media (min-width: 1500px) {

    .student-sidebar {
        width: 275px;
        min-width: 275px;
    }

    .student-main {
        padding: 34px 42px;
    }

    .welcome-banner {
        min-height: 275px;
        padding: 38px 42px;
    }

    .student-illustration {
        height: 255px;
    }

    .stat-card {
        min-height: 180px;
        padding: 23px;
    }

    .content-panel {
        padding: 28px;
    }

    .course-card-image {
        height: 170px;
    }
}


/* ---------- 19. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
































/* =========================================
   MY CERTIFICATES — PREMIUM CARDS
========================================= */

.certificates-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
    margin-top: 22px;
}

.certificates-list .certificate-item {
    padding: 22px;
    border: 1px solid rgba(120, 145, 190, 0.22);
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        rgba(45, 75, 130, 0.10),
        rgba(120, 100, 190, 0.06)
    );
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificates-list .certificate-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.certificates-list .certificate-item h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.certificates-list .certificate-item p {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.8;
    overflow-wrap: anywhere;
}

.certificates-list .view-certificate-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #24477f;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.certificates-list .view-certificate-btn:hover {
    background: #19365f;
}

.certificates-empty[style*="display: none"] {
    display: none !important;
}

@media (max-width: 480px) {
    .certificates-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .certificates-list .certificate-item {
        padding: 18px;
    }
}





/* ==========================================
   FUTUREVERSE STUDENT HUB — PREMIUM SHIMMER
========================================== */

#dashboard.is-loading {
    position: relative;
}

@keyframes fv-student-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

#dashboard.is-loading .stat-card,
#dashboard.is-loading .content-panel,
#dashboard.is-loading .course-card,
#dashboard.is-loading .welcome-banner {
    background-image: linear-gradient(
        100deg,
        rgba(240, 241, 246, 0.92) 25%,
        rgba(224, 227, 237, 0.96) 45%,
        rgba(240, 241, 246, 0.92) 65%
    );

    background-size: 250% 100%;
    animation: fv-student-shimmer 1.35s ease-in-out infinite;
}

#dashboard.is-loading .stat-card,
#dashboard.is-loading .course-card {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #dashboard.is-loading .stat-card,
    #dashboard.is-loading .content-panel,
    #dashboard.is-loading .course-card,
    #dashboard.is-loading .welcome-banner {
        animation: none;
    }
}