/* =========================================================
   KORIBEE TRAINING — SHARED STYLES
   ========================================================= */


/* =========================================================
   TRAINING PAGE
   ========================================================= */

.koribee-training-page {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 25px 15px 40px;
}


/* =========================================================
   TRAINING CONTAINER
   ========================================================= */

.koribee-training-container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    background: #f9f1e4;
    border-radius: 26px;
    padding: 25px 28px 30px;
}


/* =========================================================
   TRAINING HEADER
   ========================================================= */

.koribee-training-title {
    text-align: center;
    margin: 0;
    color: #333;
    font-size: 29px;
    font-weight: 500;
}

.koribee-training-subtitle {
    text-align: center;
    margin: 7px 0 20px;
    color: #777;
    font-size: 15px;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.koribee-training-section-title {
    color: #3f3f42;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 12px;
}

.koribee-training-section-description {
    color: #777;
    font-size: 13px;
    margin: -5px 0 12px;
}


/* =========================================================
   STANDARD CARD
   ========================================================= */

.koribee-training-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
}


/* =========================================================
   REMAINING WORDS
   ========================================================= */

.koribee-remaining-card {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
    margin-bottom: 22px;
}

.koribee-remaining-label {
    color: #666;
    font-size: 14px;
}

.koribee-remaining-number {
    color: #f79400;
    font-size: 18px;
    font-weight: 500;
}


/* =========================================================
   OPTION GRID
   ========================================================= */

.koribee-option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-bottom: 23px;
}

.koribee-option-card {
    min-height: 65px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #3f3f42;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .12s ease;
}

.koribee-option-card:hover {
    transform: translateY(-1px);
    border-color: #f79400;
}

.koribee-option-card.selected {
    background: #f79400;
    border-color: #f79400;
    color: #fff;
    box-shadow: 0 4px 9px rgba(247, 148, 0, .22);
}

.koribee-option-card.disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}


/* =========================================================
   TIMER
   ========================================================= */

.koribee-timer-section {
    background: #fff;
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 23px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
}

.koribee-timer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
}

.koribee-timer-toggle-text {
    display: flex;
    flex-direction: column;
}

.koribee-timer-toggle-text strong {
    color: #3f3f42;
    font-size: 16px;
    font-weight: 600;
}

.koribee-timer-toggle-text small {
    color: #777;
    font-size: 12px;
    margin-top: 2px;
}

.koribee-timer-switch {
    width: 48px;
    height: 27px;
    border-radius: 20px;
    background: #ccc;
    padding: 3px;
    transition: background .2s ease;
    flex: 0 0 auto;
}

.koribee-timer-switch-knob {
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}

.koribee-timer-toggle.active .koribee-timer-switch {
    background: #f79400;
}

.koribee-timer-toggle.active .koribee-timer-switch-knob {
    transform: translateX(21px);
}


/* =========================================================
   GRADE GRID
   ========================================================= */

.koribee-grade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.koribee-grade-card {
    min-height: 55px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 5px;
    cursor: pointer;
    color: #3f3f42;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .12s ease;
}

.koribee-grade-card:hover {
    transform: translateY(-1px);
    border-color: #f79400;
}

.koribee-grade-card.selected {
    background: #f79400;
    border-color: #f79400;
    color: #fff;
    box-shadow: 0 4px 8px rgba(247, 148, 0, .20);
}

.koribee-grade-limit {
    font-size: 12px;
    color: #888;
    margin: 7px 0 18px;
}


/* =========================================================
   ERROR / WARNING
   ========================================================= */

.koribee-training-error {
    display: none;
    background: #fff0f0;
    color: #d9363e;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.koribee-training-warning {
    background: #fff0f0;
    color: #c62828;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 13px;
    margin-bottom: 15px;
}


/* =========================================================
   START / PRIMARY BUTTON
   ========================================================= */

.koribee-primary-button {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 30px;
    background: #f79400;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .14);
    cursor: pointer;
    transition:
        transform .12s ease,
        box-shadow .12s ease,
        background .18s ease;
}

.koribee-primary-button:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, .17);
}

.koribee-primary-button:active {
    transform: scale(.99);
}

