* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f6f8ff;
    color: #172033;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e4e8f3;
    padding: 16px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: #315efb;
    color: #ffffff;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
}

.brand p {
    margin: 2px 0 0;
    color: #667085;
    font-size: 13px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #344054;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.nav-links .login-link {
    background: #315efb;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
}

.logout-form {
    margin: 0;
}

.logout-form button {
    border: none;
    background: #101828;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.message-wrapper {
    padding: 18px 7% 0;
}

.message {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.hero-section {
    padding: 70px 7%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.small-badge {
    display: inline-block;
    background: #eaf0ff;
    color: #315efb;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero-text h2 {
    font-size: 54px;
    line-height: 1.05;
    margin: 0 0 20px;
    color: #101828;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #475467;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 14px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
}

.primary-btn {
    background: #315efb;
    color: #ffffff;
}

.secondary-btn {
    background: #ffffff;
    color: #315efb;
    border: 1px solid #d6defd;
}

.hero-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(49, 94, 251, 0.12);
    border: 1px solid #e5e9f7;
}

.hero-card h3 {
    margin-top: 0;
    font-size: 24px;
}

.challenge-topic {
    background: #fff7df;
    color: #946200;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.sample-question {
    margin-top: 22px;
    background: #f6f8ff;
    padding: 20px;
    border-radius: 20px;
}

.sample-question p {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
}

.answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.answers button {
    border: none;
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.subjects-section,
.access-section {
    padding: 50px 7%;
}

.subjects-section h2,
.access-section h2 {
    font-size: 34px;
    margin-bottom: 24px;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.subject-grid-five {
    grid-template-columns: repeat(5, 1fr);
}

.subject-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #e5e9f7;
}

.card-icon {
    font-size: 34px;
}

.subject-card h3 {
    margin-bottom: 10px;
}

.subject-card p {
    color: #667085;
    line-height: 1.6;
}

.access-section {
    background: #101828;
    color: #ffffff;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: center;
}

.access-section p {
    color: #d0d5dd;
    line-height: 1.7;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.access-grid div {
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 18px;
}

.access-grid strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.access-grid span {
    color: #d0d5dd;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e4e8f3;
    padding: 20px 7%;
    text-align: center;
    color: #667085;
}

/* Authentication pages */

.auth-page {
    min-height: calc(100vh - 160px);
    padding: 60px 7%;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(760px, 100%);
    background: #ffffff;
    padding: 34px;
    border-radius: 28px;
    border: 1px solid #e5e9f7;
    box-shadow: 0 20px 60px rgba(49, 94, 251, 0.10);
}

.auth-card-small {
    width: min(520px, 100%);
}

.auth-card h2 {
    margin: 12px 0 8px;
    font-size: 36px;
    color: #101828;
}

.auth-intro {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 24px;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    font-weight: 800;
    color: #344054;
}

.form-group input,
.form-group select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #315efb;
    box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.12);
}

.errorlist {
    margin: 4px 0 0;
    padding-left: 18px;
    color: #b42318;
    font-size: 14px;
}

.form-errors {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
    padding: 12px 16px;
    border-radius: 14px;
}

.full-btn {
    width: 100%;
    border: none;
    background: #315efb;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
    color: #667085;
}

.auth-switch a {
    color: #315efb;
    font-weight: 900;
    text-decoration: none;
}

/* Learner dashboard */

.dashboard-page {
    padding: 50px 7%;
}

.dashboard-welcome {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 28px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    box-shadow: 0 20px 60px rgba(49, 94, 251, 0.08);
}

.dashboard-welcome h2 {
    margin: 12px 0 8px;
    font-size: 38px;
    color: #101828;
}

.dashboard-welcome p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.dashboard-cards {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.import-live-stats{

display:flex;
gap:15px;
margin:15px 0 20px;

}

.stat-card{

flex:1;
background:#f6f8ff;
border:1px solid #dfe6ff;
border-radius:12px;
padding:15px;
text-align:center;

}

.stat-card span{

display:block;
font-size:28px;
font-weight:700;
color:#3455ff;

}

.stat-card small{

font-size:13px;
color:#666;

}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 22px;
    padding: 22px;
}

.stat-card span {
    display: block;
    color: #667085;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;
    font-size: 34px;
    color: #101828;
}

.stat-card p {
    color: #667085;
    line-height: 1.5;
}

.dashboard-section {
    margin-top: 36px;
}

.dashboard-section h3 {
    font-size: 28px;
    color: #101828;
}

.mini-link {
    display: inline-block;
    color: #315efb;
    font-weight: 900;
    text-decoration: none;
    margin-top: 8px;
}

/* Step 1C Quiz Engine */

.button-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

.topic-count {
    font-weight: 800;
    color: #315efb !important;
}

.muted-link {
    color: #98a2b3 !important;
}

.empty-box {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 24px;
    padding: 30px;
    color: #667085;
}

.empty-note {
    color: #667085;
    line-height: 1.7;
}

.attempt-list {
    display: grid;
    gap: 12px;
}

.attempt-row {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.attempt-row span {
    display: block;
    color: #667085;
    margin-top: 4px;
}

.quiz-page {
    padding: 50px 7%;
}

.quiz-header {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 28px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    box-shadow: 0 20px 60px rgba(49, 94, 251, 0.08);
}

.quiz-header h2 {
    margin: 12px 0 8px;
    font-size: 38px;
}

.quiz-header p {
    color: #667085;
}

.quiz-form {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

.question-card {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 24px;
    padding: 24px;
}

.question-card h3 {
    margin-top: 0;
    color: #315efb;
}

.question-text {
    font-size: 20px;
    font-weight: 800;
    color: #101828;
    line-height: 1.5;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f6f8ff;
    border: 1px solid #e5e9f7;
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 700;
}

.answer-option input {
    width: 18px;
    height: 18px;
}

.quiz-submit {
    margin-top: 10px;
}

.result-card {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 28px;
    padding: 34px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(49, 94, 251, 0.08);
}

.result-card h2 {
    font-size: 34px;
}

.result-score {
    font-size: 70px;
    font-weight: 900;
    color: #315efb;
    margin: 18px 0;
}

.center-buttons {
    justify-content: center;
}

.correction-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 14px;
    border: 1px solid #e5e9f7;
}

.correct-card {
    border-color: #abefc6;
    background: #f6fef9;
}

.wrong-card {
    border-color: #fecdca;
    background: #fffbfa;
}

.explanation {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    color: #475467;
    line-height: 1.7;
}

/* Responsive design */

@media (max-width: 1100px) {
    .subject-grid-five {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-section,
    .access-section {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 40px;
    }

    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .quiz-header,
    .attempt-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .subject-grid-five {
        grid-template-columns: 1fr;
    }

    .result-score {
        font-size: 52px;
    }
}

@media (max-width: 600px) {
    .subject-grid,
    .access-grid,
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 34px;
    }

    .auth-card h2,
    .dashboard-welcome h2 {
        font-size: 30px;
    }
}

/* Clickable topic cards */

.topic-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.topic-card-clickable {
    height: 100%;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.topic-card-clickable:hover {
    transform: translateY(-4px);
    border-color: #315efb;
    box-shadow: 0 18px 45px rgba(49, 94, 251, 0.14);
}

.start-topic-btn {
    display: inline-block;
    margin-top: 14px;
    background: #315efb;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
}
/* Step 1D Polish */

.result-emoji {
    font-size: 48px;
    margin-bottom: 8px;
}

.result-message-text {
    color: #667085;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 18px;
}

.excellent-result {
    background: linear-gradient(180deg, #ffffff 0%, #f6fef9 100%);
}

.great-result {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.good-result {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.practice-result {
    background: linear-gradient(180deg, #ffffff 0%, #fffbfa 100%);
}

.correction-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.correction-status {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.correct-status {
    background: #dcfae6;
    color: #067647;
}

.wrong-status {
    background: #fee4e2;
    color: #b42318;
}
/* Step 1E Demo Quiz */

.demo-note {
    background: #fff7df;
    border: 1px solid #fedf89;
    color: #946200;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 800;
}
/* Step 1F Early Years */

.early-years-page .dashboard-section h3 {
    font-size: 30px;
}

.early-years-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.early-years-card {
    background: linear-gradient(180deg, #ffffff 0%, #fefcff 100%);
}

.early-topic-card {
    min-height: 250px;
}

.early-topic-card .card-icon,
.early-years-card .card-icon {
    font-size: 42px;
}

.early-topic-card h3,
.early-years-card h3 {
    font-size: 26px;
}
/* Step 1G Parent Dashboard */

.parent-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f6fef9 100%);
}

.parent-child-card {
    min-height: 280px;
}

.mini-stats {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    color: #667085;
}

.mini-stats span {
    display: block;
    background: #f6f8ff;
    padding: 10px 12px;
    border-radius: 12px;
}
/* Step 1H Teacher / Class Code */

.teacher-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.teacher-class-card {
    min-height: 300px;
}

.class-code-box {
    display: inline-block;
    background: #101828;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 10px 0;
}

.large-code {
    font-size: 18px;
}

.teacher-progress-row {
    align-items: center;
}

.teacher-progress-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #667085;
}

.teacher-progress-stats span {
    background: #f6f8ff;
    padding: 8px 12px;
    border-radius: 12px;
}
/* Step 1I Assignments */

.assignment-row {
    align-items: center;
}

.status-completed {
    color: #067647;
}

.status-pending {
    color: #b42318;
}

.assignment-row .mini-link {
    margin-top: 0;
}

.assignment-row span {
    line-height: 1.5;
}
/* Step 1J Computing */

.computing-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.computing-topic-card {
    min-height: 250px;
}

.computing-page .card-icon {
    font-size: 42px;
}
/* Step 1K Coding */

.coding-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #fffaff 100%);
}

.coding-topic-card {
    min-height: 250px;
}

.coding-page .card-icon {
    font-size: 42px;
}
/* Step 1L BECE Practice */

.bece-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.bece-topic-card {
    min-height: 250px;
}

.bece-page .card-icon {
    font-size: 42px;
}
/* Step 1M Progress Analytics */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 18px;
}

.analytics-card {
    background: #ffffff;
    border: 1px solid #e7ecf5;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.analytics-card strong {
    display: block;
    color: #101828;
    font-size: 18px;
}

.analytics-card span {
    display: block;
    color: #667085;
    margin-top: 4px;
}

.analytics-score {
    font-size: 28px;
    font-weight: 900;
    color: #175cd3;
    margin: 14px 0 10px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #eef2f6;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #175cd3, #12b76a);
    border-radius: 999px;
}

.weak-topic-row {
    border-left: 5px solid #f04438;
}

.mini-weak-list {
    display: grid;
    gap: 6px;
    color: #667085;
    min-width: 220px;
}

.mini-weak-list strong {
    color: #b42318;
}

.mini-weak-list span {
    background: #fff1f3;
    color: #b42318;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .analytics-grid {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }
}

@media (max-width: 650px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}
.progress-note {
    display: inline-block;
    margin-top: 10px;
    background: #eef4ff;
    color: #175cd3;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}
/* Step 1N Question Bank */

.question-bank-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.filter-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr auto auto;
    gap: 14px;
    align-items: end;
}

.question-table-wrap {
    overflow-x: auto;
    border: 1px solid #e7ecf5;
    border-radius: 18px;
    background: #ffffff;
}

.question-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

.question-table th,
.question-table td {
    padding: 16px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    vertical-align: top;
}

.question-table th {
    background: #f8fbff;
    color: #475467;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.question-table td span {
    display: block;
    color: #667085;
    margin-top: 5px;
}

.pagination-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.question-form-card {
    max-width: 980px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.checkbox-group input {
    width: auto;
}

.form-group small {
    display: block;
    color: #667085;
    margin-top: 6px;
}

@media (max-width: 1100px) {
    .filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
}
/* Step 1O Topic Management */

.topic-management-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.topic-filter-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.topic-table-wrap {
    overflow-x: auto;
    border: 1px solid #e7ecf5;
    border-radius: 18px;
    background: #ffffff;
}

.topic-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.topic-table th,
.topic-table td {
    padding: 16px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    vertical-align: top;
}

.topic-table th {
    background: #f8fbff;
    color: #475467;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.topic-table td span {
    display: block;
    color: #667085;
    margin-top: 5px;
}

.topic-form-card {
    max-width: 900px;
}

@media (max-width: 1000px) {
    .topic-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .topic-filter-form {
        grid-template-columns: 1fr;
    }
}
/* Step 1P Subject Management */

.subject-management-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
}

.subject-filter-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.subject-table-wrap {
    overflow-x: auto;
    border: 1px solid #e7ecf5;
    border-radius: 18px;
    background: #ffffff;
}

.subject-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.subject-table th,
.subject-table td {
    padding: 16px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    vertical-align: top;
}

.subject-table th {
    background: #f8fbff;
    color: #475467;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.subject-table td span {
    display: block;
    color: #667085;
    margin-top: 5px;
}

.subject-form-card {
    max-width: 850px;
}

@media (max-width: 900px) {
    .subject-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .subject-filter-form {
        grid-template-columns: 1fr;
    }
}
/* Step 1Q General Subject Browser */

.subject-browser-welcome,
.generic-subject-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.generic-subject-card,
.generic-topic-card {
    min-height: 250px;
}

.subject-browser-page .card-icon,
.generic-subject-page .card-icon {
    font-size: 42px;
}

.subject-browser-box {
    text-align: left;
}

.muted-subject-btn {
    background: #eef2f6;
    color: #475467;
}
/* Step 1R Dynamic Subject Cards */

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.section-subtitle {
    margin-top: 6px;
    color: #667085;
}

.dynamic-subject-card {
    min-height: 290px;
}

.dynamic-subject-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.dynamic-subject-stats span {
    background: #f6f8ff;
    color: #344054;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

@media (max-width: 750px) {
    .section-title-row {
        display: grid;
    }
}
/* Step 1S Quiz History */

.quiz-history-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.history-filter-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.quiz-history-row {
    grid-template-columns: 2fr 1fr 1fr auto;
}

.history-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.result-actions {
    margin-top: 20px;
}

@media (max-width: 900px) {
    .history-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .quiz-history-row {
        grid-template-columns: 1fr;
    }

    .history-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {
    .history-filter-form {
        grid-template-columns: 1fr;
    }
}
/* Step 1T Certificates + Badges */

.badge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
}

.achievement-badge,
.result-badge-box {
    background: #ffffff;
    border: 1px solid #e7ecf5;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
}

.achievement-badge h4,
.result-badge-box h3 {
    margin: 8px 0;
    color: #101828;
}

.achievement-badge p,
.result-badge-box p {
    color: #667085;
    margin: 0;
}

.achievement-badge span {
    display: inline-block;
    margin-top: 10px;
    color: #344054;
    font-weight: 800;
}

.badge-emoji {
    font-size: 38px;
}

.gold-badge {
    background: linear-gradient(180deg, #fffbea 0%, #ffffff 100%);
    border-color: #fedf89;
}

.silver-badge {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-color: #c7d7fe;
}

.bronze-badge {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fed7aa;
}

.practice-badge,
.starter-badge,
.streak-badge,
.champion-badge,
.multi-badge,
.subject-badge {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.result-badge-box {
    max-width: 420px;
    margin: 20px auto 0;
    text-align: center;
}

.certificate-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 24px;
}

.certificate-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 22px;
}

.certificate-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.12);
}

.certificate-border {
    border: 8px solid #3157ff;
    border-radius: 22px;
    padding: 44px;
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(49, 87, 255, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(18, 183, 106, 0.08), transparent 30%),
        #ffffff;
}

.certificate-header p {
    color: #667085;
    font-weight: 800;
    margin: 12px 0 0;
}

.certificate-header h1 {
    font-size: 44px;
    color: #101828;
    margin: 16px 0 24px;
}

.certificate-logo {
    margin: 0 auto;
}

.certificate-body h2 {
    font-size: 42px;
    color: #3157ff;
    margin: 14px 0;
}

.certificate-body h3 {
    font-size: 28px;
    color: #101828;
    margin: 12px 0;
}

.certificate-score {
    font-size: 58px;
    font-weight: 900;
    color: #12b76a;
    margin: 20px 0;
}

.certificate-badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
}

.certificate-date {
    margin-top: 28px;
    color: #667085;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    border-top: 1px solid #e7ecf5;
    margin-top: 42px;
    padding-top: 22px;
    text-align: left;
}

.certificate-footer span {
    display: block;
    color: #667085;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .badge-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .certificate-footer {
        display: grid;
        text-align: center;
    }

    .certificate-header h1 {
        font-size: 34px;
    }

    .certificate-body h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .badge-grid {
        grid-template-columns: 1fr;
    }

    .certificate-border {
        padding: 24px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .certificate-page {
        padding: 0;
        max-width: 100%;
    }

    .certificate-card {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .certificate-border {
        min-height: 90vh;
    }
}
/* Step 1U Parent/Teacher Certificate Visibility */

.certificate-meta {
    margin-top: 24px;
    color: #667085;
}

.certificate-meta p {
    margin: 6px 0;
}

.share-note {
    max-width: 620px;
    margin: 22px auto 0;
    background: #f8fbff;
    color: #475467;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px dashed #c7d7fe;
}

.teacher-badge-list,
.teacher-certificate-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.teacher-badge-list span {
    background: #fffbea;
    color: #854d0e;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.teacher-certificate-list strong {
    width: 100%;
    color: #344054;
}

.teacher-certificate-list a {
    background: #eef4ff;
    color: #3157ff;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    font-size: 13px;
}

.teacher-certificate-list a:hover {
    background: #dbe7ff;
}
/* Step 1V Parent Dashboard Polish */

.parent-dashboard-page .dashboard-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
}

.comparison-card {
    background: #ffffff;
    border: 1px solid #e7ecf5;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
}

.comparison-card span {
    color: #667085;
    font-weight: 800;
}

.comparison-card strong {
    display: block;
    font-size: 24px;
    color: #101828;
    margin-top: 8px;
}

.comparison-card p {
    color: #667085;
    margin-bottom: 0;
}

.parent-child-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 22px;
}

.parent-child-card {
    background: #ffffff;
    border: 1px solid #e7ecf5;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07);
}

.child-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.child-card-header h3 {
    margin: 0;
    color: #101828;
}

.child-card-header p {
    margin: 5px 0 0;
    color: #667085;
}

.child-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.child-mini-stats div {
    background: #f8fbff;
    border-radius: 18px;
    padding: 14px;
}

.child-mini-stats span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.child-mini-stats strong {
    display: block;
    color: #101828;
    font-size: 22px;
    margin-top: 6px;
}

.child-card-section {
    margin-top: 18px;
}

.child-card-section h4 {
    margin: 0 0 10px;
    color: #101828;
}

.mini-badge-list,
.mini-certificate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-badge-list span {
    background: #fffbea;
    color: #854d0e;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.mini-certificate-list a {
    background: #eef4ff;
    color: #3157ff;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    font-size: 13px;
}

.mini-certificate-list a:hover {
    background: #dbe7ff;
}

.certificate-preview-row {
    grid-template-columns: 2fr 1fr auto;
}

@media (max-width: 1000px) {
    .parent-child-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .certificate-preview-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .child-card-header {
        display: grid;
    }

    .child-mini-stats {
        grid-template-columns: 1fr;
    }
}
/* Step 1W Teacher Dashboard Polish */

.teacher-dashboard-page .dashboard-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.teacher-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 22px;
}

.teacher-class-card {
    background: #ffffff;
    border: 1px solid #e7ecf5;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.07);
}

.teacher-class-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.teacher-class-header h3 {
    margin: 0;
    color: #101828;
}

.teacher-class-header p {
    margin: 5px 0 0;
    color: #667085;
}

.teacher-class-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.teacher-class-stats div {
    background: #f8fbff;
    border-radius: 18px;
    padding: 14px;
}

.teacher-class-stats span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.teacher-class-stats strong {
    display: block;
    color: #101828;
    font-size: 21px;
    margin-top: 6px;
}

.teacher-assignment-row {
    grid-template-columns: 2fr 1fr 1fr auto;
}

.leaderboard-list {
    display: grid;
    gap: 12px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 70px 2fr 1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e7ecf5;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.leaderboard-rank {
    background: #eef4ff;
    color: #3157ff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.leaderboard-row strong {
    display: block;
    color: #101828;
}

.leaderboard-row span {
    display: block;
    color: #667085;
    margin-top: 4px;
}

@media (max-width: 1050px) {
    .teacher-class-grid {
        grid-template-columns: 1fr;
    }

    .teacher-assignment-row,
    .leaderboard-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .teacher-class-header {
        display: grid;
    }

    .teacher-class-stats {
        grid-template-columns: 1fr 1fr;
    }
}
/* Step 1X Teacher Reports */

.report-welcome {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.report-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
}

.report-card {
    background: #ffffff;
    border: 1px solid #e7ecf5;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
}

.report-card h3 {
    color: #101828;
    margin-bottom: 8px;
}

.report-card p {
    color: #667085;
}

.report-assignment-row {
    grid-template-columns: 2fr 1fr auto;
}

.report-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 50px 24px;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.print-report-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 18px 44px rgba(16, 24, 40, 0.10);
    border: 1px solid #e7ecf5;
}

.report-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 20px;
    margin-bottom: 22px;
}

.report-header h1 {
    margin: 0;
    color: #101828;
}

.report-header p {
    color: #667085;
    font-weight: 800;
}

.report-header strong,
.report-header span {
    display: block;
    text-align: right;
}

