:root {
    --portal-bg: #050b14;
    --portal-bg-soft: #081321;
    --portal-surface: #0d1a2b;
    --portal-surface-light: #12243a;
    --portal-border: rgba(148, 163, 184, 0.14);
    --portal-text: #f4f8fc;
    --portal-text-soft: #b8c5d6;
    --portal-muted: #71839a;
    --portal-primary: #26f39a;
    --portal-primary-dark: #0fba70;
    --portal-primary-soft: rgba(38, 243, 154, 0.1);
    --portal-blue: #42bff5;
    --portal-blue-soft: rgba(66, 191, 245, 0.1);
    --portal-danger: #fb7185;
    --portal-warning: #fbbf24;
    --portal-success: #34d399;
    --portal-radius: 16px;
    --portal-radius-large: 24px;
    --portal-shadow:
        0 24px 65px rgba(0, 0, 0, 0.3);
    --portal-sidebar-width: 274px;
    --portal-topbar-height: 88px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--portal-bg);
    color: var(--portal-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.portal-skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--portal-primary);
    color: #03140d;
    font-weight: 800;
    text-decoration: none;
}

.portal-skip-link:focus {
    top: 20px;
}

.portal-layout {
    min-height: 100vh;
    padding-left: var(--portal-sidebar-width);
}

.portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: var(--portal-sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    border-right: 1px solid var(--portal-border);
    background:
        radial-gradient(
            circle at 15% 0,
            rgba(38, 243, 154, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #0a1625,
            #07111f
        );
    overflow-y: auto;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 24px;
    text-decoration: none;
}

.portal-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            var(--portal-primary),
            #16c77a
        );
    color: #03150d;
    font-size: 21px;
    font-weight: 950;
    box-shadow:
        0 10px 30px rgba(38, 243, 154, 0.2);
}

.portal-brand-copy {
    min-width: 0;
    display: grid;
}