.koribee-primary-button:disabled {
    background: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.koribee-secondary-button {
    width: 100%;
    height: 52px;
    border: 1px solid #f79400;
    border-radius: 26px;
    background: #fff;
    color: #f79400;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background .18s ease,
        color .18s ease,
        transform .12s ease;
}

.koribee-secondary-button:hover {
    background: #f9f1e4;
}

.koribee-secondary-button:active {
    transform: scale(.99);
}


/* =========================================================
   PROGRESS
   ========================================================= */

.koribee-progress {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.koribee-progress-fill {
    height: 100%;
    background: #f79400;
    border-radius: 10px;
    transition: width .3s ease;
}


/* =========================================================
   STATUS
   ========================================================= */

.koribee-status-correct {
    color: #238636;
}

.koribee-status-wrong {
    color: #c62828;
}

.koribee-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

.koribee-status-badge.correct {
    background: #e8f5e9;
    color: #238636;
}

.koribee-status-badge.wrong {
    background: #ffebee;
    color: #c62828;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .koribee-training-page {
        padding: 12px 9px 30px;
    }

    .koribee-training-container {
        max-width: 430px;
        border-radius: 22px;
        padding: 20px 16px 23px;
    }

    .koribee-training-title {
        font-size: 26px;
    }

    .koribee-training-subtitle {
        font-size: 14px;
        margin-bottom: 17px;
    }

    .koribee-remaining-card {
        padding: 12px 15px;
        margin-bottom: 19px;
    }

    .koribee-remaining-label {
        font-size: 14px;
    }

    .koribee-remaining-number {
        font-size: 20px;
    }

    .koribee-training-section-title {
        font-size: 18px;
    }

    .koribee-option-card {
        min-height: 67px;
        font-size: 20px;
    }

    .koribee-timer-section {
        margin-bottom: 19px;
    }

    .koribee-grade-grid {
        gap: 8px;
    }

    .koribee-grade-card {
        min-height: 50px;
        font-size: 13px;
    }

    .koribee-primary-button {
        height: 55px;
        font-size: 19px;
    }
}


@media (max-width: 390px) {

    .koribee-training-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .koribee-training-title {
        font-size: 24px;
    }

    .koribee-grade-card {
        font-size: 12px;
    }
}


/* ==================================================================================================================
/* ==================================================================================================================
/* ==================================================================================================================
/* ==================================================================================================================

/* =========================================================
   SCIENCE PRACTICE
========================================================= */

.science-selection-page {
    width: 100%;
    padding: 20px 15px 40px;
    box-sizing: border-box;
}

.science-selection-container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    background: #f9f1e4;
    border-radius: 28px;
    padding: 28px;
    box-sizing: border-box;
}

.science-selection-title {
    margin: 0;
    text-align: center;
    color: #3f3f42;
    font-size: 30px;
    font-weight: 500;
}

.science-selection-subtitle {
    margin: 8px 0 25px;
    text-align: center;
    color: #777;
    font-size: 15px;
}


/* SCIENCE FIELDS */

.science-field {
    width: 100%;
    margin-bottom: 18px;
}

.science-field-label {
    display: block;
    width: 100%;
    margin-bottom: 7px;
    color: #777;
    font-size: 15px;
}

.science-select {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #555;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

.science-select:focus {
    border-color: #f79400;
}

.science-select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}


/* ERROR */

.science-error {
    display: none;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff0f0;
    color: #d9363e;
    font-size: 13px;
}


/* START BUTTON */

.science-start-button {
    width: 100%;
    height: 58px;
    margin-top: 5px;
    border: none;
    border-radius: 30px;
    background: #f79400;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,.14);
    transition:
        transform .12s ease,
        box-shadow .12s ease;
}

.science-start-button:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,.17);
}

.science-start-button:active {
    transform: scale(.99);
}


/* PDF BUTTON */

.science-pdf-button {
    width: 100%;
    height: 48px;
    margin-top: 12px;
    border: 1px solid #ddd;
    border-radius: 24px;
    background: #fff;
    color: #999;
    font-size: 15px;
}

.science-pdf-button:disabled {
    opacity: .7;
    cursor: not-allowed;
}


/* MOBILE */

@media (max-width: 576px) {

    .science-selection-page {
        padding: 12px 9px 30px;
    }

    .science-selection-container {
        max-width: 430px;
        border-radius: 22px;
        padding: 20px 16px 23px;
    }

    .science-selection-title {
        font-size: 26px;
    }

    .science-selection-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .science-select {
        height: 46px;
    }

    .science-start-button {
        height: 55px;
        font-size: 19px;
    }
}


/* =========================================================
   SCIENCE PRACTICE
========================================================= */

.science-practice-page {
    width: 100%;
    padding: 20px 15px 40px;
    box-sizing: border-box;
}

.science-practice-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.science-progress {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 14px;
}

.science-question-card {
    background: #f9f1e4;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.science-question-number {
    font-size: 15px;
    font-weight: 700;
    color: #f39a00;
    margin-bottom: 12px;
}

.science-question-text {
    font-size: 20px;
    line-height: 1.55;
    color: #333;
    font-weight: 600;
}

.science-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.science-choice {
    width: 100%;
    min-height: 60px;
    padding: 12px 16px;
    border: 2px solid #e9e9e9;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.science-choice:hover {
    border-color: #f39a00;
    background: #fffaf2;
}

.science-choice.selected {
    border-color: #f39a00;
    background: #fff3d9;
}

.science-choice-letter {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #555;
}

.science-choice.selected .science-choice-letter {
    background: #f39a00;
    color: #fff;
}

.science-choice-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