.report-header span {
    color: #667085;
    margin-top: 4px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.report-summary-grid div {
    background: #f8fbff;
    border-radius: 18px;
    padding: 18px;
}

.report-summary-grid span {
    display: block;
    color: #667085;
    font-weight: 800;
}

.report-summary-grid strong {
    display: block;
    color: #101828;
    font-size: 26px;
    margin-top: 8px;
}

.print-report-card h2 {
    margin-top: 30px;
    color: #101828;
}

.print-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.print-report-table th,
.print-report-table td {
    border: 1px solid #e7ecf5;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.print-report-table th {
    background: #f8fbff;
    color: #344054;
}

.report-footer {
    border-top: 1px solid #eef2f6;
    margin-top: 30px;
    padding-top: 16px;
    color: #667085;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 900px) {
    .report-card-grid {
        grid-template-columns: 1fr;
    }

    .report-assignment-row,
    .report-header,
    .report-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-header strong,
    .report-header span {
        text-align: left;
    }

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

@media (max-width: 600px) {
    .report-summary-grid {
        grid-template-columns: 1fr;
    }

    .print-report-card {
        padding: 20px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .report-page {
        padding: 0;
        max-width: 100%;
    }

    .print-report-card {
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .print-report-table th,
    .print-report-table td {
        font-size: 12px;
    }
}


.report-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.report-card-actions .mini-link {
    display: inline-flex;
}
/* Step 1Z Teacher Report Filters */

.report-filter-section {
    background: #ffffff;
}

.report-filter-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.report-filter-form .form-group {
    margin: 0;
}

.report-filter-form label {
    display: block;
    font-weight: 800;
    color: #344054;
    margin-bottom: 8px;
}

.report-filter-form select,
.report-filter-form input {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
}

@media (max-width: 950px) {
    .report-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .report-filter-form {
        grid-template-columns: 1fr;
    }
}
/* Step 2A Platform Admin Dashboard */

.platform-activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.platform-activity-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 20px;
}

.platform-activity-card h3 {
    margin-bottom: 14px;
}

.platform-activity-card p {
    color: #667085;
    margin-bottom: 8px;
}

.inactive-link {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 950px) {
    .platform-activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .platform-activity-grid {
        grid-template-columns: 1fr;
    }
}
/* Step 2A Platform Dashboard UI Polish */

.dashboard-section {
    max-width: 1120px;
    margin: 34px auto;
    padding: 0 18px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title-row h2,
.section-title-row h3 {
    margin: 0 0 8px;
    color: #06142e;
    font-weight: 900;
}

.section-subtitle {
    color: #667085;
    margin: 0;
    line-height: 1.6;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.summary-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.04);
}

.summary-card p {
    margin: 0 0 10px;
    color: #475467;
    font-weight: 800;
}

.summary-card h3 {
    font-size: 32px;
    margin: 0 0 10px;
    color: #06142e;
    font-weight: 900;
}

.summary-card span {
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.table-shell {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.04);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    color: #344054;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 16px 18px;
    border-bottom: 1px solid #e4e7ec;
}

.data-table td {
    padding: 18px;
    border-bottom: 1px solid #eef2f6;
    color: #101828;
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td span {
    color: #667085;
    font-size: 14px;
}

.attempt-list {
    display: grid;
    gap: 12px;
}

.attempt-row {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.035);
}

.attempt-row strong {
    color: #06142e;
}

.attempt-row p {
    margin: 6px 0 0;
    color: #667085;
}

.platform-activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.platform-activity-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 22px;
    min-height: 180px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.04);
}

.platform-activity-card h3 {
    margin: 0 0 16px;
    color: #06142e;
    font-weight: 900;
}

.platform-activity-card p {
    margin: 0 0 10px;
    color: #667085;
    line-height: 1.5;
}

.inactive-link {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 1050px) {
    .summary-grid,
    .platform-activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .dashboard-section {
        margin: 24px auto;
        padding: 0 14px;
    }

    .section-title-row {
        flex-direction: column;
    }

    .summary-grid,
    .platform-activity-grid {
        grid-template-columns: 1fr;
    }

    .attempt-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-shell {
        overflow-x: auto;
    }

    .data-table {
        min-width: 720px;
    }
}
/* Step 2B Platform User Management */

.platform-user-filter-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.platform-user-filter-form .form-group {
    margin: 0;
}

.platform-user-filter-form label {
    display: block;
    font-weight: 800;
    color: #344054;
    margin-bottom: 8px;
}

.platform-user-filter-form input,
.platform-user-filter-form select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
}

.platform-note {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .platform-user-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .platform-user-filter-form {
        grid-template-columns: 1fr;
    }
}
/* Step 2C Platform User Controls */

.platform-control-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 18px;
}

.platform-control-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.04);
}

.platform-control-card h3 {
    margin: 0 0 12px;
    color: #06142e;
    font-weight: 900;
}

.platform-control-card p {
    color: #667085;
    line-height: 1.6;
}

.platform-control-card span {
    display: block;
    color: #667085;
    line-height: 1.6;
}

.platform-control-card .form-group {
    margin-bottom: 16px;
}

.platform-control-card label {
    display: block;
    font-weight: 800;
    color: #344054;
    margin-bottom: 8px;
}

.platform-control-card select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.danger-btn:hover {
    background: #b91c1c;
}

.primary-btn:disabled,
.danger-btn:disabled,
.platform-control-card select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.platform-warning-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.platform-warning-box strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 900;
}

.platform-warning-box p {
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: 13px;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 950px) {
    .platform-control-grid {
        grid-template-columns: 1fr;
    }
}
/* Step 2D Safe Role Conversion + Profile Repair */

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.inline-admin-form {
    margin-top: 14px;
}

.inline-admin-form button {
    margin-top: 8px;
}
/* Step 2E Platform Content Quality Dashboard */

.quality-checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.quality-checklist-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.04);
}

.quality-checklist-card h3 {
    margin: 12px 0 10px;
    color: #06142e;
    font-weight: 900;
}

.quality-checklist-card p {
    color: #667085;
    line-height: 1.6;
    margin: 0;
}

.quality-priority {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: 13px;
}

.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-good {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 1050px) {
    .quality-checklist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .quality-checklist-grid {
        grid-template-columns: 1fr;
    }
}
/* Step 2F Public Landing Page Polish */

.public-hero {
    max-width: 1120px;
    margin: 46px auto 36px;
    padding: 54px 28px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe5ff;
    border-radius: 32px;
    box-shadow: 0 24px 50px rgba(16, 24, 40, 0.06);
}

.public-hero h1 {
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.02;
    margin: 22px 0 18px;
    color: #06142e;
    letter-spacing: -0.04em;
}

.public-hero p {
    font-size: 18px;
    line-height: 1.75;
    color: #667085;
    max-width: 680px;
}

.public-hero-actions,
.public-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.public-hero-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.public-hero-mini span {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    padding: 9px 12px;
    color: #344054;
    font-weight: 800;
    font-size: 14px;
}

.public-hero-panel {
    display: flex;
    justify-content: center;
}

.hero-demo-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.12);
}

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

.hero-demo-header span {
    color: #667085;
    font-weight: 700;
}

.hero-demo-header strong {
    background: #eef4ff;
    color: #315cff;
    border-radius: 999px;
    padding: 7px 10px;
}

.hero-question-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 18px;
}

.hero-question-card p {
    color: #06142e;
    font-weight: 900;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 14px;
}

.fake-option {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
    color: #344054;
    font-weight: 800;
}

.fake-correct {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.hero-score-card {
    margin-top: 16px;
    background: #06142e;
    color: #ffffff;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-score-card span {
    color: #cbd5e1;
    font-weight: 800;
}

.hero-score-card strong {
    font-size: 28px;
}

.public-section {
    max-width: 1120px;
    margin: 44px auto;
    padding: 0 18px;
}

.public-light-section {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 30px;
    padding: 38px 28px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.04);
}

.public-section-title {
    max-width: 760px;
    margin-bottom: 24px;
}

.public-section-title h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    margin: 16px 0 10px;
    color: #06142e;
    letter-spacing: -0.03em;
}

.public-section-title p {
    color: #667085;
    font-size: 17px;
    line-height: 1.7;
}

.public-role-grid,
.public-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.public-feature-grid {
    grid-template-columns: repeat(4, 1fr);
}

.public-role-card,
.public-feature-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 16px 35px rgba(16, 24, 40, 0.04);
}

.public-role-card h3,
.public-feature-card h3 {
    margin: 16px 0 10px;
    color: #06142e;
    font-size: 23px;
}

.public-role-card p,
.public-feature-card p {
    color: #667085;
    line-height: 1.7;
}

.public-benefit-grid {
    display: grid;
    gap: 14px;
}

.public-benefit-row {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: center;
}

.public-benefit-row strong {
    color: #06142e;
    font-size: 18px;
}

.public-benefit-row span {
    color: #667085;
    line-height: 1.65;
}

.public-cta {
    max-width: 1120px;
    margin: 48px auto 56px;
    padding: 42px 32px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 28%),
        linear-gradient(135deg, #315cff 0%, #06142e 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.public-cta .pill {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.public-cta h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin: 16px 0 10px;
    letter-spacing: -0.03em;
}

.public-cta p {
    color: #dbeafe;
    max-width: 680px;
    line-height: 1.7;
}

.public-cta .secondary-btn {
    background: #ffffff;
}

.public-cta .primary-btn {
    background: #ffffff;
    color: #315cff;
}

@media (max-width: 980px) {
    .public-hero {
        grid-template-columns: 1fr;
    }

    .public-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-role-grid {
        grid-template-columns: 1fr;
    }

    .public-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 650px) {
    .public-hero {
        margin: 24px 14px;
        padding: 34px 20px;
        border-radius: 24px;
    }

    .public-section {
        margin: 34px auto;
        padding: 0 14px;
    }

    .public-light-section {
        padding: 28px 20px;
        margin-left: 14px;
        margin-right: 14px;
    }

    .public-feature-grid {
        grid-template-columns: 1fr;
    }

    .public-benefit-row {
        grid-template-columns: 1fr;
    }

    .public-cta {
        margin-left: 14px;
        margin-right: 14px;
        padding: 32px 22px;
    }
}    
/* Step 2G Public Demo Quiz Experience */

.demo-hero,
.demo-result-hero,
.demo-quiz-shell {
    max-width: 1120px;
    margin: 44px auto;
    padding: 42px 28px;
}

.demo-hero,
.demo-result-hero {
    background: #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    box-shadow: 0 22px 45px rgba(16, 24, 40, 0.05);
}

.demo-hero h1,
.demo-result-hero h1,
.demo-quiz-header h1 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    color: #06142e;
    letter-spacing: -0.04em;
    margin: 18px 0 12px;
}

.demo-hero p,
.demo-result-hero p,
.demo-quiz-header p {
    color: #667085;
    line-height: 1.75;
    max-width: 680px;
}

.demo-hero-card {
    min-width: 280px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 22px;
}

.demo-hero-card strong {
    display: block;
    color: #06142e;
    margin-bottom: 12px;
    font-size: 18px;
}

.demo-hero-card p {
    margin: 8px 0;
    color: #344054;
}

.demo-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.demo-card-meta span {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    color: #344054;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 800;
    font-size: 13px;
}

.demo-quiz-shell {
    padding-top: 24px;
}

.demo-quiz-header {
    background: #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 28px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
}

.demo-question-form {
    display: grid;
    gap: 18px;
}

.demo-question-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.04);
}

.demo-question-number {
    color: #315cff;
    font-weight: 900;
    margin-bottom: 10px;
}

.demo-question-card h3 {
    margin: 0 0 16px;
    color: #06142e;
    font-size: 22px;
}

.demo-option {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 10px;
    cursor: pointer;
}

.demo-option input {
    transform: scale(1.15);
}

.demo-option span {
    font-weight: 800;
    color: #344054;
}

.demo-submit-card {
    background: #06142e;
    color: #ffffff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.demo-submit-card p {
    color: #cbd5e1;
    margin: 8px 0 0;
}

.demo-score-circle {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #06142e;
    color: #ffffff;
    display: grid;
    place-items: center;
    text-align: center;
    flex-shrink: 0;
}

.demo-score-circle strong {
    display: block;
    font-size: 42px;
    line-height: 1;
}

.demo-score-circle span {
    display: block;
    color: #cbd5e1;
    font-weight: 800;
    margin-top: 10px;
}

.demo-review-list {
    display: grid;
    gap: 16px;
}

.demo-review-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 22px;
}

.demo-review-card.review-correct {
    border-color: #bbf7d0;
}

.demo-review-card.review-wrong {
    border-color: #fecaca;
}

.demo-review-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.demo-review-card h3 {
    color: #06142e;
    margin: 0 0 14px;
}

.demo-review-card p {
    color: #667085;
}

.demo-explanation {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-top: 14px;
}

.demo-explanation strong {
    color: #06142e;
}

.demo-explanation p {
    margin: 8px 0 0;
}

@media (max-width: 850px) {
    .demo-hero,
    .demo-result-hero,
    .demo-quiz-header,
    .demo-submit-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-score-circle {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 650px) {
    .demo-hero,
    .demo-result-hero,
    .demo-quiz-shell {
        margin: 24px 14px;
        padding: 26px 18px;
    }

    .demo-quiz-header {
        padding: 24px 18px;
    }
}
/* Step 2H Public Trust + Contact + About Sections */

.public-about-section {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 30px;
    padding: 38px 28px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.04);
}

.public-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.public-about-card,
.trust-card,
.faq-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 16px 35px rgba(16, 24, 40, 0.04);
}

.public-about-card h3,
.trust-card h3,
.faq-card h3 {
    margin: 14px 0 10px;
    color: #06142e;
    font-weight: 900;
}

.public-about-card p,
.trust-card p,
.faq-card p {
    color: #667085;
    line-height: 1.7;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.trust-card ul {
    margin: 12px 0 18px;
    padding-left: 20px;
    color: #667085;
    line-height: 1.9;
}

.trust-card li {
    margin-bottom: 6px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.contact-card {
    background:
        radial-gradient(circle at top right, rgba(49, 92, 255, 0.16), transparent 32%),
        #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 30px;
    padding: 38px 30px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.05);
}

.contact-card h2 {
    color: #06142e;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    margin: 16px 0 12px;
    letter-spacing: -0.03em;
}

.contact-card p {
    color: #667085;
    line-height: 1.7;
}

.contact-details {
    display: grid;
    gap: 14px;
}

.contact-details div {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 18px;
}

.contact-details strong {
    display: block;
    color: #06142e;
    font-weight: 900;
    margin-bottom: 6px;
}

.contact-details p {
    margin: 0;
    color: #344054;
    font-weight: 700;
}

@media (max-width: 980px) {
    .public-about-grid,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 650px) {
    .public-about-section {
        margin-left: 14px;
        margin-right: 14px;
        padding: 28px 20px;
    }

    .public-about-grid,
    .trust-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 28px 20px;
    }
}
/* Step 2I Footer + Legal Pages */

.public-footer {
    background: #ffffff;
    border-top: 1px solid #e4e7ec;
    margin-top: 0;
    padding: 0;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 18px;
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 36px;
}

.footer-brand-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.footer-brand-row h3 {
    margin: 0;
    color: #06142e;
    font-weight: 900;
}

.footer-brand-row p,
.footer-description {
    color: #667085;
    margin: 4px 0 0;
    line-height: 1.7;
}

.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.footer-link-grid h4 {
    color: #06142e;
    margin: 0 0 12px;
    font-weight: 900;
}

.footer-link-grid a {
    display: block;
    color: #667085;
    text-decoration: none;
    margin-bottom: 9px;
    font-weight: 700;
}

.footer-link-grid a:hover {
    color: #315cff;
}

.footer-bottom {
    border-top: 1px solid #eef2f6;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #667085;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.legal-hero {
    max-width: 1120px;
    margin: 44px auto 28px;
    padding: 46px 28px;
    background:
        radial-gradient(circle at top left, rgba(49, 92, 255, 0.14), transparent 30%),
        #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.05);
}

.legal-hero h1 {
    font-size: clamp(36px, 4vw, 56px);
    color: #06142e;
    margin: 18px 0 12px;
    letter-spacing: -0.04em;
}

.legal-hero p {
    color: #667085;
    line-height: 1.75;
    max-width: 760px;
    font-size: 17px;
}

.legal-content {
    max-width: 960px;
    margin: 0 auto 56px;
    padding: 0 18px;
    display: grid;
    gap: 18px;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.04);
}

.legal-card h2 {
    color: #06142e;
    margin: 0 0 12px;
    font-weight: 900;
}

.legal-card p {
    color: #667085;
    line-height: 1.8;
}

.legal-note-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 22px;
    padding: 22px;
}

.legal-note-box strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
}

.legal-note-box p {
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 850px) {
    .footer-inner,
    .footer-link-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .legal-hero {
        margin: 24px 14px;
        padding: 32px 20px;
    }

    .legal-content {
        padding: 0 14px;
    }
}
/* Step 2J Public UI Mobile Navigation Polish */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    color: #06142e;
    line-height: 1.1;
}

.brand p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #06142e;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #315cff;
}

.logout-form {
    margin: 0;
}

.logout-form button,
.login-link {
    border: none;
    background: #06142e;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.login-link {
    background: #315cff;
}

.logout-form button:hover,
.login-link:hover {
    opacity: 0.9;
}

.primary-btn,
.secondary-btn,
.mini-link {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .nav-links a,
    .logout-form button,
    .login-link {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 9px 12px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e4e7ec;
        color: #06142e !important;
    }

    .logout-form button,
    .login-link {
        background: #06142e;
        color: #ffffff !important;
        border-color: #06142e;
    }

    .brand h1 {
        font-size: 20px;
    }

    .brand p {
        font-size: 13px;
    }
}

@media (max-width: 650px) {
    body {
        overflow-x: hidden;
    }

    .header-inner {
        padding: 12px 14px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .brand h1 {
        font-size: 18px;
    }

    .brand p {
        font-size: 12px;
    }

    .nav-links {
        gap: 8px;
        padding-bottom: 6px;
    }

    .nav-links a,
    .logout-form button,
    .login-link {
        font-size: 12px;
        padding: 8px 11px;
    }

    .public-hero-actions,
    .public-cta-actions,
    .hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .public-hero-actions a,
    .public-cta-actions a,
    .hero-actions a,
    .hero-actions button,
    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .public-cta {
        text-align: left;
    }

    .footer-inner {
        padding: 32px 18px;
    }

    .footer-bottom {
        padding: 18px;
    }
}
html {
    scroll-behavior: smooth;
}
/* Mobile overflow cleanup */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 650px) {
    .public-hero,
    .public-section,
    .public-light-section,
    .public-cta,
    .demo-hero,
    .demo-result-hero,
    .demo-quiz-shell,
    .legal-hero,
    .contact-section,
    .contact-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    .public-hero,
    .public-light-section,
    .public-cta,
    .contact-card {
        margin-left: 14px;
        margin-right: 14px;
    }

    .public-hero-panel,
    .hero-demo-card {
        width: 100%;
        max-width: 100%;
    }

    .nav-links {
        max-width: 100%;
    }
}
/* Header spacing refinement */

@media (max-width: 980px) {
    .header-inner {
        gap: 18px;
    }

    .nav-links {
        margin-top: 4px;
    }
}

@media (max-width: 650px) {
    .header-inner {
        gap: 16px;
    }

    .nav-links {
        margin-top: 6px;
    }
}

/* Header spacing refinement - wider breathing space */

@media (max-width: 980px) {
    .header-inner {
        gap: 24px;
    }

    .nav-links {
        margin-top: 8px;
    }
}

@media (max-width: 650px) {
    .header-inner {
        gap: 20px;
    }

    .nav-links {
        margin-top: 8px;
    }
}
/* ============================================================
   FINAL HEADER FIX — desktop spacing + mobile nav polish
   ============================================================ */

.site-header {
    padding: 0 !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    gap: 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e4e7ec;
}

.header-inner {
    width: min(1180px, calc(100% - 56px));
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 72px;
}

.brand {
    flex: 0 0 auto;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.nav-links {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-links a {
    white-space: nowrap;
}

.nav-links .login-link,
.login-link {
    background: #315cff;
    color: #ffffff !important;
    padding: 11px 18px;
    border-radius: 999px;
}

/* Tablet / small laptop header */
@media (max-width: 980px) {
    .header-inner {
        width: min(100% - 32px, 1180px);
        padding: 20px 0 22px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 28px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-top: 0;
        scrollbar-width: thin;
    }

    .nav-links a,
    .logout-form button,
    .login-link {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 10px 14px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e4e7ec;
        color: #06142e !important;
    }

    .logout-form button,
    .login-link {
        background: #315cff;
        color: #ffffff !important;
        border-color: #315cff;
    }
}

/* Phone header */
@media (max-width: 650px) {
    .header-inner {
        width: calc(100% - 28px);
        padding: 18px 0 20px;
        gap: 26px;
    }

    .brand-link {
        gap: 12px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .brand h1 {
        font-size: 18px;
    }

    .brand p {
        font-size: 12px;
    }

    .nav-links {
        margin-top: 0;
        gap: 9px;
    }

    .nav-links a,
    .logout-form button,
    .login-link {
        font-size: 12px;
        padding: 8px 11px;
    }
}

/* Prevent whole-page sideways scrolling while still allowing nav to scroll */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.nav-links {
    max-width: 100%;
}
/* Step 2K SEO + Public Launch Polish */

.site-header {
    backdrop-filter: blur(12px);
}

.public-hero,
.demo-hero,
.legal-hero {
    scroll-margin-top: 120px;
}

#about,
#faq,
#contact,
#trust {
    scroll-margin-top: 120px;
}

.footer-link-grid a,
.nav-links a,
.mini-link,
.primary-btn,
.secondary-btn {
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.mini-link:hover {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .footer-link-grid a,
    .nav-links a,
    .mini-link,
    .primary-btn,
    .secondary-btn {
        transition: none;
    }

    .primary-btn:hover,
    .secondary-btn:hover,
    .mini-link:hover {
        transform: none;
    }
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.footer-brand-row .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}
/* Step 2P Gamification Foundation */

.gamification-stat-card {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 35%),
        #ffffff;
}

.gamification-stat-card strong {
    font-size: 30px;
}

.motivation-card {
    margin: 24px 0;
    background:
        radial-gradient(circle at top left, rgba(49, 92, 255, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe5ff;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
}

.motivation-card h3 {
    margin: 8px 0 8px;
    color: #06142e;
    font-size: 24px;
}

.motivation-card p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.gamification-label {
    display: inline-flex;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 900;
}

.gamification-earned-card {
    margin: 24px auto;
    max-width: 900px;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.20), transparent 35%),
        #ffffff;
    border: 1px solid #fde68a;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
}

.gamification-earned-card h3 {
    margin: 10px 0 8px;
    color: #06142e;
}

.gamification-earned-card p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.gamification-earned-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 12px;
    min-width: 330px;
}

.gamification-earned-grid div {
    background: #fffdf5;
    border: 1px solid #fde68a;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
}

.gamification-earned-grid strong {
    display: block;
    color: #06142e;
    font-size: 22px;
}

.gamification-earned-grid span {
    display: block;
    color: #667085;
    font-weight: 800;
    margin-top: 6px;
}

@media (max-width: 850px) {
    .motivation-card,
    .gamification-earned-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .gamification-earned-grid {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .gamification-earned-grid {
        grid-template-columns: 1fr;
    }
}
/* Step 2Q Daily Challenge Foundation */

.daily-challenge-card {
    margin: 24px 0;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe5ff;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
}

.daily-challenge-completed {
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f6fef9 100%);
    border-color: #bbf7d0;
}

.daily-challenge-left h3 {
    margin: 10px 0 8px;
    color: #06142e;
    font-size: 26px;
}

.daily-challenge-left p {
    color: #667085;
    margin: 0;
    line-height: 1.6;
}

.daily-challenge-message {
    margin-top: 10px !important;
}

.daily-challenge-label {
    display: inline-flex;
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 900;
}

.daily-challenge-completed .daily-challenge-label {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.daily-challenge-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.daily-challenge-meta span {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    color: #344054;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 800;
}

.daily-challenge-action {
    display: grid;
    gap: 12px;
    justify-items: end;
    min-width: 220px;
}

.daily-complete-badge {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    padding: 14px 16px;
    text-align: center;
}

.daily-complete-badge strong {
    display: block;
    color: #166534;
    font-size: 18px;
}

.daily-complete-badge span {
    display: block;
    color: #667085;
    margin-top: 5px;
    font-weight: 800;
}

@media (max-width: 850px) {
    .daily-challenge-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .daily-challenge-action {
        width: 100%;
        min-width: 0;
        justify-items: stretch;
    }

    .daily-challenge-action a {
        width: 100%;
        text-align: center;
    }
}
/* Step 2R Leaderboard Foundation */

.leaderboard-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
}

.leaderboard-three-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
}

