.answer-row {
    border: 1px solid rgb(226 232 240);
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: #fff;
    align-items: flex-start;
}

.question-block {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgb(226 232 240 / 0.95);
    border-radius: 1.5rem;
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.06);
    padding: 1.35rem 1.4rem 1.45rem;
}

.quiz-editor__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.25rem 0 1.5rem;
}

.quiz-editor__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    color: rgb(71 85 105);
    font-size: 0.9rem;
    font-weight: 600;
}

.quiz-editor__back:hover {
    color: rgb(15 23 42);
}

.quiz-editor__title {
    margin: 0;
    color: rgb(15 23 42);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.quiz-editor__subtitle {
    margin: 0.65rem 0 0;
    max-width: 40rem;
    color: rgb(71 85 105);
    font-size: 0.98rem;
    line-height: 1.6;
}

.quiz-editor__hero-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.quiz-editor__stat {
    min-width: 6.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgb(226 232 240);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.06);
    text-align: center;
}

.quiz-editor__stat-value {
    display: block;
    color: #e83355;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.quiz-editor__stat-label {
    display: block;
    margin-top: 0.35rem;
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quiz-editor__settings {
    margin-bottom: 1.25rem;
    padding: 1.2rem 1.35rem;
    border-radius: 1.35rem;
    background: #fff;
    border: 1px solid rgb(226 232 240);
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.05);
}

.quiz-editor__field-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgb(15 23 42);
    font-size: 0.86rem;
    font-weight: 700;
}

.quiz-editor__field-label span {
    color: rgb(148 163 184);
    font-weight: 500;
}

.quiz-editor__name-input {
    max-width: 36rem;
}

.quiz-editor__questions {
    display: grid;
    gap: 1.15rem;
}

.question-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(226 232 240);
}

.question-block__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.question-block__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: #e83355;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.question-title {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 1.05rem;
    font-weight: 700;
}

.question-block__hint {
    margin: 0.15rem 0 0;
    color: rgb(100 116 139);
    font-size: 0.8rem;
}

.question-block__tools {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.question-block__sort {
    width: 6.5rem;
}

.question-block__sort .kt-form-label {
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
}

.question-block__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    color: #e83355;
    background: rgb(232 51 85 / 0.08);
}

.question-block__delete:hover {
    background: rgb(232 51 85 / 0.16);
}

.question-block__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: start;
}

.question-block__media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audio-upload-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.question-audio-play,
.question-audio-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 0.7rem;
    background: rgb(232 51 85 / 0.08);
    color: #e83355;
    cursor: pointer;
}

.question-audio-play:hover,
.question-audio-remove:hover {
    background: rgb(232 51 85 / 0.16);
}

.question-audio-progress {
    flex-basis: 100%;
}

.question-block__options {
    position: relative;
    z-index: 1;
    clear: both;
}

.question-block__options-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.question-block__options-head .quiz-editor__field-label {
    margin-bottom: 0;
}

.question-block__options-hint {
    color: rgb(148 163 184);
    font-size: 0.8rem;
}

.quiz-option__select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.55rem;
    cursor: pointer;
    flex-shrink: 0;
}

.quiz-option__select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 2px solid rgb(203 213 225);
    background: #fff;
    color: rgb(71 85 105);
    font-size: 0.92rem;
    font-weight: 800;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quiz-option__select input:checked + .option-letter,
.answer-row:has(input[type="radio"]:checked) .option-letter {
    background: #e83355;
    border-color: #e83355;
    color: #fff;
}

.answer-row:has(input[type="radio"]:checked) {
    border-color: rgb(232 51 85 / 0.45);
    background: #fcf4f6;
    box-shadow: 0 8px 20px rgb(232 51 85 / 0.08);
}

.quiz-option__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-top: 1.7rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: rgb(148 163 184);
    cursor: pointer;
}

.quiz-option__remove:hover {
    background: rgb(232 51 85 / 0.1);
    color: #e83355;
}

.quiz-editor .ql-toolbar {
    border-color: rgb(226 232 240);
    border-radius: 12px 12px 0 0;
    background: #f8fafc;
}

.quiz-editor .ql-container {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
    border-color: rgb(226 232 240);
    border-radius: 0 0 12px 12px;
    background: #fff;
    font-size: 0.98rem;
}

.quiz-editor .ql-editor {
    height: auto !important;
    min-height: 140px;
    max-height: 260px;
    overflow-y: auto;
}

.quiz-editor .answer-quill-editor.ql-container,
.quiz-editor .quiz-editor__quill--sm.ql-container {
    min-height: 0;
}

.quiz-editor .answer-quill-editor .ql-editor,
.quiz-editor .quiz-editor__quill--sm .ql-editor {
    min-height: 72px;
    max-height: 160px;
}

.quiz-editor__add-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1.5px dashed rgb(203 213 225);
    border-radius: 1.25rem;
    background: rgb(248 250 252);
    color: rgb(15 23 42);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}

.quiz-editor__add-question:hover {
    border-color: #e83355;
    background: #fcf4f6;
    color: #e83355;
}

.quiz-editor__savebar {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.9rem 1.15rem;
    border-radius: 1.15rem;
    background: rgb(255 255 255 / 0.92);
    border: 1px solid rgb(226 232 240);
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.12);
    backdrop-filter: blur(12px);
}

.quiz-editor__savebar-copy {
    margin: 0;
    color: rgb(100 116 139);
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .quiz-editor__hero,
    .question-block__header,
    .question-block__body,
    .quiz-editor__savebar {
        flex-direction: column;
        align-items: stretch;
    }

    .question-block__body {
        grid-template-columns: 1fr;
    }

    .quiz-editor__hero-meta,
    .question-block__tools {
        justify-content: space-between;
    }
}

.quiz-preview__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.25rem 0 1.5rem;
}

.quiz-preview__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    color: rgb(71 85 105);
    font-size: 0.9rem;
    font-weight: 600;
}

.quiz-preview__back:hover {
    color: rgb(15 23 42);
}

.quiz-preview__title {
    margin: 0;
    color: rgb(15 23 42);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.quiz-preview__subtitle {
    margin: 0.65rem 0 0;
    max-width: 40rem;
    color: rgb(71 85 105);
    font-size: 0.98rem;
    line-height: 1.6;
}

.quiz-preview__hero-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.quiz-preview__stat {
    min-width: 6.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgb(226 232 240);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.06);
    text-align: center;
}

.quiz-preview__stat-value {
    display: block;
    color: #e83355;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.quiz-preview__stat-label {
    display: block;
    margin-top: 0.35rem;
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quiz-preview__list {
    display: grid;
    gap: 1.15rem;
    max-width: 52rem;
}

.quiz-preview-card {
    padding: 1.4rem 1.5rem 1.5rem;
    border: 1px solid rgb(226 232 240 / 0.95);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.06);
}

.quiz-preview-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.quiz-preview-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: #e83355;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-preview-card__prompt {
    min-width: 0;
    flex: 1;
}

.quiz-preview-card__kicker {
    margin: 0 0 0.35rem;
    color: rgb(100 116 139);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quiz-preview-card__question {
    color: rgb(15 23 42);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
}

.quiz-preview-card__question img,
.quiz-preview-option__text img,
.quiz-attempt-question__prompt img,
.quiz-attempt-option__text img {
    display: block;
    max-width: min(100%, 28rem);
    height: auto;
    margin: 0.75rem 0 0;
    border-radius: 0.75rem;
    border: 1px solid rgb(226 232 240);
    background: #fff;
    cursor: zoom-in;
}

.quiz-preview-card img,
.quiz-attempt-question img {
    cursor: zoom-in;
}

.quiz-image-modal img {
    cursor: default;
}

.quiz-preview-card__question p {
    margin: 0;
}

.quiz-q-audio {
    flex-shrink: 0;
    margin-left: auto;
    padding-top: 0.1rem;
}

.quiz-q-audio audio {
    display: none;
}

.quiz-q-audio__btn {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #e83355;
    box-shadow: 0 8px 18px rgb(232 51 85 / 0.28);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.quiz-q-audio__btn:hover {
    transform: scale(1.06);
}

.quiz-q-audio__btn.is-playing {
    background: #c42a48;
}

.quiz-q-audio__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.quiz-q-audio__btn:not(.is-playing) .quiz-q-audio__icon {
    transform: translateX(1px);
}

.quiz-preview-card__image {
    display: block;
    width: 100%;
    max-width: 28rem;
    margin: 0;
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240);
    background: #fff;
}

.quiz-image-trigger {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.quiz-image-trigger:hover .quiz-preview-card__image,
.quiz-image-trigger:hover .quiz-attempt-question__image {
    box-shadow: 0 10px 24px rgb(16 21 102 / 0.12);
}

.quiz-image-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.quiz-image-modal[hidden] {
    display: none;
}

.quiz-image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(10 13 66 / 0.78);
}

.quiz-image-modal__panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    padding: 0.75rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgb(10 13 66 / 0.35);
}

