/* ==========================================================
   ALAMIN ONLINE ACADEMY
   STUDENT DASHBOARD
   Version: 9.0.0 Enterprise Baseline
   Mobile First / PWA Ready
========================================================== */

:root {

    --primary: #0b6e4f;
    --primary-dark: #07543d;
    --secondary: #2563eb;

    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;

    --border: #e2e8f0;

    --danger: #dc2626;
    --warning: #f59e0b;

    --sidebar-width: 292px;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm:
        0 2px 8px rgba(15, 23, 42, .06);

    --shadow:
        0 8px 25px rgba(15, 23, 42, .07);

    --shadow-lg:
        0 20px 50px rgba(15, 23, 42, .12);

    --transition:
        .22s ease;

}


/* ==========================================================
   RESET
========================================================== */

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

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

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

    color: var(--text);

    font-family:
        "Segoe UI",
        "Hind Siliguri",
        Arial,
        sans-serif;

    line-height: 1.5;

}

button,
a,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* ==========================================================
   LOADER
========================================================== */

.dashboard-loader {

    position: fixed;
    inset: 0;

    z-index: 5000;

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

    background:
        radial-gradient(
            circle at top,
            #e8f5f0,
            #ffffff 60%
        );

    opacity: 1;

    visibility: visible;

    transition:
        opacity .35s ease,
        visibility .35s ease;

}

.dashboard-loader.is-hidden {

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

}

.loader-box {

    width: min(90%, 360px);

    padding: 35px 25px;

    text-align: center;

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

    border:
        1px solid rgba(255,255,255,.8);

    border-radius:
        24px;

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

}

.loader-logo {

    width: 75px;
    height: 75px;

    margin:
        0 auto 18px;

    object-fit: contain;

}

.loader-spinner {

    width: 35px;
    height: 35px;

    margin:
        0 auto 18px;

    border:
        3px solid #dbeafe;

    border-top-color:
        var(--primary);

    border-radius: 50%;

    animation:
        loaderSpin .8s linear infinite;

}

@keyframes loaderSpin {

    to {
        transform: rotate(360deg);
    }

}

.loader-box h2 {
    font-size: 19px;
}

.loader-box p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 13px;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.dashboard-sidebar {

    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width:
        min(88vw, var(--sidebar-width));

    z-index: 3000;

    display: flex;
    flex-direction: column;

    background:
        rgba(15, 23, 42, .98);

    color: #ffffff;

    border-right:
        1px solid rgba(255,255,255,.08);

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

    transform:
        translateX(-105%);

    transition:
        transform .25s ease;

}

.dashboard-sidebar.is-open {
    transform: translateX(0);
}


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

.sidebar-header {

    min-height: 76px;

    padding:
        14px 14px 14px 17px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    border-bottom:
        1px solid rgba(255,255,255,.08);

}

.sidebar-brand {

    display:
        flex;

    align-items:
        center;

    gap: 10px;

    min-width: 0;

}

.sidebar-logo {

    width: 42px;
    height: 42px;

    object-fit: contain;

    border-radius: 12px;

    background: #ffffff;

    padding: 4px;

}

.sidebar-brand strong {

    display: block;

    font-size: 13px;

    white-space: nowrap;

}

.sidebar-brand small {

    display: block;

    margin-top: 2px;

    color: #94a3b8;

    font-size: 10px;

}

.sidebar-close {

    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 10px;

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

    color: #ffffff;

}

.sidebar-close:hover {
    background:
        rgba(255,255,255,.16);
}


/* ==========================================================
   SIDEBAR PROFILE
========================================================== */

.sidebar-profile {

    margin: 14px;

    padding: 12px;

    display:
        flex;

    align-items:
        center;

    gap: 10px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius:
        15px;

    background:
        linear-gradient(
            135deg,
            rgba(37,99,235,.20),
            rgba(11,110,79,.20)
        );

}

.sidebar-avatar {

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 50%;

    object-fit: cover;

    background: #ffffff;

    border:
        2px solid rgba(255,255,255,.5);

}

.sidebar-profile-info {
    min-width: 0;
}

.sidebar-profile-info strong {

    display: block;

    font-size: 13px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}

.sidebar-profile-info span {

    display: block;

    margin-top: 2px;

    color: #93c5fd;

    font-size: 10px;

}

.sidebar-profile-info small {

    display: block;

    margin-top: 2px;

    color: #94a3b8;

    font-size: 10px;

}


/* ==========================================================
   SIDEBAR NAV
========================================================== */

.sidebar-navigation {

    flex: 1;

    overflow-y: auto;

    padding:
        0 10px 15px;

}