.leaderboard-card {
    background:
        radial-gradient(circle at top right, rgba(49, 92, 255, 0.10), transparent 34%),
        #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
}

.leaderboard-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.leaderboard-card h4 {
    margin: 8px 0 4px;
    color: #06142e;
    font-size: 22px;
}

.leaderboard-card h5 {
    margin: 18px 0 10px;
    color: #06142e;
    font-size: 16px;
}

.leaderboard-card p {
    margin: 0;
    color: #667085;
}

.leaderboard-label {
    display: inline-flex;
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 900;
}

.leaderboard-rank-pill {
    background: #06142e;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
}

.my-rank-box {
    background: #f8fbff;
    border: 1px solid #dbe5ff;
    border-radius: 18px;
    padding: 16px;
    margin: 14px 0;
}

.my-rank-box strong {
    display: block;
    color: #06142e;
    margin-bottom: 6px;
}

.my-rank-box span {
    color: #667085;
    line-height: 1.5;
}

.leaderboard-mini-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.leaderboard-mini-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 12px;
}

.leaderboard-mini-row span {
    background: #ffffff;
    border: 1px solid #dbe5ff;
    color: #315cff;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.leaderboard-mini-row strong {
    color: #06142e;
}

.leaderboard-mini-row em {
    color: #667085;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .leaderboard-three-grid,
    .leaderboard-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .leaderboard-card-header {
        display: grid;
    }

    .leaderboard-mini-row {
        grid-template-columns: 38px 1fr;
    }

    .leaderboard-mini-row em {
        grid-column: 2;
    }
}
/* Step 2S Timed Quiz Foundation */

.quiz-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.quiz-mode-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
}

.quiz-mode-card h3 {
    color: #06142e;
    margin: 10px 0 8px;
    font-size: 24px;
}

.quiz-mode-card p {
    color: #667085;
    line-height: 1.6;
}

.timed-mode-card {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 34%),
        #ffffff;
    border-color: #fde68a;
}

.quiz-mode-label,
.timer-label {
    display: inline-flex;
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 900;
}

.timer-card {
    margin: 22px 0;
    background:
        radial-gradient(circle at top right, rgba(49, 92, 255, 0.14), transparent 35%),
        #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
}

.timer-card h3 {
    margin: 10px 0 6px;
    color: #06142e;
}

.timer-card p {
    margin: 0;
    color: #667085;
}

.timer-display {
    min-width: 150px;
    background: #06142e;
    color: #ffffff;
    border-radius: 20px;
    padding: 18px;
    font-size: 34px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.03em;
}

.timer-warning {
    border-color: #f97316;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.20), transparent 35%),
        #ffffff;
}

.timer-warning .timer-display {
    background: #9a3412;
}

.timed-result-card {
    margin: 24px auto;
    max-width: 900px;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 35%),
        #ffffff;
    border: 1px solid #fde68a;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
}

.timed-result-card h3 {
    margin: 10px 0 8px;
    color: #06142e;
}

.timed-result-card p {
    margin: 0;
    color: #667085;
}

.speed-badge-box {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    padding: 18px;
    max-width: 260px;
    text-align: center;
}

.speed-badge-box h4 {
    margin: 8px 0 6px;
    color: #06142e;
}

.speed-badge-box p {
    color: #667085;
    line-height: 1.5;
}

.speed-gold-badge {
    border-color: #fbbf24;
    background: #fffbea;
}

.speed-silver-badge {
    border-color: #c7d7fe;
    background: #f8fbff;
}

.speed-bronze-badge {
    border-color: #fed7aa;
    background: #fff7ed;
}

.speed-practice-badge {
    border-color: #e4e7ec;
}

@media (max-width: 850px) {
    .quiz-mode-grid {
        grid-template-columns: 1fr;
    }

    .timer-card,
    .timed-result-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .timer-display {
        width: 100%;
    }

    .speed-badge-box {
        max-width: 100%;
        width: 100%;
    }
}
/* Step 2S-C Teacher/Admin Quiz Time Settings */

.timed-disabled-card {
    opacity: 0.78;
}

.timed-disabled-card button[disabled],
.secondary-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
}

.form-section-card {
    background: #f8fbff;
    border: 1px solid #dbe5ff;
    border-radius: 22px;
    padding: 20px;
    margin: 18px 0;
}

.form-section-card h3 {
    margin: 0 0 8px;
    color: #06142e;
}

.form-help-text {
    color: #667085;
    margin: 0 0 14px;
    line-height: 1.6;
}

.form-check-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 12px 0;
    font-weight: 800;
    color: #06142e;
}

.form-check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.form-group small {
    display: block;
    color: #667085;
    margin-top: 6px;
}
/* Quick Fix — More Visible Topic Time Badge */

.time-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.time-on {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    box-shadow: 0 8px 18px rgba(251, 191, 36, 0.16);
}

.time-off {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

.topic-table td .time-status-pill,
.table-card td .time-status-pill,
.management-table td .time-status-pill {
    margin-top: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.active-pill {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.inactive-pill {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}
/* Step 2T Mock Exam Foundation */

.quiz-start-card {
    max-width: 900px;
    margin: 50px auto;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.06);
}

.quiz-start-card h2 {
    color: #06142e;
    font-size: 34px;
    margin: 14px 0 10px;
}

.quiz-start-card p {
    color: #667085;
    line-height: 1.7;
}

.exam-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.exam-info-grid div {
    background: #f8fbff;
    border: 1px solid #dbe5ff;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.exam-info-grid strong {
    display: block;
    color: #06142e;
    font-size: 24px;
}

.exam-info-grid span {
    display: block;
    color: #667085;
    margin-top: 6px;
    font-weight: 800;
}

.question-topic-label {
    display: inline-flex;
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 12px;
}

@media (max-width: 750px) {
    .exam-info-grid {
        grid-template-columns: 1fr;
    }

    .quiz-start-card {
        padding: 24px;
        margin: 30px auto;
    }
}
/* Step 2U Mock Exam Reports + History Polish */

.mock-exam-summary-card {
    margin: 24px 0;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.13), transparent 34%),
        #ffffff;
    border: 1px solid #ddd6fe;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
}

.mock-exam-summary-card h3 {
    color: #06142e;
    margin: 10px 0 8px;
    font-size: 24px;
}

.mock-exam-summary-card p {
    color: #667085;
    line-height: 1.6;
}

.mock-exam-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.readiness-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    margin: 8px 0;
}

.readiness-ready {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.readiness-almost {
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
}

.readiness-revision {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.readiness-practice {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.mock-history-list {
    display: grid;
    gap: 14px;
}

.mock-history-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: 18px;
    align-items: center;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
}

.mock-history-card h4 {
    margin: 8px 0 6px;
    color: #06142e;
}

.mock-history-card p {
    color: #667085;
    margin: 0;
}

.mock-history-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 10px;
}

.mock-history-stats div {
    background: #f8fbff;
    border: 1px solid #dbe5ff;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
}

.mock-history-stats strong {
    display: block;
    color: #06142e;
    font-size: 18px;
}

.mock-history-stats span {
    display: block;
    color: #667085;
    margin-top: 5px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .mock-exam-summary-card,
    .mock-history-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .mock-exam-actions {
        width: 100%;
    }

    .mock-exam-actions a {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 650px) {
    .mock-history-stats {
        grid-template-columns: 1fr;
    }
}
/* Step 2V Mock Exam Topic Mix */

.topic-mix-card {
    margin: 24px auto;
    max-width: 900px;
    background: #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
}

.topic-mix-card h3 {
    margin: 10px 0 14px;
    color: #06142e;
}

.topic-mix-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-mix-list span {
    display: inline-flex;
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
}
/* Step 2W Mock Exam Setup Controls Polish */

.mock-config-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.mock-on {
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
}

.mock-off {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

.exam-config-note {
    margin-top: 10px;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}

.exam-config-note-box {
    background: #f8fbff;
    border: 1px solid #dbe5ff;
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0;
}

.exam-config-note-box strong {
    display: block;
    color: #06142e;
    margin-bottom: 6px;
}

.exam-config-note-box p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.two-column-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
}

@media (max-width: 700px) {
    .two-column-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Subject Management Mock Exam Column Badges */

.mock-config-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.mock-on {
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
}

.mock-off {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.active-pill {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.inactive-pill {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}
/* Step 2X Teacher Mock Exam Builder */

.topic-checkbox-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.topic-checkbox-list li {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 10px 12px;
}

.topic-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #06142e;
    font-weight: 800;
}

.topic-checkbox-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.teacher-exam-card {
    background:
        radial-gradient(circle at top right, rgba(49, 92, 255, 0.10), transparent 34%),
        #ffffff;
    border: 1px solid #dbe5ff;
}
/* Step 2X-B Learner Dashboard Work Alerts */

.work-alert-panel {
    margin-top: 24px;
    background:
        radial-gradient(circle at top right, rgba(49, 94, 251, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #c7d7fe;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 20px 55px rgba(49, 94, 251, 0.10);
}

.work-alert-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.work-alert-label {
    display: inline-flex;
    background: #315efb;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 12px;
}

.work-alert-header h3 {
    margin: 0 0 8px;
    color: #06142e;
    font-size: 28px;
}

.work-alert-header p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.work-alert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.work-alert-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
}

.work-alert-pending {
    border-color: #fed7aa;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 35%),
        #ffffff;
}

.work-alert-done {
    border-color: #bbf7d0;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 35%),
        #ffffff;
}

.work-alert-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.work-alert-icon {
    font-size: 24px;
}

.work-alert-type {
    color: #315efb;
    font-weight: 900;
    font-size: 13px;
}

.work-alert-card h4 {
    margin: 0 0 8px;
    color: #06142e;
    font-size: 19px;
}

.work-alert-card p {
    margin: 0 0 8px;
    color: #667085;
    line-height: 1.5;
}

.work-alert-meta {
    display: block;
    color: #475467;
    font-weight: 800;
    margin-bottom: 14px;
}

.work-status-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.work-status-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.work-status-completed {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

@media (max-width: 1100px) {
    .work-alert-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 800px) {
    .work-alert-header {
        display: grid;
    }

    .work-alert-grid {
        grid-template-columns: 1fr;
    }
}
.history-tab-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.history-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-weight: 800;
}

.history-tab.active {
    background: #155e75;
    color: #ffffff;
}

.topic-mini-pill {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px 3px 2px 0;
    border-radius: 999px;
    background: #eef6ff;
    color: #155e75;
    font-size: 0.78rem;
    font-weight: 700;
}

.deadline-pill {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.deadline-no_deadline {
    background: #f1f5f9;
    color: #475569;
}

.deadline-pending {
    background: #e0f2fe;
    color: #075985;
}

.deadline-due_soon {
    background: #fef3c7;
    color: #92400e;
}

.deadline-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.muted-text {
    color: #78909c;
}

.mock-report-info {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.work-status-due-soon {
    background: #fef3c7;
    color: #92400e;
}

.work-status-overdue {
    background: #fee2e2;
    color: #991b1b;
}
.print-report-header {
    display: none;
}

.mock-chart-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    margin-top: 14px;
}

.chart-row,
.readiness-band-list {
    display: grid;
    gap: 12px;
}

.chart-item {
    display: grid;
    grid-template-columns: 160px 1fr 50px;
    align-items: center;
    gap: 12px;
}

.chart-item span {
    font-weight: 700;
    color: #334155;
}

.chart-item strong {
    color: #0f172a;
}

.chart-bar-track {
    width: 100%;
    height: 13px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #155e75;
}

.mock-report-info {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

@media print {
    body {
        background: #ffffff !important;
    }

    .print-hide,
    .navbar,
    .site-header,
    .site-footer,
    .mobile-nav,
    .hero-buttons,
    .print-button {
        display: none !important;
    }

    .print-report-header {
        display: block;
        text-align: center;
        margin-bottom: 18px;
    }

    .print-report-header h1 {
        margin: 0;
        font-size: 26px;
        color: #111827;
    }

    .print-report-header h2 {
        margin: 6px 0;
        font-size: 18px;
        color: #334155;
    }

    .dashboard-page,
    .dashboard-section,
    .stat-card,
    .subject-table-wrap {
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .dashboard-section {
        page-break-inside: avoid;
        border: 1px solid #e5e7eb;
        margin-bottom: 16px;
    }

    .subject-table {
        font-size: 12px;
    }

    a {
        color: #111827 !important;
        text-decoration: none !important;
    }
}
.school-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.school-admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid #e2e8f0;
}

.school-admin-nav a:hover {
    background: #155e75;
    color: #ffffff;
}

.danger-link {
    color: #991b1b;
    border: none;
    background: transparent;
    cursor: pointer;
}
.path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .path-grid {
        grid-template-columns: 1fr;
    }
}
.school-code-box {
    margin: 14px 0;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
}

.school-code-box span {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.school-code-box strong {
    display: block;
    margin: 5px 0;
    font-size: 1.6rem;
    color: #0f172a;
    letter-spacing: 0.04em;
}

.school-code-box p {
    margin: 0;
    color: #475569;
}

.inline-form {
    display: inline-block;
    margin-right: 6px;
}

.inline-form button {
    border: none;
    cursor: pointer;
}
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.export-card {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    text-decoration: none;
    color: #0f172a;
    transition: 0.2s ease;
}

.export-card:hover {
    transform: translateY(-2px);
    border-color: #155e75;
}

.export-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.export-card span {
    color: #475569;
    line-height: 1.5;
}

.print-report-header {
    display: none;
}

@media print {
    body {
        background: #ffffff !important;
    }

    .print-hide,
    .navbar,
    .site-header,
    .site-footer,
    .mobile-nav,
    .school-admin-nav,
    .hero-buttons {
        display: none !important;
    }

    .print-report-header {
        display: block;
        text-align: center;
        margin-bottom: 18px;
    }

    .print-report-header h1 {
        margin: 0;
        font-size: 26px;
        color: #111827;
    }

    .print-report-header h2 {
        margin: 6px 0;
        font-size: 18px;
        color: #334155;
    }

    .dashboard-page,
    .dashboard-section,
    .stat-card,
    .subject-table-wrap {
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .dashboard-section {
        page-break-inside: avoid;
        border: 1px solid #e5e7eb;
        margin-bottom: 16px;
    }

    .subject-table {
        font-size: 12px;
    }

    a {
        color: #111827 !important;
        text-decoration: none !important;
    }
}
.subscription-alert {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: #f8fafc;
}

.subscription-alert strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.subscription-alert span {
    color: #475569;
}

.subscription-alert a {
    display: inline-block;
    margin-top: 8px;
    font-weight: 800;
    color: #155e75;
}

.subscription-alert-success {
    background: #dcfce7;
    border-color: #86efac;
}

.subscription-alert-warning {
    background: #fef3c7;
    border-color: #fbbf24;
}

.subscription-alert-danger {
    background: #fee2e2;
    border-color: #fca5a5;
}

.usage-limit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.usage-limit-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: #ffffff;
}

.usage-limit-card span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 6px;
}

.usage-limit-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.pricing-card {
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.payment-form {
    margin-top: 16px;
}

.payment-form .form-group {
    margin-bottom: 14px;
}

.payment-form label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.payment-form input,
.payment-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.payment-form small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}
.subscription-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    margin: 18px 0;
    border: 1px solid #dbeafe;
    background: #eff6ff;
}

.subscription-alert strong {
    font-weight: 900;
}

.subscription-alert a {
    font-weight: 900;
    color: #2563eb;
    text-decoration: none;
}

.subscription-alert-success {
    background: #ecfdf5;
    border-color: #86efac;
}

.subscription-alert-warning {
    background: #fffbeb;
    border-color: #facc15;
}

.subscription-alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
}

.locked-feature-card {
    padding: 24px;
    border-radius: 24px;
    background: #fff7ed;
    border: 1px solid #fdba74;
}
.pricing-page,
.checkout-page,
.locked-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.pricing-hero,
.checkout-header,
.locked-card {
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.pricing-hero h1,
.checkout-header h2,
.locked-card h2 {
    margin: 8px 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.pricing-hero p,
.checkout-header p,
.locked-card p {
    color: #475569;
    max-width: 760px;
}

.pricing-section {
    margin-top: 32px;
}

.pricing-grid,
.checkout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pricing-card,
.checkout-plan-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.pricing-card h3,
.checkout-plan-card h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin: 10px 0;
}

.pricing-audience {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 6px 10px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 18px 0 8px;
}

.pricing-amount strong {
    font-size: 2rem;
    color: #0f172a;
}

.pricing-duration-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #475569;
    font-weight: 700;
    margin-bottom: 14px;
}

.pricing-best-for {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 12px;
    border-radius: 14px;
    color: #334155;
    font-weight: 700;
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-feature-list li {
    color: #334155;
    font-weight: 700;
}

.pricing-feature-list li::before {
    content: "✓";
    color: #16a34a;
    font-weight: 900;
    margin-right: 8px;
}

.compact-feature-list {
    font-size: 0.92rem;
}

.plan-limits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.plan-limits-row span {
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
    border-radius: 999px;
    padding: 6px 10px;
}

.checkout-plan-card label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 900;
    color: #1e293b;
}

.checkout-plan-card select,
.checkout-plan-card input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
}

.payment-btn,
.pricing-btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
}

.locked-page {
    display: flex;
    justify-content: center;
}

.locked-card {
    width: min(780px, 100%);
}

.locked-help-box {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 18px;
    margin: 18px 0;
}

.locked-help-box h3 {
    margin-top: 0;
    color: #0f172a;
}

.locked-help-box li {
    margin: 8px 0;
    color: #334155;
    font-weight: 700;
}

.locked-reason {
    margin-top: 16px;
    font-size: 0.92rem;
}

.billing-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 900;
}

.billing-status-good {
    background: #dcfce7;
    color: #166534;
}

.billing-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.billing-status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.billing-status-muted {
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 980px) {
    .pricing-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero,
    .checkout-header,
    .locked-card {
        padding: 22px;
    }
}
.testing-panel {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.testing-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
}

.testing-card h4 {
    margin-top: 0;
    color: #0f172a;
}

.testing-card label {
    display: block;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 6px;
}

.testing-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    margin-bottom: 12px;
}

.danger-testing-card {
    background: #fff1f2;
    border-color: #fecdd3;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.testing-checklist {
    display: grid;
    gap: 14px;
}

.testing-check-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
}

.testing-check-item strong {
    display: block;
    color: #0f172a;
    margin-bottom: 6px;
}

.testing-check-item p {
    margin: 0;
    color: #475569;
}

@media (max-width: 900px) {
    .testing-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 3I — Manual Subscription Control / Testing Tools */

.testing-panel {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.testing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.testing-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
}

.testing-card h4 {
    margin-top: 0;
    color: #0f172a;
}

.testing-card label {
    display: block;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 6px;
}

.testing-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    margin-bottom: 12px;
}

.danger-testing-card {
    background: #fff1f2;
    border-color: #fecdd3;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    background: #dc2626;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.testing-checklist {
    display: grid;
    gap: 14px;
}

.testing-check-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
}

.testing-check-item strong {
    display: block;
    color: #0f172a;
    margin-bottom: 6px;
}

.testing-check-item p {
    margin: 0;
    color: #475569;
}

@media (max-width: 900px) {
    .testing-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   Step 4A — BrainDesk Learning Adventure Dashboard
   ============================================================ */

.learner-adventure-hero {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.20), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe5ff;
    border-radius: 32px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 26px;
    align-items: stretch;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.learner-adventure-copy h2 {
    margin: 12px 0 10px;
    color: #06142e;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.learner-adventure-copy p {
    color: #475569;
    line-height: 1.75;
    max-width: 760px;
    font-size: 1.05rem;
}

.learner-hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.learner-hero-meta span {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 12px;
    color: #334155;
    font-weight: 900;
    font-size: 0.85rem;
}

.learner-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.zone-early {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #fff7fb 100%);
}

.zone-lower-primary {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fff9 100%);
}