.quiz-image-modal__img {
    display: block;
    max-width: min(92vw, 1120px);
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.65rem;
}

.quiz-image-modal__close {
    position: absolute;
    top: -0.7rem;
    right: -0.7rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: #101566;
    color: #fff;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.quiz-preview-card__options {
    display: grid;
    gap: 0.65rem;
}

.quiz-preview-option {
    display: block;
    cursor: default;
}

.quiz-preview-option__card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 1.1rem;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.quiz-preview-option__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 2px solid rgb(203 213 225);
    background: #fff;
    color: rgb(71 85 105);
    font-size: 0.88rem;
    font-weight: 800;
    flex-shrink: 0;
}

.quiz-preview-option__text {
    color: rgb(51 65 85);
    font-size: 0.98rem;
    line-height: 1.55;
    padding-top: 0.2rem;
}

.quiz-preview-option__text p {
    margin: 0;
}

.quiz-preview .option-active {
    background: #fcf4f6;
    border-color: rgb(232 51 85 / 0.45);
    box-shadow: 0 8px 20px rgb(232 51 85 / 0.08);
}

.quiz-preview .option-active .quiz-preview-option__letter {
    background: #e83355;
    border-color: #e83355;
    color: #fff;
}

.quiz-preview__empty {
    padding: 2rem 1.5rem;
    border: 1px dashed rgb(203 213 225);
    border-radius: 1.35rem;
    background: #f8fafc;
    color: rgb(100 116 139);
    text-align: center;
}

@media (max-width: 900px) {
    .quiz-preview__hero,
    .quiz-preview__hero-meta,
    .quiz-preview-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-q-audio {
        margin-left: 0;
        align-self: flex-start;
    }
}

.quiz-attempt__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.25rem 0 1.5rem;
}

.quiz-attempt__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    color: rgb(71 85 105);
    font-size: 0.9rem;
    font-weight: 600;
}

.quiz-attempt__back:hover {
    color: rgb(15 23 42);
}

.quiz-attempt__title {
    margin: 0;
    color: rgb(15 23 42);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.quiz-attempt__subtitle {
    margin: 0.65rem 0 0;
    max-width: 40rem;
    color: rgb(71 85 105);
    font-size: 0.98rem;
    line-height: 1.6;
}

.quiz-attempt__stat {
    min-width: 7.5rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgb(226 232 240);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.06);
    text-align: center;
}

.quiz-attempt__stat-value {
    display: block;
    color: #e83355;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.quiz-attempt__stat-label {
    display: block;
    margin-top: 0.4rem;
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quiz-attempt__card {
    max-width: 52rem;
    padding: 1.5rem 1.6rem 1.4rem;
    border: 1px solid rgb(226 232 240 / 0.95);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.06);
}

.quiz-attempt__progress {
    height: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(226 232 240);
}

.quiz-attempt__progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #e83355;
    transition: width 0.3s ease;
}

.quiz-attempt-question__header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.15rem;
}

.quiz-attempt-question__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: #e83355;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-attempt-question__prompt {
    min-width: 0;
    flex: 1;
    color: rgb(15 23 42);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
}

.quiz-attempt-question__prompt p {
    margin: 0;
}

.quiz-attempt-question__header .quiz-q-audio {
    margin-left: auto;
}

.quiz-attempt-question__image {
    display: block;
    width: 100%;
    max-width: 28rem;
    margin: 0;
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240);
    background: #fff;
}

.quiz-attempt-question__options {
    display: grid;
    gap: 0.65rem;
}

.quiz-attempt-option {
    display: block;
    cursor: pointer;
}

.quiz-attempt-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-attempt-option__card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 1.1rem;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.quiz-attempt-option:hover .quiz-attempt-option__card {
    border-color: rgb(232 51 85 / 0.4);
}

.quiz-attempt-option__input:checked + .quiz-attempt-option__card {
    background: #fcf4f6;
    border-color: rgb(232 51 85 / 0.45);
    box-shadow: 0 8px 20px rgb(232 51 85 / 0.08);
}

.quiz-attempt-option__input:checked + .quiz-attempt-option__card .quiz-attempt-option__letter {
    background: #e83355;
    border-color: #e83355;
    color: #fff;
}

.quiz-attempt-option__input:checked + .quiz-attempt-option__card.option-success {
    background: #f0fdf4;
    border-color: rgb(22 163 74 / 0.45);
    box-shadow: 0 8px 20px rgb(22 163 74 / 0.08);
}

.quiz-attempt-option__input:checked + .quiz-attempt-option__card.option-success .quiz-attempt-option__letter {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.quiz-attempt-option__input:checked + .quiz-attempt-option__card.option-error {
    background: #fef2f2;
    border-color: rgb(220 38 38 / 0.35);
    box-shadow: 0 8px 20px rgb(220 38 38 / 0.08);
}

.quiz-attempt-option__input:checked + .quiz-attempt-option__card.option-error .quiz-attempt-option__letter {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.quiz-attempt-option__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 2px solid rgb(203 213 225);
    background: #fff;
    color: rgb(71 85 105);
    font-size: 0.88rem;
    font-weight: 800;
    flex-shrink: 0;
}

.quiz-attempt-option__text {
    color: rgb(51 65 85);
    font-size: 0.98rem;
    line-height: 1.55;
    padding-top: 0.2rem;
}

.quiz-attempt-option__text p {
    margin: 0;
}

.quiz-attempt .option-success {
    background: #f0fdf4;
    border-color: rgb(22 163 74 / 0.45);
}

.quiz-attempt .option-success .quiz-attempt-option__letter {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.quiz-attempt .option-error {
    background: #fef2f2;
    border-color: rgb(220 38 38 / 0.35);
}

.quiz-attempt .option-error .quiz-attempt-option__letter {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.quiz-attempt-review {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
}

.quiz-attempt-review--correct {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid rgb(22 163 74 / 0.28);
}

.quiz-attempt-review--wrong {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid rgb(220 38 38 / 0.22);
}

.quiz-attempt-review--skipped {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid rgb(217 119 6 / 0.28);
}

.quiz-attempt-option__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.quiz-attempt-option__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.quiz-attempt-option__badge--correct {
    background: #dcfce7;
    color: #166534;
}

.quiz-attempt-option__badge--yours {
    background: #fee2e2;
    color: #991b1b;
}

.quiz-attempt .option-success .quiz-attempt-option__badge--yours {
    background: #dcfce7;
    color: #166534;
}

.quiz-attempt.is-review .quiz-attempt-option {
    cursor: default;
}

.quiz-attempt.is-review .quiz-attempt-option:hover .quiz-attempt-option__card {
    border-color: rgb(226 232 240);
}

.quiz-attempt.is-review .quiz-attempt-option:hover .quiz-attempt-option__card.option-success {
    border-color: rgb(22 163 74 / 0.45);
}

.quiz-attempt.is-review .quiz-attempt-option:hover .quiz-attempt-option__card.option-error {
    border-color: rgb(220 38 38 / 0.35);
}

.quiz-attempt__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgb(226 232 240);
}

.quiz-attempt__nav #prevBtn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .quiz-attempt__hero,
    .quiz-attempt-question__header,
    .quiz-attempt__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-attempt-question__header .quiz-q-audio {
        margin-left: 0;
        align-self: flex-start;
    }
}

.quiz-result__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.25rem 0 1.5rem;
}

.quiz-result__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    color: rgb(71 85 105);
    font-size: 0.9rem;
    font-weight: 600;
}

.quiz-result__back:hover {
    color: rgb(15 23 42);
}

.quiz-result__title {
    margin: 0;
    color: rgb(15 23 42);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.quiz-result__subtitle {
    margin: 0.65rem 0 0;
    max-width: 40rem;
    color: rgb(71 85 105);
    font-size: 0.98rem;
    line-height: 1.6;
}

.quiz-result__score {
    min-width: 7.5rem;
    padding: 0.95rem 1.2rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgb(226 232 240);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.06);
    text-align: center;
}