.portal-brand-copy strong {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.portal-brand-copy small {
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 700;
}

.portal-student-card {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.portal-student-card-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: var(--portal-blue-soft);
    color: var(--portal-blue);
    font-size: 13px;
    font-weight: 900;
}

.portal-student-card > div:last-child {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.portal-student-card strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-status {
    width: max-content;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portal-status-approved,
.portal-status-completed {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}

.portal-status-pending {
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
}

.portal-status-contacted {
    background: var(--portal-blue-soft);
    color: #7dd3fc;
}

.portal-status-cancelled {
    background: rgba(251, 113, 133, 0.12);
    color: #fda4af;
}

.portal-navigation {
    display: grid;
    gap: 5px;
}

.portal-navigation-label {
    margin: 20px 11px 7px;
    color: #52657d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.portal-navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--portal-text-soft);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.portal-navigation a:hover {
    border-color: var(--portal-border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--portal-text);
    transform: translateX(2px);
}

.portal-navigation a.active {
    border-color: rgba(38, 243, 154, 0.17);
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
}

.portal-nav-icon {
    width: 26px;
    height: 26px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.portal-navigation a.active .portal-nav-icon {
    background: rgba(38, 243, 154, 0.13);
}

.portal-sidebar-footer {
    display: grid;
    gap: 13px;
    margin-top: auto;
    padding-top: 28px;
}

.portal-logout-button {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(251, 113, 133, 0.18);
    border-radius: 11px;
    background: rgba(251, 113, 133, 0.07);
    color: #fda4af;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.portal-logout-button:hover {
    background: rgba(251, 113, 133, 0.12);
}

.portal-sidebar-footer small {
    color: #465a71;
    font-size: 9px;
    text-align: center;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 800;
    min-height: var(--portal-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 17px 34px;
    border-bottom: 1px solid var(--portal-border);
    background: rgba(5, 11, 20, 0.88);
    backdrop-filter: blur(18px);
}

.portal-topbar-left {
    display: flex;
    align-items: center;
    gap: 17px;
}

.portal-menu-button {
    width: 43px;
    height: 43px;
    display: none;
    place-items: center;
    gap: 4px;
    padding: 11px;
    border: 1px solid var(--portal-border);
    border-radius: 11px;
    background: var(--portal-surface);
    cursor: pointer;
}

.portal-menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: var(--portal-text-soft);
}

.portal-page-heading {
    display: grid;
    gap: 1px;
}

.portal-page-eyebrow {
    color: var(--portal-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.portal-page-heading h1 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.035em;
}

.portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 17px;
}

.portal-site-link {
    color: var(--portal-text-soft);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.portal-site-link:hover {
    color: var(--portal-primary);
}

.portal-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(38, 243, 154, 0.2);
    border-radius: 13px;
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
    font-size: 12px;
    font-weight: 900;
}

.portal-user-summary {
    display: grid;
    min-width: 0;
}

.portal-user-summary strong {
    max-width: 170px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-summary small {
    color: var(--portal-muted);
    font-size: 10px;
}

.portal-main {
    min-height: calc(100vh - var(--portal-topbar-height));
    padding: 32px;
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(66, 191, 245, 0.07),
            transparent 26%
        ),
        radial-gradient(
            circle at 20% 40%,
            rgba(38, 243, 154, 0.045),
            transparent 29%
        );
}

.portal-content {
    width: min(100%, 1450px);
    margin: 0 auto;
}

.portal-alerts {
    display: grid;
    gap: 11px;
    margin-bottom: 22px;
}

.portal-alert {
    position: relative;
    padding: 14px 48px 14px 16px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: var(--portal-surface);
    color: var(--portal-text-soft);
    font-size: 12px;
}

.portal-alert-success {
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(52, 211, 153, 0.07);
    color: #a7f3d0;
}

.portal-alert-warning {
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.07);
    color: #fde68a;
}

.portal-alert-error {
    border-color: rgba(251, 113, 133, 0.25);
    background: rgba(251, 113, 133, 0.07);
    color: #fecdd3;
}

.portal-alert button {
    position: absolute;
    top: 50%;
    right: 13px;
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    transform: translateY(-50%);
}

.portal-welcome {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 31px;
    border: 1px solid rgba(38, 243, 154, 0.17);
    border-radius: var(--portal-radius-large);
    background:
        radial-gradient(
            circle at 95% 5%,
            rgba(38, 243, 154, 0.12),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            rgba(18, 36, 58, 0.96),
            rgba(8, 19, 33, 0.96)
        );
    box-shadow: var(--portal-shadow);
}

.portal-welcome::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(38, 243, 154, 0.08);
    border-radius: 50%;
}

.portal-welcome-eyebrow {
    display: inline-flex;
    width: max-content;
    margin-bottom: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-welcome h2 {
    max-width: 790px;
    margin: 0;
    font-size: clamp(27px, 4vw, 43px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.portal-welcome p {
    max-width: 700px;
    margin: 13px 0 0;
    color: var(--portal-text-soft);
    font-size: 14px;
}

.portal-welcome-actions {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
}

.portal-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.portal-button-primary {
    background: var(--portal-primary);
    color: #03150d;
}

.portal-button-primary:hover {
    background: #5af5b2;
}

.portal-button-secondary {
    border-color: var(--portal-border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--portal-text-soft);
}

.portal-button-secondary:hover {
    border-color: rgba(38, 243, 154, 0.25);
    color: var(--portal-primary);
}

.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.portal-stat-card {
    padding: 20px;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    background: rgba(13, 26, 43, 0.83);
}

.portal-stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-stat-card-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
    font-size: 13px;
    font-weight: 900;
}

.portal-stat-card > strong {
    display: block;
    margin-top: 15px;
    font-size: 25px;
    letter-spacing: -0.045em;
}

.portal-stat-card > span {
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 750;
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
    gap: 20px;
}

.portal-card {
    padding: 24px;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    background: rgba(13, 26, 43, 0.83);
}

.portal-card + .portal-card {
    margin-top: 20px;
}

.portal-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.portal-card-header h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.portal-card-header p {
    margin: 5px 0 0;
    color: var(--portal-muted);
    font-size: 11px;
}

.portal-card-link {
    color: var(--portal-primary);
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.portal-course {
    position: relative;
    overflow: hidden;
    padding: 23px;
    border: 1px solid rgba(66, 191, 245, 0.17);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(66, 191, 245, 0.08),
            rgba(38, 243, 154, 0.035)
        );
}

.portal-course-category {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--portal-blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-course h4 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.portal-course p {
    margin: 10px 0 0;
    color: var(--portal-text-soft);
    font-size: 12px;
}

.portal-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
}

.portal-course-meta span {
    padding: 6px 9px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: rgba(5, 11, 20, 0.3);
    color: var(--portal-text-soft);
    font-size: 9px;
    font-weight: 800;
}

.portal-progress {
    margin-top: 20px;
}

.portal-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--portal-text-soft);
    font-size: 10px;
    font-weight: 800;
}

.portal-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
}

.portal-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--portal-primary),
            var(--portal-blue)
        );
}