.zone-upper-primary {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
}

.zone-jhs {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #faf7ff 100%);
}

.adventure-progress-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dbeafe;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.adventure-label,
.mission-label {
    display: inline-flex;
    background: #06142e;
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 900;
}

.adventure-progress-card h3 {
    margin: 14px 0 8px;
    color: #06142e;
    font-size: 1.6rem;
}

.adventure-progress-card p {
    color: #64748b;
    line-height: 1.6;
}

.adventure-progress-track {
    height: 14px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0;
}

.adventure-progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #315efb, #22c55e, #facc15);
    border-radius: 999px;
}

.adventure-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.adventure-mini-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
    text-align: center;
}

.adventure-mini-grid strong {
    display: block;
    color: #06142e;
    font-size: 1.2rem;
}

.adventure-mini-grid span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-top: 5px;
    font-size: 0.82rem;
}

.today-mission-panel {
    margin: 24px 0;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.today-mission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.today-mission-card {
    background:
        radial-gradient(circle at top right, rgba(49, 94, 251, 0.10), transparent 34%),
        #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
}

.mission-top-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.mission-emoji {
    font-size: 2rem;
}

.mission-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.75rem;
    font-weight: 900;
}

.mission-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.mission-done {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mission-open {
    background: #eef4ff;
    color: #315cff;
    border: 1px solid #c7d7fe;
}

.today-mission-card h4 {
    margin: 14px 0 8px;
    color: #06142e;
    font-size: 1.1rem;
}

.today-mission-card p {
    color: #64748b;
    line-height: 1.55;
    min-height: 48px;
}

.quick-action-section {
    max-width: none;
    padding: 0;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.quick-action-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: #315efb;
    box-shadow: 0 18px 44px rgba(49, 94, 251, 0.12);
}

.quick-action-emoji {
    font-size: 2.2rem;
}

.quick-action-card h4 {
    color: #06142e;
    margin: 14px 0 8px;
    font-size: 1.1rem;
}

.quick-action-card p {
    color: #64748b;
    line-height: 1.55;
    flex: 1;
}

.quick-action-card strong {
    color: #315efb;
    font-weight: 900;
}

.quick-action-locked {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 35%),
        #ffffff;
    border-color: #fde68a;
}

.quick-action-locked strong {
    color: #c2410c;
}

@media (max-width: 1100px) {
    .learner-adventure-hero {
        grid-template-columns: 1fr;
    }

    .today-mission-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 650px) {
    .learner-adventure-hero,
    .today-mission-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .learner-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .learner-hero-actions a {
        width: 100%;
        text-align: center;
    }

    .adventure-mini-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-card {
        min-height: auto;
    }
}
/* ============================================================
   Step 4B — Learning Zones by Level
   ============================================================ */

.zone-page {
    padding-top: 42px;
}

.zone-hero {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.zone-hero h2 {
    margin: 14px 0 12px;
    color: #06142e;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.zone-hero p {
    color: #475569;
    line-height: 1.75;
    max-width: 760px;
    font-size: 1.06rem;
}

.zone-hero-play {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #fff7fb 100%);
}

.zone-hero-foundation {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fff9 100%);
}

.zone-hero-smart {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
}

.zone-hero-exam {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.14), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #faf7ff 100%);
}

.zone-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.zone-hero-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dbeafe;
    border-radius: 26px;
    padding: 24px;
    display: grid;
    gap: 12px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.zone-hero-card strong {
    color: #06142e;
    font-size: 1.15rem;
    font-weight: 900;
}

.zone-hero-card span {
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 800;
}

.zone-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.zone-feature-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.zone-feature-card span {
    font-size: 2.4rem;
}

.zone-feature-card h3 {
    color: #06142e;
    margin: 14px 0 8px;
    font-size: 1.35rem;
}