.sidebar-group {

    margin-bottom: 15px;

}

.sidebar-section-title {

    padding:
        8px 8px 5px;

    color:
        #64748b;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        .12em;

}

.sidebar-link {

    width: 100%;

    min-height: 42px;

    display:
        flex;

    align-items:
        center;

    gap: 11px;

    padding:
        9px 10px;

    margin:
        2px 0;

    border: 0;

    border-radius:
        10px;

    background:
        transparent;

    color:
        #cbd5e1;

    text-align:
        left;

    font-size:
        12px;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);

}

.sidebar-link span:first-child {

    width: 24px;

    text-align:
        center;

    font-size:
        16px;

}

.sidebar-link:hover {

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

    color:
        #ffffff;

    transform:
        translateX(2px);

}

.sidebar-link.active {

    background:
        linear-gradient(
            135deg,
            rgba(37,99,235,.30),
            rgba(11,110,79,.30)
        );

    color:
        #ffffff;

    font-weight:
        700;

}


/* ==========================================================
   SIDEBAR FOOTER
========================================================== */

.sidebar-footer {

    min-height: 45px;

    padding:
        10px 16px;

    display:
        flex;

    align-items:
        center;

    gap: 8px;

    border-top:
        1px solid rgba(255,255,255,.08);

    color:
        #94a3b8;

    font-size:
        10px;

}

.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #22c55e;

    box-shadow:
        0 0 0 4px rgba(34,197,94,.12);

}


/* ==========================================================
   OVERLAY
========================================================== */

.sidebar-overlay {

    position: fixed;

    inset: 0;

    z-index: 2500;

    background:
        rgba(2,6,23,.62);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;

    backdrop-filter:
        blur(2px);

}

.sidebar-overlay.is-visible {

    opacity: 1;
    visibility: visible;

}


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

.dashboard-shell {

    min-height: 100vh;

    margin-left: 0;

}


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

.dashboard-header {

    position: sticky;

    top: 0;

    z-index: 1500;

    min-height: 68px;

    padding:
        10px 14px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap: 10px;

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

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

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

    backdrop-filter:
        blur(18px);

}

.header-left {

    display:
        flex;

    align-items:
        center;

    gap: 10px;

    min-width: 0;

}

.menu-button {

    width: 40px;
    height: 40px;

    border: 0;

    border-radius: 11px;

    background:
        #f1f5f9;

}

.header-logo {

    width: 39px;
    height: 39px;

    border-radius:
        10px;

    object-fit:
        contain;

}

.header-brand {
    min-width: 0;
}

.header-brand strong {

    display: block;

    font-size: 12px;

    white-space: nowrap;

}

.header-brand span {

    display: block;

    color:
        var(--text-muted);

    font-size:
        9px;

}

.header-actions {

    display:
        flex;

    align-items:
        center;

    gap: 4px;

}

.header-actions button {

    position: relative;

    width: 37px;
    height: 37px;

    border: 0;

    border-radius:
        10px;

    background:
        transparent;

    font-size:
        17px;

}

.header-actions button:hover {

    background:
        #f1f5f9;

}

.notification-badge {

    position: absolute;

    top: -1px;
    right: -1px;

    min-width: 16px;
    height: 16px;

    padding: 0 4px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        999px;

    background:
        var(--danger);

    color:
        #ffffff;

    font-size:
        8px;

    font-weight:
        800;

}


/* ==========================================================
   STATUS BAR
========================================================== */

.status-bar {

    min-height: 34px;

    padding:
        6px 14px;

    display:
        flex;

    align-items:
        center;

    gap: 6px;

    flex-wrap:
        wrap;

    background:
        var(--surface);

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

}

.status-bar span {

    padding:
        3px 7px;

    border-radius:
        999px;

    background:
        #f1f5f9;

    color:
        var(--text-soft);

    font-size:
        9px;

}


/* ==========================================================
   NOTICE BAR
========================================================== */

.notice-bar {

    min-height:
        38px;

    padding:
        7px 14px;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    background:
        linear-gradient(
            90deg,
            #991b1b,
            #dc2626
        );

    color:
        #ffffff;

    font-size:
        11px;

}

.notice-bar strong {
    white-space: nowrap;
}

#noticeTicker {

    overflow:
        hidden;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;

}


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

#dashboardMain {

    width:
        min(100%, 1440px);

    margin:
        0 auto;

    padding:
        14px 12px 100px;

}


/* ==========================================================
   WELCOME
========================================================== */

.welcome-section {
    margin-bottom: 14px;
}