.quiz-result__score-value {
    display: block;
    color: #e83355;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.quiz-result__score-label {
    display: block;
    margin-top: 0.4rem;
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quiz-result__card {
    max-width: 52rem;
    padding: 1.5rem 1.6rem 1.6rem;
    border: 1px solid rgb(226 232 240 / 0.95);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.06);
}

.quiz-result__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.quiz-result__stat {
    padding: 1rem 0.9rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgb(226 232 240);
    text-align: center;
}

.quiz-result__stat-value {
    display: block;
    color: rgb(15 23 42);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.quiz-result__stat-label {
    display: block;
    margin-top: 0.45rem;
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quiz-result__stat--correct .quiz-result__stat-value {
    color: #16a34a;
}

.quiz-result__stat--wrong .quiz-result__stat-value {
    color: #dc2626;
}

.quiz-result__stat--skipped .quiz-result__stat-value {
    color: #d97706;
}

.quiz-result__chart {
    display: flex;
    justify-content: center;
    margin: 1.75rem 0 0.5rem;
}

.quiz-result__chart #pie_chart {
    width: 100%;
    max-width: 360px;
}

.quiz-result__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(226 232 240);
}

@media (max-width: 900px) {
    .quiz-result__hero {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-result__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lessoraudioplayer {
    padding: 60px 0px;
}

.lessoraudioplayer .audio-player {
    text-align: center;
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
}

.lessoraudioplayer .audio-player h2 {
    font-size: 25px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.lessoraudioplayer .progress-container {
    position: relative;
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    cursor: pointer;
}

.lessoraudioplayer .progress {
    position: absolute;
    height: 10px;
    background: #ec2f58;
    border-radius: 5px;
    top: 0;
    left: 0;
    width: 0%;
}

.lessoraudioplayer .progress-thumb {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -35%);
    pointer-events: none;
}

.lessoraudioplayer .time {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-top: 30px;
}

.lessoraudioplayer .controls {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.lessoraudioplayer .controls button img {
    margin-left: 13px;
}

.lessoraudioplayer .controls button {
    background: rgba(16, 21, 102, 1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    box-shadow: 10.87px 10.87px 16.3px 0px rgba(255, 255, 255, 0.2) inset;
    margin: 0px;
    box-shadow: 0px 5.43px 10.87px 0px rgba(55, 46, 152, 0.65);
}

.btnwraplssply {
    box-shadow: -10.87px -10.87px 21.74px 0px rgba(255, 255, 255, 1) inset;
    box-shadow: 10.87px 10.87px 10.87px 0px rgba(0, 0, 0, 0.05);
    box-shadow: -10.87px -10.87px 16.3px 0px rgba(255, 255, 255, 1);
    box-shadow: 10.87px 10.87px 10.87px 0px rgba(0, 0, 0, 0.05) inset;
    padding: 15px;
    border-radius: 50%;
}

.lessoraudioplayer .controls button.pause {
    width: 80px;
    height: 80px;
    font-size: 40px;
}

.lessoraudioplayer .controls button:focus {
    outline: none;
}

.lessoraudioplayer audio {
    display: none;
}

/* Topic lesson studio */
.topic-learn {
    --topic-ink: #101566;
    --topic-crimson: #e83355;
    --topic-crimson-deep: #b91d3d;
    --topic-muted: #5b6478;
    --topic-line: rgba(16, 21, 102, 0.1);
    font-family: "Plus Jakarta Sans", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    color: var(--topic-ink);
    padding-bottom: 2.5rem;
}

.topic-learn__shell {
    padding-bottom: 0.5rem;
}

.topic-learn__nav {
    margin-bottom: 0.85rem;
}

.topic-learn__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgb(71 85 105);
    font-size: 0.92rem;
    font-weight: 600;
}

.topic-learn__back:hover {
    color: rgb(15 23 42);
}

.topic-learn__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.85rem;
}

.topic-learn__eyebrow {
    margin: 0 0 0.25rem;
    color: var(--topic-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.topic-learn__title {
    margin: 0;
    color: var(--topic-ink);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.topic-learn__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.topic-learn__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--topic-line);
    background: #fff;
    color: var(--topic-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

/* Thin audio strip */
.topic-learn__strip.lessoraudioplayer {
    margin-bottom: 0.85rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: 999px;
    background: #12183f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 24px rgba(16, 21, 102, 0.12);
}

.topic-learn__strip .topic-learn__audio.audio-player {
    width: 100%;
    max-width: none;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    text-align: left;
}

.topic-learn__strip-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 0.9rem;
}

.topic-learn__strip .controls.topic-learn__strip-controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    margin: 0 !important;
}

.topic-learn__strip .btnwraplssply.topic-learn__btnwrap {
    padding: 0 !important;
    margin: 0;
    border-radius: 50%;
    box-shadow: none !important;
    background: transparent;
}

.topic-learn__strip .controls button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.9rem !important;
    height: 1.9rem !important;
    min-width: 1.9rem;
    padding: 0 !important;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff;
    box-shadow: none !important;
    line-height: 1;
    font-size: 0.7rem !important;
}

.topic-learn__strip .controls button.pause {
    width: 2.2rem !important;
    height: 2.2rem !important;
    min-width: 2.2rem;
    font-size: 0.8rem !important;
    background: var(--topic-crimson) !important;
}

.topic-learn__strip .controls button img {
    margin: 0 !important;
    width: 10px;
    height: auto;
    filter: brightness(0) invert(1);
}

.topic-learn__strip .progress-container {
    position: relative;
    width: 100%;
    height: 4px !important;
    margin: 0;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 999px;
    cursor: pointer;
}

.topic-learn__strip .progress {
    height: 4px !important;
    background: #fff !important;
    border-radius: 999px;
}

.topic-learn__strip .progress-thumb {
    top: 50%;
    transform: translate(-50%, -50%) !important;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.topic-learn__strip .progress-thumb img {
    display: none;
}

.topic-learn__strip .time.topic-learn__strip-time {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.7rem !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.topic-learn__strip-sep {
    opacity: 0.5;
}

/* Resource tabs + full-width PDF */
.topic-learn__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.topic-learn__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.topic-learn__tab {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--topic-line);
    background: #fff;
    color: var(--topic-muted);
    font-size: 0.84rem;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.topic-learn__tab:hover,
.topic-learn__tab.is-active {
    border-color: rgba(232, 51, 85, 0.35);
    color: var(--topic-crimson);
    background: #fff5f7;
}

.topic-learn__toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.topic-learn__link {
    color: var(--topic-muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.topic-learn__link:hover {
    color: var(--topic-ink);
}

.topic-learn__quiz-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--topic-crimson);
    color: #fff !important;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.topic-learn__quiz-btn:hover {
    background: var(--topic-crimson-deep);
    color: #fff !important;
}

.topic-learn__viewer {
    width: 100%;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgba(16, 21, 102, 0.08);
    box-shadow: 0 14px 34px rgba(16, 21, 102, 0.07);
    overflow: hidden;
}

.topic-learn__viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(16, 21, 102, 0.08);
    background: #fff;
}

.topic-learn__viewer-title {
    margin: 0;
    color: var(--topic-ink);
    font-size: 0.95rem;
    font-weight: 720;
}

.topic-learn__viewer-tools {
    display: inline-flex;
    gap: 0.35rem;
}

.topic-learn__zoom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    border: 1px solid var(--topic-line);
    background: #fff;
    color: var(--topic-ink);
    cursor: pointer;
}

.topic-learn__zoom-btn:hover {
    border-color: rgba(232, 51, 85, 0.28);
    background: #fff7f9;
}

.topic-learn__viewer-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 1rem;
    background: #f4f3f7;
}

.topic-learn__pdf-container {
    width: 100%;
    min-height: 24rem;
}

.topic-learn__viewer-empty,
.topic-learn__viewer-loading {
    display: grid;
    place-items: center;
    min-height: 18rem;
    color: var(--topic-muted);
    font-size: 0.95rem;
    text-align: center;
}

.topic-learn__viewer-empty.hidden {
    display: none;
}

@media (max-width: 760px) {
    .topic-learn__strip-inner {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "controls time"
            "progress progress";
        gap: 0.55rem 0.75rem;
    }

    .topic-learn__strip-controls {
        grid-area: controls;
    }

    .topic-learn__strip .progress-container {
        grid-area: progress;
    }

    .topic-learn__strip-time {
        grid-area: time;
        justify-self: end;
    }

    .topic-learn__strip {
        border-radius: 1rem;
        padding: 0.7rem 0.8rem;
    }

    .topic-learn__viewer {
        min-height: 65vh;
    }
}

.lessonsinglebtntodownload {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin-bottom: 80px;
}

.lessontakequizsection {
    background-color: #070c28;
    background-image: url(https://chemistryunlocked.co.uk/wp-content/uploads/2025/03/Mask-group.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 80px;
}

.single-dtlms_quizzes .pre-loader {
    display: none;
}

.option-active {
    background: #e6ffe2;
}

.kt-hover-card {
    transition:
        transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
    will-change: transform;
}

.kt-hover-card:hover {
    background-color: #e83455;
    cursor: pointer;
}

.kt-hover-card:hover i,
.kt-hover-card:hover p,
.kt-hover-card:hover a {
    color: #fff !important;
}


.kt-hover-card:hover button
 {
    background-color: #fff !important;
    color: #e83455 !important;
}

.signup-sel {
    background-color: #e83455;
}

.signup-sel p,
.signup-sel span,
.signup-sel a,
.signup-sel i {
    color: #fff !important;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-slideUp {
    animation: slideUp 0.25s ease-out;
}

@keyframes slideDownFade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.animate-slideDownFade {
    animation: slideDownFade 0.25s ease-in forwards;
}

/* ================================
   TOP STICKY STRIP (METRONIC 9)
   ================================ */

/* Sticky strip container */
#kt_sticky_strip {
    position: sticky;
    top: 0;
    width: 90%;
    z-index: 1055; /* Higher than header/navbar */
    /* background-color: color-mix(
        in oklab,
        var(--primary) 5%,
        transparent
    );  */
        color: #000;
    font-size: 15px;
    /* border-bottom: solid 1px #ccc;
    border-right: solid 1px #ccc;
    border-color: color-mix(in oklab, var(--primary) 10%, transparent); */
    line-height: 1.6;
}

/* Inner content */
#kt_sticky_strip .container,
#kt_sticky_strip .container-fluid {
    display: flex;
    align-items: center;

    min-height: 40px;
    padding: 6px 12px;
}