.zone-feature-card p {
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.zone-topic-card {
    min-height: 270px;
}

.zone-topic-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.zone-topic-column {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.zone-topic-column h4 {
    color: #06142e;
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.zone-mini-topic-link {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.zone-mini-topic-link:hover {
    transform: translateY(-2px);
    border-color: #315efb;
}

.zone-mini-topic-link strong {
    display: block;
    color: #06142e;
    margin-bottom: 5px;
}

.zone-mini-topic-link span {
    color: #64748b;
    font-weight: 800;
    font-size: 0.88rem;
}

@media (max-width: 1050px) {
    .zone-hero,
    .zone-feature-grid,
    .zone-topic-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .zone-page {
        padding-top: 26px;
    }

    .zone-hero {
        padding: 24px;
        border-radius: 26px;
    }

    .zone-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .zone-hero-actions a {
        width: 100%;
        text-align: center;
    }

    .zone-feature-card,
    .zone-topic-column {
        padding: 20px;
    }
}

/* Step 4C — Brain Games Foundation */

.brain-games-page,
.brain-game-play-page,
.brain-game-result-page {
    padding-top: 42px;
}

.brain-games-hero,
.game-play-hero,
.game-result-hero {
    background: radial-gradient(circle at top right, rgba(49, 94, 251, 0.14), transparent 30%), radial-gradient(circle at bottom left, rgba(250, 204, 21, 0.18), transparent 32%), linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.game-play-hero,
.game-result-hero {
    grid-template-columns: 1fr auto;
}

.brain-games-hero h2,
.game-play-hero h2,
.game-result-hero h2 {
    margin: 14px 0 12px;
    color: #06142e;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.brain-games-hero p,
.game-play-hero p,
.game-result-hero p {
    color: #475569;
    line-height: 1.75;
    max-width: 760px;
    font-size: 1.06rem;
}

.brain-game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.brain-game-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    padding: 26px;
    min-height: 300px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.brain-game-card:hover {
    transform: translateY(-4px);
    border-color: #315efb;
    box-shadow: 0 22px 50px rgba(49, 94, 251, 0.12);
}

.game-tag {
    align-self: flex-start;
    background: #eef4ff;
    color: #315efb;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
    font-size: 0.78rem;
}

.brain-game-emoji {
    font-size: 3rem;
    margin: 18px 0 8px;
}

.brain-game-card h3 {
    color: #06142e;
    font-size: 1.45rem;
    margin: 0 0 10px;
}

.brain-game-card p {
    color: #64748b;
    line-height: 1.65;
    flex: 1;
}

.brain-game-card strong {
    color: #315efb;
    font-weight: 900;
}

.brain-game-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.brain-game-question-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.game-question-count {
    display: inline-flex;
    background: #06142e;
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 900;
    font-size: 0.78rem;
}

.brain-game-question-card h3 {
    color: #06142e;
    margin: 16px 0;
    font-size: 1.25rem;
    line-height: 1.45;
}

.game-option-grid,
.true-false-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.game-option-grid label,
.true-false-grid label {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    color: #334155;
    font-weight: 800;
    cursor: pointer;
}

.shown-answer-box {
    background: #eef4ff;
    border: 1px solid #c7d7fe;
    border-radius: 18px;
    padding: 18px;
    margin: 16px 0;
}

.shown-answer-box span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 6px;
}

.shown-answer-box strong {
    display: block;
    color: #06142e;
    font-size: 1.2rem;
}

.true-option {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.false-option {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.game-submit-row,
.game-result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.game-score-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.game-score-card strong {
    display: block;
    color: #06142e;
    font-size: 3rem;
    line-height: 1;
}

.game-score-card span {
    color: #64748b;
    font-weight: 900;
    margin-top: 10px;
    display: block;
}

.game-review-list {
    display: grid;
    gap: 14px;
}

.game-review-card {
    border-radius: 22px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.review-correct {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.review-wrong {
    border-color: #fecaca;
    background: #fff7f7;
}

.review-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 11px;
    background: #ffffff;
    font-weight: 900;
    color: #06142e;
    margin-bottom: 10px;
}

.game-review-card h4 {
    color: #06142e;
    margin: 8px 0 12px;
    font-size: 1.1rem;
}

.game-review-card p {
    color: #475569;
    margin: 6px 0;
}

.review-note {
    margin-top: 12px !important;
    padding: 12px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    font-weight: 800;
}

@media (max-width: 950px) {
    .brain-games-hero,
    .game-play-hero,
    .game-result-hero,
    .brain-game-grid,
    .game-option-grid,
    .true-false-grid {
        grid-template-columns: 1fr;
    }

    .game-submit-row,
    .game-result-actions {
        justify-content: stretch;
    }

    .game-submit-row button,
    .game-result-actions a {
        width: 100%;
        text-align: center;
    }
}
/* ============================================================
   Step 4C-2 — Brain Games Progress Tracking
   ============================================================ */

.brain-game-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.brain-game-dashboard-panel,
.brain-game-home-summary {
    background:
        radial-gradient(circle at top right, rgba(49, 94, 251, 0.08), transparent 28%),
        #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.game-badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.game-badge-row span {
    background: #eef4ff;
    color: #315efb;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 0.85rem;
}

.compact-game-list {
    margin-top: 18px;
}

.game-score-card small {
    display: block;
    margin-top: 12px;
    color: #315efb;
    font-weight: 900;
}

.brain-game-history-page .history-filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.brain-game-history-page .history-filter-form select {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 240px;
    color: #06142e;
    font-weight: 800;
    background: #ffffff;
}

.pagination-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.pagination-row span {
    color: #475569;
    font-weight: 900;
}

@media (max-width: 900px) {
    .brain-game-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .brain-game-summary-grid {
        grid-template-columns: 1fr;
    }

    .brain-game-history-page .history-filter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .brain-game-history-page .history-filter-form select,
    .brain-game-history-page .history-filter-form button {
        width: 100%;
    }
}
/* ============================================================
   Step 4D — Stories & Reading Corner
   ============================================================ */

.story-corner-page,
.story-read-page,
.story-result-page,
.story-history-page {
    padding-top: 42px;
}

.story-hero,
.story-read-hero {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.18), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.story-read-hero {
    grid-template-columns: 1fr auto;
}

.story-hero h2,
.story-read-hero h2 {
    margin: 14px 0 12px;
    color: #06142e;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.story-hero p,
.story-read-hero p {
    color: #475569;
    line-height: 1.75;
    max-width: 760px;
    font-size: 1.06rem;
}

.story-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.story-feature-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.story-feature-card span {
    font-size: 2.4rem;
}

.story-feature-card h3 {
    color: #06142e;
    margin: 14px 0 8px;
    font-size: 1.35rem;
}

.story-feature-card p {
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.story-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    padding: 26px;
    min-height: 300px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: #315efb;
    box-shadow: 0 22px 50px rgba(49, 94, 251, 0.12);
}

.story-emoji {
    font-size: 3rem;
    margin-bottom: 12px;
}

.story-card h3 {
    color: #06142e;
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.story-card p {
    color: #64748b;
    line-height: 1.65;
    flex: 1;
}

.story-meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.story-meta-row span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 7px 10px;
    color: #475569;
    font-weight: 900;
    font-size: 0.82rem;
}

.story-card strong {
    color: #315efb;
    font-weight: 900;
}

.story-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 20px;
    margin: 26px 0;
}

.story-body-card,
.story-side-card,
.story-result-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.story-body-card h3,
.story-side-card h3,
.story-result-card h3 {
    color: #06142e;
    margin: 0 0 16px;
    font-size: 1.35rem;
}

.story-body-text {
    color: #243047;
    font-size: 1.08rem;
    line-height: 1.95;
}

.story-vocab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.story-vocab-list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    color: #334155;
    font-weight: 800;
}

.moral-box {
    margin-top: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    padding: 16px;
}

.moral-box h4 {
    margin: 0 0 8px;
    color: #9a3412;
}

.moral-box p {
    margin: 0;
    color: #7c2d12;
    line-height: 1.65;
}

.story-question-form {
    display: grid;
    gap: 18px;
}

.story-question-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.story-question-card h4 {
    color: #06142e;
    margin: 16px 0;
    font-size: 1.15rem;
    line-height: 1.45;
}

.story-result-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 24px 0;
}

.story-dashboard-panel {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 28%),
        #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

@media (max-width: 1000px) {
    .story-hero,
    .story-read-hero,
    .story-feature-grid,
    .story-grid,
    .story-layout,
    .story-result-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .story-corner-page,
    .story-read-page,
    .story-result-page,
    .story-history-page {
        padding-top: 26px;
    }

    .story-hero,
    .story-read-hero,
    .story-body-card,
    .story-side-card,
    .story-result-card,
    .story-question-card {
        padding: 22px;
        border-radius: 24px;
    }

    .story-card {
        min-height: auto;
    }
}
/* ============================================================
   Step 4E — Parent Progress Dashboard Upgrade
   ============================================================ */

.parent-progress-upgrade {
    padding-top: 42px;
}

.parent-hero-upgrade {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.parent-weekly-section {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.14), transparent 30%),
        #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.parent-weekly-grid,
.child-progress-stats,
.parent-mini-progress-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.parent-child-grid {
    display: grid;
    gap: 24px;
}

.child-progress-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.child-progress-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.child-progress-header h3 {
    color: #06142e;
    margin: 12px 0 4px;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.child-progress-header p {
    color: #64748b;
    margin: 0;
    font-weight: 800;
}

.child-progress-stats > div,
.parent-mini-progress-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
}

.child-progress-stats span,
.child-progress-stats small {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: 0.85rem;
}

.child-progress-stats strong,
.parent-mini-progress-card strong {
    display: block;
    color: #06142e;
    font-size: 1.4rem;
    margin: 8px 0;
}

.parent-mini-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-mini-progress-card h4 {
    color: #06142e;
    margin: 0 0 10px;
}

.parent-mini-progress-card p {
    color: #64748b;
    margin: 6px 0;
    font-weight: 700;
}

.child-section-block {
    margin-top: 22px;
}

.child-section-block h4 {
    color: #06142e;
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.parent-tip-list,
.weak-topic-list,
.subject-mini-list,
.mini-activity-list,
.certificate-mini-list {
    display: grid;
    gap: 10px;
}

.parent-tip-card,
.weak-topic-pill,
.subject-mini-list > div,
.mini-activity-list > div,
.certificate-mini-list > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px 14px;
}

.parent-tip-card strong,
.weak-topic-pill strong,
.subject-mini-list strong,
.mini-activity-list strong,
.certificate-mini-list strong {
    display: block;
    color: #06142e;
    margin-bottom: 4px;
}

.parent-tip-card span,
.weak-topic-pill span,
.subject-mini-list span,
.mini-activity-list span,
.certificate-mini-list span {
    display: block;
    color: #64748b;
    font-weight: 700;
}

.two-column-child-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.parent-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.parent-badge-row span {
    background: #eef4ff;
    color: #315efb;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 0.85rem;
}

.compact-parent-list .attempt-row {
    grid-template-columns: 1.2fr 0.6fr;
}

@media (max-width: 1050px) {
    .parent-weekly-grid,
    .child-progress-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .parent-mini-progress-grid,
    .two-column-child-block,
    .compact-parent-list .attempt-row {
        grid-template-columns: 1fr;
    }

    .child-progress-header {
        display: grid;
    }

    .child-progress-header .secondary-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .parent-progress-upgrade {
        padding-top: 26px;
    }

    .parent-hero-upgrade,
    .child-progress-card {
        padding: 22px;
        border-radius: 24px;
    }

    .parent-weekly-grid,
    .child-progress-stats {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   Step 4E-2 — Child Full Progress Report Upgrade
   ============================================================ */

.child-full-report-page {
    padding-top: 42px;
}

.child-report-hero {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 26px;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.child-report-hero h2 {
    color: #06142e;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin: 14px 0 10px;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.child-report-hero p {
    color: #475569;
    line-height: 1.7;
    max-width: 760px;
}

.child-report-summary-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 24px;
    display: grid;
    gap: 10px;
}

.child-report-summary-card strong {
    color: #06142e;
    font-size: 1.25rem;
}

.child-report-summary-card span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 12px;
    color: #334155;
    font-weight: 800;
}

.child-report-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.child-report-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.child-report-panel {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.child-report-card-list {
    display: grid;
    gap: 10px;
}

.mock-readiness-card {
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.mock-readiness-card strong {
    color: #06142e;
    display: block;
    font-size: 1.15rem;
}

.mock-readiness-card p,
.mock-readiness-card span {
    color: #64748b;
    margin: 6px 0 0;
    font-weight: 700;
}

.mock-readiness-card.readiness-ready {
    background: #ecfdf5;
    border-color: #86efac;
}

.mock-readiness-card.readiness-almost {
    background: #fefce8;
    border-color: #fde68a;
}

.mock-readiness-card.readiness-revision {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.mock-readiness-card.readiness-practice {
    background: #fff7ed;
    border-color: #fed7aa;
}

.child-learning-timeline {
    display: grid;
    gap: 12px;
}

.timeline-row {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.timeline-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #eef4ff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}

.timeline-row strong {
    display: block;
    color: #06142e;
}

.timeline-row span {
    display: block;
    color: #64748b;
    font-weight: 700;
    margin-top: 4px;
}

.child-certificate-list {
    margin-top: 18px;
}

@media (max-width: 1050px) {
    .child-report-hero,
    .child-report-stat-grid,
    .child-report-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .child-full-report-page {
        padding-top: 26px;
    }

    .child-report-hero,
    .child-report-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .timeline-row,
    .mock-readiness-card {
        grid-template-columns: 1fr;
        display: grid;
    }
}
/* ============================================================
   Step 4E-3 — Printable Parent Child Report
   ============================================================ */

.print-report-page {
    padding: 42px 0;
}

.print-toolbar {
    max-width: 980px;
    margin: 0 auto 18px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.print-report-sheet {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    color: #06142e;
}

.print-report-header {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.print-brand-row strong {
    display: block;
    color: #06142e;
    font-size: 1.3rem;
}

.print-brand-row span {
    color: #64748b;
    font-weight: 700;
}

.print-report-header h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 18px 0 8px;
    letter-spacing: -0.04em;
}

.print-report-header p {
    color: #64748b;
    margin: 0;
}

.print-report-badge {
    background: #eef4ff;
    border: 1px solid #c7d7fe;
    border-radius: 22px;
    padding: 22px;
    text-align: center;
}

.print-report-badge strong {
    display: block;
    font-size: 1.2rem;
    color: #315efb;
}

.print-report-badge span {
    display: block;
    margin-top: 8px;
    color: #06142e;
    font-weight: 900;
    font-size: 1.15rem;
}

.print-child-info {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    margin-bottom: 22px;
}

.print-child-info > div,
.print-note-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
}

.print-child-info h2,
.print-child-info h3,
.print-note-box h3 {
    margin: 0 0 10px;
    color: #06142e;
}

.print-child-info p,
.print-note-box p {
    color: #475569;
    line-height: 1.65;
    margin: 6px 0;
}

.print-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.print-summary-grid > div {
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
}

.print-summary-grid span {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: 0.86rem;
}

.print-summary-grid strong {
    display: block;
    color: #06142e;
    margin-top: 8px;
    font-size: 1.45rem;
}

.print-summary-grid small {
    display: block;
    color: #64748b;
    margin-top: 6px;
    font-weight: 700;
}

.print-section {
    margin-top: 24px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.print-section h2 {
    color: #06142e;
    margin: 0 0 12px;
    font-size: 1.35rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.print-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.print-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.print-list li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
}

.print-list strong,
.print-list span {
    display: block;
}

.print-list span {
    color: #475569;
    margin-top: 5px;
    line-height: 1.55;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.print-table th,
.print-table td {
    border: 1px solid #dbeafe;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.print-table th {
    background: #eef4ff;
    color: #06142e;
}

.print-table td {
    color: #334155;
}

.print-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.print-badge-row span {
    background: #eef4ff;
    color: #315efb;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 900;
    font-size: 0.82rem;
}

.print-report-footer {
    border-top: 2px solid #e2e8f0;
    margin-top: 30px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 900px) {
    .print-report-header,
    .print-child-info,
    .print-summary-grid,
    .print-two-column {
        grid-template-columns: 1fr;
    }

    .print-report-sheet {
        padding: 28px;
    }
}

@media print {
    body {
        background: #ffffff !important;
    }

    header,
    footer.site-footer,
    .site-footer,
    .navbar,
    .nav,
    .no-print,
    .messages,
    .print-toolbar {
        display: none !important;
    }

    .page-shell,
    .dashboard-page,
    .print-report-page {
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
    }

    .print-report-sheet {
        max-width: 100% !important;
        width: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .print-report-header {
        margin-top: 0;
    }

    .print-section,
    .print-two-column,
    .print-summary-grid,
    .print-child-info {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-table th {
        background: #f1f5f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-note-box,
    .print-summary-grid > div,
    .print-list li {
        background: #f8fafc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        size: A4;
        margin: 14mm;
    }
}
.certificate-center-page {
    padding-top: 42px;
}

.certificate-center-hero {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fffdf4 100%);
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 26px;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.certificate-center-hero h2 {
    color: #06142e;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin: 14px 0 10px;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.certificate-center-hero p {
    color: #475569;
    line-height: 1.7;
    max-width: 760px;
}

.certificate-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.certificate-list-section {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.certificate-list {
    display: grid;
    gap: 12px;
}

.certificate-row-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr auto;
    gap: 14px;
    align-items: center;
}

.certificate-row-card strong {
    display: block;
    color: #06142e;
}

.certificate-row-card span {
    display: block;
    color: #64748b;
    margin-top: 4px;
    font-weight: 700;
}

.print-certificate-page {
    padding: 42px 0;
}

.certificate-sheet {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.certificate-border {
    border: 8px double #315efb;
    border-radius: 28px;
    min-height: 680px;
    padding: 46px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certificate-gold .certificate-border {
    border-color: #d97706;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.certificate-silver .certificate-border {
    border-color: #64748b;
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.16), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.certificate-bronze .certificate-border {
    border-color: #b45309;
    background:
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.certificate-brand {
    color: #06142e;
    font-weight: 1000;
    font-size: 1.7rem;
}

.certificate-subtitle {
    color: #64748b;
    font-weight: 800;
    margin-top: 6px;
}

.certificate-icon {
    font-size: 5rem;
    margin: 26px 0 12px;
}

.certificate-sheet h1 {
    color: #06142e;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    margin: 0;
    letter-spacing: -0.05em;
}

.certificate-awarded {
    color: #64748b;
    font-weight: 800;
    margin: 26px 0 8px;
}

.certificate-sheet h2 {
    color: #315efb;
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0 0 18px;
    letter-spacing: -0.04em;
}

.certificate-body {
    color: #334155;
    font-size: 1.25rem;
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto;
}

.certificate-message {
    color: #06142e;
    font-weight: 900;
    margin: 22px auto;
    max-width: 700px;
}

.certificate-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.certificate-meta div {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 14px;
}

.certificate-meta span {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: 0.85rem;
}

.certificate-meta strong {
    display: block;
    color: #06142e;
    margin-top: 6px;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #dbeafe;
    padding-top: 16px;
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 900px) {
    .certificate-center-hero,
    .certificate-summary-grid,
    .certificate-row-card,
    .certificate-meta {
        grid-template-columns: 1fr;
    }

    .certificate-border {
        padding: 28px;
        min-height: auto;
    }

    .certificate-footer {
        display: grid;
        text-align: center;
    }
}

@media print {
    .print-toolbar,
    .no-print,
    header,
    footer.site-footer,
    .site-footer,
    .navbar,
    .nav,
    .messages {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .print-certificate-page {
        padding: 0 !important;
        margin: 0 !important;
    }

    .certificate-sheet {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .certificate-border {
        min-height: 92vh;
        border-width: 6px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        size: A4 landscape;
        margin: 12mm;
    }
}
/* ============================================================
   Step 4F-2 — Certificate Records + Verification
   ============================================================ */

.certificate-row-card small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.78rem;
}

.certificate-verification-box {
    max-width: 640px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px dashed #315efb;
    border-radius: 18px;
    padding: 16px;
}

.certificate-verification-box span {
    display: block;
    color: #64748b;
    font-weight: 900;
    font-size: 0.85rem;
}

.certificate-verification-box strong {
    display: block;
    color: #06142e;
    margin-top: 6px;
    font-size: 1rem;
    word-break: break-word;
}

.certificate-verification-box small {
    display: block;
    color: #64748b;
    margin-top: 6px;
}

.certificate-verify-page {
    padding-top: 42px;
}

.certificate-verify-form {
    display: grid;
    gap: 10px;
}

.certificate-verify-form label {
    color: #06142e;
    font-weight: 900;
}

.certificate-verify-form > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.certificate-verify-form input {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 13px 14px;
    color: #06142e;
    font-weight: 800;
    background: #ffffff;
}

.certificate-valid-card,
.certificate-invalid-card {
    margin-top: 22px;
    border-radius: 22px;
    padding: 22px;
}

.certificate-valid-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.certificate-invalid-card {
    background: #fff7f7;
    border: 1px solid #fecaca;
}

.certificate-valid-card span,
.certificate-invalid-card span {
    display: inline-flex;
    font-weight: 1000;
    margin-bottom: 10px;
}

.certificate-valid-card h3 {
    color: #06142e;
    margin: 0 0 12px;
}

.certificate-valid-card p,
.certificate-invalid-card p {
    color: #475569;
    margin: 8px 0;
}

.certificate-gold .certificate-border,
.certificate-sheet.certificate-gold .certificate-border {
    border-color: #d97706;
}

.certificate-silver .certificate-border,
.certificate-sheet.certificate-silver .certificate-border {
    border-color: #64748b;
}

.certificate-bronze .certificate-border,
.certificate-sheet.certificate-bronze .certificate-border {
    border-color: #b45309;
}

@media (max-width: 700px) {
    .certificate-verify-form > div {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   Step 4G — Public Homepage Upgrade
   ============================================================ */

.public-hero-upgraded {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(250, 204, 21, 0.18), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.upgraded-demo-card {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 32%),
        #ffffff;
}

.public-zone-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.public-zone-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 35px rgba(16, 24, 40, 0.05);
}

.public-zone-card span {
    font-size: 2.8rem;
}

.public-zone-card h3 {
    color: #06142e;
    margin: 16px 0 10px;
    font-size: 1.35rem;
}

.public-zone-card p {
    color: #64748b;
    line-height: 1.7;
}

.public-zone-card strong {
    display: inline-flex;
    margin-top: 10px;
    color: #315cff;
    background: #eef4ff;
    border: 1px solid #c7d7fe;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 0.82rem;
    font-weight: 900;
}

.zone-card-play {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 32%),
        #ffffff;
}

.zone-card-foundation {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 32%),
        #ffffff;
}

.zone-card-smart {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 32%),
        #ffffff;
}

.zone-card-exam {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 32%),
        #ffffff;
}

.public-feature-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-section-action {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.public-story-preview {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 20px;
    align-items: stretch;
}

.public-story-card,
.public-story-benefits > div {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 35px rgba(16, 24, 40, 0.05);
}

.public-story-card h3 {
    color: #06142e;
    margin: 14px 0 10px;
    font-size: 1.45rem;
}

.public-story-card p {
    color: #64748b;
    line-height: 1.7;
}

.public-story-benefits {
    display: grid;
    gap: 14px;
}

.public-story-benefits strong {
    display: block;
    color: #06142e;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.public-story-benefits span {
    display: block;
    color: #64748b;
    line-height: 1.6;
}

.public-certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.public-certificate-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 16px 35px rgba(16, 24, 40, 0.05);
}

.public-certificate-card span {
    font-size: 3.5rem;
}

.public-certificate-card h3 {
    color: #06142e;
    margin: 14px 0 10px;
    font-size: 1.4rem;
}

.public-certificate-card p {
    color: #64748b;
    line-height: 1.6;
}

.public-parent-grid {
    display: grid;
    gap: 14px;
}

.school-value-card {
    min-height: 320px;
}

@media (max-width: 1050px) {
    .public-zone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-story-preview,
    .public-feature-grid-three,
    .public-certificate-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .public-zone-grid {
        grid-template-columns: 1fr;
    }

    .public-zone-card,
    .public-story-card,
    .public-story-benefits > div,
    .public-certificate-card {
        padding: 20px;
        border-radius: 22px;
    }

    .public-section-action {
        display: grid;
        grid-template-columns: 1fr;
    }

    .public-section-action a {
        width: 100%;
        text-align: center;
    }
}
.selected-checkout-plan {
    border: 2px solid #2563eb;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
    position: relative;
}

.checkout-price-preview {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.checkout-price-preview strong {
    display: block;
    font-size: 1.3rem;
    color: #111827;
}

.checkout-price-preview span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* =========================================================
BrainDesk Kids - Clean Header / Admin Menu Polish
========================================================= */

.site-header {
background: #ffffff;
border-bottom: 1px solid #e5e7eb;
position: sticky;
top: 0;
z-index: 1000;
}

.header-inner {
width: min(1180px, calc(100% - 32px));
margin: 0 auto;
padding: 14px 0;
display: flex;
align-items: center;
gap: 24px;
}

.brand {
flex: 0 0 auto;
min-width: 230px;
}

.brand-link {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: #020617;
}

.brand-logo {
width: 46px;
height: 46px;
object-fit: contain;
}

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

.brand p {
margin: 4px 0 0;
font-size: 13px;
color: #64748b;
white-space: nowrap;
}

.nav-links {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
overflow-x: auto;
white-space: nowrap;
padding: 6px 0;
scrollbar-width: thin;
}

.nav-links a {
display: inline-flex;
align-items: center;
text-decoration: none;
font-weight: 800;
font-size: 14px;
color: #020617;
padding: 10px 12px;
border-radius: 999px;
transition: 0.2s ease;
}

.nav-links a {
color: #2563eb;
background: #eff6ff;
}

.logout-form {
flex: 0 0 auto;
margin-left: 8px;
}

.logout-form button {
border: none;
background: #020617;
color: #ffffff;
padding: 12px 22px;
border-radius: 999px;
font-weight: 900;
cursor: pointer;
}

.logout-form button {
background: #1e293b;
}

.nav-links::-webkit-scrollbar {
height: 5px;
}

.nav-links::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 999px;
}

@media (max-width: 900px) {
.header-inner {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}

.brand {
    min-width: 0;
}

.nav-links {
    width: 100%;
    max-width: 100%;
}

.logout-form {
    margin-left: 0;
}

}
/* =========================================================
   BrainDesk Kids Header/Menu Overflow Fix
   Keeps long admin menus visible instead of cutting them off
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e4ebff;
}

.app-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    flex: 0 0 auto;
    min-width: 230px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo {
    flex: 0 0 auto;
}

.app-nav-links {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0.35rem 0.2rem;
    scrollbar-width: thin;
}

.app-nav-links::-webkit-scrollbar {
    height: 6px;
}

.app-nav-links::-webkit-scrollbar-track {
    background: #eef4ff;
    border-radius: 999px;
}

.app-nav-links::-webkit-scrollbar-thumb {
    background: #b9c8f5;
    border-radius: 999px;
}

.app-nav-links a,
.app-nav-links .logout-form button {
    flex: 0 0 auto;
}

.logout-form {
    flex: 0 0 auto;
    margin: 0;
}

.logout-form button {
    white-space: nowrap;
}

/* Make admin menu buttons slightly smaller so more items fit */
.app-nav-links a {
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
}

/* Keep logout visible and neat */
.app-nav-links .logout-form button {
    padding: 0.75rem 1.1rem;
    font-size: 0.88rem;
}

/* Medium screens */
@media (max-width: 1050px) {
    .app-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .brand {
        min-width: 0;
        width: 100%;
    }

    .app-nav-links {
        width: 100%;
    }
}

/* Small screens */
@media (max-width: 700px) {
    .app-header-inner {
        padding: 0.75rem;
    }

    .brand-link h1 {
        font-size: 1.1rem;
    }

    .brand-link p {
        font-size: 0.75rem;
    }

    .app-nav-links a,
    .app-nav-links .logout-form button {
        padding: 0.6rem 0.8rem;
        font-size: 0.82rem;
    }
}
.import-validation{

margin:20px 0;

}

.validation{

padding:16px;
border-radius:12px;
font-weight:600;
text-align:center;

}

.validation.waiting{

background:#eef4ff;
color:#3455ff;

}

.validation.success{

background:#e8f9ef;
color:#1c8b4d;

}

.validation.warning{

background:#fff7df;
color:#b97700;

}
.preview-area{

margin-top:30px;
padding:20px;
border:1px solid #dfe6ff;
border-radius:16px;
background:white;

}

.preview-placeholder{

padding:30px;
text-align:center;
color:#888;

}

.preview-table{

width:100%;
border-collapse:collapse;

}

.preview-table th{

background:#f6f8ff;
padding:12px;
text-align:left;

}

.preview-table td{

padding:12px;
border-top:1px solid #ececec;

}

.status-good{

color:#0c8d42;
font-weight:bold;

}

.status-warning{

color:#d98300;
font-weight:bold;

}
.jhs-focus-panel,
.jhs-exam-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.jhs-focus-panel {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 55%, #fff7ed 100%);
}

.jhs-focus-copy h3,
.jhs-exam-panel h3 {
    margin: 8px 0;
    color: #0f172a;
    font-size: 1.45rem;
}

.jhs-focus-copy p,
.jhs-exam-panel p {
    color: #475569;
    max-width: 720px;
    line-height: 1.6;
}

.jhs-focus-actions,
.jhs-exam-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .jhs-focus-panel,
    .jhs-exam-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .jhs-focus-actions,
    .jhs-exam-actions {
        justify-content: flex-start;
    }
}
.dashboard-insight-section {
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
    margin-bottom: 22px;
}

.compact-empty-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.compact-empty-box h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1rem;
}

.compact-empty-box p {
    margin: 0 0 10px;
    color: #64748b;
    line-height: 1.5;
}

.empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.insight-empty-box {
    margin-top: 12px;
}

.improved-analytics-card,
.improved-attempt-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.improved-attempt-row {
    border-radius: 16px;
}

.status-completed {
    color: #15803d;
}

.status-pending {
    color: #b45309;
}

@media (max-width: 760px) {
    .compact-empty-box {
        flex-direction: column;
    }
}
.jhs-subject-groups {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.jhs-subject-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.jhs-subject-group-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.jhs-subject-group-header h4 {
    margin: 7px 0 4px;
    color: #0f172a;
    font-size: 1.1rem;
}

.jhs-subject-group-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.jhs-subject-grid {
    margin-top: 12px;
}

.jhs-subject-card {
    min-height: 250px;
}

@media (max-width: 760px) {
    .jhs-subject-group {
        padding: 14px;
    }

    .jhs-subject-card {
        min-height: auto;
    }
}
/* JHS grouped subject area polish */
.jhs-subject-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.jhs-subject-group-header {
    margin-bottom: 16px;
}

.jhs-subject-group-header h4 {
    margin: 6px 0 4px;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
}

.jhs-subject-group-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.jhs-subject-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.jhs-subject-grid .topic-card-link {
    height: 100%;
    text-decoration: none;
}

.jhs-subject-grid .subject-card {
    height: 100%;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px;
}

.jhs-subject-grid .card-icon {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.jhs-subject-grid .subject-card h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #0f172a;
}

.jhs-subject-grid .subject-card p {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jhs-subject-grid .dynamic-subject-stats {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #334155;
    font-size: 0.82rem;
}

.jhs-subject-grid .start-topic-btn {
    margin-top: 12px;
    align-self: flex-start;
}

.jhs-subject-group.extra-practice-group .jhs-subject-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .jhs-subject-grid,
    .jhs-subject-group.extra-practice-group .jhs-subject-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .jhs-subject-grid,
    .jhs-subject-group.extra-practice-group .jhs-subject-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jhs-subject-group {
        padding: 16px;
    }

    .jhs-subject-grid,
    .jhs-subject-group.extra-practice-group .jhs-subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jhs-subject-grid .subject-card {
        min-height: 220px;
        padding: 15px;
    }
}

@media (max-width: 420px) {
    .jhs-subject-grid,
    .jhs-subject-group.extra-practice-group .jhs-subject-grid {
        grid-template-columns: 1fr;
    }
}
/* Exam & Skills Hub polish */

.exam-hub-page .zone-hero h2 {
    max-width: 760px;
}

.exam-hub-page .zone-hero-card span {
    font-weight: 800;
}

.jhs-hub-subjects-section {
    margin-top: 34px;
}

.jhs-hub-subject-grid {
    align-items: stretch;
}

.jhs-hub-subject-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.jhs-hub-subject-card .card-icon {
    margin-bottom: 10px;
}

.jhs-hub-subject-card h3 {
    margin: 8px 0 8px;
    line-height: 1.15;
}

.jhs-hub-subject-card p {
    flex: 1;
    line-height: 1.55;
}

.jhs-hub-subject-card .dynamic-subject-stats {
    margin-top: 12px;
}

.jhs-hub-subject-card .start-topic-btn {
    margin-top: 14px;
    align-self: flex-start;
}

@media (max-width: 900px) {
    .jhs-hub-subject-card {
        min-height: auto;
    }
}
/* BECE Practice page cleanup */

.bece-page .bece-welcome {
    align-items: center;
}

.bece-page .exam-config-note {
    margin-top: 8px;
    font-weight: 900;
    color: #475569;
}

.bece-coming-note {
    margin-top: 10px !important;
    display: inline-block;
    background: #fff7ed;
    color: #9a3412 !important;
    border: 1px solid #fed7aa;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
}

.bece-topic-grid {
    align-items: stretch;
}

.bece-topic-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
}

.bece-topic-card h3 {
    line-height: 1.18;
    margin-top: 14px;
    margin-bottom: 10px;
}

.bece-topic-card p {
    flex: 1;
}

.bece-topic-stats {
    margin-top: 14px;
}

.bece-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.bece-card-actions .primary-btn,
.bece-card-actions .secondary-btn {
    padding: 11px 15px;
    border-radius: 999px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .bece-topic-card {
        min-height: auto;
    }

    .bece-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Quiz start page polish */

.quiz-start-page {
    padding-top: 44px;
}

.quiz-start-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.quiz-start-description {
    margin-top: 12px !important;
    max-width: 760px;
}

.quiz-start-mode-grid {
    margin-top: 30px;
}

.quiz-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 22px;
}

.quiz-mode-card {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.quiz-mode-card h3 {
    margin: 10px 0 14px;
    color: #0f172a;
    font-size: 1.6rem;
}

.quiz-mode-card p {
    color: #475569;
    line-height: 1.7;
}

.quiz-mode-label {
    display: inline-block;
    background: #eff6ff;
    color: #315efb;
    border: 1px solid #dbeafe;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.9rem;
}

.timed-mode-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    border-color: #fed7aa;
}

.timed-disabled-card {
    opacity: 0.82;
}

.quiz-start-tip {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 18px;
    padding: 18px 20px;
    color: #475569;
    line-height: 1.6;
}

.quiz-start-tip strong {
    color: #0f172a;
}

@media (max-width: 800px) {
    .quiz-mode-grid {
        grid-template-columns: 1fr;
    }
}
/* Take quiz page polish */

.take-quiz-page {
    padding-top: 42px;
}

.take-quiz-header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.quiz-helper-text {
    margin-top: 10px !important;
    max-width: 780px;
}

.sticky-timer-card {
    position: sticky;
    top: 92px;
    z-index: 5;
}

.question-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.question-card-top h3 {
    margin: 0;
}

.question-card-top span {
    background: #f1f5ff;
    color: #315efb;
    border: 1px solid #dbeafe;
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.85rem;
}

.take-question-card {
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.take-question-card:focus-within {
    border-color: #315efb;
    box-shadow: 0 16px 38px rgba(49, 94, 251, 0.10);
}

.take-answer-option {
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.take-answer-option:hover {
    background: #eef4ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.take-answer-option input:checked + span {
    color: #315efb;
}

.quiz-submit-panel {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    align-items: center;
    gap: 18px;
}

.quiz-submit-panel strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.quiz-submit-panel p {
    margin: 6px 0 0;
    color: #64748b;
    line-height: 1.5;
}

.quiz-submit-panel .quiz-submit {
    margin: 0;
}

@media (max-width: 800px) {
    .sticky-timer-card {
        position: static;
    }

    .quiz-submit-panel {
        grid-template-columns: 1fr;
    }
}
/* Quiz result page polish */

.quiz-result-page {
    padding-top: 42px;
}

.result-subject-line {
    color: #64748b;
    font-weight: 800;
    margin-top: -6px;
}

.result-mini-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px auto;
    max-width: 680px;
}

.result-mini-summary div {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e5e9f7;
    border-radius: 18px;
    padding: 16px;
}

.result-mini-summary strong {
    display: block;
    color: #0f172a;
    font-size: 1.3rem;
}

.result-mini-summary span {
    display: block;
    color: #64748b;
    font-weight: 700;
    margin-top: 4px;
}

.result-action-buttons {
    margin-top: 24px;
}

.corrections-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.correction-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.correction-answer-grid div {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 16px;
    padding: 14px;
}

.correction-answer-grid span {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 5px;
}

.correction-answer-grid strong {
    color: #0f172a;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .result-mini-summary,
    .correction-answer-grid {
        grid-template-columns: 1fr;
    }
}
/* Mock exam start page polish */

.mock-start-page {
    padding-top: 50px;
}

.mock-start-card {
    max-width: 1080px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 62%, #fff7ed 100%);
}

.mock-start-intro {
    max-width: 850px;
    line-height: 1.75;
}

.mock-info-grid {
    margin-top: 28px;
}

.exam-warning-box {
    margin-top: 24px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 18px 20px;
    border-radius: 18px;
}

.exam-warning-box strong {
    color: #7c2d12;
}

.exam-warning-box p {
    margin: 8px 0 0;
    line-height: 1.65;
}

.mock-instruction-list {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.mock-instruction-list div {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 14px;
    padding: 13px 15px;
    font-weight: 800;
    color: #334155;
}

.mock-start-actions {
    margin-top: 26px;
}

.mock-empty-box {
    margin-top: 24px;
}
/* Take mock exam page polish */

.take-mock-page {
    padding-top: 42px;
}

.take-mock-header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.question-topic-label {
    display: inline-block;
    background: #eff6ff;
    color: #315efb;
    border: 1px solid #dbeafe;
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.85rem;
    margin: 8px 0 12px;
}

.take-mock-page .timer-card {
    margin-top: 24px;
}

.take-mock-page .quiz-submit-panel {
    margin-top: 20px;
}

/* Mock exam result page polish */

.mock-result-page {
    padding-top: 42px;
}

.mock-result-card {
    max-width: 1120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f6fef9 55%, #fff7ed 100%);
}

.mock-result-info-grid {
    margin-top: 20px;
}

.mock-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 22px auto;
}

.mock-result-actions {
    margin-top: 24px;
    justify-content: center;
}

.mock-topic-mix-card,
.mock-corrections-section {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.mock-topic-mix-card {
    margin-top: 28px;
}

.mock-review-card {
    margin-bottom: 16px;
}

.mock-review-card .explanation-box {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 16px;
    padding: 14px;
    color: #475569;
    line-height: 1.65;
}

@media (max-width: 760px) {
    .mock-badge-grid {
        grid-template-columns: 1fr;
    }
}
/* Mock exam history page polish */

.mock-history-page {
    padding-top: 44px;
}

.mock-history-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.mock-summary-cards .stat-card {
    min-height: 190px;
}

.readiness-summary-card strong {
    font-size: 1.7rem;
}

.mock-filter-card {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04);
}

.mock-filter-form {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto auto;
    gap: 14px;
    align-items: end;
}

.mock-filter-form label {
    display: block;
    font-weight: 900;
    color: #334155;
    margin-bottom: 7px;
}

.mock-filter-form select {
    width: 100%;
    border: 1px solid #d6defd;
    border-radius: 14px;
    padding: 13px 14px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
}

.mock-attempt-section {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.mock-history-card {
    align-items: center;
}

.mock-history-main h4 {
    margin: 14px 0 6px;
    color: #0f172a;
}

.mock-history-main p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.mock-review-btn {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .mock-filter-form {
        grid-template-columns: 1fr;
    }

    .mock-history-card {
        align-items: flex-start;
    }
}
/* Quiz history page polish */

.quiz-history-page {
    padding-top: 44px;
}

.quiz-history-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.history-tabs-section {
    margin-top: 28px;
}

.quiz-history-filter-card {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04);
}

.quiz-history-attempt-section {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-history-row {
    align-items: center;
}

.quiz-history-main strong {
    display: block;
    margin: 10px 0 6px;
    color: #0f172a;
    font-size: 1.05rem;
}

.quiz-history-main span {
    color: #64748b;
    line-height: 1.5;
}

.quiz-history-score strong,
.quiz-history-points strong {
    display: block;
    color: #0f172a;
    font-size: 1.2rem;
}

.quiz-history-score span,
.quiz-history-points span {
    display: block;
    color: #64748b;
    margin-top: 4px;
}

.history-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.history-actions .secondary-btn {
    padding: 10px 13px;
    border-radius: 999px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .quiz-history-row {
        align-items: flex-start;
    }

    .history-actions {
        justify-content: flex-start;
    }
}
/* Subject browser page polish */

.subject-browser-page {
    padding-top: 44px;
}

.subject-browser-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.subject-highlight-section {
    margin-top: 30px;
}

.subject-browser-grid {
    align-items: stretch;
}

.generic-subject-card {
    min-height: 315px;
    display: flex;
    flex-direction: column;
}

.generic-subject-card h3 {
    margin-top: 12px;
    margin-bottom: 10px;
    line-height: 1.15;
}

.generic-subject-card p {
    flex: 1;
    line-height: 1.6;
}
.custom-file-upload {
    display: grid;
    gap: 8px;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;
    min-height: 46px;

    border-radius: 14px;

    background: #315efb;
    color: #fff !important;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;
    transition: all .2s ease;
}

.custom-file-label:hover {
    background: #234de5;
    transform: translateY(-1px);
}

.custom-file-name {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}
.generic-subject-card .dynamic-subject-stats {
    margin-top: 14px;
}

.generic-subject-card .start-topic-btn {
    margin-top: 16px;
    align-self: flex-start;
}

.featured-subject-card {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #fff7ed 100%);
    border-color: #bfdbfe;
}

@media (max-width: 900px) {
    .generic-subject-card {
        min-height: auto;
    }
}
/* Generic subject topics page polish */

.generic-subject-page {
    padding-top: 44px;
}

.generic-subject-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.generic-topic-section {
    margin-top: 34px;
}

.generic-topic-grid {
    align-items: stretch;
}

.generic-topic-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.generic-topic-card h3 {
    margin-top: 12px;
    margin-bottom: 10px;
    line-height: 1.15;
}

.generic-topic-card p {
    flex: 1;
    line-height: 1.6;
}

.generic-topic-card .dynamic-subject-stats {
    margin-top: 14px;
}

.generic-topic-card .start-topic-btn {
    margin-top: 16px;
    align-self: flex-start;
}

.coming-soon-topic-box {
    margin-top: 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    padding: 20px;
    color: #475569;
}

.coming-soon-topic-box strong {
    display: block;
    color: #0f172a;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.coming-soon-topic-box p {
    margin: 0 0 14px;
    line-height: 1.6;
}

.coming-soon-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coming-soon-topic-list span {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .generic-topic-card {
        min-height: auto;
    }
}
/* Question set selection page polish */

.question-set-page {
    padding-top: 44px;
}

.question-set-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.question-set-topic-description {
    margin-top: 10px !important;
    max-width: 760px;
    line-height: 1.65;
}

.question-set-filter-card {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04);
}

.question-set-filter-form {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.question-set-filter-form label {
    display: block;
    font-weight: 900;
    color: #334155;
    margin-bottom: 7px;
}

.question-set-filter-form input {
    width: 100%;
    border: 1px solid #d6defd;
    border-radius: 14px;
    padding: 14px 15px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
}

.question-set-list-section {
    margin-top: 28px;
}

.question-set-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    gap: 18px;
}

.question-set-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.question-set-card h3 {
    margin: 10px 0 8px;
    line-height: 1.2;
}

.question-set-card p {
    flex: 1;
    line-height: 1.6;
}

.question-set-stats {
    margin-top: 14px;
}

.question-set-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.question-set-actions .primary-btn,
.question-set-actions .secondary-btn {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .question-set-filter-form,
    .question-set-grid {
        grid-template-columns: 1fr;
    }

    .question-set-card {
        min-height: auto;
    }
}
/* Question set start page polish */

.question-set-start-page {
    padding-top: 44px;
}

.question-set-start-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.question-set-start-description {
    margin-top: 10px !important;
    max-width: 760px;
    line-height: 1.65;
}

.question-set-mode-grid {
    margin-top: 30px;
}

.question-set-mode-card {
    min-height: 260px;
}

.question-set-mode-card strong {
    display: inline-block;
    margin-top: 10px;
    color: #0f172a;
    background: #f1f5ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 12px;
}

.question-set-start-actions {
    margin-top: 20px;
}
/* Take question set quiz page polish */

.take-question-set-page {
    padding-top: 42px;
}

.take-question-set-header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #fff7ed 100%);
}

.take-question-set-page .timer-card {
    margin-top: 24px;
}

.take-question-set-page .quiz-submit-panel {
    margin-top: 20px;
}
/* Quiz certificate page */

.certificate-print-page {
    background: #f1f5ff;
    padding: 42px 20px 60px;
}

.certificate-toolbar {
    max-width: 1100px;
    margin: 0 auto 22px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.certificate-sheet {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.certificate-border {
    border: 3px solid #2563eb;
    border-radius: 22px;
    padding: 34px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.12), transparent 30%),
        #ffffff;
}

.certificate-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 34px;
}

.certificate-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.certificate-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.certificate-brand strong {
    display: block;
    font-size: 1.25rem;
    color: #0f172a;
}

.certificate-brand span {
    display: block;
    color: #64748b;
    font-weight: 700;
}

.certificate-id {
    text-align: right;
    color: #64748b;
    font-weight: 800;
}

.certificate-id strong {
    color: #0f172a;
}

.certificate-main {
    text-align: center;
}

.certificate-main h1 {
    margin: 22px 0 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    color: #0f172a;
    letter-spacing: -0.04em;
}

.certificate-intro,
.certificate-body,
.certificate-subject {
    color: #475569;
    font-weight: 800;
    line-height: 1.6;
}

.certificate-main h2 {
    margin: 10px auto;
    font-size: clamp(2rem, 5vw, 4.2rem);
    color: #2563eb;
    line-height: 1.05;
}

.certificate-main h3 {
    margin: 12px auto 6px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #0f172a;
    max-width: 850px;
}

.certificate-score-box {
    margin: 30px auto 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 820px;
}

.certificate-score-box div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}

.certificate-score-box span,
.certificate-footer-line span {
    display: block;
    color: #64748b;
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.certificate-score-box strong {
    display: block;
    color: #0f172a;
    font-size: 1.5rem;
}

.certificate-badge {
    max-width: 520px;
    margin: 0 auto 28px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    border-radius: 20px;
    padding: 16px;
}

.certificate-badge span {
    display: block;
    font-size: 2rem;
}

.certificate-badge strong {
    display: block;
    color: #0f172a;
    font-size: 1.1rem;
}

.certificate-badge small {
    display: block;
    color: #64748b;
    font-weight: 700;
    margin-top: 4px;
}

.certificate-footer-line {
    margin: 32px auto 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 820px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.certificate-footer-line strong {
    color: #0f172a;
}

.certificate-note {
    text-align: center;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 18px;
}

@media (max-width: 800px) {
    .certificate-top,
    .certificate-toolbar {
        justify-content: center;
        text-align: center;
    }

    .certificate-top,
    .certificate-score-box,
    .certificate-footer-line {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .certificate-id {
        text-align: center;
    }

    .certificate-border {
        padding: 22px;
    }
}

@media print {
    body {
        background: #ffffff !important;
    }

    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    .certificate-print-page {
        padding: 0;
        background: #ffffff;
    }

    .certificate-sheet {
        box-shadow: none;
        max-width: 100%;
        padding: 0;
        border-radius: 0;
    }

    .certificate-border {
        min-height: 94vh;
        border-radius: 0;
    }
}
/* Verify certificate page polish */

.certificate-verify-page {
    padding-top: 44px;
}

.certificate-verify-hero {
    margin-bottom: 28px;
}

.certificate-verify-panel {
    background: #ffffff;
    border: 1px solid #e5e9f7;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.certificate-verify-form label {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 12px;
}

.certificate-verify-form > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.certificate-verify-form input {
    width: 100%;
    border: 1px solid #d6defd;
    border-radius: 16px;
    padding: 16px 18px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
}

.certificate-result-card {
    margin-top: 24px;
    border-radius: 22px;
    padding: 22px;
}

.certificate-valid-card {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.certificate-invalid-card {
    border: 1px solid #fecaca;
    background: #fff1f2;
}

.certificate-result-card span {
    display: inline-block;
    font-weight: 900;
    margin-bottom: 10px;
}

.certificate-result-card h3 {
    margin: 0 0 14px;
    color: #0f172a;
}

.certificate-verify-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px 20px;
    margin-bottom: 18px;
}

.certificate-verify-details p {
    margin: 0;
    color: #475569;
    font-weight: 700;
}

.certificate-verify-details strong {
    color: #0f172a;
}

@media (max-width: 800px) {
    .certificate-verify-form > div,
    .certificate-verify-details {
        grid-template-columns: 1fr;
    }
}
/* Dashboard section action buttons */

.dashboard-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-section-actions .primary-btn,
.dashboard-section-actions .secondary-btn {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .dashboard-section-actions {
        justify-content: flex-start;
        width: 100%;
    }
}
/* Basic 4-6 learner dashboard polish */

.basic46-subject-groups {
    display: grid;
    gap: 24px;
}

.basic46-subject-group {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.basic46-core-group {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 32%),
        #ffffff;
}

.basic46-language-group {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.10), transparent 32%),
        #ffffff;
}

.basic46-life-group {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 32%),
        #ffffff;
}

.basic46-extra-group {
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.10), transparent 32%),
        #ffffff;
}

.basic46-subject-heading {
    margin-bottom: 18px;
}

.basic46-subject-heading h4 {
    margin: 6px 0 6px;
    color: #06142e;
    font-size: 1.35rem;
    font-weight: 1000;
}

.basic46-subject-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-weight: 700;
}

.basic46-subject-grid {
    align-items: stretch;
}

.basic46-subject-card {
    min-height: 275px;
    display: flex;
    flex-direction: column;
}

.basic46-subject-card h3 {
    margin-top: 12px;
    margin-bottom: 8px;
    line-height: 1.15;
}

.basic46-subject-card p {
    flex: 1;
}

.basic46-subject-card .dynamic-subject-stats {
    margin-top: 12px;
}

.basic46-subject-card .start-topic-btn {
    align-self: flex-start;
    margin-top: 12px;
}

.basic46-achievement-panel {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 34%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.10), transparent 34%),
        #ffffff;
    border-color: #bfdbfe;
}

@media (max-width: 900px) {
    .basic46-subject-card {
        min-height: auto;
    }
}
/* Basic 1-3 learner dashboard polish */

.basic13-subject-groups {
    display: grid;
    gap: 24px;
}

.basic13-subject-group {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.basic13-reading-group {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 32%),
        #ffffff;
}

.basic13-number-group {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%),
        #ffffff;
}

.basic13-life-group {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.15), transparent 32%),
        #ffffff;
}

.basic13-extra-group {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.10), transparent 32%),
        #ffffff;
}

.basic13-subject-heading {
    margin-bottom: 18px;
}

.basic13-subject-heading h4 {
    margin: 6px 0 6px;
    color: #06142e;
    font-size: 1.35rem;
    font-weight: 1000;
}

.basic13-subject-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-weight: 700;
}

.basic13-subject-grid {
    align-items: stretch;
}

.basic13-subject-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.basic13-subject-card h3 {
    margin-top: 12px;
    margin-bottom: 8px;
    line-height: 1.15;
}

.basic13-subject-card p {
    flex: 1;
}

.basic13-subject-card .dynamic-subject-stats {
    margin-top: 12px;
}

.basic13-subject-card .start-topic-btn {
    align-self: flex-start;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .basic13-subject-card {
        min-height: auto;
    }
}
/* Early years learner dashboard polish */

.early-dashboard-panel {
    margin-top: 24px;
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 32%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.12), transparent 34%),
        #ffffff;
    border: 1px solid #fbcfe8;
    border-radius: 28px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.early-dashboard-copy h3 {
    margin: 8px 0;
    color: #06142e;
    font-size: 1.55rem;
    font-weight: 1000;
}

.early-dashboard-copy p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    font-weight: 700;
}

