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

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #1e293b
}

a {
    text-decoration: none
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: stretch
}

.sidebar {
    width: 250px;
    background: #fff;
    padding: 22px 20px;
    border-right: 1px solid #eceef5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 15px
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.logo-row img {
    width: 50px;
    height: 50px;
    object-fit: contain
}

.logo-text h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #0B2A5B;
    line-height: 1
}

.logo-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #1E9C45;
    line-height: 1
}

.logo-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px
}

.logo-tagline span {
    width: 20px;
    height: 2px;
    background: #1E9C45
}

.logo-tagline p {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: #1F2937
}

.sidebar-menu {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    transition: .3s
}

.sidebar-menu a i {
    width: 20px;
    font-size: 17px
}

.sidebar-menu a:hover {
    background: #f3f5ff
}

.sidebar-menu a.active {
    background: #0B2A5B;
    color: #fff
}

.logout {
    color: #ef4444 !important
}

.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: #fafbff;
    padding: 18px 12px
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    min-height: 70px
}

.topbar h2 {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a
}

.topbar p {
    color: #475569;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px
}

.notification {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    cursor: pointer
}

.notification i {
    font-size: 18px;
    color: #475569
}

.notification span {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center
}

.profile-box {
    min-width: 190px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    position: relative;
    cursor: pointer
}

.profile-box img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover
}

.profile-box h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a
}

.profile-box i {
    color: #64748b
}

.profile-dropdown {
    position: absolute;
    top: 65px;
    right: 0;
    width: 210px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    padding: 10px;
    display: none;
    z-index: 100
}

.profile-dropdown.show {
    display: block
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
    border-radius: 10px
}

.profile-dropdown a:hover {
    background: #f3f6fb
}

.profile-dropdown a:last-child {
    color: #ef4444
}

.profile-top-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
    margin-bottom: 16px
}

.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px
}

.profile-card,
.profile-main-card,
.secure-banner {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05)
}

.profile-main-card {
    min-height: 210px;
    padding: 26px 34px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    position: relative;
    align-items: center
}

.profile-photo-wrap {
    width: 132px;
    height: 132px;
    position: relative
}

.profile-main-img {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12)
}

.camera-btn {
    position: absolute;
    right: 4px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #f8fafc;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .15)
}

.profile-main-info h3 {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px
}

.profile-main-info span {
    display: block;
    color: #0057ff;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 17px
}

.profile-main-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-size: 13px;
    margin: 12px 0
}

.profile-main-info p i {
    width: 18px;
    color: #475569
}

.profile-main-info p b {
    font-weight: 700
}

.profile-active-badge {
    position: absolute;
    left: 34px;
    bottom: 25px;
    padding: 9px 18px;
    border-radius: 30px;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 900
}

.profile-active-badge i {
    font-size: 9px;
    margin-right: 8px
}

.profile-card {
    padding: 22px
}

.account-overview-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 18px
}

.account-overview-card h3 i {
    color: #0057ff;
    margin-right: 8px
}

.overview-box {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 20px 0
}

.overview-big-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    flex-shrink: 0
}

.overview-big-icon.blue {
    background: #eaf2ff;
    color: #0057ff
}

.overview-big-icon.green {
    background: #dcfce7;
    color: #16a34a
}

.overview-box p {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px
}

.overview-box h4 {
    color: #0f172a;
    font-size: 21px;
    font-weight: 900
}

.overview-box span {
    color: #475569;
    font-size: 13px;
    font-weight: 600
}

.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px
}

.profile-card-header h3,
.course-details-card h3,
.account-settings-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a
}

.profile-card-header button {
    width: 58px;
    height: 36px;
    border: 1px solid #dbe3ef;
    background: #fff;
    border-radius: 8px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer
}

.profile-card-header a {
    color: #0057ff;
    font-size: 13px;
    font-weight: 900
}

.profile-info-list {
    display: flex;
    flex-direction: column
}

.profile-info-list div {
    display: grid;
    grid-template-columns: 28px 1fr 1.3fr;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    border-bottom: 1px solid #e5eaf2
}

.profile-info-list div:last-child {
    border-bottom: none
}

