/* ══════════════════════════════════════
       RESET & BASE
    ══════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.pm-instant-scroll {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    color: #1E293B;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ══════════════════════════════════════
       NAVBAR
    ══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    margin-right: 50px;
}

.logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(320px, 42vw);
    object-fit: contain;
    object-position: left center;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

    .nav-link:hover, .nav-link.active {
        color: #6366F1;
    }

/* ── Role icons (Teacher / Parent / Student) ── */
.nav-role-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.nav-role-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

    .nav-role-icon:hover {
        transform: translateY(-2px);
    }

.nav-role-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

    .nav-role-icon-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.nav-role-icon-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.nav-role-icon--teacher .nav-role-icon-img {
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.28);
}

.nav-role-icon--teacher .nav-role-icon-label {
    color: #7C3AED;
}

.nav-role-icon--parent .nav-role-icon-img {
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.28);
}

.nav-role-icon--parent .nav-role-icon-label {
    color: #059669;
}

.nav-role-icon--student .nav-role-icon-img {
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.28);
}

.nav-role-icon--student .nav-role-icon-label {
    color: #2563EB;
}

.btn {
    padding: 7px 22px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #7C3AED;
    color: white;
}

    .btn-primary:hover {
        background: #6D28D9;
        transform: scale(1.02);
    }

.btn-register {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

    .btn-register:hover {
        background: #BBF7D0;
        border-color: #86EFAC;
        transform: scale(1.02);
    }

/* Hamburger */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1E293B;
}

/* Mobile dropdown */
.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 997;
}

    .mobile-menu.active {
        display: block;
    }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

    .mobile-nav-links a {
        color: #64748B;
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        padding: 14px 0;
        border-bottom: 1px solid #F1F5F9;
        display: block;
    }

        .mobile-nav-links a:hover {
            color: #6366F1;
        }

.mobile-nav-role-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 8px;
}

.mobile-role-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

    .mobile-role-icon img {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
        transition: transform 0.2s ease;
    }

    .mobile-role-icon:hover img {
        transform: scale(1.05);
    }

.mobile-role-icon--teacher {
    color: #7C3AED;
}

.mobile-role-icon--parent {
    color: #059669;
}

.mobile-role-icon--student {
    color: #2563EB;
}

/* Role landing pages */
.role-page {
    padding: 140px 24px 80px;
    min-height: 60vh;
}

.role-page--teacher {
    background: linear-gradient(180deg, #F5F3FF 0%, #F8FAFC 55%, #FFFFFF 100%);
}

.role-page--parent {
    background: linear-gradient(180deg, #ECFDF5 0%, #F8FAFC 55%, #FFFFFF 100%);
}

.role-page--student {
    background: linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 55%, #FFFFFF 100%);
}

.role-page-container {
    max-width: 720px;
    margin: 0 auto;
}

.role-page-hero {
    text-align: center;
}

.role-page-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.2);
}

.role-page-icon--parent {
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.2);
}

.role-page-icon--student {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.2);
}

.role-page-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #7C3AED;
    margin-bottom: 12px;
}

.role-page-title--parent {
    color: #059669;
}

.role-page-title--student {
    color: #2563EB;
}

.role-page-subtitle {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 28px;
}

.role-page-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary--parent {
    background: #059669;
}

    .btn-primary--parent:hover {
        background: #047857;
    }

.btn-primary--student {
    background: #2563EB;
}

    .btn-primary--student:hover {
        background: #1D4ED8;
    }

/* ══════════════════════════════════════
       TEACHER REGISTER
    ══════════════════════════════════════ */
.teacher-register-page {
    padding: 110px 20px 56px;
    background: linear-gradient(180deg, #F5F3FF 0%, #F8FAFC 40%, #FFFFFF 100%);
    min-height: calc(100vh - 80px);
}

.teacher-register-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.teacher-register-header {
    text-align: center;
    margin-bottom: 22px;
}

.teacher-register-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(180deg, #C4B5FD, #7C3AED);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.28);
}

    .teacher-register-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        background: #fff;
    }

.teacher-register-header h1 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    color: #7C3AED;
    margin-bottom: 8px;
    line-height: 1.2;
}

.teacher-register-header p {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto;
}

.teacher-register-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #F1F5F9;
}

.teacher-register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

    .tr-field label {
        font-size: 13px;
        font-weight: 700;
        color: #0F172A;
    }

.tr-input input[readonly] {
    background: #F8FAFC;
    color: #475569;
    cursor: default;
}

.tr-required {
    color: #EF4444;
}

.tr-error {
    min-height: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #DC2626;
}

.tr-hint {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    line-height: 1.4;
}

.tr-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.tr-alert--error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.tr-alert--success {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.tr-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #94A3B8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
}

    .tr-input:focus-within {
        border-color: #C4B5FD;
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    }

    .tr-input--invalid {
        border-color: #F87171;
    }

.tr-input-icon {
    width: 44px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F3FF;
    color: #7C3AED;
    flex-shrink: 0;
    border-right: 1.5px solid #EDE9FE;
}

    .tr-input-icon svg {
        width: 18px;
        height: 18px;
    }