.early-dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.early-subject-groups {
    display: grid;
    gap: 24px;
}

.early-subject-group {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.early-start-group {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 32%),
        #ffffff;
}

.early-reading-group {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.13), transparent 32%),
        #ffffff;
}

.early-number-group {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.13), transparent 32%),
        #ffffff;
}

.early-creative-group {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 32%),
        #ffffff;
}

.early-subject-heading {
    margin-bottom: 18px;
}

.early-subject-heading h4 {
    margin: 6px 0 6px;
    color: #06142e;
    font-size: 1.45rem;
    font-weight: 1000;
}

.early-subject-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-weight: 700;
}

.early-subject-grid {
    align-items: stretch;
}

.early-dashboard-subject-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.early-dashboard-subject-card .card-icon {
    font-size: 2.35rem;
}

.early-dashboard-subject-card h3 {
    margin-top: 12px;
    margin-bottom: 8px;
    line-height: 1.15;
}

.early-dashboard-subject-card p {
    flex: 1;
}

.early-dashboard-subject-card .dynamic-subject-stats {
    margin-top: 12px;
}

.early-dashboard-subject-card .start-topic-btn {
    align-self: flex-start;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .early-dashboard-panel {
        display: grid;
    }

    .early-dashboard-actions {
        justify-content: flex-start;
    }

    .early-dashboard-subject-card {
        min-height: auto;
    }
}
/* Shorter non-JHS learner dashboard */

.compact-learning-section {
    margin-top: 28px;
}

.compact-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.compact-learning-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.compact-game-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 34%),
        #ffffff;
}

.compact-reading-card {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.10), transparent 34%),
        #ffffff;
}

.compact-learning-emoji {
    font-size: 2.2rem;
}

.compact-learning-card h4 {
    margin: 0 0 6px;
    color: #06142e;
    font-size: 1.15rem;
    font-weight: 1000;
}

.compact-learning-card p {
    margin: 0;
    color: #475569;
    font-weight: 800;
}

.compact-learning-card small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-weight: 700;
}

.compact-learning-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.compact-learning-actions .primary-btn,
.compact-learning-actions .secondary-btn {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
}

.compact-progress-cards .stat-card {
    min-height: 145px;
}

.compact-progress-cards .stat-card strong {
    font-size: 1.55rem;
}

@media (max-width: 900px) {
    .compact-learning-grid {
        grid-template-columns: 1fr;
    }

    .compact-learning-card {
        grid-template-columns: 1fr;
    }

    .compact-learning-actions {
        justify-content: flex-start;
    }
}
/* Lower-level dashboard compact empty sections */

.compact-class-box {
    padding: 22px;
}

.compact-class-box h3 {
    margin-top: 0;
}

.compact-class-box p {
    max-width: 620px;
}
/* Teacher dashboard polish */

.teacher-polish-page {
    padding-top: 44px;
}

.teacher-hero-panel {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(49, 94, 251, 0.13), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.teacher-hero-copy h2 {
    margin: 12px 0 10px;
    color: #06142e;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.teacher-hero-copy p {
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.teacher-hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.teacher-hero-meta span {
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #334155;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    font-size: 0.86rem;
}

.teacher-hero-side {
    display: grid;
    gap: 16px;
}

.teacher-hero-subscription {
    margin: 0;
}

.teacher-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.teacher-dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    margin-top: 28px;
}

.teacher-school-card,
.teacher-next-step-card,
.teacher-section-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.teacher-school-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
}

.teacher-school-card h3,
.teacher-next-step-card h3 {
    margin: 8px 0;
    color: #06142e;
    font-size: 1.45rem;
}

.teacher-school-card p,
.teacher-next-step-card p {
    color: #64748b;
    line-height: 1.65;
}

.teacher-empty-mini {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.teacher-empty-mini strong {
    color: #06142e;
}

.teacher-empty-mini span {
    color: #64748b;
    font-weight: 700;
}

.teacher-summary-cards {
    margin-top: 24px;
}

.teacher-stat-card {
    min-height: 170px;
}

.teacher-polish-class-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 32%),
        #ffffff;
}

.teacher-empty-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.teacher-empty-box .empty-icon {
    font-size: 2rem;
}

.teacher-leaderboard-card {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 34%),
        #ffffff;
}

.teacher-learner-leaderboard-wrap {
    margin-top: 24px;
}

.teacher-polish-assignment-row {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 34%),
        #ffffff;
}

.teacher-quick-action-grid {
    align-items: stretch;
}

.teacher-action-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.teacher-action-card p {
    flex: 1;
}

.teacher-action-card .start-topic-btn {
    align-self: flex-start;
}

.teacher-premium-alert {
    margin-top: 20px;
}

@media (max-width: 1000px) {
    .teacher-hero-panel,
    .teacher-dashboard-grid,
    .teacher-school-card {
        grid-template-columns: 1fr;
    }

    .teacher-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {
    .teacher-hero-panel,
    .teacher-school-card,
    .teacher-next-step-card,
    .teacher-section-card {
        padding: 22px;
        border-radius: 24px;
    }

    .teacher-empty-box {
        display: grid;
    }
}
/* Teacher dashboard empty state cleanup */

.teacher-starter-panel {
    margin-top: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 32%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.10), transparent 34%),
        #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.teacher-starter-panel h3 {
    margin: 8px 0 6px;
    color: #06142e;
    font-size: 1.45rem;
    font-weight: 1000;
}

.teacher-starter-panel p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-weight: 700;
}

.teacher-starter-steps {
    display: grid;
    gap: 8px;
}

.teacher-starter-steps span {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 9px 13px;
    color: #334155;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 950px) {
    .teacher-starter-panel {
        grid-template-columns: 1fr;
    }

    .teacher-starter-steps span {
        white-space: normal;
    }
}
/* Create class page polish */

.create-class-page {
    padding-top: 58px;
    padding-bottom: 70px;
}

.create-class-layout {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.create-class-card,
.create-class-help-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
}

.create-class-card {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 32%),
        #ffffff;
}

.create-class-help-card {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.11), transparent 35%),
        #ffffff;
}

.create-class-card h2 {
    margin: 16px 0 12px;
    color: #06142e;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.create-class-intro {
    max-width: 720px;
    line-height: 1.7;
}

.create-class-form {
    margin-top: 24px;
}

.create-class-form .form-group {
    margin-bottom: 20px;
}

.create-class-form label {
    font-weight: 1000;
    color: #0f172a;
    margin-bottom: 8px;
}

.create-class-form input,
.create-class-form select,
.create-class-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 15px 16px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
}

.create-class-form textarea {
    min-height: 115px;
    resize: vertical;
}

.create-class-form small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.5;
}

.create-class-bottom-actions {
    margin-top: 18px;
    text-align: center;
}

.create-class-help-card h3 {
    margin: 12px 0 18px;
    color: #06142e;
    font-size: 1.55rem;
    line-height: 1.2;
}

.create-class-step-list {
    display: grid;
    gap: 12px;
}

.create-class-step-list div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 14px;
}

.create-class-step-list strong {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #315efb;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 1000;
}

.create-class-step-list span {
    color: #475569;
    font-weight: 800;
    line-height: 1.5;
}

.teacher-tip-box {
    margin-top: 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 18px;
    padding: 16px;
    color: #475569;
    font-weight: 800;
    line-height: 1.6;
}

.teacher-tip-box strong {
    color: #0f172a;
}

@media (max-width: 900px) {
    .create-class-layout {
        grid-template-columns: 1fr;
    }

    .create-class-page {
        padding-top: 34px;
    }

    .create-class-card,
    .create-class-help-card {
        padding: 24px;
        border-radius: 24px;
    }
}
/* Teacher class detail page polish */

.teacher-class-detail-page {
    padding-top: 44px;
}

.teacher-class-hero {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.10), transparent 34%),
        #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.07);
}

.teacher-class-hero h2 {
    margin: 14px 0 10px;
    color: #06142e;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.teacher-class-hero p {
    margin: 0 0 12px;
    color: #64748b;
    font-weight: 800;
}

.teacher-class-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.teacher-class-code-pill {
    display: inline-flex;
    width: auto;
    margin-top: 6px;
}

.teacher-class-start-panel {
    margin-top: 24px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 32%),
        #ffffff;
    border: 1px solid #fde68a;
    border-radius: 28px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.teacher-class-start-panel h3 {
    margin: 8px 0;
    color: #06142e;
    font-size: 1.45rem;
    font-weight: 1000;
}

.teacher-class-start-panel p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    font-weight: 700;
}

.teacher-class-code-share {
    background: #06142e;
    color: #ffffff;
    border-radius: 22px;
    padding: 18px 22px;
    text-align: center;
    min-width: 170px;
}

.teacher-class-code-share span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    font-weight: 900;
    margin-bottom: 5px;
}

.teacher-class-code-share strong {
    display: block;
    font-size: 1.55rem;
    letter-spacing: 0.02em;
}

.teacher-class-summary-cards {
    margin-top: 24px;
}

.teacher-class-leader-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 32%),
        #ffffff;
}

.teacher-class-assignment-row {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 34%),
        #ffffff;
}

.teacher-class-learner-row {
    align-items: flex-start;
}

.teacher-class-learner-row .mini-link {
    display: inline-block;
    margin-top: 8px;
}

.teacher-certificate-list,
.mini-weak-list,
.teacher-badge-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.teacher-certificate-list strong,
.mini-weak-list strong {
    width: 100%;
    color: #06142e;
}