.portal-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.portal-action-card {
    min-height: 123px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px;
    border: 1px solid var(--portal-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.022);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.portal-action-card:hover {
    border-color: rgba(38, 243, 154, 0.22);
    transform: translateY(-2px);
}

.portal-action-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
    font-size: 12px;
    font-weight: 900;
}

.portal-action-card strong {
    font-size: 12px;
}

.portal-action-card span:last-child {
    color: var(--portal-muted);
    font-size: 9px;
}

.portal-profile-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.portal-profile-item {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--portal-border);
}

.portal-profile-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.portal-profile-item dt {
    color: var(--portal-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-profile-item dd {
    margin: 3px 0 0;
    color: var(--portal-text-soft);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.portal-lock-notice {
    padding: 17px;
    border: 1px solid rgba(251, 191, 36, 0.23);
    border-radius: 13px;
    background: rgba(251, 191, 36, 0.065);
}

.portal-lock-notice strong {
    display: block;
    color: #fde68a;
    font-size: 12px;
}

.portal-lock-notice p {
    margin: 7px 0 0;
    color: #d6c68c;
    font-size: 10px;
}

.portal-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 33px;
    border-top: 1px solid var(--portal-border);
    color: var(--portal-muted);
    font-size: 9px;
}

.portal-footer p {
    margin: 0;
}

.portal-footer div {
    display: flex;
    gap: 14px;
}

.portal-footer a {
    text-decoration: none;
}

.portal-footer a:hover {
    color: var(--portal-primary);
}

/*
|--------------------------------------------------------------------------
| Login page
|--------------------------------------------------------------------------
*/

.student-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(470px, 0.9fr);
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(38, 243, 154, 0.11),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(66, 191, 245, 0.09),
            transparent 31%
        ),
        var(--portal-bg);
}

.student-login-showcase {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(45px, 8vw, 105px);
    border-right: 1px solid var(--portal-border);
}

.student-login-showcase::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -180px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(38, 243, 154, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(38, 243, 154, 0.025),
        0 0 0 140px rgba(38, 243, 154, 0.015);
}

.student-login-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.student-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 65px;
    text-decoration: none;
}

.student-login-brand .portal-brand-mark {
    width: 50px;
    height: 50px;
}

.student-login-brand strong {
    display: block;
    font-size: 19px;
}

.student-login-brand small {
    display: block;
    color: var(--portal-muted);
    font-size: 10px;
}

.student-login-showcase .portal-welcome-eyebrow {
    margin-bottom: 17px;
}

.student-login-showcase h1 {
    max-width: 730px;
    margin: 0;
    font-size: clamp(42px, 6vw, 75px);
    line-height: 1.01;
    letter-spacing: -0.065em;
}

.student-login-showcase h1 span {
    color: var(--portal-primary);
}

.student-login-showcase p {
    max-width: 650px;
    margin: 23px 0 0;
    color: var(--portal-text-soft);
    font-size: 16px;
}

.student-login-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    max-width: 670px;
    margin-top: 36px;
}