/* Text */
#kt_sticky_strip .strip-text {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Close button */
#kt_sticky_strip .strip-close {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

#kt_sticky_strip .strip-close:hover {
    opacity: 1;
}

/* ==================================
   HEADER OFFSET FIX (IMPORTANT)
   ================================== */

/* When Metronic header is sticky */
body.has-sticky-strip .app-header,
body.has-sticky-strip .header,
body.has-sticky-strip .header-fixed {
    top: 40px; /* Same height as strip */
}

/* Sidebar layout fix (if used) */
body.has-sticky-strip .app-wrapper {
    padding-top: 40px;
}

/* ==================================
   RESPONSIVE
   ================================== */

@media (max-width: 991.98px) {
    #kt_sticky_strip {
        font-size: 13px;
    }

    #kt_sticky_strip .container,
    #kt_sticky_strip .container-fluid {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ==================================
   OPTIONAL: HIDE ON PRINT
   ================================== */

@media print {
    #kt_sticky_strip {
        display: none !important;
    }
}

#text_modal .kt-modal-title {
    display: none; /* hide only the title */
}

#text_modal .kt-modal-content {
    padding-top: 0; /* remove extra top padding */
}

.pdf-controls {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #ddd;
    z-index: 50;
}

/* Modified css 2-11-2026 */

/* ===== Sidebar facelift (no markup changes) ===== */

/* Sidebar container */
.kt-sidebar {
    width: 280px;
    background: color-mix(in oklch, var(--background) 92%, var(--primary) 8%);
    border-right: 1px solid
        color-mix(in oklch, var(--border) 80%, var(--primary) 20%);
    box-shadow: 0 10px 30px
        color-mix(in oklch, var(--foreground) 8%, transparent);
}

/* Header area spacing */
.kt-sidebar-header {
    height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in oklch, var(--border) 75%, transparent);
    /* background: color-mix(in oklch, var(--background) 96%, var(--primary) 4%); */
}

/* Toggle button polish (no functional change) */
#sidebar_toggle {
    border-color: color-mix(in oklch, var(--border) 60%, transparent);
    background: color-mix(in oklch, var(--background) 92%, var(--primary) 8%);
    box-shadow: 0 6px 16px
        color-mix(in oklch, var(--foreground) 10%, transparent);
}
#sidebar_toggle:hover {
    background: color-mix(in oklch, var(--background) 86%, var(--primary) 14%);
}

/* Menu spacing */
#sidebar_menu {
    /* gap: 6px; */
}

/* Section headings (Modules/System) */
.kt-menu-heading {
    letter-spacing: 0.08em;
    opacity: 0.85;
}

/* Menu links (the clickable row) */
.kt-menu-link {
    border-radius: 12px;
    /* padding: 10px 12px !important;  */
    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

/* Hover state */
.kt-menu-link:hover {
    /* background: color-mix(in oklch, var(--accent) 65%, var(--primary) 10%);
    transform: translateX(2px); */
}

/* Icon styling */
.kt-menu-icon {
    display: grid;
    place-items: center;
    width: 34px !important;
    height: 34px;
    border-radius: 10px;
    background: color-mix(in oklch, var(--accent) 75%, transparent);
    color: color-mix(in oklch, var(--foreground) 65%, transparent);
}

/* On hover, icon gets a touch of brand */
.kt-menu-link:hover .kt-menu-icon {
    background: color-mix(in oklch, var(--primary) 14%, var(--accent) 86%);
    color: var(--primary);
}

/* Active item styling (works with your existing kt-menu-item-active:* classes) */
.kt-menu-item[class*="kt-menu-item-active"] .kt-menu-link,
.kt-menu-item.kt-menu-item-active .kt-menu-link {
    /* background: color-mix(in oklch, var(--primary) 16%, var(--background) 84%);
    box-shadow: 0 8px 18px color-mix(in oklch, var(--primary) 14%, transparent); */
}

/* Active text + icon */
.kt-menu-item[class*="kt-menu-item-active"] .kt-menu-title,
.kt-menu-item.kt-menu-item-active .kt-menu-title {
    color: var(--primary);
    font-weight: 650;
}
.kt-menu-item[class*="kt-menu-item-active"] .kt-menu-icon,
.kt-menu-item.kt-menu-item-active .kt-menu-icon {
    background: color-mix(in oklch, var(--primary) 18%, var(--accent) 82%);
    color: var(--primary);
}

/* Scroll area: give a little breathing room */
#sidebar_scrollable {
    padding-bottom: 12px;
}
/* when you add a class like .is-loading to the button */
#login-form-btn.is-loading .btn-text {
    opacity: 0.7;
}
#login-form-btn.is-loading {
    pointer-events: none;
}

.kt-sidebar .kt-menu-link .kt-menu-icon {
    background-color: #e83355;
    color: #fff;
}

textarea {
    padding-top: 4px;
}

.option-error {
    background: #ffe2e2;
}

.option-success {
    background: #e6ffe2;
}

/* Trial topics page */
.trial-topics-page {
    position: relative;
}

.trial-topics-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 24rem;
    /* background: linear-gradient(
        to bottom,
        rgba(215, 50, 82, 0.25) 0%,
        rgba(244, 250, 255, 0.9) 60%,
        #ffffff 100%
    ); */
    pointer-events: none;
    z-index: 0;
}

.trial-topics-page > * {
    position: relative;
    z-index: 1;
}

.trial-topics-hero {
    align-items: flex-start;
}

.trial-topics-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.trial-topics-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.trial-topics-hero__button {
    min-width: 10rem;
}