.welcome-card {

    min-height:
        175px;

    padding:
        22px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

    overflow:
        hidden;

    border-radius:
        var(--radius-xl);

    background:
        linear-gradient(
            135deg,
            #0b6e4f,
            #07543d 55%,
            #2563eb
        );

    color:
        #ffffff;

    box-shadow:
        var(--shadow);

}

.welcome-content {
    min-width: 0;
}

.welcome-greeting {

    display:
        inline-block;

    margin-bottom:
        4px;

    color:
        rgba(255,255,255,.82);

    font-size:
        12px;

}

.welcome-card h1 {

    font-size:
        clamp(20px, 4vw, 30px);

}

.welcome-card h1 span {
    color: #fef08a;
}

.welcome-card p {

    max-width:
        650px;

    margin-top:
        6px;

    color:
        rgba(255,255,255,.84);

    font-size:
        12px;

}

.student-meta {

    margin-top:
        12px;

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;

}

.student-meta span {

    padding:
        5px 8px;

    border-radius:
        999px;

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

    font-size:
        9px;

}

.welcome-profile {

    flex:
        0 0 auto;

    text-align:
        center;

}

.welcome-profile img {

    width:
        70px;

    height:
        70px;

    object-fit:
        cover;

    border-radius:
        50%;

    background:
        #ffffff;

    border:
        3px solid rgba(255,255,255,.75);

}

.welcome-profile span {

    display:
        block;

    margin-top:
        5px;

    font-size:
        9px;

}


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

.stats-grid {

    display:
        grid;

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

    gap:
        9px;

    margin-bottom:
        18px;

}

.stat-card {

    min-height:
        90px;

    padding:
        13px;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    background:
        var(--surface);

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

    border-radius:
        var(--radius-md);

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

}

.stat-card > span {

    width:
        40px;

    height:
        40px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        12px;

    background:
        #f0fdf4;

    font-size:
        20px;

}

.stat-card small {

    display:
        block;

    color:
        var(--text-muted);

    font-size:
        9px;

}

.stat-card strong {

    display:
        block;

    margin-top:
        1px;

    font-size:
        21px;

}


/* ==========================================================
   SECTIONS
========================================================== */

.dashboard-section {

    margin-top:
        22px;

}

.section-heading {

    margin-bottom:
        11px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

}

.section-heading h2 {

    font-size:
        17px;

}

.section-heading p {

    margin-top:
        2px;

    color:
        var(--text-muted);

    font-size:
        10px;

}


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

.service-grid {

    display:
        grid;

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

    gap:
        9px;

}

.service-card {

    min-height:
        105px;

    padding:
        14px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    justify-content:
        center;

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

    border-radius:
        var(--radius-md);

    background:
        var(--surface);

    color:
        var(--text);

    text-align:
        left;

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

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);

}

.service-card span {

    margin-bottom:
        7px;

    font-size:
        24px;

}

.service-card strong {

    font-size:
        12px;

}

.service-card small {

    margin-top:
        2px;

    color:
        var(--text-muted);

    font-size:
        9px;

}

.service-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(11,110,79,.3);

    box-shadow:
        var(--shadow);

}


/* ==========================================================
   PATHWAYS
========================================================== */

.pathway-grid {

    display:
        grid;

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

    gap:
        9px;

}

.pathway-card {

    min-height:
        135px;

    padding:
        15px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    justify-content:
        center;

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

    border-radius:
        var(--radius-lg);

    background:
        var(--surface);

    text-align:
        left;

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

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}

.pathway-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow);

}

.pathway-card span {
    font-size: 28px;
}

.pathway-card strong {

    margin-top:
        7px;

    font-size:
        13px;

}

.pathway-card small {

    margin-top:
        3px;

    color:
        var(--text-muted);

    font-size:
        9px;

}


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

.module-grid {

    display:
        grid;

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

    gap:
        9px;

}

.module-card {

    min-height:
        105px;

    padding:
        14px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    justify-content:
        center;

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

    border-radius:
        var(--radius-md);

    background:
        var(--surface);

    text-align:
        left;

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

    transition:
        transform var(--transition),
        box-shadow var(--transition);

}

.module-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow);

}

.module-card span {
    font-size: 24px;
}

.module-card strong {

    margin-top:
        6px;

    font-size:
        12px;

}

.module-card small {

    color:
        var(--text-muted);

    font-size:
        9px;

}


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

.ai-grid {

    display:
        grid;

    grid-template-columns:
        1fr;

    gap:
        9px;

}

