:root {
    --primary: #3f2c24;
    --primary-dark: #241915;
    --secondary: #2f211b;
    --accent: #d8bd86;
    --bg: #faf8f4;
    --card: #ffffff;
    --text: #332822;
    --muted: #7a6d65;
    --border: #eadfce;
    --dark: #1f1612;
    --shadow: 0 20px 50px rgba(63, 44, 36, 0.14);
}

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

.student-theme-body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.student-theme-body a,
.student-theme-body button {
    font: inherit;
}

.student-theme-body a {
    color: inherit;
    text-decoration: none;
}

.student-theme-body img {
    display: block;
    max-width: 100%;
}

.student-dashboard-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    min-height: 100vh;
}

.student-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    color: #ffffff;
    background:
        radial-gradient(circle at 14% 0%, rgba(216,189,134,0.18), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(216,189,134,0.08), transparent 28%),
        linear-gradient(180deg, #241915 0%, #120d0a 100%);
    border-right: 1px solid rgba(216,189,134,0.14);
}

.student-sidebar-overlay {
    display: none;
}

.student-sidebar::-webkit-scrollbar {
    width: 6px;
}

.student-sidebar::-webkit-scrollbar-thumb {
    background: rgba(216,189,134,0.28);
    border-radius: 999px;
}

.student-brand-box {
    padding: 10px 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 18px;
}

.student-brand-box img {
    width: 198px;
    margin-bottom: 14px;
}

.student-brand-box p {
    color: #c9c0b8;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
}

.student-side-nav {
    display: grid;
    gap: 18px;
    flex: 1;
}

.student-menu-group {
    display: grid;
    gap: 7px;
}

.student-menu-label {
    color: rgba(239,225,194,0.72);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    padding: 0 12px 4px;
}

.student-side-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: 0.25s ease;
}

.student-side-link:hover,
.student-side-link.active {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    transform: translateX(3px);
    border-color: rgba(216,189,134,0.16);
}

.student-side-link.active {
    background: linear-gradient(135deg, rgba(216,189,134,0.20), rgba(255,255,255,0.06));
    box-shadow: inset 3px 0 0 #d8bd86, 0 12px 24px rgba(0,0,0,0.12);
}

.student-side-link.active::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d8bd86;
    box-shadow: 0 0 0 5px rgba(216,189,134,0.12);
}

.student-side-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,0.08);
    color: #efe1c2;
    transition: 0.25s ease;
}

.student-side-link:hover .student-side-icon,
.student-side-link.active .student-side-icon {
    background: linear-gradient(135deg, #e8d39d, #9b783f);
    color: #1f1612;
}

.student-side-text {
    min-width: 0;
    flex: 1;
}

.student-side-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(216,189,134,0.16);
    color: #efe1c2;
    font-size: 11px;
    font-weight: 800;
}

.student-logout-link {
    margin-top: 6px;
    color: #f3d7c8;
    background: rgba(255,255,255,0.045);
}

.student-logout-link:hover {
    background: rgba(244,114,114,0.12);
    border-color: rgba(244,114,114,0.20);
}

.student-sidebar-footer {
    margin-top: 20px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(216,189,134,0.16), rgba(255,255,255,0.055));
    border: 1px solid rgba(216,189,134,0.18);
}

.student-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.student-mini-avatar,
.student-profile-avatar,
.student-large-avatar {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8d39d, #9b783f);
    color: #1f1612;
    font-weight: 900;
}

.student-mini-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 15px;
}

.student-sidebar-footer strong {
    display: block;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 3px;
    overflow-wrap: anywhere;
}

.student-sidebar-footer span {
    display: block;
    color: #c9c0b8;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
}

.student-verified-mini {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(216,189,134,0.14);
    color: #efe1c2 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.student-main-area {
    min-width: 0;
}

.student-top-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 16px 28px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.student-top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.student-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.student-page-title {
    min-width: 0;
}

.student-page-title h1 {
    color: var(--secondary);
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 3px;
}

.student-page-title p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.student-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.student-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
    transition: 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
}

.student-btn-primary {
    background: linear-gradient(135deg, #e8d39d 0%, #c8a861 48%, #8a6936 100%);
    color: #1f1612 !important;
    border-color: rgba(216,189,134,0.65);
    box-shadow: 0 12px 26px rgba(63,44,36,0.18);
}

.student-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(63,44,36,0.25);
}

.student-btn-light {
    background: #ffffff;
    border-color: var(--border);
    color: var(--secondary);
}

.student-profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 6px 14px rgba(63,44,36,0.04);
}

.student-profile-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
}

.student-profile-chip strong,
.student-profile-chip span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-profile-chip strong {
    max-width: 150px;
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.1;
}

.student-profile-chip span {
    max-width: 150px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.student-mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--secondary);
    font-size: 21px;
}

.student-dashboard-content {
    padding: 30px 28px 50px;
}

.student-welcome-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
    padding: 34px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 12%, rgba(216,189,134,0.30), transparent 26%),
        linear-gradient(135deg, #2f211b, #1f1612);
    box-shadow: var(--shadow);
}

.student-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(216,189,134,0.16);
    border: 1px solid rgba(216,189,134,0.32);
    color: #efe1c2;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.student-welcome-card h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.student-welcome-card h2 span {
    color: var(--accent);
}

.student-welcome-card p {
    max-width: 720px;
    color: #d1d5db;
    font-size: 16px;
    font-weight: 600;
}

.student-welcome-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.student-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.student-stat-card,
.student-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(63,44,36,0.045);
}

.student-stat-card {
    padding: 22px;
    border-radius: 26px;
    transition: 0.25s ease;
}