.tr-input input,
.tr-input select {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 12px 12px 10px;
    font-size: 14px;
    color: #0F172A;
    font-family: inherit;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
}

    .tr-input input::placeholder {
        color: #94A3B8;
    }

.tr-input-action {
    border: none;
    background: transparent;
    color: #94A3B8;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .tr-input-action svg {
        width: 18px;
        height: 18px;
    }

    .tr-input-action:hover {
        color: #7C3AED;
    }

.tr-input--select {
    position: relative;
}

.tr-select-chevron {
    position: absolute;
    right: 12px;
    color: #94A3B8;
    pointer-events: none;
    display: flex;
}

    .tr-select-chevron svg {
        width: 16px;
        height: 16px;
    }

.tr-input--select select {
    padding-right: 36px;
    cursor: pointer;
}

.tr-otp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tr-input-with-btn {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

    .tr-input-with-btn .tr-input {
        flex: 1;
        min-width: 0;
    }

.tr-dial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0 10px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 0.92rem;
    font-weight: 800;
    font-family: inherit;
    line-height: 1;
    flex-shrink: 0;
}

.tr-side-btn {
    border: 1.5px solid #7C3AED;
    background: #fff;
    color: #7C3AED;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .tr-side-btn:hover:not(:disabled) {
        background: #F5F3FF;
    }

    .tr-side-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.tr-side-btn--verified,
.tr-side-btn--verified:disabled {
    border-color: #86EFAC;
    background: #DCFCE7;
    color: #166534;
    opacity: 1;
    cursor: default;
}

.tr-side-btn--otp {
    min-width: 118px;
}

.tr-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tr-submit-btn {
    margin-top: 6px;
    width: 100%;
    border: none;
    border-radius: 14px;
    background: #7C3AED;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .tr-submit-btn svg {
        width: 20px;
        height: 20px;
    }

    .tr-submit-btn:hover {
        background: #6D28D9;
        transform: translateY(-1px);
    }

.teacher-register-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #94A3B8;
}

    .teacher-register-footer a {
        color: #7C3AED;
        font-weight: 700;
        text-decoration: none;
        margin-left: 4px;
    }

        .teacher-register-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 640px) {
    .tr-otp-row {
        grid-template-columns: 1fr;
    }

    .teacher-register-card {
        padding: 22px 16px;
    }
}

/* ══════════════════════════════════════
       PARENT REGISTER
    ══════════════════════════════════════ */
.parent-register-page {
    padding: 110px 20px 56px;
    background: linear-gradient(180deg, #ECFDF5 0%, #F8FAFC 40%, #FFFFFF 100%);
    min-height: calc(100vh - 80px);
}

.parent-register-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.parent-register-header {
    text-align: center;
    margin-bottom: 22px;
}

.parent-register-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(180deg, #6EE7B7, #059669);
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.28);
}

    .parent-register-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        background: #fff;
    }

.parent-register-header h1 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    color: #059669;
    margin-bottom: 8px;
    line-height: 1.2;
}

.parent-register-header p {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.parent-register-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #F1F5F9;
}

.parent-register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pr-google-host-wrap {
    position: relative;
    width: 100%;
    min-height: 44px;
}

.pr-google-host {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.pr-google-host iframe {
    max-width: 100%;
}

.pr-google-host-wrap--busy .pr-google-host {
    opacity: 0.45;
    pointer-events: none;
}

.pr-google-busy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
}

.pr-google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .pr-google-btn svg {
        width: 20px;
        height: 20px;
    }

    .pr-google-btn:hover {
        background: #F8FAFC;
        border-color: #CBD5E1;
    }

.pr-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

    .pr-or::before,
    .pr-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #E2E8F0;
    }

.pr-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

    .pr-field label {
        font-size: 13px;
        font-weight: 700;
        color: #0F172A;
    }

.pr-required {
    color: #EF4444;
}

.pr-error {
    min-height: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #DC2626;
}

.pr-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.pr-alert--error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.pr-alert--success {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.pr-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #94A3B8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
}

    .pr-input:focus-within {
        border-color: #6EE7B7;
        box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
    }

    .pr-input--invalid {
        border-color: #F87171;
    }

.pr-input-icon {
    width: 44px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ECFDF5;
    color: #059669;
    flex-shrink: 0;
    border-right: 1.5px solid #D1FAE5;
}

    .pr-input-icon svg {
        width: 18px;
        height: 18px;
    }

.pr-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 12px 12px 10px;
    font-size: 14px;
    color: #0F172A;
    font-family: inherit;
    min-width: 0;
}

    .pr-input input::placeholder {
        color: #94A3B8;
    }

.pr-input-action {
    border: none;
    background: transparent;
    color: #94A3B8;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .pr-input-action svg {
        width: 18px;
        height: 18px;
    }

    .pr-input-action:hover {
        color: #059669;
    }