.ai-card {

    min-height:
        76px;

    padding:
        12px 14px;

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

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

    border-radius:
        var(--radius-md);

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

    text-align:
        left;

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

}

.ai-card > span {

    width:
        42px;

    height:
        42px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        12px;

    background:
        #eef2ff;

    font-size:
        22px;

}

.ai-card strong {

    display:
        block;

    font-size:
        12px;

}

.ai-card small {

    display:
        block;

    color:
        var(--text-muted);

    font-size:
        9px;

}


/* ==========================================================
   ACTIVITY
========================================================== */

.empty-state {

    min-height:
        120px;

    padding:
        20px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    background:
        var(--surface);

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

    border-radius:
        var(--radius-md);

    color:
        var(--text-muted);

}

.empty-state span {
    font-size: 28px;
}

.empty-state strong {

    margin-top:
        7px;

    color:
        var(--text);

    font-size:
        12px;

}

.empty-state small {

    margin-top:
        3px;

    font-size:
        9px;

}


/* ==========================================================
   PREMIUM
========================================================== */

.premium-section {
    margin-top:
        25px;
}

.premium-card {

    padding:
        22px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

    border-radius:
        var(--radius-xl);

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

    color:
        #ffffff;

    box-shadow:
        var(--shadow);

}

.premium-card > div:first-child {
    min-width: 0;
}

.premium-card span {

    font-size:
        10px;

    opacity:
        .9;

}

.premium-card h2 {

    margin-top:
        3px;

    font-size:
        22px;

}

.premium-card p {

    max-width:
        550px;

    margin-top:
        5px;

    color:
        rgba(255,255,255,.85);

    font-size:
        10px;

}

.premium-card button {

    margin-top:
        12px;

    padding:
        9px 14px;

    border:
        0;

    border-radius:
        10px;

    background:
        #ffffff;

    color:
        #c2410c;

    font-weight:
        700;

    font-size:
        10px;

}

.premium-icon {

    font-size:
        45px;

}


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

.dashboard-footer {

    margin-top:
        30px;

    padding:
        30px 15px 100px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    text-align:
        center;

    background:
        var(--surface);

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

    color:
        var(--text-muted);

}

.dashboard-footer img {

    width:
        50px;

    height:
        50px;

    margin-bottom:
        8px;

    object-fit:
        contain;

}

.dashboard-footer strong {

    color:
        var(--text);

    font-size:
        13px;

}

.dashboard-footer p {

    margin-top:
        3px;

    font-size:
        9px;

}

.footer-links {

    margin:
        12px 0;

    display:
        flex;

    gap:
        12px;

}

.footer-links button {

    border:
        0;

    background:
        transparent;

    color:
        var(--primary);

    font-size:
        9px;

}

.dashboard-footer small {

    margin-top:
        3px;

    font-size:
        8px;

}



/* Student account actions: normal sidebar navigation; not locked or sticky. */
.sidebar-account-footer{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:10px 12px 14px;
    border-top:1px solid var(--border);
}
.sidebar-account-link{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    min-height:40px;
    padding:9px 11px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:inherit;
    text-decoration:none;
    font:inherit;
    cursor:pointer;
    text-align:left;
}
.sidebar-account-link:hover{background:rgba(11,110,79,.08);}
.sidebar-logout-link{color:#b42318;}
.sidebar-online-status{display:flex;align-items:center;gap:8px;padding:5px 11px;font-size:12px;opacity:.78;}

/* ==========================================================
   MOBILE BOTTOM NAV
========================================================== */

.bottom-navigation {

    position:
        fixed;

    left:
        0;

    right:
        0;

    bottom:
        0;

    z-index:
        2000;

    min-height:
        62px;

    display:
        grid;

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

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

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

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

    backdrop-filter:
        blur(18px);

}

.bottom-nav-item {

    min-height:
        62px;

    border:
        0;

    background:
        transparent;

    color:
        var(--text-muted);

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        2px;

}

.bottom-nav-item span {
    font-size:
        18px;
}

.bottom-nav-item small {
    font-size:
        8px;
}

.bottom-nav-item.active {
    color:
        var(--primary);
    font-weight:
        700;
}


/* ==========================================================
   TOAST
========================================================== */

.feature-toast {

    position:
        fixed;

    left:
        50%;

    bottom:
        78px;

    z-index:
        6000;

    width:
        min(90%, 420px);

    transform:
        translateX(-50%);

    padding:
        11px 14px;

    border-radius:
        12px;

    background:
        #0f172a;

    color:
        #ffffff;

    text-align:
        center;

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

    font-size:
        11px;

}

.feature-toast[hidden] {
    display:
        none !important;
}


/* ==========================================================
   TABLET
========================================================== */

@media (min-width: 600px) {

    #dashboardMain {
        padding:
            18px 18px 70px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(4,1fr);
    }

    .service-grid {
        grid-template-columns:
            repeat(4,1fr);
    }

    .pathway-grid {
        grid-template-columns:
            repeat(3,1fr);
    }

    .module-grid {
        grid-template-columns:
            repeat(4,1fr);
    }

    .ai-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .bottom-navigation {
        display:
            grid;
    }

    .dashboard-footer {
        padding-bottom:
            30px;
    }

}