.trial-topic-list {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.trial-topic-card {
    padding: 1.35rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 1.75rem;
    background: linear-gradient(
        135deg,
        rgb(255 255 255) 0%,
        rgb(248 250 252) 100%
    );
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.08);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.trial-topic-card:hover {
    transform: translateY(-3px);
    border-color: rgb(125 211 252 / 0.9);
    box-shadow: 0 24px 55px rgb(14 165 233 / 0.14);
}

.trial-topic-card__main {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.trial-topic-card__media {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.trial-topic-card__image {
    width: 10rem;
    height: 7rem;
    object-fit: cover;
    border-radius: 1.15rem;
    border: 1px solid rgb(226 232 240);
    background: rgb(241 245 249);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.08);
}

.trial-topic-card__body {
    min-width: 0;
}

.trial-topic-card__meta {
    color: rgb(14 116 144);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.trial-topic-card__title {
    display: inline-block;
    margin-top: 0.45rem;
    color: #e83355;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
    transition: color 160ms ease;
}

.trial-topic-card__title:hover {
    color: rgb(2 132 199);
}

.trial-topic-card__copy {
    margin-top: 0.75rem;
    max-width: 40rem;
    color: rgb(71 85 105);
    font-size: 0.98rem;
    line-height: 1.75;
}

.trial-topic-card__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.trial-topic-card__progress-table td {
    padding: 0.2rem 0;
}

.trial-topic-card__progress-table .kt-progress {
    overflow: hidden;
    border-radius: 999px;
    background: rgb(226 232 240);
}

.trial-topic-card__actions {
    display: flex;
    justify-content: flex-end;
}

.trial-topic-card__button {
    min-width: 9rem;
    border-radius: 999px;
    padding-block: 0.95rem;
    padding-inline: 1.1rem;
    box-shadow: 0 12px 24px rgb(37 99 235 / 0.16);
}

.trial-topic-card__sort {
    border-radius: 999px;
    background: rgb(255 255 255 / 0.78) !important;
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.08);
}

@media (max-width: 1024px) {
    .trial-topics-hero__actions {
        width: 100%;
        align-items: flex-start;
    }

    .trial-topics-hero__buttons {
        justify-content: flex-start;
    }

    .trial-topic-card__main {
        grid-template-columns: 1fr;
    }

    .trial-topic-card__side,
    .trial-topic-card__actions {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .trial-topics-page::before {
        height: 20rem;
    }

    .trial-topic-card {
        padding: 1rem;
        border-radius: 1.35rem;
    }

    .trial-topic-card__media {
        flex-direction: column;
        align-items: flex-start;
    }

    .trial-topic-card__image {
        width: 100%;
        height: auto;
        max-height: 13rem;
    }

    .trial-topic-card__title {
        font-size: 1.2rem;
    }

    .trial-topic-card__button,
    .trial-topics-hero__button {
        width: 100%;
        justify-content: center;
    }

    .trial-topics-hero__buttons {
        width: 100%;
    }
}

/* Student dashboard */
.student-dashboard-page {
    position: relative;
}

.student-dashboard-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    /* height: 26rem; */
    /* background: linear-gradient(
        to bottom,
        rgba(215, 50, 82, 0.22) 0%,
        rgba(244, 250, 255, 0.92) 58%,
        #ffffff 100%
    ); */
    pointer-events: none;
    z-index: 0;
}

.student-dashboard-page > * {
    position: relative;
    z-index: 1;
}

.student-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
    padding-bottom: 2rem;
}

.student-dashboard-hero__copy {
    padding: 1rem 0;
}

.student-dashboard-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgb(215 50 82 / 0.16);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.76);
    color: rgb(159 18 57);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.student-dashboard-hero__title {
    margin-top: 1rem;
    color: rgb(15 23 42);
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.student-dashboard-hero__text {
    margin-top: 1rem;
    max-width: 42rem;
    color: rgb(71 85 105);
    font-size: 1rem;
    line-height: 1.8;
}

.student-dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.student-dashboard-hero__button {
    min-width: 10.5rem;
    border-radius: 999px;
    padding-block: 0.95rem;
    padding-inline: 1.2rem;
}

.student-dashboard-hero__panel {
    display: flex;
    align-items: stretch;
}

.student-dashboard-focus-card {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid rgb(255 255 255 / 0.7);
    border-radius: 1.8rem;
    background: linear-gradient(
        180deg,
        rgb(255 255 255 / 0.96),
        rgb(248 250 252 / 0.92)
    );
    box-shadow: 0 20px 48px rgb(15 23 42 / 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student-dashboard-focus-card__label {
    color: rgb(159 18 57);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-dashboard-focus-card__title {
    margin-top: 1rem;
    color: rgb(15 23 42);
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.student-dashboard-focus-card__meta {
    margin-top: 1rem;
    color: rgb(71 85 105);
    font-size: 0.95rem;
    line-height: 1.7;
}

.student-dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

.student-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.student-dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 1.6rem;
    background: linear-gradient(
        135deg,
        rgb(255 255 255) 0%,
        rgb(248 250 252) 100%
    );
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.08);
}

.student-dashboard-stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1.15rem;
    background: rgb(215 50 82 / 0.1);
    color: var(--primary);
    font-size: 1.25rem;
}

.student-dashboard-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
}

.student-dashboard-stat-card__value {
    color: rgb(15 23 42);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.student-dashboard-stat-card__label {
    color: rgb(71 85 105);
    font-size: 0.95rem;
    font-weight: 600;
}

.student-dashboard-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.student-dashboard-feature {
    padding: 1.5rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 1.8rem;
    background: linear-gradient(
        135deg,
        rgb(255 255 255) 0%,
        rgb(248 250 252) 100%
    );
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.08);
}

.student-dashboard-feature--wide {
    grid-column: 1 / -1;
}

.student-dashboard-feature__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.student-dashboard-feature__eyebrow {
    color: rgb(159 18 57);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-dashboard-feature__title {
    margin-top: 0.55rem;
    color: rgb(15 23 42);
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.student-dashboard-feature__badge {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.82);
    color: rgb(71 85 105);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgb(15 23 42 / 0.06);
}

.student-dashboard-feature__text {
    margin-top: 1rem;
    color: rgb(71 85 105);
    font-size: 0.98rem;
    line-height: 1.8;
    max-width: 40rem;
}

.student-dashboard-feature__footer {
    margin-top: 1.5rem;
}

.student-dashboard-feature__button {
    min-width: 10rem;
    border-radius: 999px;
    padding-block: 0.95rem;
    padding-inline: 1.2rem;
}

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

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

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

@media (max-width: 640px) {
    .student-dashboard-page::before {
        height: 22rem;
    }

    .student-dashboard-hero__actions {
        flex-direction: column;
    }

    .student-dashboard-hero__button,
    .student-dashboard-feature__button {
        width: 100%;
        justify-content: center;
    }

    .student-dashboard-stat-card,
    .student-dashboard-feature,
    .student-dashboard-focus-card {
        padding: 1.1rem;
        border-radius: 1.35rem;
    }

    .student-dashboard-hero {
        padding-bottom: 1.5rem;
    }
}

/* Student progress page */
.student-progress-page {
    position: relative;
}

.student-progress-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 26rem;
    /* background: linear-gradient(
        to bottom,
        rgba(215, 50, 82, 0.18) 0%,
        rgba(244, 250, 255, 0.92) 58%,
        #ffffff 100%
    ); */
    pointer-events: none;
    z-index: 0;
}

.student-progress-page > * {
    position: relative;
    z-index: 1;
}

.student-progress-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr);
    gap: 1.5rem;
    align-items: stretch;
    padding-bottom: 2rem;
}

.student-progress-hero__copy {
    padding: 1rem 0;
}