.pr-input-with-btn {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

    .pr-input-with-btn .pr-input {
        flex: 1;
        min-width: 0;
    }

.pr-side-btn {
    border: 1.5px solid #059669;
    background: #fff;
    color: #059669;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .pr-side-btn:hover:not(:disabled) {
        background: #ECFDF5;
    }

    .pr-side-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.pr-side-btn--verified,
.pr-side-btn--verified:disabled {
    border-color: #86EFAC;
    background: #DCFCE7;
    color: #166534;
    opacity: 1;
    cursor: default;
}

.pr-google-btn:disabled,
.pr-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pr-hint {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
}

.pr-secure-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ECFDF5;
    border: 1px solid #D1FAE5;
    border-radius: 12px;
    padding: 12px 14px;
    color: #047857;
    font-size: 13px;
    line-height: 1.4;
}

    .pr-secure-note svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        color: #059669;
    }

.pr-submit-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: #059669;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .pr-submit-btn svg {
        width: 20px;
        height: 20px;
    }

    .pr-submit-btn:hover {
        background: #047857;
        transform: translateY(-1px);
    }

.parent-register-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #94A3B8;
}

    .parent-register-footer a {
        color: #059669;
        font-weight: 700;
        text-decoration: none;
        margin-left: 4px;
    }

        .parent-register-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 640px) {
    .parent-register-card {
        padding: 22px 16px;
    }
}

/* ══════════════════════════════════════
       ROLE LOGIN (Teacher / Parent)
    ══════════════════════════════════════ */
.role-login-page {
    padding: 110px 20px 56px;
    min-height: calc(100vh - 80px);
}

.role-login-page--teacher {
    background: linear-gradient(180deg, #F5F3FF 0%, #F8FAFC 40%, #FFFFFF 100%);
}

.role-login-page--parent {
    background: linear-gradient(180deg, #ECFDF5 0%, #F8FAFC 40%, #FFFFFF 100%);
}

.role-login-wrap {
    max-width: 460px;
    margin: 0 auto;
}

.role-login-header {
    text-align: center;
    margin-bottom: 22px;
}

.role-login-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 50%;
    padding: 3px;
}

.role-login-page--teacher .role-login-avatar {
    background: linear-gradient(180deg, #C4B5FD, #7C3AED);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.28);
}

.role-login-page--parent .role-login-avatar {
    background: linear-gradient(180deg, #6EE7B7, #059669);
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.28);
}

.role-login-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #fff;
}

.role-login-header h1 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.role-login-page--teacher .role-login-header h1 { color: #7C3AED; }
.role-login-page--parent .role-login-header h1 { color: #059669; }

.role-login-header p {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto;
}

.role-login-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #F1F5F9;
}

.role-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rl-google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .rl-google-btn svg {
        width: 20px;
        height: 20px;
    }

    .rl-google-btn:hover {
        background: #F8FAFC;
        border-color: #CBD5E1;
    }

.rl-or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

    .rl-or::before,
    .rl-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #E2E8F0;
    }

.rl-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .rl-field label {
        font-size: 13px;
        font-weight: 700;
        color: #0F172A;
    }

.rl-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #94A3B8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    min-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.role-login-page--teacher .rl-input:focus-within {
    border-color: #C4B5FD;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.role-login-page--parent .rl-input:focus-within {
    border-color: #6EE7B7;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.rl-input-icon {
    width: 44px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-login-page--teacher .rl-input-icon {
    background: #F5F3FF;
    color: #7C3AED;
    border-right: 1.5px solid #EDE9FE;
}

.role-login-page--parent .rl-input-icon {
    background: #ECFDF5;
    color: #059669;
    border-right: 1.5px solid #D1FAE5;
}

.rl-input-icon svg {
    width: 18px;
    height: 18px;
}

.rl-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 14px;
    color: #0F172A;
    font-family: inherit;
    min-width: 0;
}

    .rl-input input::placeholder {
        color: #94A3B8;
    }

