/* MockMaster Frontend / Student Portal Styles */

.mmt-portal-wrapper {
    width: 100%;
    max-width: 1140px;
    margin: 30px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.mmt-portal-wrapper * {
    box-sizing: border-box;
}

/* Student Navigation Bar */
.mmt-student-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.mmt-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mmt-nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1.2;
}

.mmt-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.mmt-nav-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.mmt-hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.mmt-nav-expanded .mmt-hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mmt-nav-expanded .mmt-hamburger-line:nth-child(2) {
    opacity: 0;
}
.mmt-nav-expanded .mmt-hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mmt-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mmt-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.mmt-nav-link:hover,
.mmt-nav-link.active {
    color: #1e3a8a;
    background: #eff6ff;
}

.mmt-nav-logout {
    color: #dc2626 !important;
}
.mmt-nav-logout:hover {
    background: #fef2f2 !important;
}

/* Metric Cards */
.mmt-dash-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.mmt-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.mmt-metric-num {
    font-size: 36px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
    margin-bottom: 8px;
}

.mmt-metric-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

/* Test Cards Grid */
.mmt-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.mmt-test-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mmt-test-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.mmt-test-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.mmt-test-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
}

.mmt-test-meta-list {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
}

.mmt-test-meta-list li {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mmt-test-meta-list strong {
    color: #1e293b;
}

/* Buttons */
.mmt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease;
    text-align: center;
}

.mmt-btn-primary {
    background-color: #2563eb;
    color: #ffffff !important;
}
.mmt-btn-primary:hover {
    background-color: #1d4ed8;
}

.mmt-btn-success {
    background-color: #10b981;
    color: #ffffff !important;
}
.mmt-btn-success:hover {
    background-color: #059669;
}

.mmt-btn-secondary {
    background-color: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}
.mmt-btn-secondary:hover {
    background-color: #e2e8f0;
}

.mmt-btn-block {
    width: 100%;
}

.mmt-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   TEST INTERFACE
========================================= */
.mmt-exam-wrapper {
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.mmt-exam-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    color: #ffffff;
    padding: 16px 24px;
}

.mmt-exam-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #f8fafc;
}

.mmt-exam-timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #334155;
}

.mmt-exam-timer {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: monospace;
    color: #38bdf8;
}