.profile-info-list i {
    color: #0B2A5B;
    font-size: 15px
}

.profile-info-list span {
    font-size: 13px;
    font-weight: 700;
    color: #334155
}

.profile-info-list strong {
    text-align: right;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a
}

.course-active {
    background: #dcfce7;
    color: #15803d !important;
    padding: 7px 15px;
    border-radius: 20px;
    width: max-content;
    justify-self: end
}

.payment-table {
    width: 100%;
    overflow: hidden;
    border-radius: 9px
}

.payment-head,
.payment-row {
    display: grid;
    grid-template-columns: 35px 1.8fr .8fr 1fr .7fr;
    align-items: center;
    gap: 10px
}

.payment-head {
    background: #f8fafc;
    color: #334155;
    height: 42px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900
}

.payment-row {
    height: 48px;
    padding: 0 10px;
    border-bottom: 1px solid #e5eaf2;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800
}

.payment-row span {
    background: #dcfce7;
    color: #15803d;
    border-radius: 20px;
    padding: 7px 14px;
    font-weight: 900
}

.payment-note {
    margin-top: 16px;
    color: #334155;
    font-size: 12px;
    font-weight: 700
}

.payment-note i {
    color: #0B2A5B;
    margin-right: 6px
}

.settings-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.setting-item {
    width: 100%;
    border: none;
    background: #fbfcff;
    min-height: 64px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 48px 1fr 22px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: .25s
}

.setting-item:hover {
    background: #f3f6fb;
    transform: translateY(-1px)
}

.setting-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px
}

.setting-icon.purple {
    background: #f3e8ff;
    color: #7c3aed
}

.setting-icon.blue {
    background: #eaf2ff;
    color: #0057ff
}

.setting-icon.green {
    background: #dcfce7;
    color: #16a34a
}

.setting-icon.red {
    background: #fee2e2;
    color: #ef4444
}

.setting-item h4 {
    font-size: 13px;
    font-weight: 900;
    color: #0057ff;
    margin-bottom: 4px
}

.setting-item p {
    color: #334155;
    font-size: 12px;
    font-weight: 600
}

.setting-item>i {
    color: #0f172a;
    font-size: 13px
}

.logout-setting h4 {
    color: #ef4444
}

.secure-banner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #eff6ff;
    position: relative;
    overflow: hidden
}

.secure-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #dbeafe;
    color: #0057ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex-shrink: 0
}

.secure-banner h3 {
    color: #0057ff;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 6px
}

.secure-banner p {
    color: #334155;
    font-size: 13px;
    font-weight: 600
}

.secure-watermark {
    position: absolute;
    right: 28px;
    bottom: 2px;
    font-size: 78px;
    color: rgba(0, 87, 255, .10)
}

.profile-help-card {
    margin-top: auto;
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05)
}

.profile-help-card h3 {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900
}

.profile-help-card p {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px
}

.profile-help-card button {
    width: 150px;
    height: 40px;
    border: none;
    border-radius: 7px;
    background: #0057ff;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer
}

.profile-help-illustration {
    width: 130px;
    height: 100px;
    position: relative;
    margin: 20px auto 14px;
    background: #eef2ff;
    border-radius: 45% 45% 15px 15px
}

.help-head {
    width: 34px;
    height: 34px;
    background: #f8c9a4;
    border-radius: 50%;
    position: absolute;
    top: 18px;
    left: 48px
}

.help-body {
    width: 58px;
    height: 42px;
    background: #6d5efc;
    border-radius: 18px 18px 8px 8px;
    position: absolute;
    top: 46px;
    left: 36px
}

.help-laptop {
    width: 52px;
    height: 30px;
    background: #fff;
    border: 2px solid #dbe3ef;
    border-radius: 7px;
    position: absolute;
    top: 56px;
    left: 66px
}

.help-books {
    width: 45px;
    height: 12px;
    background: #f59e0b;
    border-radius: 6px;
    position: absolute;
    bottom: 5px;
    left: 16px
}

.profile-modal,
.edit-modal,
.password-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px
}

.profile-modal.show,
.edit-modal.show,
.password-modal.show {
    display: flex
}