/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width: 1024px) {

    .dashboard-sidebar {

        transform:
            translateX(0);

    }

    .sidebar-overlay {

        display:
            none;

    }

    .sidebar-close {

        display:
            none;

    }

    .dashboard-shell {

        margin-left:
            var(--sidebar-width);

    }

    .dashboard-header {

        padding:
            10px 22px;

    }

    .menu-button {

        display:
            none;

    }

    #dashboardMain {

        padding:
            24px 28px 40px;

    }

    .bottom-navigation {

        display:
            none;

    }

    .stats-grid {
        gap:
            14px;
    }

    .stat-card {
        min-height:
            105px;
    }

    .service-grid {
        gap:
            12px;
    }

    .pathway-grid {
        grid-template-columns:
            repeat(6,1fr);
    }

    .module-grid {
        grid-template-columns:
            repeat(4,1fr);
    }

    .ai-grid {
        grid-template-columns:
            repeat(4,1fr);
    }

    .dashboard-footer {
        padding-bottom:
            30px;
    }

}


/* ==========================================================
   LARGE DESKTOP
========================================================== */

@media (min-width: 1400px) {

    #dashboardMain {

        padding-left:
            40px;

        padding-right:
            40px;

    }

    .welcome-card {

        min-height:
            205px;

        padding:
            30px;

    }

    .welcome-profile img {

        width:
            90px;

        height:
            90px;

    }

}


/* ==========================================================
   DARK MODE
========================================================== */

body.dark {

    --bg:
        #020617;

    --surface:
        #0f172a;

    --surface-soft:
        #111827;

    --text:
        #f8fafc;

    --text-soft:
        #cbd5e1;

    --text-muted:
        #94a3b8;

    --border:
        #1e293b;

    background:
        #020617;

    color:
        #f8fafc;

}

body.dark .dashboard-header {

    background:
        rgba(15,23,42,.96);

}

body.dark .status-bar {

    background:
        #0f172a;

}

body.dark .status-bar span {

    background:
        #1e293b;

    color:
        #cbd5e1;

}

body.dark .stat-card,
body.dark .service-card,
body.dark .pathway-card,
body.dark .module-card,
body.dark .ai-card,
body.dark .empty-state {

    background:
        #0f172a;

    border-color:
        #1e293b;

}

body.dark .header-actions button:hover,
body.dark .menu-button {

    background:
        #1e293b;

}

body.dark .bottom-navigation {

    background:
        rgba(15,23,42,.96);

}

body.dark .dashboard-footer {

    background:
        #0f172a;

}

body.dark .loader-box {

    background:
        rgba(15,23,42,.96);

}

body.dark .loader-box h2 {

    color:
        #ffffff;

}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

button:focus-visible,
a:focus-visible {

    outline:
        3px solid rgba(37,99,235,.35);

    outline-offset:
        2px;

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;

    }

}