#scienceSubmitButton {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 28px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

#scienceSubmitButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#scienceSubmitButton:not(:disabled):hover {
    transform: translateY(-1px);
}

@media (max-width: 600px) {

    .science-practice-page {
        padding: 15px 10px 30px;
    }

    .science-question-card {
        padding: 20px;
        border-radius: 16px;
    }

    .science-question-text {
        font-size: 18px;
    }

    .science-choice {
        min-height: 56px;
        padding: 10px 12px;
    }

    .science-choice-text {
        font-size: 15px;
    }
}

/* =========================================================
   SCIENCE FEEDBACK POPUP
========================================================= */

.science-feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;
}

.science-feedback-popup {
    width: 100%;
    max-width: 480px;

    background: #fff;
    border-radius: 24px;

    padding: 30px 25px;

    text-align: center;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.20);

    animation: scienceFeedbackPopupIn 0.2s ease-out;
}

@keyframes scienceFeedbackPopupIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.science-feedback-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 14px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;
    font-weight: 700;
}

.science-feedback-correct {
    background: #e8f7ed;
    color: #198754;
}

.science-feedback-wrong {
    background: #fdeaea;
    color: #dc3545;
}

.science-feedback-title {
    font-size: 27px;
    font-weight: 700;

    margin-bottom: 20px;
}

.science-feedback-correct-text {
    color: #198754;
}

.science-feedback-wrong-text {
    color: #dc3545;
}

.science-feedback-answer {
    font-size: 15px;
    color: #555;

    background: #f7f7f7;

    border-radius: 12px;

    padding: 11px 14px;

    margin-bottom: 10px;
}

.science-feedback-answer strong {
    color: #333;
}

.science-feedback-explanation {
    margin-top: 18px;

    padding: 15px;

    background: #f9f1e4;

    border-radius: 14px;

    text-align: left;

    font-size: 14px;
    line-height: 1.55;

    color: #444;
}

.science-feedback-explanation-title {
    font-size: 15px;
    font-weight: 700;

    color: #f39a00;

    margin-bottom: 6px;
}

.science-feedback-continue {
    width: 100%;

    min-height: 52px;

    margin-top: 22px;

    border: none;
    border-radius: 28px;

    background: #f39a00;
    color: #fff;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.science-feedback-continue:hover {
    background: #e68d00;
    transform: translateY(-1px);
}

@media (max-width: 600px) {

    .science-feedback-overlay {
        padding: 15px;
    }

    .science-feedback-popup {
        padding: 25px 18px;
        border-radius: 20px;
    }

}

/* =========================================================
   SCIENCE SUMMARY
========================================================= */

.science-summary-page {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 25px 15px 45px;

}

.science-summary-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.science-summary-card {
    background: #f9f1e4;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.science-summary-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.science-summary-subtitle {
    text-align: center;
    color: #999;
    margin-top: 5px;
    margin-bottom: 25px;
}

.science-score-circle {
    width: 125px;
    height: 125px;
    margin: 0 auto 25px;

    border-radius: 50%;

    background: #f9f1e4;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.science-score-number {
    font-size: 30px;
    font-weight: 700;
    color: #f39a00;
}

.science-score-label {
    font-size: 13px;
    color: #888;
}

.science-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.science-summary-stat {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 15px;
    text-align: center;
}

.science-summary-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.science-summary-stat-label {
    margin-top: 3px;
    font-size: 13px;
    color: #888;
}

.science-summary-correct-stat {
    background: #e8f7ed;
}

.science-summary-correct-stat
.science-summary-stat-number {
    color: #198754;
}

.science-summary-wrong-stat {
    background: #fdeaea;
}

.science-summary-wrong-stat
.science-summary-stat-number {
    color: #dc3545;
}

.science-summary-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.science-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.science-summary-question {
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 17px;
}

.science-summary-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.science-summary-question-text {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 12px;
}

.science-summary-answer-row {
    font-size: 14px;
    margin-top: 5px;
    color: #555;
}

.science-summary-answer-label {
    margin-right: 5px;
}

.science-result-correct {
    color: #198754;
}

.science-result-wrong {
    color: #dc3545;
}

.science-summary-explanation {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9f1e4;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}

.science-summary-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 54px;

    margin-top: 25px;

    border-radius: 28px;

    background: #f39a00;
    color: #fff !important;

    text-decoration: none !important;

    font-size: 17px;
    font-weight: 700;

    box-sizing: border-box;
}

.science-summary-button:hover {
    background: #e68d00;
}

@media (max-width: 600px) {

    .science-summary-page {
        background: #f9f1e4;
        padding: 15px 10px 30px;
    }

    .science-summary-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .science-summary-title {
        font-size: 24px;
    }

    .science-summary-stats {
        gap: 8px;
    }

    .science-summary-stat {
        padding: 12px 8px;
    }

    .science-summary-stat-number {
        font-size: 20px;
    }

    .science-summary-question-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.science-question-image {
    width: 100%;
    margin: 18px 0 22px;
    text-align: center;
}

.science-question-image img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 14px;
    object-fit: contain;
}