.profile-modal-box,
.edit-modal-box,
.password-modal-box {
    width: 460px;
    max-width: 90%;
    background: #fff;
    border-radius: 16px;
    padding: 18px 28px;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .25)
}

.modal-close {
    position: absolute;
    right: 22px;
    top: 18px;
    border: none;
    background: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer
}

.profile-modal-box h2,
.edit-modal-box h2,
.password-modal-box h2 {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 12px;
    color: #0f172a;
    text-align: center
}

.modal-profile-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 50%;
    object-fit: cover
}

.profile-info {
    display: flex;
    flex-direction: column
}

.profile-info div {
    display: grid;
    grid-template-columns: 35px 1fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: left
}

.profile-info i {
    color: #0B2A5B
}

.profile-info span {
    color: #475569;
    font-weight: 600
}

.profile-info span,
.profile-info strong {
    font-size: 14px
}

.profile-info strong {
    color: #0f172a;
    font-weight: 700
}

.active-status {
    background: #dcfce7;
    color: #15803d !important;
    padding: 6px 14px;
    border-radius: 8px;
    width: max-content
}

.close-btn {
    margin: 15px auto 0;
    width: 160px;
    height: 42px;
    display: block;
    border: none;
    border-radius: 8px;
    background: #0B2A5B;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 99999;
    justify-content: center;
    align-items: center
}

.image-modal.show {
    display: flex
}

.large-profile-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff
}

.image-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer
}

.edit-modal-box {
    width: 420px;
    padding: 14px 26px;
    text-align: center
}

.edit-modal-box h2 {
    font-size: 20px;
    margin-bottom: 8px
}

.edit-modal-box .modal-profile-img {
    width: 68px;
    height: 68px;
    margin-bottom: 6px
}

.upload-photo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 8px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #eef2ff;
    color: #0B2A5B;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer
}

.edit-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px
}

.edit-field {
    width: 100%;
    max-width: 320px
}

.edit-form input,
.edit-form select {
    width: 100%;
    height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    outline: none
}

.edit-field small {
    display: block;
    text-align: left;
    color: #dc2626;
    font-size: 11px;
    margin-top: 2px;
    min-height: 12px
}

.edit-actions {
    width: 100%;
    max-width: 400px;
    margin: 10px auto 0;
    display: flex;
    gap: 12px
}

.edit-actions button {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer
}

#saveEditBtn {
    background: #0B2A5B;
    color: #fff
}

#cancelEditBtn {
    background: #e5e7eb;
    color: #111827
}

.photo-success-msg {
    display: block;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center
}

.password-modal-box {
    width: 520px;
    padding: 32px;
    text-align: center
}

.password-lock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #0057ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px
}

.password-modal-box>p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 18px
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.password-form input {
    width: 100%;
    height: 44px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13px;
    outline: none
}

.password-rules {
    background: #eaf2ff;
    border-radius: 8px;
    padding: 12px;
    text-align: left
}

.password-rules p {
    color: #0B2A5B;
    font-size: 12px;
    font-weight: 700;
    margin: 5px 0
}

#updatePasswordBtn {
    height: 44px;
    border: none;
    border-radius: 8px;
    background: #0057ff;
    color: #fff;
    font-weight: 900;
    cursor: pointer
}

@media(max-width:1200px) {

    .profile-top-grid,
    .profile-content-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:900px) {
    .dashboard-wrapper {
        flex-direction: column
    }

    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto
    }

    .profile-main-card {
        grid-template-columns: 1fr;
        text-align: center
    }

    .profile-active-badge {
        position: static;
        width: max-content;
        margin: 0 auto
    }

    .profile-info-list div {
        grid-template-columns: 28px 1fr
    }

    .profile-info-list strong {
        grid-column: 2;
        text-align: left
    }

    .payment-head {
        display: none
    }

    .payment-row {
        grid-template-columns: 1fr;
        height: auto;
        padding: 14px;
        gap: 7px
    }
}

@media(max-width:600px) {
    .main-content {
        padding: 15px
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px
    }

    .topbar h2 {
        font-size: 22px
    }

    .profile-box h4 {
        display: none
    }

    .profile-main-card,
    .profile-card {
        padding: 18px
    }
}