/* ==========================================================
   END
========================================================== */
/* ==========================================================
   Student Dashboard 11.0 — Professional Universal Gateway
========================================================== */
#dashboardMain{max-width:1480px;margin:0 auto;padding:16px 22px 46px}
.student-news-strip{display:flex;align-items:center;overflow:hidden;border:1px solid #dbe6f2;border-radius:14px;background:#fff;box-shadow:0 8px 24px #0f172a0a;margin-bottom:14px;height:44px}
.student-news-label{height:100%;display:grid;place-items:center;padding:0 16px;background:#0b6e4f;color:#fff;font-size:9px;font-weight:900;letter-spacing:.12em;white-space:nowrap}
.student-news-track{display:block;overflow:hidden;white-space:nowrap;padding:0;flex:1;position:relative}
.student-news-ticker-inner{display:flex;width:max-content;min-width:max-content;will-change:transform}
.student-news-ticker-group{display:flex;align-items:center;gap:22px;padding:0 15px;flex:none}
.student-news-ticker-inner.is-scrolling{animation:studentNewsMarquee 95s linear infinite;animation-iteration-count:infinite !important;animation-play-state:running}
.student-news-strip:hover .student-news-ticker-inner.is-scrolling,.student-news-strip:focus-within .student-news-ticker-inner.is-scrolling{animation-play-state:paused}
@keyframes studentNewsMarquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.student-ticker-item{border:0;background:transparent;display:inline-flex;gap:7px;align-items:center;font:inherit;cursor:pointer;color:#17324f;font-size:10px}
.student-ticker-item b{color:#0b6e4f;font-size:8px}
.student-ticker-item:hover span{text-decoration:underline}
.student-global-search{position:relative;margin:0 22px 12px}
.student-search-input{width:100%;min-height:46px;border:1px solid #d9e3ee;border-radius:14px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 14px;color:#66758a;font-size:10px;text-align:left;cursor:pointer;box-shadow:0 6px 20px #0f172a08}
.student-search-input span:nth-child(2){flex:1}
.student-search-input kbd{border:1px solid #d7e0ea;border-radius:6px;padding:4px 7px;background:#f8fafc;font-size:8px;color:#66758a}
.student-search-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:7px 0 0}
.student-search-suggestions button{border:1px solid #dce5ef;border-radius:999px;background:#fff;padding:6px 9px;font-size:8px;font-weight:800;color:#38536d;cursor:pointer}
.student-hero{display:grid;grid-template-columns:minmax(0,1.7fr) 280px;gap:16px;position:relative;overflow:hidden;border-radius:22px;padding:26px;background:linear-gradient(135deg,#071f47,#0b6e4f 65%,#147f61);color:#fff;box-shadow:0 16px 38px #0f172a1a;margin-bottom:14px}
.student-hero:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;right:-90px;top:-120px;background:#ffffff10}
.student-eyebrow,.student-section-head>div>span{font-size:8px;letter-spacing:.14em;font-weight:900;opacity:.78}
.student-hero h1{font-size:30px;margin:8px 0 7px;line-height:1.15}
.student-hero p{max-width:760px;font-size:11px;line-height:1.7;opacity:.9;margin:0 0 14px}
.student-identity{display:flex;flex-wrap:wrap;gap:8px}
.student-identity span{border:1px solid #ffffff2b;background:#ffffff12;border-radius:999px;padding:7px 10px;font-size:8px}
.student-hero-actions{display:flex;gap:8px;margin-top:16px}
.student-hero-actions button,.student-premium button{border:0;border-radius:9px;padding:9px 12px;background:#fff;color:#0b6e4f;font-size:9px;font-weight:900;cursor:pointer}
.student-hero-actions .ghost,.student-premium .ghost{background:#ffffff16;color:#fff;border:1px solid #ffffff40}
.student-hero-profile{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;z-index:1}
.student-hero-profile img{width:105px;height:105px;border-radius:50%;object-fit:cover;background:#fff;padding:4px;border:4px solid #ffffff42}
.student-hero-profile strong{margin-top:8px;font-size:12px}.student-hero-profile small{font-size:8px;opacity:.78;margin-top:3px}
.student-hero-orbit{position:absolute;font-size:100px;opacity:.08}
.student-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
.student-stat-card{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #dfe8f1;border-radius:15px;background:#fff;box-shadow:0 7px 22px #0f172a0a}
.student-stat-card>span{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:19px;background:#eff6ff}
.student-stat-card small,.student-stat-card strong,.student-stat-card em{display:block}.student-stat-card small{font-size:8px;color:#74849a}.student-stat-card strong{font-size:21px;line-height:1.1;margin:3px 0;font-style:normal}.student-stat-card em{font-size:7px;color:#0b6e4f;font-style:normal;font-weight:800}
.student-section{margin-top:18px}
.student-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:10px}
.student-section-head h2{font-size:17px;margin:4px 0 2px}.student-section-head p{font-size:9px;color:#73839a;margin:0}.student-text-action{border:0;background:transparent;color:#155eef;font-size:9px;font-weight:900;cursor:pointer}
.student-quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}
.student-quick-grid button,.student-tool-grid button,.student-community-grid button,.student-account-grid button{border:1px solid #e0e8f1;background:#fff;border-radius:13px;padding:13px;text-align:left;cursor:pointer;box-shadow:0 6px 20px #0f172a08;transition:.18s}
.student-quick-grid button:hover,.student-tool-grid button:hover,.student-community-grid button:hover,.student-account-grid button:hover,.student-service-grid button:hover{transform:translateY(-2px);box-shadow:0 12px 28px #0f172a14}
.student-quick-grid b,.student-tool-grid b,.student-community-grid b,.student-account-grid b{font-size:19px;display:block;margin-bottom:9px}
.student-quick-grid strong,.student-tool-grid strong,.student-community-grid strong,.student-account-grid strong{display:block;font-size:10px}.student-quick-grid small,.student-tool-grid small,.student-community-grid small,.student-account-grid small{display:block;font-size:8px;color:#718096;line-height:1.5;margin-top:4px}
.student-service-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.student-service-grid button{border:1px solid #dce6f0;border-radius:16px;padding:15px;text-align:left;min-height:150px;position:relative;overflow:hidden;background:#fff;cursor:pointer;transition:.18s}
.student-service-grid button:after{content:"";position:absolute;right:-25px;top:-25px;width:90px;height:90px;border-radius:50%;background:#ffffff40}
.student-service-grid i{font-style:normal;font-size:25px;display:block}.student-service-grid strong{display:block;font-size:11px;margin-top:10px;max-width:170px}.student-service-grid small{display:block;font-size:8px;color:#60748b;margin-top:5px;line-height:1.5}.student-service-grid em{display:inline-block;margin-top:10px;font-size:7px;font-style:normal;font-weight:900;padding:4px 7px;border-radius:999px;background:#ffffff80}
.service-blue{background:linear-gradient(135deg,#eef7ff,#dff1ff)!important}.service-purple{background:linear-gradient(135deg,#f3efff,#e8ddff)!important}.service-orange{background:linear-gradient(135deg,#fff6e8,#ffe8c2)!important}.service-green{background:linear-gradient(135deg,#edfff6,#d5f7e7)!important}.service-pink{background:linear-gradient(135deg,#fff0f7,#ffdced)!important}.service-indigo{background:linear-gradient(135deg,#eef1ff,#dce3ff)!important}.service-teal{background:linear-gradient(135deg,#eaffff,#d5f5f4)!important}.service-cyan{background:linear-gradient(135deg,#ebfbff,#d7f3ff)!important}.service-red{background:linear-gradient(135deg,#fff0ef,#ffdcd9)!important}.service-gold{background:linear-gradient(135deg,#fffbea,#ffefad)!important}
.student-tool-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}
.student-ai-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.student-ai-grid button{display:flex;gap:10px;align-items:center;border:1px solid #dce5f1;border-radius:14px;background:linear-gradient(135deg,#f7f9ff,#fff);padding:13px;text-align:left;cursor:pointer}
.student-ai-grid b{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#eef1ff;font-size:18px}.student-ai-grid strong,.student-ai-grid small{display:block}.student-ai-grid strong{font-size:10px}.student-ai-grid small{font-size:8px;color:#718096;margin-top:3px}
.student-live-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:10px}.student-live-card{min-height:180px;border-radius:17px;padding:20px;color:#fff;background:linear-gradient(135deg,#0b6e4f,#155eef);position:relative;overflow:hidden}.student-live-card:after{content:"";position:absolute;right:-40px;bottom:-55px;width:180px;height:180px;border-radius:50%;background:#ffffff12}.live-pill{font-size:8px;font-weight:900;letter-spacing:.1em}.student-live-card h3{font-size:18px;margin:18px 0 5px}.student-live-card p{font-size:9px;opacity:.84;max-width:520px}.student-live-card button{margin-top:10px;border:0;border-radius:9px;padding:9px 12px;background:#fff;color:#0b6e4f;font-size:9px;font-weight:900;cursor:pointer}
.student-mini-list{display:grid;gap:8px}.student-mini-list button{display:flex;align-items:center;gap:10px;border:1px solid #e0e8f1;background:#fff;border-radius:13px;padding:11px;text-align:left;cursor:pointer}.student-mini-list b{font-size:18px}.student-mini-list span{flex:1}.student-mini-list strong,.student-mini-list small{display:block}.student-mini-list strong{font-size:10px}.student-mini-list small{font-size:8px;color:#718096;margin-top:3px}.student-mini-list em{font-style:normal;color:#155eef;font-weight:900}
.student-community-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.student-updates-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}
.student-update-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:8px;border:1px solid #e0e8f1;background:#fff;border-radius:13px;padding:10px;text-align:left;cursor:pointer}.student-update-card .update-icon{width:42px;height:42px;border-radius:10px;background:#eff6ff;display:grid;place-items:center;overflow:hidden;font-size:18px}.student-update-card img{width:100%;height:100%;object-fit:cover}.update-copy small,.update-copy strong{display:block}.update-copy small{font-size:7px;color:#155eef}.update-copy strong{font-size:9px;line-height:1.35;margin-top:3px}.student-update-card em{font-style:normal;color:#155eef;font-weight:900}
.student-activity-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.activity-panel{border:1px solid #e0e8f1;border-radius:13px;background:#fff;padding:12px;min-height:125px}.activity-panel h3{font-size:10px;margin:0 0 8px}.activity-empty{font-size:8px;color:#7a899c;line-height:1.5}.activity-item{display:flex;gap:6px;align-items:center;width:100%;border:0;background:transparent;padding:5px 0;text-align:left;cursor:pointer}.activity-item span{color:#155eef}.activity-item strong{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.student-account-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.student-premium{margin-top:18px;border-radius:20px;padding:24px;background:linear-gradient(135deg,#1e1b4b,#312e81 55%,#0b6e4f);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;overflow:hidden}.student-premium>div:first-child{max-width:780px}.student-premium>div:first-child>span{font-size:8px;font-weight:900;letter-spacing:.13em}.student-premium h2{font-size:23px;margin:7px 0}.student-premium p{font-size:10px;line-height:1.6;opacity:.88}.premium-actions{display:flex;gap:8px;margin-top:12px}.premium-art{font-size:90px;opacity:.18;margin-right:25px}
.student-empty{grid-column:1/-1;padding:22px;border:1px dashed #d6e0ea;border-radius:13px;background:#f8fafc;text-align:center}.student-empty span{font-size:22px;display:block}.student-empty strong{display:block;font-size:10px;margin-top:5px}.student-empty small{display:block;font-size:8px;color:#718096;margin-top:3px}
body.dark #dashboardMain{background:#0b1422}.dark .student-news-strip,.dark .student-stat-card,.dark .student-quick-grid button,.dark .student-tool-grid button,.dark .student-community-grid button,.dark .student-account-grid button,.dark .student-ai-grid button,.dark .student-mini-list button,.dark .student-update-card,.dark .activity-panel,.dark .student-search-input{background:#101d2f;border-color:#253a56;color:#e5edf7}.dark .student-section-head p,.dark .student-tool-grid small,.dark .student-community-grid small,.dark .student-account-grid small,.dark .student-update-card .update-copy small,.dark .activity-empty{color:#93a6bd}.dark .student-search-suggestions button{background:#101d2f;border-color:#253a56;color:#dbe7f5}.dark .student-search-input{color:#9fb0c4}
@media(max-width:1200px){.student-service-grid{grid-template-columns:repeat(4,1fr)}.student-quick-grid{grid-template-columns:repeat(3,1fr)}.student-tool-grid{grid-template-columns:repeat(4,1fr)}.student-community-grid{grid-template-columns:repeat(4,1fr)}.student-account-grid{grid-template-columns:repeat(4,1fr)}.student-updates-grid{grid-template-columns:repeat(3,1fr)}.student-activity-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){#dashboardMain{padding:12px}.student-global-search{margin:0 12px 10px}.student-hero{grid-template-columns:1fr}.student-hero-profile{display:none}.student-stat-grid{grid-template-columns:repeat(2,1fr)}.student-service-grid{grid-template-columns:repeat(2,1fr)}.student-ai-grid{grid-template-columns:repeat(2,1fr)}.student-live-layout{grid-template-columns:1fr}.student-updates-grid{grid-template-columns:repeat(2,1fr)}.student-activity-grid{grid-template-columns:repeat(2,1fr)}.student-premium{align-items:flex-start}.premium-art{display:none}}
@media(max-width:600px){.student-news-strip{height:auto;min-height:42px}.student-news-label{padding:0 10px;font-size:7px}.student-ticker-item{font-size:9px}.student-search-input{min-height:42px}.student-search-input kbd{display:none}.student-hero{padding:20px;border-radius:17px}.student-hero h1{font-size:24px}.student-hero-actions{flex-wrap:wrap}.student-stat-grid{gap:7px}.student-stat-card{padding:11px}.student-stat-card>span{width:36px;height:36px}.student-stat-card strong{font-size:18px}.student-section-head{align-items:flex-start;flex-direction:column}.student-service-grid,.student-ai-grid,.student-updates-grid,.student-activity-grid{grid-template-columns:1fr}.student-tool-grid{grid-template-columns:repeat(2,1fr)}.student-quick-grid{grid-template-columns:repeat(2,1fr)}.student-community-grid,.student-account-grid{grid-template-columns:repeat(2,1fr)}.student-premium{padding:19px}.student-premium h2{font-size:20px}}