/* =========================================================
   MATH PRACTICE
========================================================= */

.math-practice-page {
    width: 100%;
    padding: 20px 0 40px;
}

.math-practice-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.math-progress {
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.math-progress .math-difficulty {
    float: right;
    color: #777;
    font-weight: 500;
}

.math-question-card {
    background: #f9f1e4;
    border-radius: 24px;
    padding: 30px;
    box-sizing: border-box;
}

.math-question-number {
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #f39a00;
}

.math-question-text {
    font-size: 23px;
    line-height: 1.55;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.math-question-image {
    width: 100%;
    margin: 20px 0 24px;
    text-align: center;
}

.math-question-image img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 14px;
    object-fit: contain;
}


/* =========================================================
   MATH CHOICES
========================================================= */

.math-choices {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.math-choice {
    width: 100%;
    min-height: 70px;
    padding: 12px 18px;
    border: 2px solid #e1d8ca;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    color: #333;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.math-choice:hover {
    border-color: #f39a00;
    transform: translateY(-1px);
}

.math-choice.selected {
    border-color: #f39a00;
    background: #ffe0b2;
}

.math-choice-letter {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #fff3dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: #555;
}

.math-choice.selected .math-choice-letter {
    background: #f39a00;
    color: #fff;
}

.math-choice-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.4;
}


/* =========================================================
   MATH SUBMIT
========================================================= */

.math-submit-button {
    width: 100%;
    min-height: 54px;
    margin-top: 25px;
    border: none;
    border-radius: 28px;
    background: #f39a00;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.math-submit-button:hover:not(:disabled) {
    background: #e68d00;
    transform: translateY(-1px);
}

.math-submit-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}


/* =========================================================
   MATH FEEDBACK
========================================================= */

.math-feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.math-feedback-popup {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .20);
    animation: mathFeedbackPopupIn .2s ease-out;
}

@keyframes mathFeedbackPopupIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.math-feedback-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
}

.math-feedback-correct {
    background: #e8f7ed;
    color: #198754;
}

.math-feedback-wrong {
    background: #fdeaea;
    color: #dc3545;
}

.math-feedback-title {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 20px;
}

.math-feedback-correct-text {
    color: #198754;
}

.math-feedback-wrong-text {
    color: #dc3545;
}

.math-feedback-answer {
    font-size: 17px;
    color: #333;
    background: #f7f7f7;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
    text-align: left;
}

.math-feedback-answer-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.math-feedback-answer strong {
    font-size: 20px;
    color: #333;
}

.math-feedback-correct-answer {
    background: #e8f7ed;
}

.math-feedback-correct-answer strong {
    color: #198754;
}


/* =========================================================
   EXPLANATION
========================================================= */

.math-feedback-explanation {
    margin-top: 18px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    text-align: left;
    font-size: 15px;
    line-height: 1.55;
    color: #444;
}

.math-feedback-explanation-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}


/* =========================================================
   SOLUTION STEPS
========================================================= */

.math-feedback-solution {
    margin-top: 15px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 14px;
    text-align: left;
}

.math-feedback-solution-title {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #444;
}

.math-solution-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.math-solution-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.math-solution-step-number {
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50%;
    background: #f39a00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.math-solution-step-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}


/* =========================================================
   CONTINUE
========================================================= */

.math-feedback-continue {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    border: none;
    border-radius: 28px;
    background: #f39a00;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .2s ease;
}

.math-feedback-continue:hover {
    background: #e68d00;
    transform: translateY(-1px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .math-practice-page {
        padding: 10px 0 30px;
    }

    .math-question-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .math-question-text {
        font-size: 20px;
    }

    .math-choice {
        min-height: 66px;
        padding: 10px 14px;
        border-radius: 16px;
    }

    .math-choice-letter {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .math-choice-text {
        font-size: 17px;
    }

    .math-feedback-overlay {
        padding: 15px;
    }

    .math-feedback-popup {
        padding: 25px 18px;
        border-radius: 20px;
    }

}

/* =========================================================
   MATH SUMMARY
   ========================================================= */

.math-summary-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fffaf2;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}


/* Header */

.math-summary-header {
    text-align: center;
    margin-bottom: 28px;
}

.math-summary-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e8f7ed;
    color: #2e9d5b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.math-summary-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.math-summary-header p {
    margin: 8px 0 0;
    color: #777;
    font-size: 16px;
}


/* Statistics */

.math-summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.math-summary-stat {
    padding: 20px;
    border-radius: 18px;
    text-align: center;
}

.math-summary-stat.correct {
    background: #edf9f1;
}

.math-summary-stat.wrong {
    background: #fff0ef;
}

.math-summary-stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.math-summary-stat.correct .math-summary-stat-number {
    color: #2e9d5b;
}

.math-summary-stat.wrong .math-summary-stat-number {
    color: #d9534f;
}

.math-summary-stat-label {
    font-size: 14px;
    color: #777;
}


/* Score */

.math-summary-score {
    text-align: center;
    background: #f5f1e8;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 32px;
}

.math-summary-score-label {
    font-size: 14px;
    color: #777;
    margin-bottom: 4px;
}

.math-summary-score-value {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}


/* Review */

.math-summary-review h3 {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 700;
    color: #333;
}


/* Question */

.math-summary-question {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    border: 2px solid #eee;
}

.math-summary-question.is-correct {
    border-color: #d9f0df;
}

.math-summary-question.is-wrong {
    border-color: #f4d6d4;
}


/* Question header */

.math-summary-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.math-summary-question-number {
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

.math-summary-result {
    font-size: 13px;
    font-weight: 700;
}

.math-summary-result-correct {
    color: #2e9d5b;
}

.math-summary-result-wrong {
    color: #d9534f;
}


/* Question text */

.math-summary-question-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 18px;
}


/* Answers */

.math-summary-answer-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
    font-size: 14px;
}

