.student-portal {
    --student-ink: #17243b;
    --student-muted: #667085;
    --student-border: #e4e7ec;
    --student-primary: #4656e8;
    --student-primary-dark: #3442c7;
    --student-primary-soft: #f3f4ff;
    --student-success: #07804f;
    --student-success-soft: #eaf8f1;
    --student-warning: #b54708;
    --student-warning-soft: #fff7e8;
    background: #f5f7fb;
    color: var(--student-ink);
}

.student-portal .min-w-0 { min-width: 0; }

.student-skip-link {
    position: fixed;
    z-index: 99999;
    top: -60px;
    left: 20px;
    padding: 10px 16px;
    border-radius: 0 0 8px 8px;
    background: #111827;
    color: #fff;
    transition: top .2s ease;
}

.student-skip-link:focus { top: 0; color: #fff; }

.student-portal .main-content-container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px 34px;
}

.student-header {
    position: sticky;
    z-index: 1020;
    top: 0;
    padding: 15px 24px;
    margin: 0 0 24px;
    border-bottom: 1px solid rgba(228, 231, 236, .9);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .045);
}

.student-header-button {
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--student-border) !important;
    border-radius: 10px;
    background: #fff !important;
    color: #475467;
}

.student-header-button:hover { background: var(--student-primary-soft) !important; color: var(--student-primary); }
.student-header-eyebrow { display: block; color: var(--student-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.student-header-title { overflow: hidden; margin: 1px 0 0; color: var(--student-ink); font-size: 17px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.student-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 4px 8px 4px 5px;
    border: 1px solid var(--student-border);
    border-radius: 12px;
    background: #fff;
    color: var(--student-ink);
    text-align: left;
}

.student-profile-trigger:hover { border-color: #c9ceff; background: #fafaff; }
.student-header-avatar { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.student-profile-copy { max-width: 170px; line-height: 1.2; }
.student-profile-copy strong, .student-profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-profile-copy strong { color: var(--student-ink); font-size: 12px; }
.student-profile-copy small { margin-top: 3px; color: var(--student-muted); font-size: 10px; }
.student-profile-dropdown { min-width: 245px; padding: 8px; border-radius: 13px; box-shadow: 0 16px 38px rgba(16, 24, 40, .16); }
.student-dropdown-summary { padding: 9px 10px 12px; border-bottom: 1px solid #eef0f4; }
.student-dropdown-summary strong, .student-dropdown-summary span { display: block; }
.student-dropdown-summary strong { color: var(--student-ink); font-size: 13px; }
.student-dropdown-summary span { margin-top: 2px; color: var(--student-muted); font-size: 11px; }
.student-profile-dropdown .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; font-size: 13px; }
.student-profile-dropdown .dropdown-item .material-symbols-outlined { font-size: 19px; }

.student-portal .sidebar-area {
    z-index: 1045;
    border-right: 1px solid var(--student-border);
    background: #fff;
    box-shadow: 8px 0 28px rgba(16, 24, 40, .035);
}

.student-portal .sidebar-area .logo { background: #fff; }
.student-sidebar-brand { display: flex; align-items: center; justify-content: center; height: 86px; padding: 13px 46px !important; }
.student-brand-link { display: grid; place-items: center; }
.student-brand-link img { width: auto; max-width: 150px; height: auto; max-height: 58px; object-fit: contain; }
.student-sidebar-close { top: 25px; right: 13px; color: #667085; opacity: 0; pointer-events: none; }

.student-portal .sidebar-area .layout-menu { padding: 14px 12px 20px; }
.student-portal .sidebar-area .menu-title { padding: 17px 12px 7px; color: #98a2b3; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.student-portal .sidebar-area .menu-item { margin-bottom: 3px; }
.student-portal .sidebar-area .menu-link { min-height: 44px; padding: 10px 12px; border-radius: 10px; color: #475467; font-size: 13px; font-weight: 650; }
.student-portal .sidebar-area .menu-link .menu-icon { color: #7b8493; font-size: 21px; }
.student-portal .sidebar-area .menu-link:hover { background: #f7f8ff; color: var(--student-primary-dark); }
.student-portal .sidebar-area .menu-link.active { background: var(--student-primary-soft); color: var(--student-primary-dark); box-shadow: inset 3px 0 0 var(--student-primary); }
.student-portal .sidebar-area .menu-link.active .menu-icon { color: var(--student-primary); }

.student-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.student-page-header h2 { margin: 0 0 5px; color: var(--student-ink); font-size: clamp(22px, 2.4vw, 30px); font-weight: 760; line-height: 1.2; }
.student-page-header p { max-width: 720px; margin: 0; color: var(--student-muted); font-size: 13px; }
.student-page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }

.student-dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 28px 30px;
    border-radius: 19px;
    background: linear-gradient(125deg, #162445 0%, #283a72 58%, #4656e8 100%);
    box-shadow: 0 18px 42px rgba(30, 42, 90, .17);
    color: #fff;
}

.student-dashboard-hero::after { content: ''; position: absolute; width: 290px; height: 290px; top: -175px; right: -70px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.dashboard-identity, .dashboard-hero-actions { position: relative; z-index: 1; }
.dashboard-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.dashboard-avatar { flex: 0 0 auto; width: 74px; height: 74px; border: 4px solid rgba(255, 255, 255, .22); border-radius: 18px; background: rgba(255, 255, 255, .13); object-fit: cover; }
.dashboard-avatar-placeholder { display: grid; place-items: center; }
.dashboard-avatar-placeholder .material-symbols-outlined { font-size: 38px; }
.dashboard-welcome-copy { min-width: 0; }
.dashboard-kicker { display: block; margin-bottom: 2px; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.student-dashboard-hero h2 { overflow: hidden; margin: 0 0 8px; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; color: rgba(255, 255, 255, .78); font-size: 12px; }
.dashboard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-meta .material-symbols-outlined { font-size: 16px; }
.dashboard-hero-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }
.student-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 11px; font-weight: 750; }
.student-status-pill .material-symbols-outlined { font-size: 16px; color: #8ff0b8; }
.student-portal .dashboard-primary-action { border: 0; background: #fff; color: #26366e; }
.student-portal .dashboard-primary-action:hover { background: #eef0ff; color: #26366e; }

.dashboard-balance-notice { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid #fedf89; border-radius: 14px; background: var(--student-warning-soft); color: #7a2e0e; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.dashboard-balance-notice:hover { color: #7a2e0e; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(181, 71, 8, .08); }
.balance-notice-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #ffecbc; color: var(--student-warning); }
.balance-notice-copy { min-width: 0; }
.balance-notice-copy strong, .balance-notice-copy small { display: block; }
.balance-notice-copy strong { font-size: 13px; }
.balance-notice-copy small { margin-top: 2px; color: #93370d; font-size: 11px; }
.balance-notice-action { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #93370d; font-size: 11px; font-weight: 750; white-space: nowrap; }
.balance-notice-action .material-symbols-outlined { font-size: 17px; }

.student-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.student-stat-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 18px; }
.stat-icon, .action-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 13px; }
.stat-primary { background: #efefff; color: #5145cd; }
.stat-success { background: #eaf8f1; color: #07804f; }
.stat-warning { background: #fff4dd; color: #b54708; }
.stat-info { background: #eaf7fb; color: #087e8b; }
.student-stat-card > div { min-width: 0; }
.student-stat-card .stat-label, .student-stat-card strong, .student-stat-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-stat-card .stat-label { margin-bottom: 2px; color: var(--student-muted); font-size: 10px; font-weight: 700; }
.student-stat-card strong { color: var(--student-ink); font-size: 21px; font-weight: 760; line-height: 1.25; }
.student-stat-card strong.stat-amount, .student-stat-card strong.stat-session { font-size: 16px; }
.student-stat-card small { margin-top: 3px; color: #98a2b3; font-size: 9px; }

.student-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.student-detail-item { min-width: 0; padding: 13px 14px; border: 1px solid #e8ebef; border-radius: 11px; background: #fafbfc; }
.student-detail-item.detail-wide { grid-column: span 2; }
.student-detail-item span, .student-detail-item strong { display: block; }
.student-detail-item span { margin-bottom: 5px; color: var(--student-muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.student-detail-item strong { overflow-wrap: anywhere; color: #344054; font-size: 12px; font-weight: 700; line-height: 1.45; }

.student-action-list a { display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid #edf0f4; color: var(--student-ink); text-decoration: none; transition: background .18s ease; }
.student-action-list a:last-child { border-bottom: 0; }
.student-action-list a:hover { background: #fafaff; }
.student-action-list .action-icon { width: 42px; height: 42px; border-radius: 11px; }
.student-action-list strong, .student-action-list small { display: block; }
.student-action-list strong { font-size: 12px; }
.student-action-list small { margin-top: 3px; color: var(--student-muted); font-size: 10px; }
.student-action-list .action-arrow { color: #98a2b3; font-size: 19px; }

.student-profile-card { position: sticky; top: 98px; }
.student-profile-cover { height: 88px; background: linear-gradient(125deg, #283a72, #4656e8); }
.student-profile-summary { padding: 0 20px 20px; text-align: center; }
.student-profile-avatar { display: grid; width: 92px; height: 92px; margin: -47px auto 13px; place-items: center; border: 5px solid #fff; border-radius: 24px; background: #eef0ff; box-shadow: 0 8px 22px rgba(16, 24, 40, .14); object-fit: cover; color: var(--student-primary); }
.student-profile-placeholder .material-symbols-outlined { font-size: 46px; }
.student-profile-summary h3 { margin: 0 0 4px; color: var(--student-ink); font-size: 16px; font-weight: 760; }
.student-profile-summary p { margin: 0 0 10px; color: var(--student-primary); font-size: 11px; font-weight: 750; }
.student-profile-links { padding: 8px 14px 14px; border-top: 1px solid #edf0f4; }
.student-profile-links > a, .student-profile-links > span { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 7px; color: #475467; font-size: 11px; text-decoration: none; }
.student-profile-links > a:hover { color: var(--student-primary); }
.student-profile-links .material-symbols-outlined { flex: 0 0 auto; font-size: 18px; }
.student-profile-links span span, .student-profile-links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.password-form-body { max-width: 650px; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 50px; }
.password-toggle { position: absolute; top: 5px; right: 5px; display: grid; width: 37px; height: 37px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #667085; }
.password-toggle:hover { background: var(--student-primary-soft); color: var(--student-primary); }
.password-toggle .material-symbols-outlined { font-size: 19px; }
.password-help { display: block; margin-top: 6px; color: var(--student-muted); font-size: 10px; }
.password-tips { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.password-tips li { display: flex; align-items: flex-start; gap: 9px; color: #475467; font-size: 12px; line-height: 1.5; }
.password-tips .material-symbols-outlined { flex: 0 0 auto; color: var(--student-success); font-size: 18px; }

.student-payment-page .payment-policy-notice { display: flex; align-items: flex-start; gap: 8px; padding: 14px 16px; border-color: #b8e3ef; background: #effbff; color: #155b6a; }
.payment-feature-card { overflow: hidden; border: 1px solid var(--student-border) !important; border-radius: 16px !important; background: #fff; box-shadow: 0 9px 26px rgba(16, 24, 40, .045) !important; }
.payment-feature-card > .card-header { min-height: 66px; padding: 16px 20px; border-bottom: 1px solid #edf0f4; background: #fff !important; }
.payment-feature-card > .card-header h5 { display: flex; align-items: center; margin: 0; color: var(--student-ink); font-size: 15px; font-weight: 750; }
.payment-feature-card > .card-header h5 .material-symbols-outlined { display: grid; width: 36px; height: 36px; margin-right: 10px !important; place-items: center; border-radius: 10px; background: var(--student-primary-soft); color: var(--student-primary); font-size: 20px; }
.payment-feature-card > .card-body { padding: 22px !important; }
.payment-arrears-card { border-color: #f3d5d2 !important; }
.payment-arrears-card > .card-header { background: #fffafa !important; }
.payment-arrears-card > .card-header h5 .material-symbols-outlined { background: #feeeee; color: #b42318; }
.payment-rrr-card { padding: 20px; border: 1px dashed #b9c0ff; border-radius: 13px; background: #f7f8ff; text-align: center; }
.payment-rrr-card p { font-size: 12px; }
.payment-rrr-card h2 { overflow-wrap: anywhere; color: var(--student-primary-dark) !important; font-size: clamp(19px, 3vw, 27px); font-weight: 800; letter-spacing: 2px !important; }
.payment-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.payment-fact { padding: 14px; border: 1px solid #e7eaf0; border-radius: 11px; background: #fafbfc; }
.payment-fact span, .payment-fact strong { display: block; }
.payment-fact span { margin-bottom: 5px; color: var(--student-muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.payment-fact strong { color: var(--student-ink); font-size: 13px; }
.payment-fact strong.text-success { font-size: 17px; }
.payment-option { display: block; padding: 16px; border: 1px solid #d8dce4; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.payment-option:hover { border-color: #b9c0ff; }
.payment-option:has(input:checked) { border-color: var(--student-primary); background: var(--student-primary-soft); box-shadow: 0 0 0 3px rgba(70, 86, 232, .08); }
.payment-option-amount { margin-top: 10px; font-size: 19px; font-weight: 800; }
.student-payment-page .card-body > .table-responsive, .student-payment-page form > .table-responsive { border: 1px solid #e4e7ec; border-radius: 11px; }
.student-payment-page .table { min-width: 690px; }
.student-payment-page .table .form-check-input { margin-top: 0; }
.student-payment-page .alert h6 { display: flex; align-items: center; font-size: 13px; font-weight: 750; }

.student-receipt { overflow: hidden; border: 1px solid var(--student-border); border-radius: 18px; background: #fff; box-shadow: 0 14px 38px rgba(16, 24, 40, .08); }
.receipt-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 25px 28px; border-bottom: 1px solid #e7eaf0; background: linear-gradient(135deg, #fafbff, #f3f5ff); }
.receipt-logo { width: 54px; max-height: 60px; object-fit: contain; }
.receipt-institution span, .receipt-institution strong { display: block; }
.receipt-institution span { color: var(--student-muted); font-size: 10px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.receipt-institution strong { margin-top: 3px; color: var(--student-ink); font-size: 15px; }
.receipt-title { text-align: right; }
.receipt-title h1 { margin: 7px 0 0; color: var(--student-ink); font-size: 19px; font-weight: 800; text-transform: uppercase; }
.receipt-reference-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #e7eaf0; }
.receipt-reference-grid > div { min-width: 0; padding: 17px 20px; border-right: 1px solid #e7eaf0; }
.receipt-reference-grid > div:last-child { border-right: 0; }
.receipt-reference-grid span, .receipt-reference-grid strong { display: block; }
.receipt-reference-grid span { margin-bottom: 5px; color: var(--student-muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.receipt-reference-grid strong { overflow-wrap: anywhere; color: #344054; font-size: 11px; }
.receipt-section { padding: 23px 28px; border-bottom: 1px solid #e7eaf0; }
.receipt-section h2 { margin: 0 0 15px; color: var(--student-ink); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.receipt-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 20px; }
.receipt-details-grid span, .receipt-details-grid strong { display: block; }
.receipt-details-grid span { margin-bottom: 4px; color: var(--student-muted); font-size: 9px; }
.receipt-details-grid strong { overflow-wrap: anywhere; color: #344054; font-size: 11px; line-height: 1.45; }
.receipt-table-wrap { border: 1px solid #e4e7ec; border-radius: 10px; }
.student-receipt .receipt-table-wrap .table { min-width: 520px; }
.student-receipt .table tfoot th { padding: 14px; border-color: #ccebdc; background: #edfaf4; color: #067647; font-size: 13px; }
.receipt-footer { display: flex; align-items: center; gap: 11px; padding: 19px 28px; background: #fafbfc; color: #475467; }
.receipt-footer > .material-symbols-outlined { color: var(--student-success); font-size: 25px; }
.receipt-footer p { margin: 0; }
.receipt-footer p strong, .receipt-footer p span { display: block; }
.receipt-footer p strong { color: #344054; font-size: 11px; }
.receipt-footer p span { margin-top: 2px; color: var(--student-muted); font-size: 9px; }
.receipt-footer > small { margin-left: auto; color: var(--student-muted); font-size: 9px; }

.student-portal .student-panel,
.student-portal .student-stat-card {
    border: 1px solid var(--student-border) !important;
    border-radius: 16px !important;
    background: #fff;
    box-shadow: 0 9px 26px rgba(16, 24, 40, .045) !important;
}

.student-panel { overflow: hidden; }
.student-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 67px; padding: 16px 20px; border-bottom: 1px solid #edf0f4; background: #fff; }
.student-panel-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.student-panel-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--student-primary-soft); color: var(--student-primary); }
.student-panel-heading h3 { margin: 0; color: var(--student-ink); font-size: 15px; font-weight: 750; }
.student-panel-heading p { margin: 2px 0 0; color: var(--student-muted); font-size: 11px; }
.student-panel-body { padding: 22px; }

.student-portal .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; font-weight: 650; }
.student-portal .btn-lg { min-height: 49px; border-radius: 11px; }
.student-portal .btn-sm { min-height: 34px; }
.student-portal .btn-primary { border-color: var(--student-primary); background: var(--student-primary); }
.student-portal .btn-primary:hover, .student-portal .btn-primary:focus { border-color: var(--student-primary-dark); background: var(--student-primary-dark); }
.student-portal .btn-outline-primary { border-color: #b9c0ff; color: var(--student-primary-dark); }
.student-portal .badge { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.student-context-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px; border: 1px solid #d8dcff; border-radius: 999px; background: var(--student-primary-soft); color: var(--student-primary-dark); font-size: 10px; font-weight: 750; white-space: nowrap; }
.student-context-chip .material-symbols-outlined { font-size: 16px; }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.status-badge .material-symbols-outlined { font-size: 14px; }
.status-primary { background: #efefff; color: #5145cd; }
.status-info { background: #eaf7fb; color: #087e8b; }
.status-success { background: #eaf8f1; color: #067647; }
.status-warning { background: #fff4dd; color: #b54708; }
.status-danger { background: #feeeee; color: #b42318; }
.status-neutral { background: #f2f4f7; color: #475467; }
.course-code { color: var(--student-primary-dark); font-weight: 800; }

.student-portal .form-control,
.student-portal .form-select {
    min-height: 47px;
    border-color: #d0d5dd;
    border-radius: 9px;
    color: var(--student-ink);
    font-size: 13px;
}

.student-portal .form-control:focus, .student-portal .form-select:focus { border-color: #8994f4; box-shadow: 0 0 0 .22rem rgba(70, 86, 232, .12); }
.student-portal .form-label, .student-portal label.label { margin-bottom: 7px; color: #344054 !important; font-size: 12px; font-weight: 700; }
.student-portal .form-check-input { width: 18px; height: 18px; border-color: #b9c0ca; }
.student-portal .form-check-input:checked { border-color: var(--student-primary); background-color: var(--student-primary); }

.student-portal .table-responsive { scrollbar-width: thin; }
.student-portal .table { margin-bottom: 0; color: #344054; font-size: 12px; }
.student-portal .table thead th { padding: 12px 14px; border-color: #e7eaf0; background: #f4f6f9; color: #667085; font-size: 9px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.student-portal .table tbody td { padding: 13px 14px; border-color: #edf0f4; vertical-align: middle; }
.student-portal .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: #fafaff; }
.student-portal .table code { padding: 4px 7px; border-radius: 6px; background: #f2f4f7; color: #344054; font-size: 11px; }
.student-table-card .table { min-width: 720px; }

.student-flash { display: flex; align-items: flex-start; gap: 9px; padding: 13px 45px 13px 14px; border-radius: 12px; font-size: 13px; }
.student-flash > .material-symbols-outlined { flex: 0 0 auto; font-size: 20px; }
.student-flash .btn-close { top: 4px; }
.student-portal .alert { border-radius: 12px; font-size: 13px; }

.student-empty-state { max-width: 520px; padding: 58px 24px; margin: 0 auto; text-align: center; }
.student-empty-icon { display: grid; width: 70px; height: 70px; margin: 0 auto 17px; place-items: center; border-radius: 20px; background: var(--student-primary-soft); color: var(--student-primary); }
.student-empty-icon .material-symbols-outlined { font-size: 34px; }
.student-empty-state h3 { margin: 0 0 7px; color: var(--student-ink); font-size: 18px; font-weight: 750; }
.student-empty-state p { margin: 0 0 20px; color: var(--student-muted); font-size: 13px; }

.signature-status-pending { background: #fff7df; color: #9a6700; }
.signature-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(220px, .65fr); gap: 24px; align-items: start; }
.signature-instructions { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; color: var(--student-muted); }
.signature-instructions > .material-symbols-outlined { flex: 0 0 auto; color: var(--student-primary); font-size: 24px; }
.signature-instructions strong, .signature-instructions span { display: block; }
.signature-instructions strong { margin-bottom: 3px; color: var(--student-ink); font-size: 12px; }
.signature-instructions span { font-size: 11px; line-height: 1.55; }
.signature-canvas-wrap { position: relative; overflow: hidden; border: 1px solid #cdd4df; border-radius: 13px; background: #fff; box-shadow: inset 0 1px 3px rgba(16, 24, 40, .06); }
.signature-canvas { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 2 / 1; background: #fff; cursor: crosshair; touch-action: none; }
.signature-canvas:focus { outline: 3px solid rgba(70, 86, 232, .18); outline-offset: -3px; }
.signature-guide { position: absolute; z-index: 2; right: 9%; bottom: 24%; left: 9%; border-bottom: 1px dashed #d7dce5; pointer-events: none; }
.signature-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 13px; }
.signature-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; }
.signature-error { margin: 8px 0 0; color: #b42318; font-size: 11px; font-weight: 650; }
.signature-preview-card { padding: 16px; border: 1px solid var(--student-border); border-radius: 13px; background: #f8f9fc; }
.signature-preview-label { display: block; margin-bottom: 10px; color: var(--student-muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.signature-preview-image, .signature-preview-empty { display: grid; min-height: 116px; margin-bottom: 13px; place-items: center; border: 1px solid #e0e4eb; border-radius: 10px; background: #fff; }
.signature-preview-image img { display: block; max-width: 90%; max-height: 100px; object-fit: contain; }
.signature-preview-empty { color: #98a2b3; text-align: center; }
.signature-preview-empty .material-symbols-outlined { display: block; margin-bottom: 5px; font-size: 32px; }
.signature-preview-empty span { font-size: 10px; font-weight: 650; }
.signature-preview-card > strong { display: block; color: var(--student-ink); font-size: 12px; }
.signature-preview-card > p { margin: 4px 0 0; color: var(--student-muted); font-size: 10px; line-height: 1.5; }
.signature-consent { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; margin-top: 18px; border-radius: 9px; background: #f3f5ff; color: #4a5572; font-size: 10px; line-height: 1.5; }
.signature-consent .material-symbols-outlined { flex: 0 0 auto; color: var(--student-primary); font-size: 18px; }

[data-theme=dark] .student-portal { --student-ink: #f1f4f9; --student-muted: #a8b1c1; --student-border: #303a4b; --student-primary-soft: #252c4f; background: #111827; }
[data-theme=dark] .student-header,
[data-theme=dark] .student-header-button,
[data-theme=dark] .student-profile-trigger,
[data-theme=dark] .student-portal .sidebar-area,
[data-theme=dark] .student-portal .sidebar-area .logo,
[data-theme=dark] .student-portal .student-panel,
[data-theme=dark] .student-portal .student-stat-card,
[data-theme=dark] .student-panel-header { background: #182132 !important; }
[data-theme=dark] .payment-feature-card,
[data-theme=dark] .payment-feature-card > .card-header,
[data-theme=dark] .payment-option { background: #182132 !important; }
[data-theme=dark] .student-receipt,
[data-theme=dark] .receipt-header { background: #182132; }
[data-theme=dark] .signature-preview-card { background: #212c3e; }
[data-theme=dark] .signature-consent { background: #252c4f; color: #c2c9d5; }
[data-theme=dark] .student-portal .table tbody td { color: #d7dce5; }
[data-theme=dark] .student-portal .table thead th { background: #212c3e; color: #a8b1c1; }

@media (max-width: 1199.98px) {
    .student-portal .sidebar-area { box-shadow: 12px 0 38px rgba(16, 24, 40, .18); }
    .student-sidebar-close { opacity: 1; pointer-events: auto; }
    .student-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .student-profile-card { position: static; }
    .signature-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .student-portal .main-content-container { padding: 0 12px 28px; }
    .student-header { padding: 11px 12px; margin-bottom: 18px; border-radius: 0 0 12px 12px; }
    .student-header-title { font-size: 14px; }
    .student-header-eyebrow { font-size: 8px; }
    .student-profile-trigger { min-height: 42px; padding: 3px; border-radius: 10px; }
    .student-header-avatar { width: 34px; height: 34px; }
    .student-page-header { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
    .student-page-actions, .student-page-actions .btn { width: 100%; }
    .student-panel-header { align-items: flex-start; flex-direction: column; padding: 15px; }
    .student-panel-header > .btn, .student-panel-header > form, .student-panel-header > form .btn { width: 100%; }
    .student-panel-body { padding: 17px 15px; }
    .student-portal .table thead th, .student-portal .table tbody td { padding-right: 11px; padding-left: 11px; }
    .student-dashboard-hero { align-items: flex-start; flex-direction: column; padding: 23px 18px; border-radius: 15px; }
    .dashboard-avatar { width: 60px; height: 60px; border-radius: 15px; }
    .dashboard-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
    .dashboard-hero-actions { align-items: stretch; width: 100%; }
    .student-status-pill { align-self: flex-start; }
    .dashboard-balance-notice { align-items: flex-start; }
    .balance-notice-action { display: none; }
    .student-stat-grid { grid-template-columns: 1fr; gap: 10px; }
    .student-stat-card { padding: 15px; }
    .student-detail-grid { grid-template-columns: 1fr; }
    .student-detail-item.detail-wide { grid-column: span 1; }
    .profile-detail-grid { grid-template-columns: 1fr; }
    .signature-actions { align-items: stretch; flex-direction: column-reverse; }
    .signature-actions .btn { width: 100%; }
    .payment-facts { grid-template-columns: 1fr; }
    .payment-feature-card > .card-header { align-items: flex-start !important; flex-direction: column; padding: 15px; }
    .payment-feature-card > .card-body { padding: 16px !important; }
    .payment-rrr-card { padding: 17px 12px; }
    .student-payment-page form > .d-flex { align-items: stretch !important; flex-direction: column; }
    .student-payment-page form > .d-flex .btn { width: 100%; }
    .receipt-header { grid-template-columns: auto minmax(0, 1fr); padding: 20px 16px; }
    .receipt-title { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #e7eaf0; text-align: left; }
    .receipt-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .receipt-reference-grid > div:nth-child(2) { border-right: 0; }
    .receipt-reference-grid > div:nth-child(-n+2) { border-bottom: 1px solid #e7eaf0; }
    .receipt-section { padding: 20px 16px; }
    .receipt-details-grid { grid-template-columns: 1fr; }
    .receipt-footer { align-items: flex-start; flex-wrap: wrap; padding: 17px 16px; }
    .receipt-footer > small { width: 100%; margin-left: 36px; }
}

@media print {
    .student-portal .sidebar-area,
    .student-portal .student-header,
    .student-portal footer,
    .student-portal .no-print { display: none !important; }
    .student-portal .main-content { margin-left: 0 !important; padding: 0 !important; }
    .student-portal .main-content-container { max-width: none; padding: 0; }
    .student-receipt { border-radius: 0; box-shadow: none; }
}

/* Student sign-in */
.student-login-page {
    --student-ink: #17243b;
    --student-muted: #667085;
    --student-border: #d9dee7;
    --student-primary: #4656e8;
    min-height: 100vh;
    margin: 0;
    background: #f5f7fb;
    color: var(--student-ink);
}

.student-login-shell { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); min-height: 100vh; padding: 16px; }
.student-login-visual { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: calc(100vh - 32px); padding: 42px; border-radius: 22px; background-image: linear-gradient(180deg, rgba(14, 25, 52, .3), rgba(14, 25, 52, .9)), var(--student-login-image); background-position: center; background-size: cover; box-shadow: 0 16px 44px rgba(16, 24, 40, .15); color: #fff; }
.student-login-visual::after { content: ''; position: absolute; width: 340px; height: 340px; top: -180px; right: -150px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255, 255, 255, .04), 0 0 0 90px rgba(255, 255, 255, .025); }
.login-home-link { position: absolute; z-index: 1; top: 26px; left: 28px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 9px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; backdrop-filter: blur(8px); }
.login-home-link:hover { background: #fff; color: #25366b; }
.login-home-link .material-symbols-outlined { font-size: 17px; }
.login-visual-copy { position: relative; z-index: 1; max-width: 560px; }
.login-visual-kicker { display: inline-block; margin-bottom: 12px; color: #bbc2ff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-visual-copy h1 { max-width: 520px; margin: 0 0 14px; color: #fff; font-size: clamp(31px, 4vw, 49px); font-weight: 770; line-height: 1.08; }
.login-visual-copy > p { max-width: 540px; margin: 0; color: rgba(255, 255, 255, .74); font-size: 13px; line-height: 1.7; }
.login-feature-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.login-feature-list span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .86); font-size: 9px; font-weight: 700; }
.login-feature-list .material-symbols-outlined { font-size: 15px; }
.student-login-form-side { display: grid; padding: 30px; place-items: center; }
.student-login-form-wrap { width: 100%; max-width: 480px; }
.student-login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; }
.student-login-brand img { width: 50px; max-height: 56px; object-fit: contain; }
.student-login-brand strong, .student-login-brand span { display: block; }
.student-login-brand strong { color: var(--student-ink); font-size: 14px; }
.student-login-brand span { margin-top: 4px; color: var(--student-primary); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.student-login-heading > span { display: block; margin-bottom: 5px; color: var(--student-primary); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.student-login-heading h2 { margin: 0 0 7px; color: var(--student-ink); font-size: 28px; font-weight: 770; }
.student-login-heading p { margin: 0 0 27px; color: var(--student-muted); font-size: 13px; }
.student-login-page .form-label { margin-bottom: 7px; color: #344054; font-size: 12px; font-weight: 750; }
.login-input-wrap { position: relative; }
.login-input-wrap > .material-symbols-outlined { position: absolute; z-index: 1; top: 15px; left: 14px; color: #8b95a5; font-size: 20px; pointer-events: none; }
.student-login-page .login-input-wrap .form-control { min-height: 52px; padding: 10px 48px 10px 45px; border-color: var(--student-border); border-radius: 11px; background: #fff; color: var(--student-ink); font-size: 13px; }
.student-login-page .login-input-wrap .form-control:focus { border-color: #8994f4; box-shadow: 0 0 0 .22rem rgba(70, 86, 232, .12); }
.login-password-toggle { position: absolute; top: 7px; right: 7px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #7b8493; }
.login-password-toggle:hover { background: #f3f4ff; color: var(--student-primary); }
.login-password-toggle .material-symbols-outlined { font-size: 19px; }
.login-form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.student-login-page .form-check-input { width: 17px; height: 17px; }
.student-login-page .form-check-label, .login-form-options a { color: #667085; font-size: 11px; }
.login-form-options a { color: var(--student-primary); font-weight: 700; text-decoration: none; }
.student-login-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; border-radius: 11px; background: var(--student-primary); box-shadow: 0 9px 20px rgba(70, 86, 232, .22); color: #fff; font-size: 13px; font-weight: 750; }
.student-login-button:hover { background: #3442c7; }
.student-login-button .material-symbols-outlined { font-size: 19px; }
.login-alert { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border-radius: 11px; font-size: 11px; }
.login-alert > .material-symbols-outlined { flex: 0 0 auto; font-size: 19px; }
.login-alert strong { display: block; margin-bottom: 3px; }
.login-alert ul { padding-left: 16px; }
.former-student-login-note { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; margin-top: 22px; border: 1px solid #cfe4f0; border-radius: 11px; background: #f1faff; color: #24566a; }
.former-student-login-note > .material-symbols-outlined { flex: 0 0 auto; font-size: 19px; }
.former-student-login-note p { margin: 0; }
.former-student-login-note strong, .former-student-login-note span { display: block; }
.former-student-login-note strong { font-size: 11px; }
.former-student-login-note span { margin-top: 3px; font-size: 10px; line-height: 1.5; }
.former-student-login-note a { font-weight: 750; }
.student-login-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; color: #98a2b3; }
.student-login-footer a { color: #667085; font-size: 10px; font-weight: 650; text-decoration: none; }
.student-login-footer a:hover { color: var(--student-primary); }

@media (max-width: 991.98px) {
    .student-login-shell { grid-template-columns: 1fr; padding: 0; }
    .student-login-visual { display: none; }
    .student-login-form-side { min-height: 100vh; padding: 40px 22px; }
}

@media (max-width: 575.98px) {
    .student-login-form-side { align-items: start; padding: 25px 16px 34px; }
    .student-login-brand { margin-bottom: 30px; }
    .student-login-heading h2 { font-size: 24px; }
    .login-form-options { align-items: flex-start; flex-direction: column; }
}