.student-progress-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgb(215 50 82 / 0.16);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.76);
    color: rgb(159 18 57);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.student-progress-hero__title {
    margin-top: 1rem;
    color: rgb(15 23 42);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.student-progress-hero__text {
    margin-top: 1rem;
    max-width: 42rem;
    color: rgb(71 85 105);
    font-size: 1rem;
    line-height: 1.8;
}

.student-progress-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.student-progress-hero__button {
    min-width: 10.5rem;
    border-radius: 999px;
    padding-block: 0.95rem;
    padding-inline: 1.2rem;
}

.student-progress-hero__panel {
    display: flex;
    align-items: stretch;
}

.student-progress-focus-card {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid rgb(255 255 255 / 0.7);
    border-radius: 1.8rem;
    background: linear-gradient(
        180deg,
        rgb(255 255 255 / 0.96),
        rgb(248 250 252 / 0.92)
    );
    box-shadow: 0 20px 48px rgb(15 23 42 / 0.08);
}

.student-progress-focus-card__label {
    color: rgb(159 18 57);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-progress-focus-card__value {
    margin-top: 0.9rem;
    color: rgb(15 23 42);
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.student-progress-focus-card__meta {
    margin-top: 0.9rem;
    color: rgb(71 85 105);
    font-size: 0.95rem;
    line-height: 1.7;
}

.student-progress-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.student-progress-summary-card {
    padding: 1.4rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 1.7rem;
    background: linear-gradient(
        135deg,
        rgb(255 255 255) 0%,
        rgb(248 250 252) 100%
    );
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.08);
}

.student-progress-summary-card__eyebrow {
    color: rgb(159 18 57);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-progress-summary-card__title {
    margin-top: 0.55rem;
    color: rgb(15 23 42);
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.student-progress-summary-card__metrics {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.student-progress-metric__label {
    display: inline-block;
    color: rgb(100 116 139);
    font-size: 0.82rem;
    font-weight: 600;
}

.student-progress-metric__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.45rem;
}

.student-progress-metric__value {
    min-width: 3.5rem;
    color: rgb(15 23 42);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

.student-progress-table-card {
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 1.8rem;
    background: linear-gradient(
        135deg,
        rgb(255 255 255) 0%,
        rgb(248 250 252) 100%
    );
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.08);
}

.student-progress-table-card__header {
    padding: 1.5rem 1.5rem 1rem;
}

.student-progress-table-card__eyebrow {
    color: rgb(159 18 57);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-progress-table-card__title {
    margin-top: 0.55rem;
    color: rgb(15 23 42);
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.student-progress-table-card__body {
    padding: 0 1.5rem 1.5rem;
}

.student-progress-table {
    border-collapse: separate;
    border-spacing: 0;
}

.student-progress-table thead th {
    padding: 0.95rem 1rem;
    color: rgb(100 116 139);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-progress-table tbody td {
    padding: 1rem;
    border-top: 1px solid rgb(226 232 240);
    vertical-align: middle;
}

.student-progress-table__course {
    color: rgb(15 23 42);
    font-weight: 700;
}

.student-progress-table__metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-progress-table__bar {
    width: 8rem;
    height: 0.45rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e6e6e6;
}

.student-progress-table__value {
    color: rgb(15 23 42);
    font-size: 0.92rem;
    font-weight: 700;
}

.student-progress-table__empty {
    color: rgb(148 163 184);
    font-size: 0.92rem;
}

.student-progress-table__blank {
    padding: 2rem 1rem !important;
    color: rgb(100 116 139);
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .student-progress-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .student-progress-page::before {
        height: 22rem;
    }

    .student-progress-hero__actions {
        flex-direction: column;
    }

    .student-progress-hero__button {
        width: 100%;
        justify-content: center;
    }

    .student-progress-summary-card,
    .student-progress-focus-card,
    .student-progress-table-card__header,
    .student-progress-table-card__body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .student-progress-summary-card,
    .student-progress-focus-card,
    .student-progress-table-card {
        border-radius: 1.35rem;
    }
}

/* Student course detail page */
.student-course-detail-page {
    position: relative;
}

.student-course-detail-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 24rem;
    /* background: linear-gradient(
        to bottom,
        rgba(215, 50, 82, 0.22) 0%,
        rgba(244, 250, 255, 0.92) 58%,
        #ffffff 100%
    ); */
    pointer-events: none;
    z-index: 0;
}

.student-course-detail-page > * {
    position: relative;
    z-index: 1;
}

.student-course-detail-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
}

.student-course-detail-hero__content {
    max-width: 44rem;
}

.student-course-detail-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: rgb(71 85 105);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 160ms ease;
}

.student-course-detail-hero__back:hover {
    color: rgb(15 23 42);
}

.student-course-detail-hero__title {
    margin-top: 1rem;
    color: rgb(15 23 42);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.96;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.student-course-detail-hero__text {
    margin-top: 1rem;
    max-width: 38rem;
    color: rgb(71 85 105);
    font-size: 1rem;
    line-height: 1.8;
}

.student-course-detail-hero__panel {
    display: flex;
    justify-content: flex-end;
}

.student-course-topic-list {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.student-course-topic-card {
    padding: 1.35rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 1.75rem;
    background: linear-gradient(
        135deg,
        rgb(255 255 255) 0%,
        rgb(248 250 252) 100%
    );
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.08);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.student-course-topic-card:hover {
    transform: translateY(-3px);
    border-color: rgb(125 211 252 / 0.9);
    box-shadow: 0 24px 55px rgb(14 165 233 / 0.14);
}

.student-course-topic-card__main {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.student-course-topic-card__media {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.student-course-topic-card__image {
    width: 10rem;
    height: 7rem;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid rgb(226 232 240);
    background: rgb(241 245 249);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.08);
}

.student-course-topic-card__body {
    min-width: 0;
}

.student-course-topic-card__title {
    display: inline-block;
    color: rgb(15 23 42);
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
    transition: color 160ms ease;
}

.student-course-topic-card__title:hover {
    color: rgb(2 132 199);
}

.student-course-topic-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    margin-top: 0.9rem;
}

.student-course-topic-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(71 85 105);
    font-size: 0.92rem;
    font-weight: 600;
}

.student-course-topic-card__meta-item i {
    color: var(--primary);
}

.student-course-topic-card__copy {
    margin-top: 0.85rem;
    max-width: 40rem;
    color: rgb(71 85 105);
    font-size: 0.98rem;
    line-height: 1.75;
}

.student-course-topic-card__actions {
    display: flex;
    justify-content: flex-end;
}

.student-course-topic-card__button {
    min-width: 9rem;
    border-radius: 999px;
    padding-block: 0.95rem;
    padding-inline: 1.15rem;
    box-shadow: 0 12px 24px rgb(37 99 235 / 0.16);
}

@media (max-width: 1024px) {
    .student-course-detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-course-detail-hero__panel {
        width: 100%;
        justify-content: flex-start;
    }

    .student-course-topic-card__main {
        grid-template-columns: 1fr;
    }

    .student-course-topic-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .student-course-detail-page::before {
        height: 20rem;
    }

    .student-course-topic-card {
        padding: 1rem;
        border-radius: 1.35rem;
    }

    .student-course-topic-card__media {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-course-topic-card__image {
        width: 100%;
        height: auto;
        max-height: 13rem;
    }

    .student-course-topic-card__title {
        font-size: 1.2rem;
    }

    .student-course-topic-card__button {
        width: 100%;
        justify-content: center;
    }
}

/* Student portal course page */
.student-courses-page {
    position: relative;
}

.student-courses-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 24rem;
    /* background: linear-gradient(
        to bottom,
        rgba(215, 50, 82, 0.25) 0%,
        /* top darker tint */ rgba(244, 250, 255, 0.9) 60%, */
        /* smooth transition */ #ffffff 100% /* white bottom */
    );

    pointer-events: none;
    z-index: 0;

    pointer-events: none;
    z-index: 0;
}

.student-courses-page > * {
    position: relative;
    z-index: 1;
}

.student-courses-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0 2rem;
}

.student-courses-hero__content {
    max-width: 42rem;
}

.student-courses-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgb(14 165 233 / 0.16);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.72);
    color: rgb(3 105 161);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.student-courses-hero__title {
    margin-top: 1rem;
    color: rgb(15 23 42);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.96;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.student-courses-hero__copy {
    margin-top: 1rem;
    max-width: 36rem;
    color: rgb(71 85 105);
    font-size: 1rem;
    line-height: 1.75;
}

.student-courses-hero__stats {
    display: flex;
    justify-content: flex-end;
    min-width: 13rem;
}

.student-courses-stat {
    min-width: 12rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgb(148 163 184 / 0.18);
    border-radius: 1.4rem;
    background: rgb(255 255 255 / 0.78);
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.08);
    backdrop-filter: blur(16px);
}

.student-courses-stat__value {
    display: block;
    color: rgb(15 23 42);
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.student-courses-stat__label {
    display: block;
    margin-top: 0.5rem;
    color: rgb(71 85 105);
    font-size: 0.95rem;
    font-weight: 600;
}

.student-course-list {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.student-course-card {
    display: grid;
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.35rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 1.75rem;
    background: linear-gradient(
        135deg,
        rgb(255 255 255) 0%,
        rgb(248 250 252) 100%
    );
    box-shadow: 0 18px 45px rgb(15 23 42 / 0.08);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.student-course-card:hover {
    transform: translateY(-3px);
    border-color: rgb(125 211 252 / 0.9);
    box-shadow: 0 24px 55px rgb(14 165 233 / 0.14);
}

.student-course-card__media {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.student-course-card__index {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 4.75rem;
    aspect-ratio: 1;
    border-radius: 1.35rem;
    background: linear-gradient(145deg, rgb(15 23 42), rgb(30 41 59));
    color: rgb(241 245 249);
    text-align: center;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.student-course-card__index-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
}

.student-course-card__index-value {
    margin-top: 0.3rem;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 700;
}

.student-course-card__image {
    width: 10rem;
    height: 7rem;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid rgb(226 232 240);
    background: rgb(241 245 249);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.08);
}

.student-course-card__body {
    min-width: 0;
}

.student-course-card__meta {
    color: rgb(14 116 144);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-course-card__title {
    display: inline-block;
    margin-top: 0.45rem;
    color: #e83355;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
    transition: color 160ms ease;
}

.student-course-card__title:hover {
    color: rgb(2 132 199);
}

.student-course-card__copy {
    margin-top: 0.75rem;
    max-width: 42rem;
    color: rgb(71 85 105);
    font-size: 0.98rem;
    line-height: 1.75;
}

.student-course-card__actions {
    display: flex;
    justify-content: flex-end;
}

.student-course-card__button {
    min-width: 10.5rem;
    border-radius: 999px;
    padding-block: 0.95rem;
    padding-inline: 1.1rem;
    box-shadow: 0 12px 24px rgb(37 99 235 / 0.16);
}

.student-course-card__button span {
    font-weight: 700;
}

@media (max-width: 1024px) {
    .student-courses-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-courses-hero__stats {
        width: 100%;
        justify-content: flex-start;
    }

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

    .student-course-card__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .student-courses-page::before {
        height: 20rem;
    }

    .student-courses-hero {
        padding: 1rem 0 1.5rem;
    }

    .student-course-card {
        padding: 1rem;
        border-radius: 1.35rem;
    }

    .student-course-card__media {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-course-card__image {
        width: 100%;
        height: auto;
        max-height: 13rem;
    }

    .student-course-card__title {
        font-size: 1.2rem;
    }

    .student-course-card__button {
        width: 100%;
        justify-content: center;
    }
}

/* Sidebar facelift */
/* .demo1 .kt-sidebar {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary) 92%, #ffffff 8%) 0%,
        var(--primary) 52%,
        color-mix(in srgb, var(--primary) 84%, #081226 16%) 100%
    );
    border-inline-end: 0;
    box-shadow: 18px 0 48px rgb(15 23 42 / 0.16);
} */

.demo1 .kt-sidebar {
    background-color: #161f32;
}

/* .demo1 .kt-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top left,
            rgb(255 255 255 / 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at bottom right,
            rgb(255 255 255 / 0.1),
            transparent 28%
        );
    pointer-events: none;
} */

.demo1 .kt-sidebar > * {
    position: relative;
    z-index: 1;
}

.demo1 .kt-sidebar .kt-sidebar-header {
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.demo1 .kt-sidebar .kt-menu-heading {
    color: rgb(255 255 255 / 0.62) !important;
    letter-spacing: 0.14em;
}

.demo1 .kt-sidebar .kt-menu-item > .kt-menu-link {
    min-height: 3.25rem;
    border-radius: 1rem;
    padding-inline: 0.9rem;
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.demo1 .kt-sidebar .kt-menu-item > .kt-menu-link .kt-menu-title {
    color: rgb(255 255 255) !important;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.demo1 .kt-sidebar .kt-menu-item > .kt-menu-link .kt-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.9rem;
    background: rgb(255 255 255);
    color: var(--primary) !important;
    box-shadow: 0 10px 22px rgb(15 23 42 / 0.12);
}

.demo1 .kt-sidebar .kt-menu-item > .kt-menu-link .kt-menu-icon i {
    color: var(--primary) !important;
}

.demo1 .kt-sidebar .kt-menu-item > .kt-menu-link:hover {
    background: rgb(255 255 255 / 0.14);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
    transform: translateX(2px);
}

/* Match Metronic demo1: only leaf .active items get the pill; accordion parents with here/show stay plain */
.demo1 .kt-sidebar .kt-menu-item.active:not(.kt-menu-item-accordion) > .kt-menu-link {
    background: rgb(255 255 255 / 0.18);
    box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.1),
        0 12px 24px rgb(15 23 42 / 0.14);
}

.demo1 .kt-sidebar .kt-menu-item.active:not(.kt-menu-item-accordion) > .kt-menu-link .kt-menu-title {
    color: rgb(255 255 255) !important;
    font-weight: 700;
}

.demo1 .kt-sidebar .kt-menu-item.active:not(.kt-menu-item-accordion) > .kt-menu-link .kt-menu-icon {
    background: rgb(255 255 255);
}

.demo1 .kt-sidebar #sidebar_toggle {
    border-color: rgb(255 255 255 / 0.18);
    background: rgb(255 255 255);
    color: var(--primary);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.12);
}

.demo1 .kt-sidebar #sidebar_toggle i {
    color: var(--primary);
}

.demo1 .kt-sidebar .kt-scrollable-y-hover {
    scrollbar-color: rgb(255 255 255 / 0.26) transparent;
}

.demo1 .kt-sidebar .kt-scrollable-y-hover::-webkit-scrollbar-thumb {
    background-color: rgb(255 255 255 / 0.26);
}

.kt-header {
    background: #fcf4f6 !important;
}


.flatpickr-input[readonly]{
    color: #000;
}

/* —— Billing page —— */
.billing-page__header {
    padding-bottom: 1.5rem;
}

.billing-page__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #101566;
    letter-spacing: -0.02em;
}

.billing-page__subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    color: #5b6478;
}

.billing-page__layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 960px;
}

.billing-page__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .billing-page__grid {
        grid-template-columns: 1fr 1.15fr;
        align-items: stretch;
    }
}

.billing-card {
    border: 1px solid rgba(16, 21, 102, 0.1);
    border-radius: 1.15rem;
    box-shadow: 0 10px 28px rgba(16, 21, 102, 0.05);
    overflow: hidden;
}

.billing-card--accent {
    border-color: rgba(232, 51, 85, 0.28);
    background:
        radial-gradient(700px 240px at 100% 0%, rgba(232, 51, 85, 0.08), transparent 55%),
        #fff;
}

.billing-card__body {
    padding: 1.5rem 1.4rem 1.6rem;
}

@media (min-width: 640px) {
    .billing-card__body {
        padding: 1.75rem 1.75rem 1.85rem;
    }
}

.billing-plan-status h2 {
    margin: 0.55rem 0 0.4rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #101566;
    letter-spacing: -0.02em;
}

.billing-plan-status p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5b6478;
}