.math-summary-answer-label {
    color: #777;
    flex-shrink: 0;
}

.math-summary-answer-value {
    color: #333;
    font-weight: 600;
    word-break: break-word;
}

.math-summary-answer-row.correct-answer {
    background: #edf9f1;
    border-radius: 10px;
    padding: 9px 12px;
}

.math-summary-answer-row.correct-answer .math-summary-answer-label,
.math-summary-answer-row.correct-answer .math-summary-answer-value {
    color: #2e7d4b;
}


/* Explanation */

.math-summary-explanation {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f8f6f1;
    border-radius: 12px;
}

.math-summary-explanation-title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
}

.math-summary-explanation-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}


/* Empty */

.math-summary-empty {
    text-align: center;
    padding: 30px;
    color: #888;
    background: #fff;
    border-radius: 16px;
}


/* Footer */

.math-summary-footer {
    text-align: center;
    margin-top: 28px;
}

.math-summary-done-btn {
    display: inline-block;
    min-width: 180px;
    padding: 13px 28px;
    border-radius: 12px;
    background: #333;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.math-summary-done-btn:hover {
    opacity: 0.85;
}


/* Mobile */

@media (max-width: 576px) {

    .math-summary-card {
        padding: 20px 15px;
        border-radius: 18px;
    }

    .math-summary-header h2 {
        font-size: 24px;
    }

    .math-summary-header p {
        font-size: 14px;
    }

    .math-summary-stats {
        gap: 10px;
    }

    .math-summary-stat {
        padding: 16px 10px;
    }

    .math-summary-stat-number {
        font-size: 28px;
    }

    .math-summary-question {
        padding: 16px;
        border-radius: 15px;
    }

    .math-summary-question-header {
        align-items: flex-start;
    }

    .math-summary-question-text {
        font-size: 15px;
    }

    .math-summary-answer-row {
        display: block;
    }

    .math-summary-answer-label {
        display: block;
        margin-bottom: 2px;
    }

    .math-summary-score-value {
        font-size: 32px;
    }

    .math-summary-done-btn {
        width: 100%;
    }
}

/* =========================================================
   MATH SOLUTION STEPS
   ========================================================= */

.math-feedback-solution,
.math-summary-solution {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f9f1e4;
    border-radius: 12px;
}

.math-feedback-solution-title,
.math-summary-solution-title {
    margin-bottom: 8px;
    color: #f39a00;
    font-size: 14px;
    font-weight: 700;
}

.math-feedback-solution-step,
.math-summary-solution-step {
    margin-top: 6px;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   SPELLING BEE PROGRESS
========================================================= */

.spelling-progress-page {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 25px 15px 45px;
    box-sizing: border-box;
}

.spelling-progress-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.spelling-progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.spelling-progress-title {
    margin: 0;
    font-size: 29px;
    font-weight: 700;
    color: #333;
}

.spelling-progress-subtitle {
    margin: 7px 0 0;
    color: #888;
    font-size: 15px;
}


/* =========================================================
   OVERVIEW
========================================================= */

.spelling-progress-overview {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.spelling-progress-stat {
    background: #fffaf2;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    text-align: center;
}

.spelling-progress-stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #fff0dc;
    color: #f28c00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.spelling-progress-stat-number {
    font-size: 27px;
    line-height: 1.1;
    font-weight: 700;
    color: #333;
}

.spelling-progress-stat-label {
    margin-top: 5px;
    font-size: 13px;
    color: #888;
}

.spelling-progress-stat.large {
    padding: 20px;
}

.spelling-progress-stat.large .spelling-progress-stat-icon {
    width: 50px;
    height: 50px;
    font-size: 23px;
}

.spelling-progress-stat.large .spelling-progress-stat-number {
    font-size: 34px;
}


/* =========================================================
   STREAK
========================================================= */

.spelling-progress-streak {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #fffaf2;
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    margin-bottom: 30px;
}

.spelling-progress-streak-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.spelling-progress-streak-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #fff0dc;
    color: #f28c00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.spelling-progress-streak-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.spelling-progress-streak-text {
    margin-top: 3px;
    font-size: 13px;
    color: #888;
}