.teacher-certificate-list a,
.teacher-badge-list span,
.mini-weak-list span {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 8px 11px;
    font-weight: 900;
    color: #334155;
    text-decoration: none;
}

@media (max-width: 950px) {
    .teacher-class-hero,
    .teacher-class-start-panel {
        grid-template-columns: 1fr;
    }

    .teacher-class-hero-actions {
        justify-content: flex-start;
    }

    .teacher-class-code-share {
        text-align: left;
    }
}
/* Assignment detail and report polish */

.assignment-detail-page {
    padding-top: 44px;
}

.assignment-detail-hero {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.10), transparent 34%),
        #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.07);
}

.assignment-detail-hero h2 {
    margin: 14px 0 10px;
    color: #06142e;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.assignment-detail-hero p {
    margin: 0 0 8px;
    color: #64748b;
    font-weight: 800;
}

.assignment-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.assignment-detail-topic-card {
    margin-top: 24px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.13), transparent 32%),
        #ffffff;
    border: 1px solid #fde68a;
    border-radius: 28px;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.assignment-detail-topic-card h3 {
    margin: 8px 0 5px;
    color: #06142e;
    font-size: 1.25rem;
}

.assignment-detail-topic-card p {
    margin: 0;
    color: #64748b;
    font-weight: 800;
}

.assignment-summary-cards {
    margin-top: 24px;
}

.assignment-completion-row {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.07), transparent 34%),
        #ffffff;
}

.completion-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 1000;
    font-size: 0.85rem;
}

.completion-done {
    background: #dcfce7;
    color: #166534;
}

.completion-pending {
    background: #fff7ed;
    color: #9a3412;
}

.assignment-report-page {
    background: #f1f5ff;
    padding: 32px 20px 70px;
}

.assignment-print-report-card {
    border-radius: 26px;
}

.assignment-report-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
}

.assignment-report-meta {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.assignment-report-meta div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.assignment-report-meta span {
    display: block;
    color: #64748b;
    font-weight: 900;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.assignment-report-meta strong {
    color: #06142e;
}

.assignment-report-summary-grid {
    margin-top: 18px;
}

.report-empty-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 22px;
}

.report-empty-box h3 {
    margin: 0 0 8px;
    color: #06142e;
}

.report-empty-box p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 900px) {
    .assignment-detail-hero,
    .assignment-detail-topic-card,
    .assignment-report-meta {
        grid-template-columns: 1fr;
    }

    .assignment-detail-actions {
        justify-content: flex-start;
    }
}

@media print {
    .assignment-report-page {
        background: #ffffff;
        padding: 0;
    }

    .assignment-report-meta div {
        break-inside: avoid;
    }
}
/* Assignment and question flow guidance */

.assignment-flow-note {
    margin-top: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 12px 14px;
    color: #475569;
    font-weight: 800;
    line-height: 1.55;
}

.assignment-flow-note strong {
    color: #0f172a;
}

.compact-assignment-flow-note {
    margin: 12px 0 16px;
    max-width: 620px;
}

.assignment-question-tip {
    margin-top: 12px;
}

.assignment-question-tip em {
    font-style: normal;
    color: #315efb;
    font-weight: 1000;
}
/* Question Bank workflow clarity */

.question-flow-note {
    margin: 14px 0 0;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 13px 15px;
    color: #475569;
    font-weight: 800;
    line-height: 1.55;
}

.question-flow-note strong {
    color: #0f172a;
}