.billing-plan-status--row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.billing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.billing-badge--muted {
    background: rgba(16, 21, 102, 0.08);
    color: #101566;
}

.billing-badge--accent {
    background: rgba(232, 51, 85, 0.12);
    color: #e83355;
}

.billing-badge--success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.billing-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem 0.85rem;
    margin: 1.25rem 0 1rem;
}

.billing-price__amount {
    font-size: 2.35rem;
    font-weight: 750;
    line-height: 1;
    color: #101566;
    letter-spacing: -0.03em;
}

.billing-price__note {
    font-size: 0.9rem;
    color: #5b6478;
}

.billing-feature-list {
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.billing-feature-list li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.92rem;
    color: #101566;
}

.billing-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #e83355;
}

.billing-feature-list--muted li {
    color: #5b6478;
}

.billing-feature-list--muted li::before {
    background: rgba(16, 21, 102, 0.28);
}

.billing-cta {
    width: 100%;
    min-height: 2.85rem;
    border-radius: 0.8rem !important;
    font-weight: 650;
}

.billing-stats {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .billing-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.billing-stat {
    border: 1px dashed rgba(16, 21, 102, 0.16);
    border-radius: 0.85rem;
    padding: 0.85rem 0.9rem;
    background: rgba(16, 21, 102, 0.02);
}

.billing-stat__label {
    display: block;
    font-size: 0.78rem;
    color: #5b6478;
    margin-bottom: 0.35rem;
}

.billing-stat__value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #101566;
}

.billing-payment__intro {
    margin-bottom: 1.25rem;
}

.billing-payment__intro h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #101566;
}

.billing-payment__intro p {
    margin: 0;
    font-size: 0.92rem;
    color: #5b6478;
}

.billing-success {
    text-align: center;
    padding: 2rem 1.25rem;
}

.billing-success img {
    max-height: 140px;
    margin: 0 auto 1rem;
}

.billing-success h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #101566;
}

.billing-success p {
    margin: 0;
    color: #5b6478;
}

.payment-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding: 0.95rem 1rem;
    border-radius: 0.9rem;
    background: rgba(16, 21, 102, 0.04);
    border: 1px solid rgba(16, 21, 102, 0.08);
}

.payment-summary__label {
    display: block;
    font-size: 0.8rem;
    color: #5b6478;
    margin-bottom: 0.2rem;
}

.payment-summary__amount {
    font-size: 1.55rem;
    color: #101566;
    letter-spacing: -0.02em;
}

.payment-summary__note {
    margin: 0;
    font-size: 0.85rem;
    color: #5b6478;
}

.payment-method-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
}