.spelling-progress-streak-number {
    font-size: 28px;
    font-weight: 700;
    color: #f28c00;
    white-space: nowrap;
}


/* =========================================================
   SECTION
========================================================= */

.spelling-progress-section {
    margin-bottom: 30px;
}

.spelling-progress-section-title {
    margin: 0 0 13px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}


/* =========================================================
   CARD
========================================================= */

.spelling-progress-card {
    background: #fffaf2;
    border-radius: 18px;
    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}


/* =========================================================
   RECENT SESSIONS
========================================================= */

.spelling-progress-session {
    padding: 17px 18px;
    border-bottom: 1px solid #eee8df;
}

.spelling-progress-session:last-child {
    border-bottom: none;
}

.spelling-progress-session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.spelling-progress-session-date {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.spelling-progress-session-accuracy {
    font-size: 14px;
    font-weight: 700;
    color: #f28c00;
}

.spelling-progress-session-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spelling-progress-session-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 14px;
    background: #f7f7f7;
    color: #666;
    font-size: 12px;
    font-weight: 600;
}

.spelling-progress-session-badge.correct {
    background: #e8f7ed;
    color: #198754;
}

.spelling-progress-session-badge.wrong {
    background: #fdeaea;
    color: #dc3545;
}

.spelling-progress-session-grades {
    margin-top: 9px;
    font-size: 13px;
    color: #888;
}


/* =========================================================
   NEEDS MORE PRACTICE
========================================================= */

.spelling-progress-weak-list {
    display: flex;
    flex-direction: column;
}

.spelling-progress-weak-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    border-bottom: 1px solid #eee8df;
}

.spelling-progress-weak-item:last-child {
    border-bottom: none;
}