.student-login-feature {
    padding: 14px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: rgba(13, 26, 43, 0.55);
    color: var(--portal-text-soft);
    font-size: 11px;
    font-weight: 750;
}

.student-login-feature::before {
    content: "✓";
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    margin-right: 8px;
    border-radius: 6px;
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
    font-size: 9px;
    font-weight: 900;
}

.student-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
}

.student-login-card {
    width: min(100%, 460px);
    padding: 35px;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius-large);
    background:
        linear-gradient(
            145deg,
            rgba(18, 36, 58, 0.97),
            rgba(8, 19, 33, 0.97)
        );
    box-shadow: var(--portal-shadow);
}

.student-login-card-header {
    margin-bottom: 26px;
}

.student-login-card-header span {
    color: var(--portal-primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-login-card-header h2 {
    margin: 8px 0 0;
    font-size: 30px;
    letter-spacing: -0.045em;
}

.student-login-card-header p {
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 11px;
}

.student-login-form {
    display: grid;
    gap: 18px;
}

.student-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--portal-text-soft);
    font-size: 10px;
    font-weight: 850;
}

.student-form-control {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--portal-border);
    border-radius: 11px;
    outline: none;
    background: #07111f;
    color: var(--portal-text);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.student-form-control:focus {
    border-color: rgba(38, 243, 154, 0.45);
    box-shadow:
        0 0 0 4px rgba(38, 243, 154, 0.07);
}

.student-password-field {
    position: relative;
}

.student-password-field .student-form-control {
    padding-right: 72px;
}

.student-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    min-width: 55px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--portal-text-soft);
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
    transform: translateY(-50%);
}

.student-login-options {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--portal-muted);
    font-size: 9px;
}

.student-login-options label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.student-login-options input {
    accent-color: var(--portal-primary);
}

.student-login-options a {
    color: var(--portal-blue);
    font-weight: 800;
    text-decoration: none;
}

.student-login-submit {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 11px;
    background: var(--portal-primary);
    color: #03150d;
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
}

.student-login-submit:hover {
    background: #5af5b2;
}

.student-login-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.student-login-register {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--portal-border);
    color: var(--portal-muted);
    font-size: 10px;
    text-align: center;
}

.student-login-register a {
    color: var(--portal-primary);
    font-weight: 850;
    text-decoration: none;
}

.student-login-back {
    display: block;
    margin-top: 15px;
    color: var(--portal-muted);
    font-size: 9px;
    text-align: center;
    text-decoration: none;
}

.portal-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(3px);
}

@media (max-width: 1180px) {
    .portal-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-login-page {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(430px, 1.1fr);
    }

    .student-login-showcase {
        padding: 55px;
    }
}

@media (max-width: 1024px) {
    .portal-layout {
        padding-left: 0;
    }

    .portal-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

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

    .portal-menu-button {
        display: grid;
    }

    body.portal-menu-open {
        overflow: hidden;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

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

    .student-login-showcase {
        display: none;
    }

    .student-login-panel {
        min-height: 100vh;
    }
}

@media (max-width: 720px) {
    .portal-topbar {
        padding: 14px 18px;
    }

    .portal-user-summary,
    .portal-site-link {
        display: none;
    }

    .portal-main {
        padding: 21px 15px;
    }

    .portal-welcome {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .portal-welcome-actions {
        grid-template-columns: 1fr 1fr;
    }

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

    .portal-actions-grid {
        grid-template-columns: 1fr;
    }

    .portal-footer {
        flex-direction: column;
        padding: 20px 17px;
    }

    .student-login-panel {
        padding: 24px 16px;
    }

    .student-login-card {
        padding: 27px 20px;
    }
}

/* =========================================================
   Student Portal 3.1 polish
   ========================================================= */

.portal-svg-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}

.portal-sidebar-mobile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.portal-sidebar-mobile-header .portal-brand {
    flex: 1;
}

.portal-sidebar-close {
    width: 38px;
    height: 38px;
    display: none;
    place-items: center;
    margin-top: 5px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--portal-text-soft);
    cursor: pointer;
}