.rl-input-action {
    border: none;
    background: transparent;
    color: #94A3B8;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

    .rl-input-action svg {
        width: 18px;
        height: 18px;
    }

.role-login-page--teacher .rl-input-action:hover { color: #7C3AED; }
.role-login-page--parent .rl-input-action:hover { color: #059669; }

.rl-submit-btn {
    width: 100%;
    max-width: 220px;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    padding: 14px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.role-login-page--teacher .rl-submit-btn {
    background: #7C3AED;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

    .role-login-page--teacher .rl-submit-btn:hover {
        background: #6D28D9;
        transform: translateY(-1px);
    }

.role-login-page--parent .rl-submit-btn {
    background: #059669;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
}

    .role-login-page--parent .rl-submit-btn:hover {
        background: #047857;
        transform: translateY(-1px);
    }

.role-login-register {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #94A3B8;
}

    .role-login-register a {
        font-weight: 700;
        text-decoration: none;
        margin-left: 4px;
    }

.role-login-page--teacher .role-login-register a { color: #7C3AED; }
.role-login-page--parent .role-login-register a { color: #059669; }

    .role-login-register a:hover {
        text-decoration: underline;
    }

@media (max-width: 640px) {
    .role-login-card {
        padding: 22px 16px;
    }
}

/* ══════════════════════════════════════
       STUDENT LOGIN
    ══════════════════════════════════════ */
.student-login-page {
    padding: 100px 20px 48px;
    background: linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 45%, #FFFFFF 100%);
    min-height: calc(100vh - 80px);
}

.student-login-wrap {
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

.student-login-header {
    text-align: center;
    margin-bottom: 20px;
}

.student-login-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(180deg, #93C5FD, #2563EB);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25);
}

    .student-login-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        background: #fff;
    }

.student-login-header h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: #2563EB;
    margin-bottom: 6px;
    line-height: 1.15;
}

.student-login-header p {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.45;
}

.student-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #F1F5F9;
}

.student-card-head {
    margin-bottom: 14px;
}

    .student-card-head h2 {
        font-size: 16px;
        font-weight: 800;
        color: #2563EB;
        margin-bottom: 4px;
    }

    .student-card-head p {
        font-size: 13px;
        color: #94A3B8;
        margin: 0;
    }

.student-camera {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0F172A;
    aspect-ratio: 16 / 11;
}

.student-camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: 0.92;
}

.student-camera-preview--live {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    z-index: 1;
}

.student-camera-preview--placeholder {
    position: relative;
    z-index: 0;
}

.student-camera-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: scaleX(-1);
    z-index: 2;
}

.student-camera.is-live .student-camera-preview--placeholder {
    display: none;
}

.student-camera.is-match .student-camera-ring {
    border-color: #22C55E;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.student-camera.is-match .student-camera-dot {
    background: #22C55E;
}

.student-camera-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

.student-camera-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.student-camera-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.student-camera-frame .corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 3px solid #60A5FA;
}

.student-camera-frame .tl { top: 18%; left: 22%; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.student-camera-frame .tr { top: 18%; right: 22%; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.student-camera-frame .bl { bottom: 18%; left: 22%; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.student-camera-frame .br { bottom: 18%; right: 22%; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.student-camera-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.student-camera-note {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #EFF6FF;
    color: #1D4ED8;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
}

    .student-camera-note svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: #2563EB;
    }

.student-camera-note--error {
    background: #FEF2F2;
    color: #B91C1C;
}

    .student-camera-note--error svg {
        color: #DC2626;
    }

.student-forgot-note {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
}

.student-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

    .student-or::before,
    .student-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #E2E8F0;
    }

.student-parent-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sl-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #94A3B8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    min-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .sl-input:focus-within {
        border-color: #60A5FA;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

.sl-input-icon {
    width: 44px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    color: #2563EB;
    border-right: 1.5px solid #DBEAFE;
    flex-shrink: 0;
}

    .sl-input-icon svg {
        width: 18px;
        height: 18px;
    }

.sl-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 14px;
    color: #0F172A;
    font-family: inherit;
    min-width: 0;
}

    .sl-input input::placeholder {
        color: #94A3B8;
    }

.sl-input-action {
    border: none;
    background: transparent;
    color: #94A3B8;
    padding: 0 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

    .sl-input-action svg {
        width: 18px;
        height: 18px;
    }

    .sl-input-action:hover {
        color: #2563EB;
    }

.student-forgot {
    align-self: flex-end;
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
}

    .student-forgot:hover {
        text-decoration: underline;
    }

.student-login-btn {
    width: 100%;
    max-width: 220px;
    margin: 4px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 14px;
    background: #2563EB;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    padding: 13px 18px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .student-login-btn svg {
        width: 18px;
        height: 18px;
    }

    .student-login-btn:hover {
        background: #1D4ED8;
        transform: translateY(-1px);
    }

    .student-login-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

.sl-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
    display: grid;
    place-items: center;
    padding: 24px;
}

.sl-modal {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

    .sl-modal h2 {
        margin: 0 0 8px;
        font-size: 1.15rem;
        font-weight: 800;
        color: #0F172A;
    }

    .sl-modal p {
        margin: 0 0 14px;
        font-size: 0.92rem;
        color: #64748B;
        line-height: 1.45;
    }

.sl-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.sl-btn-secondary {
    border: 1px solid #CBD5E1;
    background: #fff;
    color: #334155;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

    .sl-btn-secondary:hover {
        background: #F8FAFC;
    }

.sl-btn-modal {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 10px 18px;
}

.student-qr-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid #2563EB;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #2563EB;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .student-qr-btn svg {
        width: 22px;
        height: 22px;
    }

    .student-qr-btn:hover {
        background: #EFF6FF;
    }

.student-safe-note {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #94A3B8;
}

    .student-safe-note svg {
        width: 16px;
        height: 16px;
        color: #2563EB;
    }

@media (max-width: 640px) {
    .student-login-page {
        padding: 96px 16px 40px;
    }
}

/* ══════════════════════════════════════
       HERO
    ══════════════════════════════════════ */
.hero {
    padding: 120px 24px 40px;
    background: #F1F5F9;
    overflow: hidden;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.6s ease both;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 17px;
    color: #64748B;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Search */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 8px 8px 8px 24px;
    margin-bottom: 28px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1E293B;
    font-family: 'Inter', sans-serif;
    min-width: 0;
    background: transparent;
}

    .search-input::placeholder {
        color: #94A3B8;
    }

.search-btn {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: #6366F1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .search-btn:hover {
        background: #4F46E5;
        transform: scale(1.05);
    }

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid #22D3EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .feature-icon svg {
        width: 12px;
        height: 12px;
        color: #22D3EE;
    }

.feature-text {
    font-weight: 500;
    color: #1E293B;
    font-size: 14px;
}

/* Hero image */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease 0.15s both;
    min-height: 360px;
}

.hero-bg-shape {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    height: 80%;
    background: linear-gradient(135deg, #E0F2FE 0%, #FFD4CC 100%);
    border-radius: 24px;
    z-index: 0;
}

.hero-person {
    position: relative;
    z-index: 1;
    height: 420px;
    object-fit: contain;
    max-width: 100%;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 14px;
    z-index: 2;
}

    .floating-card.courses {
        left: -10px;
        bottom: 60px;
        display: flex;
        align-items: center;
        gap: 12px;
        animation: float 3s ease-in-out infinite;
    }

    .floating-card.chart {
        right: -10px;
        top: 38%;
        animation: float 2.5s ease-in-out infinite 0.5s;
        min-width: 130px;
    }

.card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #22D3EE;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-icon svg {
        width: 20px;
        height: 20px;
        color: white;
    }

.card-text h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1E293B;
}

.card-text p {
    font-size: 12px;
    color: #64748B;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 36px;
    margin-top: 8px;
}

.chart-bar {
    width: 10px;
    border-radius: 4px 4px 0 0;
}

    .chart-bar.cyan {
        background: #22D3EE;
        height: 40%;
    }

    .chart-bar.indigo {
        background: #818CF8;
        height: 70%;
    }

    .chart-bar.purple {
        background: #A78BFA;
        height: 55%;
    }

    .chart-bar.green {
        background: #4ADE80;
        height: 85%;
    }

/* ══════════════════════════════════════
       FEATURES STRIP
    ══════════════════════════════════════ */
.features-strip {
    padding: 28px 24px 8px;
    background: #EEF2F7;
}

.features-strip-container {
    max-width: 1100px;
    margin: 0 auto;
}

.features-strip-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border-radius: 22px;
    padding: 22px 10px;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08);
}