.question-flow-note-soft {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.question-form-bottom-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.question-bank-guide {
    margin: 26px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.question-bank-guide-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.question-bank-guide-card h3 {
    margin: 0 0 4px;
    color: #06142e;
    font-size: 1rem;
}

.question-bank-guide-card p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
    line-height: 1.45;
}

.guide-icon {
    font-size: 1.8rem;
}

.question-bank-helper-note {
    margin-top: 0.8rem;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 12px 14px;
}

.question-bank-helper-note strong {
    color: #0f172a;
}

@media (max-width: 900px) {
    .question-bank-guide {
        grid-template-columns: 1fr;
    }

    .question-bank-guide-card {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   Final Teacher/Admin UI Polish Bundle
   ============================================================ */

.teacher-admin-page .dashboard-section,
.teacher-report-page .dashboard-section {
    max-width: 1180px;
}

.teacher-admin-polish-hero {
    background:
        radial-gradient(circle at top right, rgba(49, 94, 251, 0.13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-color: #dbe5ff;
}

.teacher-admin-guide-grid {
    max-width: 1180px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.teacher-admin-guide-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.teacher-admin-guide-card span {
    display: inline-flex;
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.teacher-admin-guide-card strong {
    display: block;
    color: #06142e;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.teacher-admin-guide-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-weight: 700;
}

.teacher-admin-filter-section,
.teacher-admin-section-card {
    background: #ffffff;
    border: 1px solid #e7ecf5;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.teacher-admin-section-card > .section-title-row:first-child,
.teacher-admin-filter-section > .section-title-row:first-child {
    margin-bottom: 16px;
}

.teacher-admin-mini-card {
    min-height: 230px;
}

.teacher-admin-card-grid {
    align-items: stretch;
}

.teacher-admin-list-row {
    border-color: #dbeafe;
}

.teacher-admin-empty-box {
    border-color: #dbeafe;
    background:
        radial-gradient(circle at top right, rgba(49, 94, 251, 0.08), transparent 34%),
        #ffffff;
}

.teacher-admin-table-wrap {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.teacher-admin-table-wrap table th {
    color: #334155;
}

.teacher-admin-table-wrap table td strong {
    color: #06142e;
}

.teacher-admin-wide-filter-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr 0.8fr 0.9fr auto auto;
    gap: 14px;
    align-items: end;
}

.teacher-admin-wide-filter-form .form-group {
    margin: 0;
}

.teacher-admin-wide-filter-form label {
    display: block;
    font-weight: 800;
    color: #344054;
    margin-bottom: 8px;
}

.teacher-admin-wide-filter-form input,
.teacher-admin-wide-filter-form select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    background: #ffffff;
}

.teacher-admin-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.teacher-admin-action-stack .mini-link {
    margin-top: 0;
}

.mock-exam-table {
    min-width: 1250px;
}

.teacher-admin-form-page {
    align-items: start;
}

.teacher-admin-form-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.teacher-admin-form-card {
    width: 100%;
}

.teacher-admin-side-note {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 34%),
        #ffffff;
    border: 1px solid #fde68a;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 120px;
}

.teacher-admin-side-note > span {
    font-size: 2.2rem;
}

.teacher-admin-side-note h3 {
    margin: 12px 0 8px;
    color: #06142e;
}

.teacher-admin-side-note p {
    color: #64748b;
    line-height: 1.6;
    font-weight: 700;
}

.teacher-admin-note-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.teacher-admin-note-list div {
    background: #fffdf5;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 12px;
}

.teacher-admin-note-list strong {
    display: block;
    color: #06142e;
    margin-bottom: 4px;
}

.teacher-admin-note-list small {
    display: block;
    color: #64748b;
    line-height: 1.45;
    font-weight: 700;
}

.teacher-admin-info-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px 18px;
}

.teacher-admin-info-box p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.teacher-admin-summary-cards {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.polished-print-report-card .report-section {
    margin-top: 26px;
}

.polished-print-report-card .report-section h2 {
    margin: 0 0 14px;
}

.class-report-page .report-table-wrap {
    overflow-x: auto;
}

.question-bank-guide {
    max-width: 1180px;
}

.question-bank-helper-note {
    margin-top: 0.8rem;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 12px 14px;
}

.question-bank-helper-note strong {
    color: #0f172a;
}

@media (max-width: 1150px) {
    .teacher-admin-wide-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-admin-summary-cards {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .teacher-admin-form-shell {
        grid-template-columns: 1fr;
    }

    .teacher-admin-side-note {
        position: static;
    }
}

@media (max-width: 900px) {
    .teacher-admin-guide-grid {
        grid-template-columns: 1fr;
    }

    .teacher-admin-info-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .teacher-admin-filter-section,
    .teacher-admin-section-card {
        padding: 18px;
    }

    .teacher-admin-wide-filter-form {
        grid-template-columns: 1fr;
    }

    .teacher-admin-summary-cards {
        grid-template-columns: 1fr;
    }

    .teacher-admin-action-stack {
        display: grid;
    }
}

@media print {
    .teacher-admin-guide-grid,
    .teacher-admin-filter-section,
    .teacher-admin-side-note,
    .no-print,
    .print-hide,
    .hero-buttons {
        display: none !important;
    }

    .teacher-admin-section-card,
    .polished-print-report-card {
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
.danger-link {
    color: #dc2626;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
}

.danger-link:hover {
    text-decoration: underline;
}
.create-assignment-form select {
    width: 100%;
    border: 1px solid #dbe5ff;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font: inherit;
    background: #fff;
}

.create-assignment-form select:focus {
    outline: none;
    border-color: #2f5bff;
    box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.12);
}
/* Curriculum subject groups on learner dashboard */

.curriculum-subject-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    clear: both;
}

.curriculum-subject-group {
    width: 100%;
    display: block;
    border-radius: 28px;
    padding: 24px;
}

.curriculum-subject-group .subject-grid {
    width: 100%;
}

.curriculum-subject-group-foundation,
.curriculum-subject-group-literacy,
.curriculum-subject-group-core {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.curriculum-subject-group-numeracy,
.curriculum-subject-group-language {
    background: linear-gradient(135deg, #ffffff 0%, #f7fff9 100%);
}

.curriculum-subject-group-creative,
.curriculum-subject-group-life,
.curriculum-subject-group-heritage {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

.curriculum-subject-group-extra {
    background: linear-gradient(135deg, #ffffff 0%, #fff7fb 100%);
}
.recent-attempts-section {
    clear: both;
    display: block;
    width: 100%;
    margin-top: 36px;
}
/* ============================================================
   Structured Question Bank UI
   ============================================================ */

.structured-bank-welcome {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.structured-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1fr 1.4fr auto;
    gap: 14px;
    align-items: end;
}

.structured-set-card {
    background: #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
    margin-bottom: 20px;
}

.structured-question-card {
    background: #ffffff;
    border: 1px solid #dbe5ff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    margin-bottom: 22px;
}

.structured-question-header {
    background: #f8fbff;
    border-bottom: 1px solid #e4e7ec;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.structured-question-header strong {
    color: #06142e;
    font-size: 17px;
}

.structured-question-body {
    padding: 20px;
}

.structured-block {
    margin-bottom: 18px;
}

.structured-block h4 {
    color: #06142e;
    margin: 0 0 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.structured-block-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    color: #334155;
    line-height: 1.7;
}

.structured-answer-block .structured-block-content {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.structured-marking-block .structured-block-content {
    background: #fff7ed;
    border-color: #fed7aa;
}

.structured-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.structured-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #b42318;
    border: 1px solid #fecdca;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

.structured-danger-btn:hover {
    background: #fef3f2;
}

.structured-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.structured-form-card {
    max-width: 980px;
}

@media (max-width: 1150px) {
    .structured-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .structured-meta-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 700px) {
    .structured-filter-form,
    .structured-meta-grid {
        grid-template-columns: 1fr;
    }

    .structured-question-header {
        display: grid;
        align-items: start;
    }
}
/* ---------- Breadcrumb Navigation ---------- */

.breadcrumb-nav{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 24px;
    font-size:.95rem;
    color:#64748b;
}

.breadcrumb-nav a{
    color:#315efb;
    text-decoration:none;
    font-weight:600;
}

.breadcrumb-nav a:hover{
    text-decoration:underline;
}

.breadcrumb-separator{
    color:#94a3b8;
}

.breadcrumb-current{
    color:#0f172a;
    font-weight:700;
}
.structured-paper-card {
    border-color: #d8b4fe;
}

.structured-paper-card .small-badge {
    width: fit-content;
}
/* Objective Practice UI Alignment — Phase 1
   Makes Question Set Objective Practice behave like the Structured Practice learner flow.
   Scoped to take_question_set_quiz.html only.
*/

.objective-step-practice-page {
    max-width: 1040px;
}

.objective-step-progress-panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.objective-step-progress-topline,
.objective-step-status-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.objective-step-progress-topline h3 {
    margin: 0.25rem 0 0;
}

.objective-step-progress-percent {
    font-size: 1.3rem;
    color: #2563eb;
}

.objective-step-progress-track {
    margin-top: 1rem;
}

.objective-step-progress-fill {
    width: 0%;
    transition: width 0.25s ease;
}

.objective-step-status-row {
    margin-top: 0.8rem;
    color: #64748b;
    font-size: 0.95rem;
}

.objective-save-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.objective-save-indicator.is-saving {
    background: #fef3c7;
    color: #92400e;
}

.objective-save-indicator.is-saved {
    background: #dcfce7;
    color: #166534;
}

.objective-save-indicator.is-draft {
    background: #e0f2fe;
    color: #075985;
}

.objective-step-question-card[hidden],
.objective-step-submit-panel[hidden],
.objective-next-btn[hidden] {
    display: none !important;
}

.objective-step-question-card {
    animation: objectiveQuestionFade 0.18s ease;
}

.objective-step-options {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.objective-step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 1.25rem;
}

.objective-step-navigation .secondary-btn,
.objective-step-navigation .full-btn {
    min-height: 48px;
}

.objective-step-navigation .secondary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.objective-next-btn {
    width: auto;
    min-width: 180px;
}

.objective-step-submit-panel {
    margin-top: 1.25rem;
}

@keyframes objectiveQuestionFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@media (max-width: 720px) {
    .objective-step-progress-topline,
    .objective-step-status-row,
    .objective-step-navigation {
        align-items: stretch;
        flex-direction: column;
    }

    .objective-step-navigation .secondary-btn,
    .objective-step-navigation .full-btn,
    .objective-next-btn {
        width: 100%;
    }

    .objective-save-indicator {
        width: fit-content;
    }
}
/* Objective Practice Phase 2A: save-state polish */

.objective-save-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.objective-save-draft {
    background: #e0f2fe;
    color: #0369a1;
}

.objective-save-saving {
    background: #fef3c7;
    color: #92400e;
}

.objective-save-saved {
    background: #dcfce7;
    color: #166534;
}

.objective-save-complete {
    background: #ecfdf5;
    color: #047857;
}

.objective-save-saving::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: objectiveSaveSpin 0.75s linear infinite;
}

@keyframes objectiveSaveSpin {
    to {
        transform: rotate(360deg);
    }
}

.objective-question-card.is-active {
    border-color: #2f5bff;
    box-shadow: 0 18px 44px rgba(47, 91, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .objective-save-status,
    .objective-save-saving::before {
        transition: none;
        animation: none;
    }
}
* Shared exam page width */
.objective-step-practice-page,
.dashboard-page.question-set-page {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

/* Shared progress panels */
.objective-step-progress-panel,
.structured-progress-panel {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

/* Shared progress top rows */
.objective-step-progress-topline,
.structured-progress-topline,
.objective-step-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Shared progress titles */
.objective-step-progress-topline h3,
.structured-progress-topline h3 {
    margin: 8px 0 0;
    color: #101828;
}

/* Shared progress percentages */
.objective-step-progress-percent,
.structured-progress-percent {
    font-size: 32px;
    line-height: 1;
    color: #315efb;
    font-weight: 900;
}

/* Shared progress tracks */
.objective-step-progress-track,
.structured-progress-track {
    width: 100%;
    height: 14px;
    background: #eef2ff;
    border-radius: 999px;
    overflow: hidden;
}

/* Shared progress fills */
.objective-step-progress-fill,
.structured-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #315efb, #6d8cff);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Shared progress/status text */
.objective-step-status-row,
.structured-progress-caption {
    color: #667085;
    font-size: 14px;
}

/* Shared timer cards */
.timer-card,
.structured-timer-panel {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.timer-card h3,
.structured-timer-panel h3 {
    margin: 8px 0 6px;
    color: #101828;
}

.timer-card p,
.structured-timer-panel p {
    margin: 0;
    color: #667085;
}

/* Shared timer display */
.timer-display,
.structured-timer-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #eef2ff;
    color: #315efb;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

/* Shared timer warning/danger feel */
.timer-warning .timer-display,
.structured-timer-panel.is-warning .structured-timer-countdown {
    background: #fff7ed;
    color: #b54708;
}

.structured-timer-panel.is-danger .structured-timer-countdown {
    background: #fef3f2;
    color: #b42318;
}

/* Shared navigation panels */
.objective-step-navigation,
.structured-exam-panel,
.structured-exam-bottom-controls {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 16px;
    margin: 18px 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

/* Objective navigation should keep its left/right layout */
.objective-step-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

/* Structured panel keeps its own internal layout */
.structured-exam-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Shared navigation button behavior */
.objective-step-navigation button,
.structured-exam-panel button,
.structured-exam-bottom-controls button {
    min-height: 48px;
}

.objective-step-navigation button:disabled,
.structured-exam-panel button:disabled,
.structured-exam-bottom-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Shared focus states for accessibility */
.objective-step-navigation button:focus-visible,
.structured-exam-panel button:focus-visible,
.structured-exam-bottom-controls button:focus-visible,
.answer-option:focus-within,
.structured-answer-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.14);
}

/* Shared question cards */
.objective-step-question-card,
.structured-question-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

/* Shared question active animation */
.objective-step-question-card,
.structured-question-step {
    animation: examQuestionFade 0.18s ease;
}

@keyframes examQuestionFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* Shared objective option polish */
.objective-step-options {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.objective-step-options .answer-option {
    margin-top: 0;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.objective-step-options .answer-option:hover {
    border-color: #c7d7fe;
    background: #f8fbff;
    transform: translateY(-1px);
}

.objective-step-options .answer-option:has(input:checked) {
    border-color: #315efb;
    background: #eef4ff;
}

/* Shared save status pills */
.objective-save-status,
.autosave-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

/* Objective save states */
.objective-save-draft {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

.objective-save-saving {
    background: #eef4ff;
    color: #315efb;
    border: 1px solid #c7d7fe;
}

.objective-save-saved,
.objective-save-complete {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

/* Structured autosave states */
.autosave-status {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

.autosave-status.saving {
    background: #eef4ff;
    color: #315efb;
    border-color: #c7d7fe;
}

.autosave-status.saved {
    background: #ecfdf3;
    color: #027a48;
    border-color: #abefc6;
}

.autosave-status.error {
    background: #fef3f2;
    color: #b42318;
    border-color: #fecdca;
}

/* Hidden state consistency */
.objective-step-question-card[hidden],
.objective-step-submit-panel[hidden],
.objective-next-btn[hidden],
.structured-question-step.is-hidden {
    display: none !important;
}

/* Shared mobile exam layout */
@media (max-width: 720px) {
    .objective-step-progress-topline,
    .structured-progress-topline,
    .objective-step-status-row,
    .timer-card,
    .structured-timer-panel,
    .structured-exam-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .objective-step-progress-percent,
    .structured-progress-percent {
        font-size: 26px;
    }

    .timer-display,
    .structured-timer-countdown {
        width: 100%;
        min-width: 0;
    }

    .objective-step-navigation {
        display: grid;
        grid-template-columns: 1fr;
    }

    .objective-step-navigation .secondary-btn,
    .objective-step-navigation .full-btn,
    .objective-next-btn {
        width: 100%;
        min-width: 0;
    }

    .structured-exam-panel-actions,
    .structured-exam-bottom-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .structured-exam-panel-actions button,
    .structured-exam-bottom-controls button {
        width: 100%;
    }

    .objective-step-question-card,
    .structured-question-card {
        padding: 20px;
        border-radius: 20px;
    }

    .objective-step-options .answer-option {
        align-items: flex-start;
    }

    .objective-step-options .answer-option span {
        line-height: 1.5;
    }
}
/* Shared exam container */
.exam-page,
.objective-step-practice-page,
.dashboard-page.question-set-page {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

/* Shared progress card */
.exam-progress-panel,
.objective-step-progress-panel,
.structured-progress-panel {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

/* Shared progress top line */
.exam-progress-topline,
.objective-step-progress-topline,
.structured-progress-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.exam-progress-topline h3,
.objective-step-progress-topline h3,
.structured-progress-topline h3 {
    margin: 8px 0 0;
    color: #101828;
}

/* Shared progress percent */
.exam-progress-percent,
.objective-step-progress-percent,
.structured-progress-percent {
    font-size: 32px;
    line-height: 1;
    color: #315efb;
    font-weight: 900;
}

/* Shared progress track/fill */
.exam-progress-track,
.objective-step-progress-track,
.structured-progress-track {
    width: 100%;
    height: 14px;
    background: #eef2ff;
    border-radius: 999px;
    overflow: hidden;
}

.exam-progress-fill,
.objective-step-progress-fill,
.structured-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #315efb, #6d8cff);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Shared status row and captions */
.exam-status-row,
.objective-step-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    color: #667085;
    font-size: 14px;
}

.exam-progress-caption,
.structured-progress-caption {
    margin: 10px 0 0;
    color: #667085;
    font-size: 14px;
}

/* Shared timer card */
.exam-timer-card,
.timer-card,
.structured-timer-panel {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.exam-timer-card h3,
.timer-card h3,
.structured-timer-panel h3 {
    margin: 8px 0 6px;
    color: #101828;
}

.exam-timer-card p,
.timer-card p,
.structured-timer-panel p {
    margin: 0;
    color: #667085;
}

/* Shared timer display */
.exam-timer-display,
.timer-display,
.structured-timer-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #eef2ff;
    color: #315efb;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

/* Shared timer warning states */
.exam-timer-card.is-warning .exam-timer-display,
.timer-warning .timer-display,
.structured-timer-panel.is-warning .structured-timer-countdown {
    background: #fff7ed;
    color: #b54708;
}

.exam-timer-card.is-danger .exam-timer-display,
.structured-timer-panel.is-danger .structured-timer-countdown {
    background: #fef3f2;
    color: #b42318;
}

/* Shared navigation panels */
.exam-navigation,
.objective-step-navigation,
.structured-exam-panel,
.structured-exam-bottom-controls {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 16px;
    margin: 18px 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

/* Shared horizontal navigation layout */
.exam-navigation,
.objective-step-navigation,
.structured-exam-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Bottom structured controls keep centered feel */
.structured-exam-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Shared navigation buttons */
.exam-navigation button,
.objective-step-navigation button,
.structured-exam-panel button,
.structured-exam-bottom-controls button {
    min-height: 48px;
}

.exam-navigation button:disabled,
.objective-step-navigation button:disabled,
.structured-exam-panel button:disabled,
.structured-exam-bottom-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Shared question card */
.exam-question-card,
.objective-step-question-card,
.structured-question-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

/* Shared question animation */
.exam-question-card,
.objective-step-question-card,
.structured-question-step {
    animation: examQuestionFade 0.18s ease;
}

@keyframes examQuestionFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* Shared save status */
.exam-save-status,
.objective-save-status,
.autosave-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

/* Generic shared save states */
.exam-save-status.is-draft,
.objective-save-draft {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

.exam-save-status.is-saving,
.objective-save-saving,
.autosave-status.saving {
    background: #eef4ff;
    color: #315efb;
    border: 1px solid #c7d7fe;
}

.exam-save-status.is-saved,
.exam-save-status.is-complete,
.objective-save-saved,
.objective-save-complete,
.autosave-status.saved {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.exam-save-status.is-error,
.autosave-status.error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

/* Structured autosave base */
.autosave-status {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

/* Objective option polish remains objective-specific for now */
.objective-step-options {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.objective-step-options .answer-option {
    margin-top: 0;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.objective-step-options .answer-option:hover {
    border-color: #c7d7fe;
    background: #f8fbff;
    transform: translateY(-1px);
}

.objective-step-options .answer-option:has(input:checked) {
    border-color: #315efb;
    background: #eef4ff;
}

/* Shared focus states */
.exam-navigation button:focus-visible,
.objective-step-navigation button:focus-visible,
.structured-exam-panel button:focus-visible,
.structured-exam-bottom-controls button:focus-visible,
.answer-option:focus-within,
.structured-answer-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.14);
}

/* Shared hidden states */
.exam-question-card[hidden],
.objective-step-question-card[hidden],
.objective-step-submit-panel[hidden],
.objective-next-btn[hidden],
.structured-question-step.is-hidden {
    display: none !important;
}

/* Shared mobile behavior */
@media (max-width: 720px) {
    .exam-progress-topline,
    .objective-step-progress-topline,
    .structured-progress-topline,
    .exam-status-row,
    .objective-step-status-row,
    .exam-timer-card,
    .timer-card,
    .structured-timer-panel,
    .exam-navigation,
    .objective-step-navigation,
    .structured-exam-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .exam-progress-percent,
    .objective-step-progress-percent,
    .structured-progress-percent {
        font-size: 26px;
    }

    .exam-timer-display,
    .timer-display,
    .structured-timer-countdown {
        width: 100%;
        min-width: 0;
    }

    .exam-navigation,
    .objective-step-navigation {
        display: grid;
        grid-template-columns: 1fr;
    }

    .exam-navigation .secondary-btn,
    .exam-navigation .full-btn,
    .objective-step-navigation .secondary-btn,
    .objective-step-navigation .full-btn,
    .objective-next-btn {
        width: 100%;
        min-width: 0;
    }

    .structured-exam-panel-actions,
    .structured-exam-bottom-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .structured-exam-panel-actions button,
    .structured-exam-bottom-controls button {
        width: 100%;
    }

    .exam-question-card,
    .objective-step-question-card,
    .structured-question-card {
        padding: 20px;
        border-radius: 20px;
    }

    .objective-step-options .answer-option {
        align-items: flex-start;
    }

    .objective-step-options .answer-option span {
        line-height: 1.5;
    }
}
.exam-question-palette,
.objective-question-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
}

.exam-palette-item,
.objective-palette-item {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.exam-palette-item:hover,
.objective-palette-item:hover {
    transform: translateY(-1px);
    border-color: #315efb;
    color: #315efb;
    background: #eef4ff;
}

.exam-palette-item.is-current,
.objective-palette-item.is-current {
    background: #315efb;
    border-color: #315efb;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.24);
}

.exam-palette-item.is-answered,
.objective-palette-item.is-answered {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #027a48;
}

.exam-palette-item.is-current.is-answered,
.objective-palette-item.is-current.is-answered {
    background: #315efb;
    border-color: #315efb;
    color: #ffffff;
}

.exam-palette-item:focus-visible,
.objective-palette-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.16);
}

@media (max-width: 720px) {
    .exam-question-palette,
    .objective-question-palette {
        gap: 7px;
    }

    .exam-palette-item,
    .objective-palette-item {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}
.objective-question-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.objective-question-card-top h3 {
    margin-bottom: 4px;
}

.exam-flag-btn,
.objective-flag-btn {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
    border-radius: 999px;
    padding: 9px 13px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.exam-flag-btn:hover,
.objective-flag-btn:hover {
    transform: translateY(-1px);
    background: #ffedd5;
    border-color: #fdba74;
}

.exam-flag-btn.is-flagged,
.objective-flag-btn.is-flagged {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.18);
}

.exam-flag-btn:focus-visible,
.objective-flag-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
}

.exam-palette-item.is-flagged,
.objective-palette-item.is-flagged {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #92400e;
}

.exam-palette-item.is-answered.is-flagged,
.objective-palette-item.is-answered.is-flagged {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #ecfdf3 0%, #ecfdf3 58%, #fffbeb 58%, #fffbeb 100%);
    color: #027a48;
}

.exam-palette-item.is-current.is-flagged,
.objective-palette-item.is-current.is-flagged,
.exam-palette-item.is-current.is-answered.is-flagged,
.objective-palette-item.is-current.is-answered.is-flagged {
    background: #315efb;
    border-color: #315efb;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.24), inset 0 -4px 0 #fbbf24;
}

#objectiveFlaggedStatus {
    color: #92400e;
    font-weight: 800;
}

@media (max-width: 720px) {
    .objective-question-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .exam-flag-btn,
    .objective-flag-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
.objective-submit-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
}

.objective-submit-modal-backdrop.is-visible {
    display: flex;
}

.objective-submit-modal {
    width: min(620px, 100%);
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
    animation: objectiveSubmitModalIn 0.18s ease-out;
}

.objective-submit-modal-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #eef4ff;
    color: #315efb;
    font-size: 26px;
    margin-bottom: 14px;
}

.objective-submit-modal h3 {
    margin: 0;
    color: #101828;
    font-size: 28px;
    line-height: 1.2;
}

.objective-submit-modal p {
    margin: 12px 0 0;
    color: #667085;
    line-height: 1.65;
}

.objective-submit-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.objective-submit-summary-grid div {
    padding: 14px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #f8fafc;
    text-align: center;
}

.objective-submit-summary-grid span,
.objective-submit-summary-grid strong {
    display: block;
}

.objective-submit-summary-grid span {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.objective-submit-summary-grid strong {
    margin-top: 6px;
    color: #101828;
    font-size: 22px;
}

.objective-submit-time-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #eef4ff;
    border: 1px solid #c7d7fe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.objective-submit-time-box span {
    color: #315efb;
    font-weight: 900;
}

.objective-submit-time-box strong {
    color: #06142e;
    font-size: 22px;
    font-weight: 900;
}

.objective-submit-warning {
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid #fedf89;
    border-radius: 16px;
    background: #fffbeb;
    color: #92400e;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
}

.objective-submit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

@keyframes objectiveSubmitModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

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

@media (max-width: 640px) {
    .objective-submit-modal {
        padding: 20px;
        border-radius: 22px;
    }

    .objective-submit-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .objective-submit-time-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .objective-submit-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .objective-submit-modal-actions button {
        width: 100%;
    }
}
.structured-review-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    background: #ffffff;
    color: #667085;
    font-size: 14px;
    font-weight: 800;
}

#structuredFlaggedStatus {
    color: #92400e;
}

.structured-question-header-with-review {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: flex-start;
    gap: 14px;
}

.structured-question-nav.exam-question-palette {
    padding-top: 0;
    border-top: none;
}

.structured-question-nav-item.is-flagged {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #92400e;
}

.structured-question-nav-item.is-answered.is-flagged {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #ecfdf3 0%, #ecfdf3 58%, #fffbeb 58%, #fffbeb 100%);
    color: #027a48;
}

.structured-question-nav-item.is-current.is-flagged,
.structured-question-nav-item.is-current.is-answered.is-flagged {
    background: #315efb;
    border-color: #315efb;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.24), inset 0 -4px 0 #fbbf24;
}

.structured-flag-btn {
    align-self: flex-start;
}

.structured-submit-modal-summary-expanded {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 820px) {
    .structured-question-header-with-review {
        grid-template-columns: 1fr;
    }

    .structured-flag-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .structured-review-status-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .structured-submit-modal-summary-expanded {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .structured-submit-modal-summary-expanded {
        grid-template-columns: 1fr;
    }
}
.exam-palette-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    background: #f8fafc;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.exam-palette-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.legend-dot {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
}

.legend-current {
    background: #315efb;
    border-color: #315efb;
    box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.14);
}

.legend-answered {
    background: #ecfdf3;
    border-color: #12b76a;
}

.legend-flagged {
    background: #fffbeb;
    border-color: #fbbf24;
}

.legend-unanswered {
    background: #ffffff;
    border-color: #d0d5dd;
}

/* Better shared palette spacing */
.exam-question-palette {
    align-items: center;
    gap: 8px;
}

/* Premium palette buttons */
.exam-palette-item,
.objective-palette-item,
.structured-question-nav-item {
    position: relative;
    user-select: none;
    will-change: transform;
}

/* Stronger current glow */
.exam-palette-item.is-current,
.objective-palette-item.is-current,
.structured-question-nav-item.is-current {
    transform: translateY(-1px);
    box-shadow:
        0 10px 24px rgba(49, 94, 251, 0.26),
        0 0 0 4px rgba(49, 94, 251, 0.10);
}

/* Small flagged corner marker */
.exam-palette-item.is-flagged::after,
.objective-palette-item.is-flagged::after,
.structured-question-nav-item.is-flagged::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #fbbf24;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(146, 64, 14, 0.18);
}

/* Current question should keep the flag marker visible */
.exam-palette-item.is-current.is-flagged::after,
.objective-palette-item.is-current.is-flagged::after,
.structured-question-nav-item.is-current.is-flagged::after {
    background: #fbbf24;
}

/* Better answered + current contrast */
.exam-palette-item.is-current.is-answered,
.objective-palette-item.is-current.is-answered,
.structured-question-nav-item.is-current.is-answered {
    background: #315efb;
    border-color: #315efb;
    color: #ffffff;
}

/* Compact mode for long exams */
.exam-palette-compact {
    gap: 6px;
}

.exam-palette-compact .exam-palette-item,
.exam-palette-compact .objective-palette-item,
.exam-palette-compact .structured-question-nav-item {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

/* Horizontal scroll fallback for very long papers on small screens */
@media (max-width: 720px) {
    .exam-palette-legend {
        gap: 8px 10px;
        font-size: 12px;
        padding: 11px 12px;
    }

    .exam-question-palette {
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .exam-question-palette .exam-palette-item,
    .exam-question-palette .objective-palette-item,
    .exam-question-palette .structured-question-nav-item {
        flex: 0 0 auto;
    }

    .exam-palette-compact .exam-palette-item,
    .exam-palette-compact .objective-palette-item,
    .exam-palette-compact .structured-question-nav-item {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .exam-palette-item,
    .objective-palette-item,
    .structured-question-nav-item {
        transition: none !important;
    }

    .exam-palette-item:hover,
    .objective-palette-item:hover,
    .structured-question-nav-item:hover,
    .exam-palette-item.is-current,
    .objective-palette-item.is-current,
    .structured-question-nav-item.is-current {
        transform: none;
    }
}
.notification-nav-pill {
    position: relative;
}
.navbar-avatar-link{
    width:42px;
    height:42px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    background:#eef4ff;
    border:1px solid #dbeafe;
    overflow:hidden;
    flex:0 0 auto;
}

.navbar-avatar-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.navbar-avatar-fallback{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, #2563eb, #7c3aed);
    color:#ffffff;
    font-size:16px;
    font-weight:900;
}
.profile-avatar-preview,
.profile-avatar-initials {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.profile-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    font-weight: 900;
    font-size: 28px;
}

.hidden-avatar-preview {
    display: none !important;
}

.nav-avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-avatar,
.nav-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #e0e7ff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.nav-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
}
.profile-avatar-preview,
.profile-avatar-initials{
    width:110px;
    height:110px;
    border-radius:50%;
    object-fit:cover;
    overflow:hidden;
}
.profile-avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #ffffff;
}

.notification-unread {
    border-color: #2563eb;
    background: #eff6ff;
}

.notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 20px;
}

.notification-main h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.notification-main p {
    margin: 0 0 6px;
    color: #475569;
}

.notification-main span {
    color: #64748b;
    font-size: 13px;
}

.notification-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.status-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
}

@media (max-width: 700px) {
    .notification-row {
        grid-template-columns: auto 1fr;
    }

    .notification-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}
.profile-avatar-container {
    display:flex;
    justify-content:center;
    align-items:center;
    margin:18px 0;
}

.profile-avatar-preview,
.profile-avatar-initials {
    width:96px;
    height:96px;
    border-radius:999px;
    object-fit:cover;
    border:4px solid #ffffff;
    box-shadow:0 12px 30px rgba(15, 23, 42, .12);
}

.profile-avatar-initials {
    display:flex;
    align-items:center;
    justify-content:center;
    background:#315efb;
    color:#ffffff;
    font-size:28px;
    font-weight:900;
}

.hidden-avatar-preview {
    display:none !important;
}

.custom-file-upload {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    margin-top:14px;
}

.custom-file-upload input[type="file"] {
    display:none;
}

.custom-file-label {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 22px;
    min-height:46px;
    border-radius:14px;
    background:#315efb;
    color:#ffffff !important;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
}

.custom-file-label:hover {
    background:#234de5;
}

.custom-file-name {
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

/* Objective Practice */
.objective-step-question-card h3,
.objective-step-question-card .question-topic-label,
.objective-step-question-card .question-text,
.objective-step-question-card .question-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}

/* Structured Practice */
.structured-question-card h3,
.structured-question-card .structured-question-text,
.structured-question-card .structured-question-image,
.structured-question-card .structured-question-prompt {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}

/* Prevent dragging images */
.objective-step-question-card img,
.structured-question-card img {
    -webkit-user-drag: none;
    user-drag: none;
}
/* Objective Practice question text only */
.objective-step-question-card h3,
.objective-step-question-card .question-topic-label,
.objective-step-question-card .question-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Structured Practice question prompt only */
.structured-question-card .structured-question-count,
.structured-question-card .structured-question-header strong,
.structured-question-card .structured-block:first-child h4,
.structured-question-card .structured-block:first-child .structured-block-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Prevent dragging question images */
.objective-step-question-card img,
.structured-question-card img {
    -webkit-user-drag: none;
    user-drag: none;
}
/* Question Bank bulk delete */
.bulk-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #fee4e2;
    border-radius: 18px;
    background: #fff7f6;
}

.bulk-action-bar strong {
    display: block;
    color: #101828;
    font-weight: 900;
}

.bulk-action-bar span {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.bulk-select-column {
    width: 44px;
    text-align: center;
}

.bulk-select-column input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bulk-select-column input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.bulk-delete-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .bulk-action-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulk-action-bar .bulk-delete-btn {
        width: 100%;
    }
}
/* ============================================================
   BrainDesk Objective Practice — Shared Stimulus / Passage Card
   ============================================================ */

.objective-stimulus-card {
    margin-top: 1.25rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.objective-stimulus-card h3 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 800;
}

.objective-reading-passage::before {
    content: "📖 Reading Passage";
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.objective-stimulus-text {
    font-size: 1rem;
    line-height: 1.8;
}

.objective-stimulus-text p {
    margin: 0 0 1rem;
}

.objective-stimulus-text p:last-child {
    margin-bottom: 0;
}


/* Long comprehension passages */
.objective-stimulus-card {
    max-height: 460px;
    overflow-y: auto;
    scroll-behavior: smooth;
}


/* Subtle scrollbar */
.objective-stimulus-card::-webkit-scrollbar {
    width: 8px;
}

.objective-stimulus-card::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
}

.objective-stimulus-card::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}


/* Mobile */
@media (max-width: 768px) {
    .objective-stimulus-card {
        margin-top: 1rem;
        padding: 1rem 1.05rem;
        border-radius: 14px;
        max-height: 380px;
    }

    .objective-stimulus-card h3 {
        font-size: 1.05rem;
    }

    .objective-stimulus-text {
        font-size: 0.96rem;
        line-height: 1.7;
    }
}

/* =========================================================
   LEARNER QUESTION SETS — MODERN UI
========================================================= */

.question-set-page {
    max-width: 1180px;
    margin: 0 auto;
}

/* Hero */

.question-set-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e4e9f5;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(116, 86, 255, 0.10), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8faff 55%, #fffaf5 100%);
    box-shadow: 0 14px 35px rgba(28, 45, 90, 0.07);
}

.question-set-hero-copy h2 {
    margin: 0.7rem 0 0.65rem;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.question-set-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.question-set-hero-meta span {
    padding: 0.42rem 0.7rem;
    border: 1px solid #e1e7f2;
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.question-set-topic-description {
    max-width: 760px;
    margin: 0;
    line-height: 1.65;
    color: #667085;
}

.question-set-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    min-width: 190px;
}


/* Search */

.question-set-search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.2fr);
    gap: 1.5rem;
    align-items: end;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e4e9f5;
    border-radius: 20px;
    background: #ffffff;
}

.question-set-search-copy {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.question-set-search-copy h3 {
    margin: 0 0 0.25rem;
}

.question-set-search-copy p {
    margin: 0;
    color: #667085;
    font-size: 0.9rem;
}

.question-set-search-form {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.question-set-search-form input {
    width: 100%;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #dce3ef;
    border-radius: 12px;
    background: #fbfcff;
    font: inherit;
    outline: none;
}

.question-set-search-form input:focus {
    border-color: #8ea7ff;
    box-shadow: 0 0 0 3px rgba(61, 99, 255, 0.09);
}


/* Premium banner */

.question-set-premium-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    margin-bottom: 1.6rem;
    border: 1px solid #f0d48a;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffdf5, #fff8df);
}

.question-set-premium-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #ffffff;
    font-size: 1.2rem;
}

.question-set-premium-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.question-set-premium-copy strong {
    color: #20293a;
}

.question-set-premium-copy span {
    color: #6c6250;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* Practice sections */

.question-set-practice-section {
    margin-top: 1.5rem;
}

.question-set-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.question-set-section-heading h3 {
    margin: 0.4rem 0 0.25rem;
    font-size: 1.45rem;
}

.question-set-section-heading p {
    margin: 0;
    color: #667085;
}

.question-set-free-note {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #315ccf;
    font-size: 0.82rem;
    font-weight: 800;
}


/* Cards */

.question-set-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.question-set-modern-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e7f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(32, 45, 78, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.question-set-modern-card:hover {
    transform: translateY(-3px);
    border-color: #cfd9ee;
    box-shadow: 0 14px 32px rgba(32, 45, 78, 0.09);
}

.objective-set-card {
    border-top: 4px solid #4d72ff;
}

.structured-set-card {
    border-top: 4px solid #8b5cf6;
}

.question-set-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: center;
    padding: 1rem 1rem 0;
}

.question-set-type-badge,
.question-set-access-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.question-set-type-badge {
    background: #eef3ff;
    color: #315ccf;
}

.structured-badge {
    background: #f3efff;
    color: #7046c8;
}

.access-premium {
    background: #fff5d9;
    color: #876300;
}

.access-open {
    background: #eaf9ef;
    color: #237a42;
}

.question-set-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.question-set-card-body h3 {
    margin: 0 0 0.65rem;
    font-size: 1.08rem;
    line-height: 1.35;
}

.question-set-card-body > p {
    margin: 0 0 1rem;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.55;
}

.question-set-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: auto;
}

.question-set-card-stats span {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.65rem;
    border-radius: 12px;
    background: #f7f9fd;
    color: #667085;
    font-size: 0.74rem;
}

.question-set-card-stats strong {
    color: #20293a;
    font-size: 0.92rem;
}

.question-set-card-note {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #fbfcff;
    color: #667085;
    font-size: 0.8rem;
}

.question-set-card-actions {
    padding: 0 1rem 1rem;
}

.question-set-card-actions .primary-btn,
.question-set-card-actions .secondary-btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}


/* Structured section */

.structured-practice-section {
    padding-top: 0.5rem;
    margin-bottom: 1.5rem;
}


/* Responsive */

@media (max-width: 980px) {
    .question-set-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .question-set-search-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .question-set-hero {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .question-set-hero-actions {
        min-width: 0;
    }

    .question-set-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .question-set-premium-banner {
        grid-template-columns: auto 1fr;
    }

    .question-set-premium-banner .primary-btn {
        grid-column: 1 / -1;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
    }

    .question-set-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

/* =========================================================
   QUESTION SETS — FINAL POLISH
========================================================= */

/* Give the cards a little more breathing room */
.question-set-modern-grid {
    gap: 1.15rem;
}

/* Prevent long titles from making cards feel cramped */
.question-set-card-body h3 {
    overflow-wrap: anywhere;
}

/* Keep action buttons safely inside their cards */
.question-set-card-actions {
    min-width: 0;
}

.question-set-card-actions .primary-btn,
.question-set-card-actions .secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    white-space: normal;
    line-height: 1.25;
}

/* Structured buttons need slightly smaller text on 3-column desktop cards */
.structured-set-card .question-set-card-actions .primary-btn {
    font-size: 0.84rem;
}

/* Give the two practice sections clearer separation */
.structured-practice-section {
    margin-top: 2rem;
}

/* Slightly stronger card distinction without making them heavy */
.question-set-modern-card {
    height: 100%;
}

/* Keep card actions aligned at the bottom */
.question-set-card-actions {
    margin-top: auto;
}