.spelling-progress-weak-word {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.spelling-progress-weak-count {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 14px;
    background: #fdeaea;
    color: #dc3545;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   GRADE PROGRESS
========================================================= */

.spelling-progress-grade {
    padding: 17px 18px;
    border-bottom: 1px solid #eee8df;
}

.spelling-progress-grade:last-child {
    border-bottom: none;
}

.spelling-progress-grade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.spelling-progress-grade-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.spelling-progress-grade-accuracy {
    font-size: 14px;
    font-weight: 700;
    color: #f28c00;
}

.spelling-progress-grade-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.spelling-progress-grade-fill {
    height: 100%;
    background: #f79400;
    border-radius: 10px;
    transition: width .3s ease;
}

.spelling-progress-grade-details {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.spelling-progress-empty {
    padding: 25px 18px;
    text-align: center;
    color: #888;
    font-size: 14px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .spelling-progress-overview {
        grid-template-columns: 1fr 1fr;
    }

    .spelling-progress-stat.large {
        grid-column: span 2;
    }

}

@media (max-width: 576px) {

    .spelling-progress-page {
        padding: 15px 10px 30px;
    }

    .spelling-progress-title {
        font-size: 25px;
    }

    .spelling-progress-subtitle {
        font-size: 14px;
    }

    .spelling-progress-overview {
        gap: 9px;
    }

    .spelling-progress-stat {
        padding: 15px 10px;
        border-radius: 15px;
    }

    .spelling-progress-stat.large {
        padding: 17px 12px;
    }

    .spelling-progress-stat-number {
        font-size: 24px;
    }

    .spelling-progress-stat.large .spelling-progress-stat-number {
        font-size: 30px;
    }

    .spelling-progress-stat-label {
        font-size: 12px;
    }

    .spelling-progress-streak {
        padding: 15px;
        border-radius: 15px;
    }

    .spelling-progress-streak-number {
        font-size: 24px;
    }

    .spelling-progress-session-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .spelling-progress-section-title {
        font-size: 19px;
    }

}

/* =========================================================
   MATH PROGRESS
========================================================= */

.math-progress-page {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 25px 15px 45px;
    box-sizing: border-box;
}

.math-progress-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.math-progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.math-progress-title {
    margin: 0;
    font-size: 29px;
    font-weight: 700;
    color: #333;
}

.math-progress-subtitle {
    margin: 7px 0 0;
    color: #888;
    font-size: 15px;
}


/* =========================================================
   OVERVIEW
========================================================= */

.math-progress-overview {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.math-progress-stat {
    background: #fffaf2;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    text-align: center;
}

.math-progress-stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #fff0dc;
    color: #f28c00;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.math-progress-stat-number {
    font-size: 27px;
    line-height: 1.1;
    font-weight: 700;
    color: #333;
}

.math-progress-stat-label {
    margin-top: 5px;
    font-size: 13px;
    color: #888;
}

.math-progress-stat.large {
    padding: 20px;
}

.math-progress-stat.large .math-progress-stat-icon {
    width: 50px;
    height: 50px;
    font-size: 23px;
}

.math-progress-stat.large .math-progress-stat-number {
    font-size: 34px;
}


/* =========================================================
   STREAK
========================================================= */

.math-progress-streak {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    background: #fffaf2;
    border-radius: 18px;
    padding: 18px 20px;

    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);

    margin-bottom: 30px;
}

.math-progress-streak-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.math-progress-streak-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;

    border-radius: 50%;
    background: #fff0dc;
    color: #f28c00;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.math-progress-streak-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.math-progress-streak-text {
    margin-top: 3px;
    font-size: 13px;
    color: #888;
}

.math-progress-streak-number {
    font-size: 28px;
    font-weight: 700;
    color: #f28c00;
    white-space: nowrap;
}


/* =========================================================
   SECTION
========================================================= */

.math-progress-section {
    margin-bottom: 30px;
}

.math-progress-section-title {
    margin: 0 0 13px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}


/* =========================================================
   CARD
========================================================= */

.math-progress-card {
    background: #fffaf2;
    border-radius: 18px;
    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    overflow: hidden;
}


/* =========================================================
   RECENT SESSIONS
========================================================= */

.math-progress-session {
    padding: 17px 18px;
    border-bottom: 1px solid #eee8df;
}

.math-progress-session:last-child {
    border-bottom: none;
}

.math-progress-session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.math-progress-session-date {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.math-progress-session-accuracy {
    font-size: 14px;
    font-weight: 700;
    color: #f28c00;
}

.math-progress-session-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.math-progress-session-badge {
    display: inline-flex;
    align-items: center;

    min-height: 27px;
    padding: 4px 10px;

    border-radius: 14px;

    background: #f7f7f7;
    color: #666;

    font-size: 12px;
    font-weight: 600;
}

.math-progress-session-badge.correct {
    background: #e8f7ed;
    color: #198754;
}

.math-progress-session-badge.wrong {
    background: #fdeaea;
    color: #dc3545;
}

.math-progress-session-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 9px;

    font-size: 13px;
    color: #888;
}

.math-progress-session-path i {
    color: #f28c00;
}


/* =========================================================
   TOPIC / GRADE PROGRESS
========================================================= */

.math-progress-topic,
.math-progress-grade {
    padding: 17px 18px;
    border-bottom: 1px solid #eee8df;
}

.math-progress-topic:last-child,
.math-progress-grade:last-child {
    border-bottom: none;
}

.math-progress-topic-header,
.math-progress-grade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.math-progress-topic-name,
.math-progress-grade-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.math-progress-topic-accuracy,
.math-progress-grade-accuracy {
    font-size: 14px;
    font-weight: 700;
    color: #f28c00;
}

.math-progress-bar {
    width: 100%;
    height: 8px;

    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.math-progress-bar-fill {
    height: 100%;

    background: #f79400;
    border-radius: 10px;

    transition: width .3s ease;
}

.math-progress-topic-details,
.math-progress-grade-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 8px;

    font-size: 12px;
    color: #888;
}


/* =========================================================
   EMPTY
========================================================= */

.math-progress-empty {
    padding: 25px 18px;

    text-align: center;

    color: #888;
    font-size: 14px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .math-progress-overview {
        grid-template-columns: 1fr 1fr;
    }

    .math-progress-stat.large {
        grid-column: span 2;
    }

}


@media (max-width: 576px) {

    .math-progress-page {
        padding: 15px 10px 30px;
    }

    .math-progress-title {
        font-size: 25px;
    }

    .math-progress-subtitle {
        font-size: 14px;
    }

    .math-progress-overview {
        gap: 9px;
    }

    .math-progress-stat {
        padding: 15px 10px;
        border-radius: 15px;
    }

    .math-progress-stat.large {
        padding: 17px 12px;
    }

    .math-progress-stat-number {
        font-size: 24px;
    }

    .math-progress-stat.large .math-progress-stat-number {
        font-size: 30px;
    }

    .math-progress-stat-label {
        font-size: 12px;
    }

    .math-progress-streak {
        padding: 15px;
        border-radius: 15px;
    }

    .math-progress-streak-number {
        font-size: 24px;
    }

    .math-progress-session-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .math-progress-section-title {
        font-size: 19px;
    }

}

/* =========================================================
   SCIENCE PROGRESS
========================================================= */

.science-progress-page {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 25px 15px 45px;
    box-sizing: border-box;
}

.science-progress-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.science-progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.science-progress-title {
    margin: 0;
    font-size: 29px;
    font-weight: 700;
    color: #333;
}

.science-progress-subtitle {
    margin: 7px 0 0;
    color: #888;
    font-size: 15px;
}


/* =========================================================
   OVERVIEW
========================================================= */

.science-progress-overview {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.science-progress-stat {
    background: #fffaf2;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    text-align: center;
}

.science-progress-stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #fff0dc;
    color: #f28c00;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.science-progress-stat-number {
    font-size: 27px;
    line-height: 1.1;
    font-weight: 700;
    color: #333;
}

.science-progress-stat-label {
    margin-top: 5px;
    font-size: 13px;
    color: #888;
}

.science-progress-stat.large {
    padding: 20px;
}

.science-progress-stat.large .science-progress-stat-icon {
    width: 50px;
    height: 50px;
    font-size: 23px;
}

.science-progress-stat.large .science-progress-stat-number {
    font-size: 34px;
}


/* =========================================================
   STREAK
========================================================= */

.science-progress-streak {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    background: #fffaf2;
    border-radius: 18px;
    padding: 18px 20px;

    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);

    margin-bottom: 30px;
}