.student-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(63,44,36,0.08);
}

.student-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.student-stat-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(216,189,134,0.22);
    color: var(--primary-dark);
    font-size: 23px;
}

.student-trend {
    color: #2f7d46;
    background: rgba(47,125,70,0.10);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.student-trend-gold {
    color: #7a5a25;
    background: rgba(216,189,134,0.20);
}

.student-stat-card h3 {
    color: var(--secondary);
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.student-stat-card p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.student-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.student-panel {
    border-radius: 30px;
    overflow: hidden;
}

.student-panel-spaced,
.student-panel-spaced-sm {
    margin-bottom: 24px;
}

.student-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.student-panel-head.compact {
    padding-bottom: 18px;
}

.student-panel-head h2 {
    color: var(--secondary);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: 0;
}

.student-panel-head p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
}

.student-action-link {
    color: var(--primary-dark);
    font-weight: 800;
    border-bottom: 2px solid rgba(216,189,134,0.65);
    white-space: nowrap;
}

.student-module-list {
    display: grid;
}

.student-module-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 150px;
    gap: 14px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.student-module-row:last-child {
    border-bottom: 0;
}

.student-module-icon,
.student-career-icon {
    display: grid;
    place-items: center;
    background: rgba(216,189,134,0.22);
    color: var(--primary-dark);
}

.student-module-icon {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    font-size: 20px;
}

.student-module-row h3,
.student-career-card h3 {
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.student-module-row p,
.student-career-card p {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.student-progress-meter {
    height: 10px;
    border-radius: 999px;
    background: #efe7da;
    overflow: hidden;
}

.student-progress-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #e8d39d, #9b783f);
}

.student-career-list {
    display: grid;
}

.student-career-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.student-career-card:last-child {
    border-bottom: 0;
}

.student-career-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 19px;
}

.student-career-card a {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
}

.student-profile-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.student-large-avatar {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 22px;
    font-size: 23px;
}

.student-profile-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.student-profile-card-head > div:last-child {
    min-width: 0;
}

.student-profile-card-head h2 {
    color: var(--secondary);
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.student-profile-card-head p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.student-profile-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.student-profile-status span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(47,125,70,0.10);
    color: #2f7d46;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.student-profile-status span:last-child {
    background: rgba(216,189,134,0.18);
    color: #7a5a25;
}

.student-quick-list {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.student-quick-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 18px;
    background: #faf8f4;
    border: 1px solid var(--border);
    color: var(--secondary);
    transition: 0.25s ease;
}


.student-quick-list a:hover,
.student-app-list a:hover {
    background: #ffffff;
    border-color: rgba(216,189,134,0.70);
    transform: translateY(-2px);
}

.student-quick-list span,
.student-app-list span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(216,189,134,0.22);
    color: var(--primary-dark);
    font-size: 18px;
}

.student-quick-list strong,
.student-app-list strong {
    display: block;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.2;
}

.student-quick-list small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    margin-top: 3px;
}

.student-app-list {
    display: flex;
    gap: 10px;
    padding: 20px;
}

.student-app-list a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 88px;
    display: grid;
    justify-items: center;
    align-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 18px;
    background: #faf8f4;
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.25s ease;
}

.student-app-list span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

@media (max-width: 1180px) {
    .student-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .student-sidebar {
        position: fixed;
        z-index: 80;
        left: 0;
        top: 0;
        width: 292px;
        transform: translateX(-100%);
        transition: 0.25s ease;
    }

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

    .student-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 70;
        display: block;
        background: rgba(18,13,10,0.46);
        opacity: 0;
        pointer-events: none;
        transition: 0.25s ease;
    }

    .student-sidebar-open .student-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .student-mobile-menu-btn {
        display: grid;
        place-items: center;
    }

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

    .student-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .student-right-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .student-right-column .student-panel:first-child {
        grid-column: 1 / -1;
    }

    .student-panel-spaced-sm {
        margin-bottom: 0;
    }
}

@media (max-width: 820px) {
    .student-top-header-inner,
    .student-welcome-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-top-header-inner,
    .student-header-actions,
    .student-welcome-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .student-profile-chip {
        display: none;
    }

    .student-header-actions {
        display: none;
    }

    .student-right-column {
        grid-template-columns: 1fr;
    }

    .student-module-row {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .student-progress-meter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .student-top-header {
        padding: 14px;
    }

    .student-page-title h1 {
        font-size: 24px;
    }

    .student-page-title p {
        font-size: 13px;
    }

    .student-dashboard-content {
        padding: 18px 14px 32px;
    }

    .student-welcome-card,
    .student-stat-card,
    .student-panel-head {
        padding: 20px;
    }

    .student-welcome-card {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
        padding: 22px 18px;
    }

    .student-welcome-card,
    .student-panel {
        border-radius: 22px;
    }

    .student-status-pill {
        width: 100%;
        justify-content: center;
        padding: 9px 11px;
        font-size: 11px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    .student-welcome-card h2 {
        font-size: 30px;
        line-height: 1.12;
        margin-bottom: 10px;
    }

    .student-welcome-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .student-welcome-actions,
    .student-welcome-actions .student-btn,
    .student-header-actions,
    .student-header-actions .student-btn {
        width: 100%;
    }

    .student-welcome-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .student-welcome-actions .student-btn {
        min-height: 48px;
        padding-inline: 14px;
        white-space: normal;
        text-align: center;
    }

    .student-stats-grid {
        grid-template-columns: 1fr;
    }

    .student-profile-status {
        grid-template-columns: 1fr;
    }

    .student-app-list {
        display: grid;
        grid-template-columns: 1fr;
    }

    .student-career-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .student-career-card a {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
