:root {
    --profile-primary: #8080f1;
    --profile-primary-soft: #f2f2ff;
    --profile-text: #25253f;
    --profile-muted: #74748c;
    --profile-line: #ededf7;
    --profile-bg: #fafafe;
}

.profile-hero {
    background: linear-gradient(180deg, #f7f7ff 0%, #fff 100%);
    border-bottom: 1px solid rgba(128, 128, 241, .14);
    padding: 24px 0 18px;
}

.profile-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-hero-copy h1 {
    margin: 8px 0 4px;
    color: var(--profile-text);
    font-size: 30px;
    font-weight: 800;
}

.profile-hero-copy p {
    margin: 0;
    color: var(--profile-muted);
}

.profile-breadcrumb {
    margin: 0;
    gap: 8px;
    font-size: 14px;
}

.profile-breadcrumb a,
.profile-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60607a;
    text-decoration: none;
}

.profile-home-link {
    padding: 10px 12px;
    border: 1px solid var(--profile-line);
    border-radius: 8px;
    background: #fff;
    white-space: nowrap;
}

.profile-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--profile-line);
    backdrop-filter: blur(8px);
}

.profile-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tabs a,
.profile-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #4b4b64;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    white-space: nowrap;
}

.profile-tabs a:hover,
.profile-tabs button:hover,
.profile-tabs a.active {
    background: var(--profile-primary-soft);
    color: var(--profile-primary);
}

.profile-tabs button {
    margin-inline-start: auto;
}

.profile-shell {
    padding-top: 28px;
    padding-bottom: 72px;
}

.profile-content {
    min-height: 420px;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--profile-line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(20, 24, 36, .05);
}

.profile-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.profile-page-header h2,
.profile-section-title {
    margin: 0;
    color: var(--profile-text);
    font-size: 18px;
    font-weight: 800;
}

.profile-page-header p {
    margin: 6px 0 0;
    color: var(--profile-muted);
    line-height: 1.7;
}

.profile-form-screen,
.profile-password-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.profile-form-panel,
.profile-summary-panel {
    padding: 24px;
}

.profile-summary-panel {
    display: grid;
    gap: 14px;
    background: var(--profile-primary-soft);
}

.profile-account-actions {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.profile-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--profile-primary);
    font-size: 22px;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.profile-form-actions .btn,
.profile-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.profile-course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-course-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.profile-course-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--profile-primary-soft);
}

.profile-course-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.profile-course-title {
    margin: 0;
    color: var(--profile-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.profile-course-description {
    margin: 0;
    color: var(--profile-muted);
    line-height: 1.7;
}

.profile-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-progress {
    flex: 1;
    height: 9px;
    border-radius: 999px;
    background: #eeeef8;
    overflow: hidden;
}

.profile-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--profile-primary);
}

.profile-progress-label {
    min-width: 46px;
    color: #4b4b64;
    font-weight: 800;
    text-align: end;
}

.profile-empty-state {
    padding: 42px 20px;
    text-align: center;
}

.profile-empty-state i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--profile-primary-soft);
    color: var(--profile-primary);
    font-size: 23px;
}

.course-detail-hero {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 16px;
    margin-bottom: 24px;
}

.course-detail-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.course-detail-copy {
    display: grid;
    gap: 10px;
}

.course-detail-copy h2 {
    margin: 0;
    color: var(--profile-text);
    font-size: 20px;
    font-weight: 800;
}

.course-detail-copy p {
    margin: 0;
    color: var(--profile-muted);
    line-height: 1.7;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.course-detail-panel {
    padding: 20px;
}

.profile-lessons {
    display: grid;
    gap: 10px;
}

.profile-lesson-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--profile-line);
    border-radius: 8px;
    color: #34344a;
    text-decoration: none;
}

.profile-lesson-link:hover {
    border-color: rgba(128, 128, 241, .45);
    color: var(--profile-primary);
}

.profile-lesson-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.profile-lesson-title span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-lesson-complete {
    color: #2eb67d;
}

.temporary-video-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    white-space: normal;
    line-height: 1.4;
}

.profile-session-list {
    display: grid;
    gap: 10px;
}

.profile-session-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--profile-line);
    border-radius: 8px;
}

.profile-video-panel {
    display: grid;
    gap: 18px;
    padding: 20px;
    text-align: center;
}

.profile-video-panel .vid-player {
    width: 100%;
}

.profile-video-panel video,
.profile-video-panel iframe {
    max-width: 100%;
    border-radius: 8px;
}

.profile-video-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 991.98px) {
    .profile-form-screen,
    .profile-password-screen,
    .course-detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-tabs button {
        margin-inline-start: 0;
    }

    .profile-course-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .profile-hero {
        padding-top: 16px;
    }

    .profile-hero-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-home-link {
        display: none;
    }

    .profile-hero-copy h1 {
        font-size: 24px;
    }

    .profile-tabs {
        gap: 6px;
        padding: 8px 0;
    }

    .profile-tabs a,
    .profile-tabs button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .profile-shell {
        padding-top: 18px;
        padding-bottom: 56px;
    }

    .profile-form-panel,
    .profile-summary-panel,
    .course-detail-panel,
    .profile-video-panel {
        padding: 16px;
    }

    .profile-page-header {
        flex-direction: column;
    }

    .profile-page-header h2,
    .profile-section-title,
    .course-detail-copy h2 {
        font-size: 18px;
    }

    .course-detail-hero {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .course-detail-hero img {
        aspect-ratio: 16 / 9;
    }

    .profile-session-item {
        grid-template-columns: 1fr;
    }

    .profile-form-actions .btn,
    .profile-course-body .btn,
    .profile-session-item .btn,
    .profile-video-actions .btn {
        width: 100%;
    }
}