.science-progress-streak-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.science-progress-streak-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;

    border-radius: 50%;
    background: #fff0dc;
    color: #f28c00;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.science-progress-streak-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.science-progress-streak-text {
    margin-top: 3px;
    font-size: 13px;
    color: #888;
}

.science-progress-streak-number {
    font-size: 28px;
    font-weight: 700;
    color: #f28c00;
    white-space: nowrap;
}


/* =========================================================
   SECTION
========================================================= */

.science-progress-section {
    margin-bottom: 30px;
}

.science-progress-section-title {
    margin: 0 0 13px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}


/* =========================================================
   CARD
========================================================= */

.science-progress-card {
    background: #fffaf2;
    border-radius: 18px;
    border: 1px solid #eee3d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    overflow: hidden;
}


/* =========================================================
   RECENT SESSIONS
========================================================= */

.science-progress-session {
    padding: 17px 18px;
    border-bottom: 1px solid #eee8df;
}

.science-progress-session:last-child {
    border-bottom: none;
}

.science-progress-session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.science-progress-session-date {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.science-progress-session-accuracy {
    font-size: 14px;
    font-weight: 700;
    color: #f28c00;
}

.science-progress-session-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.science-progress-session-badge {
    display: inline-flex;
    align-items: center;

    min-height: 27px;
    padding: 4px 10px;

    border-radius: 14px;

    background: #f7f7f7;
    color: #666;

    font-size: 12px;
    font-weight: 600;
}

.science-progress-session-badge.correct {
    background: #e8f7ed;
    color: #198754;
}

.science-progress-session-badge.wrong {
    background: #fdeaea;
    color: #dc3545;
}

.science-progress-session-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 9px;

    font-size: 13px;
    color: #888;
}

.science-progress-session-path i {
    color: #f28c00;
}


/* =========================================================
   TOPIC / GRADE
========================================================= */

.science-progress-topic,
.science-progress-grade {
    padding: 17px 18px;
    border-bottom: 1px solid #eee8df;
}

.science-progress-topic:last-child,
.science-progress-grade:last-child {
    border-bottom: none;
}

.science-progress-topic-header,
.science-progress-grade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.science-progress-topic-name,
.science-progress-grade-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.science-progress-topic-accuracy,
.science-progress-grade-accuracy {
    font-size: 14px;
    font-weight: 700;
    color: #f28c00;
}

.science-progress-bar {
    width: 100%;
    height: 8px;

    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.science-progress-bar-fill {
    height: 100%;

    background: #f79400;
    border-radius: 10px;

    transition: width .3s ease;
}

.science-progress-topic-details,
.science-progress-grade-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 8px;

    font-size: 12px;
    color: #888;
}


/* =========================================================
   EMPTY
========================================================= */

.science-progress-empty {
    padding: 25px 18px;

    text-align: center;

    color: #888;
    font-size: 14px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .science-progress-overview {
        grid-template-columns: 1fr 1fr;
    }

    .science-progress-stat.large {
        grid-column: span 2;
    }

}


@media (max-width: 576px) {

    .science-progress-page {
        padding: 15px 10px 30px;
    }

    .science-progress-title {
        font-size: 25px;
    }

    .science-progress-subtitle {
        font-size: 14px;
    }

    .science-progress-overview {
        gap: 9px;
    }

    .science-progress-stat {
        padding: 15px 10px;
        border-radius: 15px;
    }

    .science-progress-stat.large {
        padding: 17px 12px;
    }

    .science-progress-stat-number {
        font-size: 24px;
    }

    .science-progress-stat.large .science-progress-stat-number {
        font-size: 30px;
    }

    .science-progress-stat-label {
        font-size: 12px;
    }

    .science-progress-streak {
        padding: 15px;
        border-radius: 15px;
    }

    .science-progress-streak-number {
        font-size: 24px;
    }

    .science-progress-session-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .science-progress-section-title {
        font-size: 19px;
    }

}