.feature-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    position: relative;
}

    .feature-strip-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 12%;
        bottom: 12%;
        width: 1px;
        background: #E2E8F0;
    }

.feature-strip-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

    .feature-strip-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.feature-strip-text h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.feature-strip-text p {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
}

.feature-strip-item--purple .feature-strip-text h3 { color: #7C3AED; }
.feature-strip-item--green .feature-strip-text h3 { color: #059669; }
.feature-strip-item--blue .feature-strip-text h3 { color: #2563EB; }
.feature-strip-item--orange .feature-strip-text h3 { color: #D97706; }

/* ══════════════════════════════════════
       ROLES SECTION (Teacher / Parent / Student)
    ══════════════════════════════════════ */
.roles-section {
    padding: 32px 24px;
    background: #EEF2F7;
}

.roles-container {
    max-width: 920px;
    margin: 0 auto;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.role-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .role-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    }

.role-card-visual {
    position: relative;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.role-card--teacher .role-card-visual {
    background: linear-gradient(180deg, #EDE9FE 0%, #F5F3FF 70%, #FFFFFF 100%);
}

.role-card--parent .role-card-visual {
    background: linear-gradient(180deg, #D1FAE5 0%, #ECFDF5 70%, #FFFFFF 100%);
}

.role-card--student .role-card-visual {
    background: linear-gradient(180deg, #DBEAFE 0%, #EFF6FF 70%, #FFFFFF 100%);
}

.role-card-person {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    user-select: none;
    pointer-events: none;
}

.role-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

    .role-card-badge::after {
        content: "";
        position: absolute;
        left: 7px;
        bottom: -4px;
        width: 10px;
        height: 10px;
        background: #fff;
        border-radius: 2px;
        transform: rotate(45deg);
    }

    .role-card-badge svg {
        width: 18px;
        height: 18px;
        position: relative;
        z-index: 1;
    }

.role-card--teacher .role-card-badge { color: #7C3AED; }
.role-card--parent .role-card-badge { color: #059669; }
.role-card--student .role-card-badge { color: #2563EB; }

.role-card-body {
    padding: 6px 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.role-card-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.role-card--teacher .role-card-title { color: #7C3AED; }
.role-card--parent .role-card-title { color: #059669; }
.role-card--student .role-card-title { color: #2563EB; }

.role-card-desc {
    font-size: 13px;
    color: #64748B;
    line-height: 1.45;
    margin-bottom: 16px;
    max-width: 200px;
}

.role-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 11px 24px;
    border-radius: 9999px;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

    .role-card-btn:hover {
        transform: translateY(-1px) scale(1.02);
        filter: brightness(1.05);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
        color: #fff;
    }

.role-card--teacher .role-card-btn {
    background: linear-gradient(180deg, #A78BFA 0%, #7C3AED 100%);
}

.role-card--parent .role-card-btn {
    background: linear-gradient(180deg, #34D399 0%, #059669 100%);
}

.role-card--student .role-card-btn {
    background: linear-gradient(180deg, #60A5FA 0%, #2563EB 100%);
}

/* ══════════════════════════════════════
       ALEX / PROFILE SECTION
    ══════════════════════════════════════ */
.alex {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 48px 24px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.alex-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.decoration-1 {
    top: 5%;
    left: 5%;
}

.decoration-2 {
    bottom: 5%;
    right: 5%;
}

.profile-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

    .profile-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(99,102,241,0.03) 0%, transparent 70%);
        pointer-events: none;
    }

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5f3e0 0%, #6ee7b7 100%);
    padding: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(110,231,183,0.3);
    flex-shrink: 0;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.name {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

    .social-link:hover {
        background: #6366f1;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(99,102,241,0.3);
        border-color: #6366f1;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

/* ══════════════════════════════════════
       NEWSLETTER
    ══════════════════════════════════════ */
.newsletter-section {
    padding: 80px 24px;
    background: white;
}

.newsletter-container {
    max-width: 1280px;
    margin: 0 auto;
}

.newsletter-card {
    background: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
    border-radius: 24px;
    padding: 64px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .newsletter-card::before,
    .newsletter-card::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
    }

    .newsletter-card::before {
        width: 256px;
        height: 256px;
        top: -128px;
        left: -128px;
    }

    .newsletter-card::after {
        width: 384px;
        height: 384px;
        bottom: -192px;
        right: -192px;
    }

.newsletter-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.newsletter-subtitle {
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1.7;
}

.newsletter-form {
    max-width: 448px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 9999px;
    padding: 8px 8px 8px 24px;
}

.newsletter-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1E293B;
    font-family: 'Inter', sans-serif;
    min-width: 0;
    background: transparent;
}

    .newsletter-input::placeholder {
        color: #94A3B8;
    }

.newsletter-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #6366F1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .newsletter-btn:hover {
        background: #4F46E5;
        transform: scale(1.05);
    }

    .newsletter-btn svg {
        width: 18px;
        height: 18px;
        color: white;
    }

/* ══════════════════════════════════════
       FOOTER
    ══════════════════════════════════════ */
.footer {
    background-color: #F1F5F9;
    border-top: 1px solid #e5e7eb;
    padding: 60px 40px 10px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    font-style: italic;
    letter-spacing: -0.5px;
}

.social-icons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

    .social-icons .social-link {
        width: 24px;
        height: 24px;
        color: #4b5563;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0;
        transition: color 0.2s ease;
    }

        .social-icons .social-link:hover {
            color: #111827 !important;
            transform: none !important;
            background: none !important;
            box-shadow: none !important;
        }

        .social-icons .social-link svg {
            width: 20px;
            height: 20px;
        }

.footer-column h3 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}

    .footer-links a {
        color: #6b7280;
        text-decoration: none;
        font-size: 13px;
        transition: color 0.2s ease;
        display: inline-block;
    }

        .footer-links a:hover {
            color: #111827;
        }

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    padding: 16px 0;
}

    .footer-bottom p {
        color: #9ca3af;
        font-size: 14px;
    }

/* ══════════════════════════════════════
       SCROLL TO TOP
    ══════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: #1E293B;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        background: #334155;
        transform: scale(1.1);
    }

    .scroll-top svg {
        width: 24px;
        height: 24px;
        color: white;
    }

/* ══════════════════════════════════════
       ANIMATIONS
    ══════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ══════════════════════════════════════
       RESPONSIVE — TABLET ≤1024px
    ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-role-icon-img {
        width: 42px;
        height: 42px;
    }

    .features-strip-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 0;
        padding: 16px 8px;
    }

    .feature-strip-item:nth-child(2n)::after {
        display: none;
    }

    .roles-grid {
        gap: 16px;
    }

    .role-card-visual {
        height: 180px;
    }

    .role-card-title {
        font-size: 22px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .features {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        min-height: 280px;
    }

    .hero-person {
        height: 300px;
    }

    .floating-card.courses {
        left: 4px;
    }

    .floating-card.chart {
        right: 4px;
    }

    .search-box {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ══════════════════════════════════════
       RESPONSIVE — MOBILE ≤768px
    ══════════════════════════════════════ */
@media (max-width: 768px) {
    /* Nav */
    .nav-links,
    .nav-role-icons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-person {
        height: 240px;
    }

    .floating-card {
        display: none;
    }

    .features-strip {
        padding: 20px 16px 4px;
    }

    .features-strip-card {
        grid-template-columns: 1fr;
        padding: 12px 8px;
        border-radius: 18px;
    }

    .feature-strip-item {
        padding: 10px 12px;
    }

        .feature-strip-item::after {
            display: none !important;
        }

    .roles-section {
        padding: 24px 16px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
        gap: 18px;
    }

    .role-card-visual {
        height: 190px;
    }

    /* Alex */
    .alex {
        padding: 40px 16px;
    }

    .profile-card {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .name-row {
        justify-content: center;
    }

    .name {
        font-size: 26px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .description {
        font-size: 15px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Newsletter */
    .newsletter-section {
        padding: 50px 16px;
    }

    .newsletter-card {
        padding: 40px 20px;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 12px;
        border-radius: 16px;
        padding: 16px;
        align-items: stretch;
    }

    .newsletter-input {
        text-align: center;
        padding: 8px 0;
    }

    .newsletter-btn {
        width: 100%;
        border-radius: 12px;
        height: 48px;
    }

    /* Footer */
    .footer {
        padding: 40px 20px 10px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-column h3 {
        margin-bottom: 14px;
    }

    .footer-links {
        align-items: center;
    }
}

/* ══════════════════════════════════════
       RESPONSIVE — SMALL MOBILE ≤480px
    ══════════════════════════════════════ */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 16px;
    }

    .logo-img {
        height: 40px;
        max-width: min(240px, 55vw);
    }

    .hero {
        padding: 90px 16px 50px;
    }

    .hero-title {
        font-size: 26px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .features {
        gap: 12px;
    }

    .feature-text {
        font-size: 13px;
    }

    .search-box {
        padding: 6px 6px 6px 16px;
    }

    .search-input {
        font-size: 13px;
    }

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

    .name {
        font-size: 22px;
    }

    .description {
        font-size: 14px;
        line-height: 1.6;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

        .social-link svg {
            width: 18px;
            height: 18px;
        }

    .newsletter-title {
        font-size: 24px;
    }

    .newsletter-subtitle {
        font-size: 13px;
    }

    .footer-bottom p {
        font-size: 13px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ── Page loader (Web_Layout) ───────────────────────────────────── */
.page-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 3rem 1.5rem;
}

.page-loader-spinner {
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1rem;
}

    .page-loader-spinner circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

    .page-loader-spinner circle:last-child {
        stroke: #e8a020;
        stroke-dasharray: 200% 500%;
        animation: page-loader-spin 0.9s linear infinite;
    }

.page-loader-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5a6a7e;
    letter-spacing: 0.02em;
}

.page-loader--overlay {
    min-height: 42vh;
    width: 100%;
}

.page-body--hidden {
    visibility: hidden;
    position: relative;
    width: 100%;
    pointer-events: none;
    overflow: hidden;
    min-height: 50vh;
}

.page-body--visible {
    visibility: visible;
    position: static;
    width: auto;
    pointer-events: auto;
    overflow: visible;
    height: auto;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ══════════════════════════════════════
   Paper Mark – file upload (oval pill button)
   ══════════════════════════════════════ */
.paper-mark-page .upload-zone {
    position: relative;
    padding-top: 2rem;
}

.paper-mark-page .upload-zone-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.paper-mark-page .upload-zone-body .upload-icon {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.paper-mark-page .upload-zone-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0B1F3A;
}

.paper-mark-page .upload-zone-body p {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #6B7C99;
}

/* Oval trigger – matches .btn.btn-primary */
.paper-mark-page .upload-file-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    min-width: 10.5rem;
    min-height: 2.75rem;
}

.paper-mark-page .upload-file-trigger input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    border: none !important;
    background: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.paper-mark-page .upload-file-trigger input[type="file"]::file-selector-button {
    display: none !important;
}

.paper-mark-page .upload-file-trigger input[type="file"]::-webkit-file-upload-button {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

.paper-mark-page .upload-browse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', 'Outfit', sans-serif;
    line-height: 1.2;
    background: #1A6DFF;
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(26, 109, 255, 0.35);
    border: none;
    pointer-events: none;
    white-space: nowrap;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.paper-mark-page .upload-file-trigger:hover .upload-browse-btn,
.paper-mark-page .upload-zone:hover .upload-browse-btn,
.paper-mark-page .upload-zone.dragover .upload-browse-btn {
    background: #3D86FF;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(26, 109, 255, 0.45);
}

.paper-mark-page .upload-formats {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.paper-mark-page .upload-formats .fmt-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #F4F7FF;
    color: #6B7C99;
    border: 1px solid #D8E2F0;
}

.paper-mark-page .camera-mobile-panel {
    text-align: center;
}

.paper-mark-page .camera-mobile-panel .upload-file-trigger {
    margin-top: 1rem;
}

/* Camera action buttons – same oval style */
.paper-mark-page .camera-web-actions .btn {
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
}

.paper-mark-page .camera-tab {
    border-radius: 999px;
}

/* ── Marking result page (/result) ─────────────────────────── */
.marking-result-page .result-layout { padding: 2.5rem 0 5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.marking-result-page .result-top { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 768px) {
    .marking-result-page .result-top { grid-template-columns: 1fr; }
    .marking-result-page .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
}
.marking-result-page .score-card { background: linear-gradient(135deg, #0B1F3A 0%, #1a3560 100%); border-radius: 24px; padding: 2rem 1.5rem; text-align: center; color: #fff; }
.marking-result-page .score-card .exam-tag { display: inline-block; background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; margin-bottom: 1.2rem; }
.marking-result-page .score-card .paper-name { font-size: .95rem; font-weight: 700; margin-bottom: 1.5rem; }
.marking-result-page .score-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.marking-result-page .score-ring { position: relative; width: 140px; height: 140px; }
.marking-result-page .score-ring svg { transform: rotate(-90deg); }
.marking-result-page .ring-bg { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 10; }
.marking-result-page .ring-fg { fill: none; stroke: url(#scoreGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 408; transition: stroke-dashoffset 1.4s ease; }
.marking-result-page .score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.marking-result-page .score-num { font-size: 2rem; font-weight: 800; color: #fff; }
.marking-result-page .score-den { font-size: .8rem; color: rgba(255,255,255,.7); font-weight: 600; }
.marking-result-page .ring-label-below { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .8rem; }
.marking-result-page .score-grade { font-size: 1.1rem; font-weight: 800; padding: .3rem 1.2rem; border-radius: 999px; display: inline-block; margin-top: 1rem; }
.marking-result-page .grade-A { background: #D1FAE5; color: #065F46; }
.marking-result-page .grade-B { background: #DBEAFE; color: #1E40AF; }
.marking-result-page .grade-C { background: #FEF3C7; color: #92400E; }
.marking-result-page .grade-D, .marking-result-page .grade-S, .marking-result-page .grade-F { background: #FEE2E2; color: #991B1B; }
.marking-result-page .summary-card { background: #fff; border-radius: 24px; border: 1.5px solid #D8E2F0; padding: 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; }
.marking-result-page .summary-title { font-size: 1rem; font-weight: 800; color: #0B1F3A; }
.marking-result-page .ai-comment { background: #F4F7FF; border-radius: 12px; padding: 1rem; font-size: .88rem; line-height: 1.65; border-left: 3px solid #1A6DFF; }
.marking-result-page .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.marking-result-page .stat-box { background: #fff; border: 1.5px solid #D8E2F0; border-radius: 16px; padding: 1.1rem .9rem; text-align: center; }
.marking-result-page .stat-val { font-size: 1.6rem; font-weight: 800; color: #0B1F3A; display: block; }
.marking-result-page .stat-lbl { font-size: .72rem; color: #6B7C99; font-weight: 600; text-transform: uppercase; }
.marking-result-page .perf-bar-wrap { margin-top: .2rem; }
.marking-result-page .perf-bar-label { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; margin-bottom: .35rem; }
.marking-result-page .perf-bar-track { background: #F4F7FF; border-radius: 999px; height: 8px; overflow: hidden; border: 1px solid #D8E2F0; }
.marking-result-page .perf-bar-fill { height: 100%; border-radius: 999px; }
.marking-result-page .fill-green { background: linear-gradient(90deg, #22C55E, #4ADE80); }
.marking-result-page .fill-gold { background: linear-gradient(90deg, #F5A623, #FBBF24); }
.marking-result-page .fill-red { background: linear-gradient(90deg, #EF4444, #F87171); }
.marking-result-page .topic-insight { display: flex; align-items: center; gap: 1rem; border: 1.5px solid #D8E2F0; border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: .6rem; }
.marking-result-page .topic-body { flex: 1; }
.marking-result-page .topic-bar-track { background: #F4F7FF; border-radius: 999px; height: 6px; overflow: hidden; }
.marking-result-page .topic-bar-fill { height: 100%; border-radius: 999px; }
.marking-result-page .question-card { background: #fff; border: 1.5px solid #D8E2F0; border-radius: 16px; padding: 1.2rem 1.4rem; display: grid; grid-template-columns: 36px 1fr auto; gap: .8rem; align-items: start; }
.marking-result-page .q-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 800; }
.marking-result-page .q-correct { background: #D1FAE5; color: #065F46; }
.marking-result-page .q-partial { background: #FEF3C7; color: #92400E; }
.marking-result-page .q-incorrect { background: #FEE2E2; color: #991B1B; }
.marking-result-page .q-text { font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
.marking-result-page .q-feedback { font-size: .78rem; color: #6B7C99; }
.marking-result-page .q-marks { text-align: right; }
.marking-result-page .got { font-size: 1rem; font-weight: 800; }
.marking-result-page .mark-full { color: #22C55E; }
.marking-result-page .mark-partial { color: #F5A623; }
.marking-result-page .mark-zero { color: #EF4444; }
.marking-result-page .tag-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: .35rem; }
.marking-result-page .tag-correct { background: #D1FAE5; color: #065F46; }
.marking-result-page .tag-partial { background: #FEF3C7; color: #92400E; }
.marking-result-page .tag-incorrect { background: #FEE2E2; color: #991B1B; }