.portal-sidebar-close:hover {
    border-color: rgba(38, 243, 154, 0.25);
    color: var(--portal-primary);
}

.portal-student-card-content {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.portal-nav-icon .portal-svg-icon {
    width: 15px;
    height: 15px;
}

.portal-logout-button .portal-svg-icon {
    width: 16px;
    height: 16px;
}

.portal-menu-button .portal-svg-icon {
    width: 21px;
    height: 21px;
}

.portal-site-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.portal-site-link .portal-svg-icon {
    width: 14px;
    height: 14px;
}

.portal-notification-wrapper {
    position: relative;
}

.portal-notification-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: rgba(13, 26, 43, 0.82);
    color: var(--portal-text-soft);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.portal-notification-button:hover,
.portal-notification-button.is-active {
    border-color: rgba(38, 243, 154, 0.25);
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
}

.portal-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid var(--portal-bg);
    border-radius: 999px;
    background: var(--portal-danger);
    color: white;
    font-size: 8px;
    font-weight: 900;
}

.portal-notification-panel {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    z-index: 1200;
    width: min(360px, calc(100vw - 30px));
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 36, 58, 0.99),
            rgba(7, 17, 31, 0.99)
        );
    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.45);
}

.portal-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px;
    border-bottom: 1px solid var(--portal-border);
}

.portal-notification-header > div {
    display: grid;
}

.portal-notification-header strong {
    font-size: 13px;
}

.portal-notification-header span {
    color: var(--portal-muted);
    font-size: 9px;
}

.portal-notification-header button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--portal-text-soft);
    cursor: pointer;
}

.portal-notification-header button:hover {
    color: var(--portal-primary);
}

.portal-notification-header .portal-svg-icon {
    width: 15px;
    height: 15px;
}

.portal-notification-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
}

.portal-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.06);
}

.portal-notification-icon {
    width: 35px;
    height: 35px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.1);
    color: var(--portal-warning);
}

.portal-notification-icon .portal-svg-icon {
    width: 16px;
    height: 16px;
}

.portal-notification-item strong {
    display: block;
    color: #fde68a;
    font-size: 11px;
}

.portal-notification-item p {
    margin: 4px 0 0;
    color: var(--portal-text-soft);
    font-size: 9px;
}

.portal-notification-empty {
    display: grid;
    justify-items: center;
    padding: 30px 15px;
    text-align: center;
}

.portal-notification-empty .portal-svg-icon {
    width: 27px;
    height: 27px;
    margin-bottom: 11px;
    color: var(--portal-muted);
}

.portal-notification-empty strong {
    font-size: 11px;
}

.portal-notification-empty p {
    margin: 5px 0 0;
    color: var(--portal-muted);
    font-size: 9px;
}

.portal-navigation a {
    position: relative;
}

.portal-navigation a.active::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--portal-primary);
    box-shadow: 0 0 10px var(--portal-primary);
    transform: translateY(-50%);
}

.portal-stat-card,
.portal-card,
.portal-action-card,
.portal-welcome {
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.portal-stat-card:hover {
    border-color: rgba(38, 243, 154, 0.19);
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

.portal-card:hover {
    border-color: rgba(148, 163, 184, 0.2);
}

.portal-button,
.portal-navigation a,
.portal-logout-button,
.portal-notification-button {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
    .portal-sidebar-close {
        display: grid;
    }
}

@media (max-width: 720px) {
    .portal-notification-panel {
        position: fixed;
        top: 77px;
        right: 14px;
        left: 14px;
        width: auto;
    }

    .portal-topbar-actions {
        gap: 10px;
    }
}

/* =========================================================
   Student learning resources
   ========================================================= */

.learning-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(38, 243, 154, 0.16);
    border-radius: var(--portal-radius-large);
    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(38, 243, 154, 0.11),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(18, 36, 58, 0.96),
            rgba(8, 19, 33, 0.96)
        );
}

.learning-page-hero h2 {
    margin: 0;
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.learning-page-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--portal-text-soft);
    font-size: 13px;
}