.mmt-exam-timer.mmt-timer-warning {
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.mmt-exam-body {
    padding: 32px;
}

.mmt-exam-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.mmt-exam-q-indicator {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mmt-exam-marks-info {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 4px;
}

.mmt-exam-q-text {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Options */
.mmt-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.mmt-option-label {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.15s ease;
}

.mmt-option-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.mmt-option-label.selected {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
    font-weight: 600;
}

.mmt-opt-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.mmt-option-label.selected .mmt-opt-badge {
    background: #2563eb;
    color: #ffffff;
}

.mmt-option-radio {
    display: none;
}

/* Exam Controls (Preview & Submit) */
.mmt-exam-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.mmt-autosave-indicator {
    font-size: 12px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =========================================
   SCORECARD / RESULTS PAGE
========================================= */
.mmt-result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mmt-result-header {
    text-align: center;
    margin-bottom: 32px;
}

.mmt-result-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.mmt-result-subtitle {
    font-size: 14px;
    color: #64748b;
}

.mmt-score-circle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.mmt-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid #2563eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.mmt-score-big {
    font-size: 32px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
}

.mmt-score-percent {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
}

.mmt-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.mmt-breakdown-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.mmt-bd-val {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.mmt-bd-correct .mmt-bd-val { color: #16a34a; }
.mmt-bd-wrong .mmt-bd-val { color: #dc2626; }
.mmt-bd-skipped .mmt-bd-val { color: #64748b; }
.mmt-bd-time .mmt-bd-val { color: #0284c7; }

.mmt-bd-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

/* Certificate Eligibility Banner */
.mmt-cert-eligibility-box {
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.mmt-cert-eligible {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.mmt-cert-not-eligible {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.mmt-cert-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

/* Certificates Gallery */
.mmt-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.mmt-cert-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.mmt-cert-preview-banner {
    background: #1e293b;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    position: relative;
}

.mmt-cert-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modal Dialog Styles (Submission Confirmation) */
.mmt-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}

.mmt-modal-dialog {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.mmt-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mmt-confirm-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.mmt-csum-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
}

.mmt-csum-card.mmt-csum-answered {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mmt-csum-card.mmt-csum-unanswered {
    background: #fef2f2;
    border-color: #fecaca;
}

.mmt-csum-val {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.mmt-csum-answered .mmt-csum-val {
    color: #16a34a;
}

.mmt-csum-unanswered .mmt-csum-val {
    color: #dc2626;
}

.mmt-csum-lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
}

.mmt-confirm-warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #92400e;
    font-size: 13px;
    line-height: 1.4;
}

/* =========================================
   INSTRUCTIONS CARD VIEW
========================================= */
.mmt-instructions-card {
    max-width: 720px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.mmt-instructions-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 24px 28px;
    box-sizing: border-box;
}

.mmt-instructions-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #38bdf8;
    display: block;
}

.mmt-instructions-title {
    font-size: 24px;
    font-weight: 800;
    margin: 8px 0 6px 0;
    color: #ffffff;
    line-height: 1.3;
}

.mmt-instructions-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.mmt-instructions-body {
    padding: 24px 28px;
    box-sizing: border-box;
}

.mmt-rules-heading {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.mmt-test-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.mmt-rule-item {
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.mmt-rule-lbl {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mmt-rule-val {
    font-size: 17px;
    color: #0f172a;
    display: block;
}

.mmt-warning-banner {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.mmt-instructions-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    gap: 12px;
}

.mmt-btn-start-exam {
    font-size: 16px;
    padding: 12px 28px;
}

/* =========================================
   RESULTS TABLE & MOBILE CARDS
========================================= */
.mmt-results-table-wrap {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.mmt-results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    min-width: 640px;
}

.mmt-results-table th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    padding: 12px 16px;
    white-space: nowrap;
}

.mmt-results-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

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

/* Mobile Results Cards */
.mmt-results-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mmt-result-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.mmt-rmc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.mmt-rmc-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.mmt-rmc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    margin-bottom: 12px;
}

.mmt-rmc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mmt-rmc-stat-val {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.mmt-rmc-stat-pct .mmt-rmc-stat-val { color: #2563eb; }
.mmt-rmc-stat-correct .mmt-rmc-stat-val { color: #16a34a; }
.mmt-rmc-stat-wrong .mmt-rmc-stat-val { color: #dc2626; }

.mmt-rmc-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 3px;
}

.mmt-rmc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
    padding: 0 2px;
}

/* =========================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
========================================= */

@media (max-width: 820px) {
    .mmt-student-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }

    .mmt-nav-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mmt-nav-toggle {
        display: flex;
    }

    .mmt-nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 6px;
        padding-top: 14px;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
    }

    .mmt-nav-links.mmt-nav-open,
    .mmt-nav-expanded .mmt-nav-links {
        display: flex;
    }

    .mmt-nav-link {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .mmt-results-table-wrap {
        display: none;
    }

    .mmt-results-mobile-cards {
        display: flex;
    }
}

@media (max-width: 640px) {
    /* Full-width mobile layout: use the entire phone viewport instead of
       leaving a narrow, desktop-style centered column. */
    .mmt-portal-wrapper {
        margin: 0 !important;
        padding: 8px !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }

    .mmt-portal-wrapper > * {
        width: 100%;
        max-width: none;
    }

    .mmt-student-nav,
    .mmt-student-profile-bar,
    .mmt-test-card,
    .mmt-result-card,
    .mmt-instructions-card,
    .mmt-cert-card {
        width: 100%;
        max-width: none;
    }

    .mmt-student-profile-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .mmt-profile-info-left {
        width: 100%;
    }

    .mmt-profile-details {
        font-size: 12px;
    }

    .mmt-instructions-header {
        padding: 18px 20px;
    }

    .mmt-instructions-title {
        font-size: 20px;
    }

    .mmt-instructions-body {
        padding: 20px 16px;
    }

    .mmt-test-rules-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mmt-instructions-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .mmt-instructions-actions .mmt-btn {
        width: 100%;
        min-height: 46px;
        font-size: 15px;
    }

    .mmt-exam-wrapper {
        border-radius: 8px;
        margin: 10px auto;
        width: 100%;
        max-width: 100%;
    }

    .mmt-exam-topbar {
        position: sticky;
        top: 0;
        z-index: 100;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
    }

    .mmt-exam-title {
        font-size: 14px;
        max-width: 160px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mmt-exam-timer-wrap {
        padding: 4px 10px;
    }

    .mmt-exam-timer {
        font-size: 15px;
    }

    .mmt-exam-body {
        padding: 20px 14px;
    }

    .mmt-exam-q-text {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 20px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .mmt-option-label {
        padding: 12px 14px;
        min-height: 48px;
        font-size: 14px;
        gap: 10px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .mmt-opt-badge {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .mmt-exam-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 16px;
    }

    .mmt-exam-footer .mmt-btn {
        width: 100%;
        min-height: 46px;
        font-size: 15px;
    }

    .mmt-result-card {
        padding: 24px 16px;
    }

    .mmt-result-title {
        font-size: 20px;
    }

    .mmt-breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mmt-cert-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .mmt-cert-actions .mmt-btn {
        width: 100%;
        min-height: 44px;
    }

    .mmt-cert-grid {
        grid-template-columns: 1fr;
    }

    .mmt-tests-grid {
        grid-template-columns: 1fr;
    }

    .mmt-dash-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Phones: maximize usable width and prevent desktop sizing from making
       content feel cramped. */
    .mmt-portal-wrapper {
        padding: 6px !important;
    }

    .mmt-student-nav {
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .mmt-test-card {
        padding: 18px 16px;
        border-radius: 8px;
    }

    .mmt-btn {
        min-height: 46px;
        padding: 11px 14px;
    }

    .mmt-exam-body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mmt-exam-topbar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mmt-option-label {
        width: 100%;
    }

    .mmt-confirm-summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mmt-modal-backdrop {
        padding: 10px;
    }

    .mmt-modal-content {
        padding: 18px 14px;
    }

    .mmt-rmc-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ==========================================================================
   MockMaster Student Auth & Registration Styles
/* ==========================================================================
   Student Authentication & Registration Card Styles (Isolated & Modern)
   ========================================================================== */

/* Outer Page Wrapper - centers card and shields from theme layout shifts */
.mmt-auth-page,
#mmt-auth-page {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 480px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 16px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Force isolation from aggressive theme layouts (Astra, Divi, Elementor, Twenty Twenty-Four, GeneratePress) */
.entry-content .mmt-auth-page,
.post-content .mmt-auth-page,
.site-main .mmt-auth-page,
#content .mmt-auth-page,
main .mmt-auth-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 40px 16px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Authentication Card Container */
.mmt-auth-page .mmt-auth-card,
.mmt-portal-wrapper .mmt-auth-card,
.mmt-auth-card {
    width: 100% !important;
    max-width: 460px !important;
    margin: 40px auto !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 32px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    text-align: left !important;
    float: none !important;
    clear: both !important;
}

/* Header Section */
.mmt-auth-page .mmt-auth-header,
.mmt-auth-card .mmt-auth-header,
.mmt-auth-header {
    text-align: center !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mmt-auth-page .mmt-auth-title,
.mmt-auth-card .mmt-auth-title,
.mmt-auth-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
}

.mmt-auth-page .mmt-auth-subtitle,
.mmt-auth-card .mmt-auth-subtitle,
.mmt-auth-subtitle {
    font-size: 14px !important;
    color: #64748b !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

/* Form Layout */
.mmt-auth-page .mmt-auth-form,
.mmt-auth-card .mmt-auth-form,
.mmt-auth-form {
    margin-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Form Groups: Strictly flex column, full width, no inline rendering */
.mmt-auth-page .mmt-form-group,
.mmt-auth-card .mmt-form-group,
.mmt-auth-form .mmt-form-group,
.mmt-form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-bottom: 18px !important;
    box-sizing: border-box !important;
    clear: both !important;
    float: none !important;
}

/* Form Labels - strictly positioned above inputs with high contrast */
.mmt-auth-page .mmt-form-label,
.mmt-auth-card .mmt-form-label,
.mmt-auth-form .mmt-form-label,
.mmt-form-label,
.mmt-auth-page label {
    display: block !important;
    width: 100% !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
    float: none !important;
    clear: both !important;
}

.mmt-required-star {
    color: #dc2626 !important;
    font-weight: 700 !important;
    margin-left: 2px !important;
}

/* Form Inputs - strictly full-width, comfortable height, clean modern border */
.mmt-auth-page input[type="text"],
.mmt-auth-page input[type="password"],
.mmt-auth-page input[type="email"],
.mmt-auth-page input[type="tel"],
.mmt-auth-card input[type="text"],
.mmt-auth-card input[type="password"],
.mmt-auth-card input[type="email"],
.mmt-auth-card input[type="tel"],
.mmt-auth-page .mmt-form-input,
.mmt-auth-card .mmt-form-input,
.mmt-form-input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    line-height: 22px !important;
    font-family: inherit !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.mmt-auth-page input[type="text"]:focus,
.mmt-auth-page input[type="password"]:focus,
.mmt-auth-page input[type="email"]:focus,
.mmt-auth-page input[type="tel"]:focus,
.mmt-auth-card input[type="text"]:focus,
.mmt-auth-card input[type="password"]:focus,
.mmt-auth-card input[type="email"]:focus,
.mmt-auth-card input[type="tel"]:focus,
.mmt-auth-page .mmt-form-input:focus,
.mmt-auth-card .mmt-form-input:focus,
.mmt-form-input:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.mmt-form-hint {
    display: block !important;
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 5px !important;
    line-height: 1.4 !important;
}

/* Row Between: Remember Me & Forgot Password */
.mmt-auth-page .mmt-form-row-between,
.mmt-auth-card .mmt-form-row-between,
.mmt-form-row-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: -2px !important;
    margin-bottom: 20px !important;
    font-size: 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mmt-checkbox-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    cursor: pointer !important;
    user-select: none !important;
    width: auto !important;
    float: none !important;
}

.mmt-checkbox-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.mmt-forgot-link {
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.mmt-forgot-link:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* Action Button */
.mmt-form-action {
    margin-top: 10px !important;
    width: 100% !important;
}

.mmt-auth-page .mmt-auth-button,
.mmt-auth-card .mmt-auth-button,
.mmt-auth-button,
.mmt-auth-page .mmt-btn-primary,
.mmt-auth-card .mmt-btn-primary,
.mmt-auth-page button[type="submit"],
.mmt-auth-card button[type="submit"],
.mmt-btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
    transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease !important;
    text-transform: uppercase !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin: 0 !important;
}

.mmt-auth-page .mmt-auth-button:hover,
.mmt-auth-card .mmt-auth-button:hover,
.mmt-auth-button:hover,
.mmt-auth-page .mmt-btn-primary:hover,
.mmt-auth-card .mmt-btn-primary:hover,
.mmt-auth-page button[type="submit"]:hover,
.mmt-auth-card button[type="submit"]:hover,
.mmt-btn-primary:hover {
    background-color: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.mmt-auth-page .mmt-auth-button:active,
.mmt-auth-card .mmt-auth-button:active,
.mmt-auth-button:active,
.mmt-auth-page .mmt-btn-primary:active,
.mmt-auth-card .mmt-btn-primary:active,
.mmt-auth-page button[type="submit"]:active,
.mmt-auth-card button[type="submit"]:active,
.mmt-btn-primary:active {
    transform: scale(0.99) !important;
}

/* Alerts */
.mmt-alert {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.mmt-alert-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

.mmt-alert-success {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
}

.mmt-alert-icon {
    font-size: 16px !important;
    line-height: 1 !important;
}

.mmt-alert-text {
    flex: 1 !important;
}

/* Auth Card Footer */
.mmt-auth-page .mmt-auth-footer,
.mmt-auth-footer {
    text-align: center !important;
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1f5f9 !important;
    width: 100% !important;
}

.mmt-auth-page .mmt-auth-footer p,
.mmt-auth-footer p {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #64748b !important;
}

.mmt-auth-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mmt-auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.mmt-switch-link {
    font-weight: 700 !important;
    color: #2563eb !important;
    margin-left: 4px !important;
    text-decoration: none !important;
}

.mmt-switch-link:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* Hide theme page titles when auth card is present */
body:has(.mmt-auth-page) .entry-title,
body:has(#mmt-auth-page) .entry-title,
body:has(.mmt-auth-page) h1.page-title,
body:has(#mmt-auth-page) h1.page-title,
body:has(.mmt-auth-page) .wp-block-post-title,
body:has(#mmt-auth-page) .wp-block-post-title,
body:has(.mmt-auth-page) header.entry-header h1,
body:has(#mmt-auth-page) header.entry-header h1 {
    display: none !important;
}

/* Mobile Responsiveness for Auth Card */
@media screen and (max-width: 520px) {
    .mmt-auth-page {
        padding: 16px 12px;
        min-height: auto;
    }

    .mmt-auth-page .mmt-auth-card,
    .mmt-portal-wrapper .mmt-auth-card,
    .mmt-auth-card {
        padding: 28px 20px !important;
        margin: 12px auto !important;
        border-radius: 12px !important;
        max-width: 100% !important;
    }

    .mmt-auth-page .mmt-auth-title,
    .mmt-auth-title {
        font-size: 21px !important;
    }

    .mmt-auth-page .mmt-form-row-between,
    .mmt-form-row-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
}

/* Student Profile Bar */
.mmt-student-profile-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.mmt-profile-info-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mmt-profile-avatar {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #dbeafe;
}

.mmt-profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.mmt-profile-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

.mmt-profile-separator {
    color: #cbd5e1;
}

.mmt-badge-student {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

@media (max-width: 640px) {
    .mmt-auth-card {
        margin: 20px auto !important;
        padding: 28px 20px !important;
    }

    .mmt-student-profile-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* =========================================
   PAYMENT CHECKOUT MODAL STYLES
========================================= */
.mmt-payment-modal-box {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    margin: auto;
    overflow: hidden;
    position: relative;
    animation: mmtModalFadeIn 0.2s ease-out;
}

@keyframes mmtModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mmt-payment-modal-box .mmt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.mmt-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.mmt-modal-close:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.mmt-payment-modal-box .mmt-modal-body {
    padding: 22px;
}

.mmt-order-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 18px;
}

.mmt-gateway-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmt-gateway-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #ffffff;
}

.mmt-gateway-option:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.mmt-gateway-option.selected {
    border-color: #0284c7;
    background: #f0f9ff;
}

.mmt-gateway-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #0284c7;
    margin: 0;
    flex-shrink: 0;
}

.mmt-btn-loading {
    opacity: 0.75;
    cursor: wait !important;
    pointer-events: none;
}



/* =========================================
   THEME + PLUGIN MOBILE FULL-WIDTH BRIDGE
   Prevent the theme's generic page card/container from
   squeezing the MockMaster portal on small screens.
========================================= */
@media (max-width: 640px) {
    body.mockmaster-plugin-page .mm-content-wrap {
        padding-top: 8px !important;
        padding-bottom: 24px !important;
    }

    body.mockmaster-plugin-page .mm-content-wrap > .mm-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body.mockmaster-plugin-page .mm-page-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* The theme already provides the mobile hamburger/navigation.
       Avoid showing a second navigation bar inside the dashboard. */
    body.mockmaster-plugin-page .mmt-student-nav {
        display: none !important;
    }

    body.mockmaster-plugin-page .mmt-portal-wrapper {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 8px 24px !important;
    }

    body.mockmaster-plugin-page .mmt-student-profile-bar,
    body.mockmaster-plugin-page .mmt-metric-card,
    body.mockmaster-plugin-page .mmt-test-card,
    body.mockmaster-plugin-page .mmt-result-card,
    body.mockmaster-plugin-page .mmt-instructions-card,
    body.mockmaster-plugin-page .mmt-cert-item-card,
    body.mockmaster-plugin-page .mmt-cert-card {
        max-width: none !important;
    }

    /* Keep long email/mobile values inside the viewport. */
    body.mockmaster-plugin-page .mmt-profile-meta,
    body.mockmaster-plugin-page .mmt-profile-details,
    body.mockmaster-plugin-page .mmt-profile-detail-item {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

/* Mobile authentication navigation: keep Login/Logout visible inside the
   hamburger menu instead of removing the final account action. */
@media (max-width: 820px) {
    .mmt-nav-login,
    .mmt-nav-logout {
        display: flex !important;
        width: 100%;
    }
}


/* Theme mobile hamburger account action. The theme owns the mobile menu;
   this keeps Login/Logout available without restoring the duplicate plugin nav. */
.mm-mmt-auth-action { display: none !important; }
@media (max-width: 900px) {
    .mm-nav .mm-mmt-auth-action {
        display: flex !important;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        margin-top: 4px;
        border-top: 1px solid #e2e8f0;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 700;
    }
    .mm-nav .mm-mmt-logout { color: #dc2626 !important; }
    .mm-nav .mm-mmt-login { color: #1e3a8a !important; }
}

/* Robust mobile account action: works with both theme fallback links and
   WordPress custom-menu <li> wrappers. */
@media (max-width: 900px) {
    .mm-nav .mmt-mobile-auth-menu-item,
    .mm-nav .mm-mmt-auth-action {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .mm-nav .mmt-mobile-auth-menu-item {
        margin-top: 4px !important;
        padding-top: 4px !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .mm-nav .mmt-mobile-auth-menu-item > a.mm-mmt-auth-action {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px !important;
        margin: 0 !important;
        text-decoration: none !important;
    }
}

/* =========================================
   QUESTION-WISE ANSWER REVIEW
========================================= */
.mmt-answer-review {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.mmt-answer-review-header {
    margin-bottom: 20px;
}

.mmt-answer-review-kicker {
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 5px;
}

.mmt-answer-review-header h2 {
    margin: 0 0 5px;
    font-size: 22px;
    line-height: 1.3;
    color: #0f172a;
}

.mmt-answer-review-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.mmt-answer-review-list {
    display: grid;
    gap: 18px;
}

.mmt-answer-review-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.mmt-answer-review-item.mmt-review-correct { border-left: 4px solid #16a34a; }
.mmt-answer-review-item.mmt-review-wrong { border-left: 4px solid #dc2626; }
.mmt-answer-review-item.mmt-review-skipped { border-left: 4px solid #94a3b8; }

.mmt-answer-review-qhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mmt-answer-review-number {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.mmt-answer-review-status {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 9px;
    border-radius: 999px;
}

.mmt-review-correct .mmt-answer-review-status { color: #166534; background: #dcfce7; }
.mmt-review-wrong .mmt-answer-review-status { color: #991b1b; background: #fee2e2; }
.mmt-review-skipped .mmt-answer-review-status { color: #475569; background: #e2e8f0; }

.mmt-answer-review-question {
    padding: 18px 16px 12px;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
    color: #0f172a;
}

.mmt-answer-review-options {
    padding: 0 16px 8px;
    display: grid;
    gap: 9px;
}

.mmt-review-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    line-height: 1.5;
}

.mmt-review-option-letter {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.mmt-review-option-text {
    flex: 1 1 auto;
    min-width: 0;
}

.mmt-review-option-correct {
    border-color: #86efac;
    background: #f0fdf4;
}

.mmt-review-option-correct .mmt-review-option-letter {
    background: #16a34a;
    color: #ffffff;
}

.mmt-review-option-selected:not(.mmt-review-option-correct) {
    border-color: #fca5a5;
    background: #fff1f2;
}

.mmt-review-option-selected:not(.mmt-review-option-correct) .mmt-review-option-letter {
    background: #dc2626;
    color: #ffffff;
}

.mmt-review-option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.mmt-review-tag {
    white-space: nowrap;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    padding: 5px 7px;
    border-radius: 5px;
}

.mmt-review-tag-your { color: #991b1b; background: #fee2e2; }
.mmt-review-tag-correct { color: #166534; background: #dcfce7; }

.mmt-answer-review-summary {
    margin: 8px 16px 16px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 12px;
    color: #475569;
}

.mmt-answer-review-summary strong { color: #1e293b; }

@media (max-width: 640px) {
    .mmt-answer-review { margin-top: 28px; padding-top: 24px; }
    .mmt-answer-review-header h2 { font-size: 19px; }
    .mmt-answer-review-qhead { padding: 11px 12px; }
    .mmt-answer-review-question { padding: 15px 12px 10px; font-size: 14px; }
    .mmt-answer-review-options { padding: 0 12px 6px; }
    .mmt-review-option { padding: 10px; gap: 8px; }
    .mmt-review-option-tags { width: 100%; justify-content: flex-start; margin-left: 37px; }
    .mmt-answer-review-summary { margin: 8px 12px 12px; flex-direction: column; gap: 5px; }
}