.payment-method-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(16, 21, 102, 0.14);
    background: #fff;
    color: #101566;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.payment-method-btn.is-active {
    background: #e83355 !important;
    border-color: #e83355 !important;
    color: #fff !important;
}

.payment-fields {
    display: grid;
    gap: 1rem;
}

.payment-radios {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.45rem;
}

.payment-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #101566;
    cursor: pointer;
}

.payment-card-element {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(16, 21, 102, 0.14);
    border-radius: 0.8rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.payment-card-element:focus-within {
    border-color: rgba(232, 51, 85, 0.55);
    box-shadow: 0 0 0 4px rgba(232, 51, 85, 0.12);
}

.payment-paypal-help {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: #5b6478;
    line-height: 1.45;
}

.payment-error {
    color: #b91c1c;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    min-height: 1.1em;
}

.payment-gateways .paypal-option #paypal-button-container {
    max-width: 420px;
}

.payment-gateways .stripe-option .billing-cta {
    margin-top: 1.15rem;
}

/* —— Auth shell (login / signup / password) —— */
.auth-shell {
    --auth-ink: #101566;
    --auth-crimson: #e83355;
    --auth-surface: #ffffff;
    --auth-muted: #5b6478;
    --auth-line: rgba(16, 21, 102, 0.1);
    --auth-soft: #f6f3f7;
    margin: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--auth-soft);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    color: var(--auth-ink);
}

.auth-shell .hidden {
    display: none !important;
}

/* 2FA / auth modals: full-viewport overlay above the split auth shell */
.auth-shell > .kt-modal,
body.auth-shell > .kt-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.auth-shell__grid {
    display: grid;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth-shell__form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 2.5rem;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(232, 51, 85, 0.08), transparent 55%),
        radial-gradient(900px 420px at 90% 110%, rgba(16, 21, 102, 0.08), transparent 50%),
        linear-gradient(180deg, #fbfafc 0%, #f3f0f5 100%);
    order: 1;
}

.auth-shell__form-inner {
    width: 100%;
    max-width: 440px;
    /* Avoid fill-mode:both — a leftover transform traps fixed modals inside this pane */
    animation: authFadeUp 0.55s ease-out;
}

.auth-shell__form-inner--wide {
    max-width: 760px;
}

.auth-shell__mobile-brand {
    display: none;
    margin: 0 auto 1.5rem;
    width: fit-content;
}

.auth-shell__mobile-brand img {
    display: block;
    height: 42px;
    width: auto;
}

.auth-shell__brand-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    order: 2;
    min-height: 220px;
    color: #fff;
    isolation: isolate;
}

.auth-shell__brand-media {
    position: absolute;
    inset: 0;
    background-color: #101566;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    animation: authKenBurns 18s ease-in-out infinite alternate;
}

.auth-shell__brand-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(16, 21, 102, 0.92) 0%, rgba(16, 21, 102, 0.72) 48%, rgba(232, 51, 85, 0.55) 100%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 40%);
}

.auth-shell__brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    flex: 1;
    padding: 2.25rem 2.5rem 2.5rem;
}

.auth-shell__brand-logo img {
    display: block;
    height: 48px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.auth-shell__brand-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    animation: authFadeUp 0.7s ease-out 0.08s both;
}

.auth-shell__brand-title {
    margin: 0;
    max-width: 11ch;
    font-family: Fraunces, Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    animation: authFadeUp 0.75s ease-out 0.16s both;
}

.auth-shell__brand-text {
    margin: 1rem 0 0;
    max-width: 34ch;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
    animation: authFadeUp 0.8s ease-out 0.24s both;
}

.auth-shell__brand-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
    animation: authFadeUp 0.85s ease-out 0.32s both;
}

.auth-shell__brand-points li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
}

.auth-shell__brand-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--auth-crimson);
    box-shadow: 0 0 0 4px rgba(232, 51, 85, 0.2);
}

.auth-panel {
    width: 100%;
    border: 1px solid var(--auth-line);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 18px 40px rgba(16, 21, 102, 0.08);
    backdrop-filter: blur(8px);
}

.auth-panel__body {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    padding: 2rem 1.75rem;
}

@media (min-width: 640px) {
    .auth-panel__body {
        padding: 2.35rem 2.25rem;
    }
}

.auth-panel__header {
    text-align: center;
}

.auth-panel__title {
    margin: 0;
    font-family: Fraunces, Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--auth-ink);
    line-height: 1.15;
}

.auth-panel__subtitle {
    margin: 0.55rem 0 0;
    font-size: 0.95rem;
    color: var(--auth-muted);
}

.auth-panel__subtitle a,
.auth-link {
    color: var(--auth-crimson);
    font-weight: 600;
    text-decoration: none;
}

.auth-panel__subtitle a:hover,
.auth-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-field label,
.auth-field .kt-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-ink);
}

.auth-shell .kt-input,
.auth-shell .kt-select {
    border-color: rgba(16, 21, 102, 0.14) !important;
    background: #fff !important;
    color: var(--auth-ink) !important;
    border-radius: 0.8rem !important;
    min-height: 3rem;
    box-shadow: none !important;
}

.auth-shell .kt-input::placeholder,
.auth-shell .kt-input input::placeholder {
    color: rgba(16, 21, 102, 0.38) !important;
}

.auth-shell .kt-input:focus,
.auth-shell .kt-input:focus-within,
.auth-shell .kt-select:focus {
    border-color: rgba(232, 51, 85, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(232, 51, 85, 0.12) !important;
}

.auth-shell .kt-btn-primary {
    background: var(--auth-crimson) !important;
    border-color: var(--auth-crimson) !important;
    color: #fff !important;
    border-radius: 0.85rem !important;
    font-weight: 650;
    min-height: 3.05rem;
    box-shadow: 0 12px 24px rgba(232, 51, 85, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-shell .kt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(232, 51, 85, 0.28);
    color: #fff !important;
}

.auth-shell .kt-checkbox {
    accent-color: var(--auth-crimson);
}

.auth-footnote {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(16, 21, 102, 0.55);
}

.auth-alert {
    border: 1px solid rgba(232, 51, 85, 0.22);
    background: rgba(232, 51, 85, 0.08);
    color: #8f1833;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
}

.auth-alert--success {
    border-color: rgba(16, 140, 90, 0.25);
    background: rgba(16, 140, 90, 0.1);
    color: #0f5f3f;
}

.auth-choice-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .auth-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-choice {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1.35rem 1.25rem 1.4rem;
    border: 1px solid var(--auth-line);
    border-radius: 1.15rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-choice:hover {
    border-color: rgba(232, 51, 85, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(16, 21, 102, 0.08);
}

.auth-choice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: rgba(232, 51, 85, 0.1);
    color: var(--auth-crimson);
    font-size: 1.25rem;
}

.auth-choice__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-choice__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--auth-muted);
    flex: 1;
}

.auth-choice__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0 1rem;
    border-radius: 0.75rem;
    background: rgba(16, 21, 102, 0.06);
    color: var(--auth-ink);
    font-size: 0.9rem;
    font-weight: 650;
}

.auth-choice:hover .auth-choice__cta {
    background: var(--auth-crimson);
    color: #fff;
}

.auth-section-label {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-crimson);
}

.auth-section-help {
    margin: 0;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.auth-success {
    text-align: center;
    padding: 2rem 1.5rem;
}

.auth-success img {
    max-height: 140px;
    margin: 0 auto 1.25rem;
}

.auth-success h3 {
    margin: 0 0 0.65rem;
    font-family: Fraunces, Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    color: var(--auth-ink);
}

.auth-success p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authKenBurns {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.08) translate3d(-1.5%, -1%, 0);
    }
}

@media (max-width: 1023px) {
    .auth-shell__grid {
        grid-template-columns: 1fr;
    }

    .auth-shell__brand-pane {
        min-height: 240px;
        order: 1;
    }

    .auth-shell__form-pane {
        order: 2;
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .auth-shell__brand-content {
        padding: 1.5rem 1.35rem 1.6rem;
        gap: 1.25rem;
    }

    .auth-shell__brand-title {
        max-width: none;
        font-size: 2rem;
    }

    .auth-shell__brand-text,
    .auth-shell__brand-points {
        display: none;
    }

    .auth-shell__mobile-brand {
        display: none;
    }

    .auth-shell__brand-logo img {
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell__form-inner,
    .auth-shell__brand-eyebrow,
    .auth-shell__brand-title,
    .auth-shell__brand-text,
    .auth-shell__brand-points,
    .auth-shell__brand-media {
        animation: none !important;
    }
}