.learning-stats-grid {
    margin-bottom: 20px;
}

.portal-stat-card-icon .portal-svg-icon {
    width: 17px;
    height: 17px;
}

.learning-progress-card {
    margin-bottom: 20px;
}

.learning-progress-value {
    color: var(--portal-primary);
    font-size: 20px;
}

.learning-resource-grid {
    display: grid;
    gap: 20px;
}

.learning-resource-card {
    margin: 0 !important;
}

.learning-resource-card.is-completed,
.learning-note-card.is-completed {
    border-color: rgba(52, 211, 153, 0.22);
}

.learning-resource-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    margin-bottom: 18px;
}

.learning-resource-number {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
    font-size: 12px;
    font-weight: 900;
}

.learning-resource-type {
    display: block;
    margin-bottom: 5px;
    color: var(--portal-blue);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.learning-resource-heading h3,
.learning-note-heading h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.025em;
}

.learning-resource-heading p {
    margin: 4px 0 0;
    color: var(--portal-muted);
    font-size: 9px;
}

.learning-status-badge {
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.learning-status-badge.completed {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}

.learning-status-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fcd34d;
}

.learning-video-frame {
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: #000;
}

.learning-video-frame video {
    width: 100%;
    max-height: 650px;
    display: block;
    background: #000;
}

.learning-video-frame iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

.learning-external-resource {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--portal-border);
    border-radius: 13px;
    background: rgba(66, 191, 245, 0.055);
}

.learning-external-resource > .portal-svg-icon {
    width: 24px;
    height: 24px;
    color: var(--portal-blue);
}

.learning-external-resource strong {
    font-size: 12px;
}

.learning-external-resource p {
    margin: 3px 0 0;
    color: var(--portal-muted);
    font-size: 9px;
}

.learning-unavailable-resource {
    padding: 20px;
    border: 1px dashed rgba(251, 113, 133, 0.28);
    border-radius: 13px;
    background: rgba(251, 113, 133, 0.05);
    color: #fda4af;
    font-size: 11px;
    text-align: center;
}

.learning-resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 17px;
}

.learning-resource-activity {
    color: var(--portal-muted);
    font-size: 9px;
}

.learning-empty-state {
    display: grid;
    justify-items: center;
    padding: 60px 25px;
    text-align: center;
}

.learning-empty-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 17px;
    color: var(--portal-muted);
}

.learning-empty-state h3 {
    margin: 0;
    font-size: 18px;
}

.learning-empty-state p {
    max-width: 500px;
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 11px;
}

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

.learning-note-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    margin: 0 !important;
}

.learning-note-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--portal-blue-soft);
    color: var(--portal-blue);
}

.learning-note-icon .portal-svg-icon {
    width: 20px;
    height: 20px;
}

.learning-note-content {
    min-width: 0;
}

.learning-note-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.learning-note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.learning-note-meta span {
    padding: 5px 8px;
    border: 1px solid var(--portal-border);
    border-radius: 7px;
    background: rgba(5, 11, 20, 0.26);
    color: var(--portal-muted);
    font-size: 8px;
    font-weight: 800;
}

.learning-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

.learning-file-missing {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: 10px;
    color: #fda4af;
    font-size: 9px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .learning-notes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .learning-page-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px;
    }

    .learning-resource-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .learning-resource-heading
    .learning-status-badge {
        grid-column: 1 / -1;
    }

    .learning-resource-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .learning-resource-footer form,
    .learning-resource-footer button {
        width: 100%;
    }

    .learning-external-resource {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .learning-external-resource a {
        grid-column: 1 / -1;
    }

    .learning-note-card {
        grid-template-columns: 1fr;
    }

    .learning-note-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .learning-note-actions,
    .learning-note-actions form,
    .learning-note-actions button {
        width: 100%;
    }
}

/* =========================================================
   Focused video learning experience
   ========================================================= */

.video-learning-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.video-lesson-sidebar {
    position: sticky;
    top: calc(var(--portal-topbar-height) + 20px);
    max-height: calc(
        100vh - var(--portal-topbar-height) - 40px
    );
    margin: 0 !important;
    overflow: hidden;
}

.video-lesson-list {
    display: grid;
    gap: 7px;
    max-height: calc(
        100vh - var(--portal-topbar-height) - 145px
    );
    overflow-y: auto;
    padding-right: 4px;
}

.video-lesson-list::-webkit-scrollbar {
    width: 6px;
}

.video-lesson-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}

.video-lesson-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--portal-text-soft);
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.video-lesson-link:hover {
    border-color: var(--portal-border);
    background: rgba(255, 255, 255, 0.025);
    transform: translateX(2px);
}

.video-lesson-link.is-active {
    border-color: rgba(38, 243, 154, 0.2);
    background: var(--portal-primary-soft);
}

.video-lesson-index {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--portal-text-soft);
    font-size: 10px;
    font-weight: 900;
}

.video-lesson-link.is-active .video-lesson-index {
    background: rgba(38, 243, 154, 0.14);
    color: var(--portal-primary);
}

.video-lesson-copy {
    min-width: 0;
    display: grid;
}

.video-lesson-copy strong {
    overflow: hidden;
    color: var(--portal-text-soft);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-lesson-link.is-active
.video-lesson-copy strong {
    color: var(--portal-primary);
}

.video-lesson-copy small {
    color: var(--portal-muted);
    font-size: 8px;
}

.video-lesson-state {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid var(--portal-border);
    border-radius: 50%;
    color: transparent;
    font-size: 9px;
    font-weight: 900;
}

.video-lesson-state.is-completed {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}

.video-active-lesson {
    min-width: 0;
}

.video-learning-card {
    margin: 0 !important;
    scroll-margin-top:
        calc(var(--portal-topbar-height) + 20px);
}

.video-learning-card.is-completed {
    border-color: rgba(52, 211, 153, 0.23);
}

.video-learning-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 19px;
}

.video-learning-card-header h3 {
    margin: 0;
    font-size: clamp(20px, 3vw, 29px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.video-learning-card-header p {
    margin: 6px 0 0;
    color: var(--portal-muted);
    font-size: 9px;
}

.video-learning-content {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(225px, 280px);
    align-items: start;
    gap: 18px;
}

.video-learning-player {
    min-width: 0;
}

.video-learning-player .learning-video-frame {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.video-learning-player
.learning-video-frame video {
    width: 100%;
    max-height: min(68vh, 620px);
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.video-learning-player
.learning-video-frame iframe {
    width: 100%;
    max-height: min(68vh, 620px);
    aspect-ratio: 16 / 9;
}

.video-learning-details {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: rgba(5, 11, 20, 0.28);
}

.video-learning-detail-block {
    padding-bottom: 11px;
    border-bottom: 1px solid var(--portal-border);
}

.video-learning-detail-block:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.video-learning-detail-block span {
    display: block;
    color: var(--portal-muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.video-learning-detail-block strong {
    display: block;
    margin-top: 4px;
    color: var(--portal-text-soft);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.video-completion-form {
    margin-top: 5px;
}

.video-completion-form,
.video-completion-form button {
    width: 100%;
}

.video-lesson-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 19px;
    padding-top: 18px;
    border-top: 1px solid var(--portal-border);
}

@media (max-width: 1150px) {
    .video-learning-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .video-learning-content {
        grid-template-columns: 1fr;
    }

    .video-learning-details {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .video-completion-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {
    .video-learning-layout {
        grid-template-columns: 1fr;
    }

    .video-lesson-sidebar {
        position: static;
        max-height: none;
    }

    .video-lesson-list {
        max-height: 300px;
    }
}

@media (max-width: 620px) {
    .video-learning-card-header {
        flex-direction: column;
    }

    .video-learning-details {
        grid-template-columns: 1fr;
    }

    .video-completion-form {
        grid-column: auto;
    }

    .video-lesson-navigation {
        align-items: stretch;
        flex-direction: column;
    }

    .video-lesson-navigation > div,
    .video-lesson-navigation a {
        width: 100%;
    }
}
