:root {
    --bg: #fbf7ef;
    --bg-soft: #f3eadc;
    --surface: #ffffff;
    --surface-soft: #fffaf1;
    --text: #172033;
    --muted: #657086;
    --muted-2: #8b95a8;
    --navy: #101a34;
    --navy-2: #182744;
    --gold: #c49a45;
    --gold-soft: #ead5a6;
    --line: rgba(23, 32, 51, 0.12);
    --line-strong: rgba(23, 32, 51, 0.18);
    --success: #12875a;
    --danger: #cc3b3b;
    --warning: #c17a00;
    --shadow: 0 24px 70px rgba(16, 26, 52, 0.12);
    --shadow-soft: 0 14px 42px rgba(16, 26, 52, 0.08);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 0%, rgba(234, 213, 166, 0.45), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(16, 26, 52, 0.08), transparent 28%),
        linear-gradient(180deg, #fffaf1 0%, var(--bg) 44%, #f6efe4 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16,26,52,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,26,52,0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-logo-wrap {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    border: 1px solid rgba(16, 26, 52, 0.08);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: grid;
    line-height: 1;
}

.brand-title {
    font-weight: 950;
    letter-spacing: -0.045em;
    font-size: 1.1rem;
    color: var(--navy);
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--gold);
    font-weight: 900;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    padding: 10px 11px;
    border-radius: 999px;
    font-weight: 850;
    font-size: 0.92rem;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
    background: rgba(196, 154, 69, 0.12);
}

.nav-links .nav-cta {
    color: #ffffff;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    box-shadow: 0 16px 34px rgba(16, 26, 52, 0.2);
    padding-inline: 16px;
}

.nav-links .nav-cta:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--navy-2), var(--navy));
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    cursor: pointer;
    padding: 12px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 900;
    transition: 0.22s ease;
    gap: 10px;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    box-shadow: 0 18px 42px rgba(16, 26, 52, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 58px rgba(16, 26, 52, 0.28);
}

.btn-ghost {
    color: var(--navy);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.62);
}

.btn-ghost:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.hero {
    padding: 86px 0 58px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--navy);
    background: rgba(196, 154, 69, 0.14);
    border: 1px solid rgba(196, 154, 69, 0.26);
    font-weight: 950;
    font-size: 0.9rem;
}

h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.65rem, 6.1vw, 5.75rem);
    line-height: 0.94;
    letter-spacing: -0.078em;
    color: var(--navy);
}

h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--navy);
}

h3 {
    color: var(--navy);
    letter-spacing: -0.035em;
}

.gold-text {
    color: var(--gold);
}

.lead {
    color: var(--muted);
    font-size: clamp(1.04rem, 2vw, 1.24rem);
    line-height: 1.76;
    max-width: 760px;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-card,
.feature-card,
.plan-card,
.form-card,
.dashboard-card,
.admin-card,
.table-card,
.content-card,
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,250,241,0.78)),
        var(--surface);
    box-shadow: var(--shadow);
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -85px;
    right: -85px;
    border-radius: 999px;
    background: rgba(196, 154, 69, 0.16);
    filter: blur(4px);
}

.card-title {
    position: relative;
    margin: 0 0 10px;
    font-size: 1.38rem;
    color: var(--navy);
}

.card-muted {
    color: var(--muted);
    line-height: 1.68;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.stat {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.stat strong {
    display: block;
    color: var(--navy);
    font-size: 1.75rem;
    letter-spacing: -0.05em;
}

.stat span {
    display: block;
    color: var(--muted);
    margin-top: 5px;
    font-weight: 700;
    font-size: 0.92rem;
}

.section {
    padding: 64px 0;
}

.section-head {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 26px;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.17em;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.feature-card,
.dashboard-card,
.admin-card,
.content-card {
    padding: 25px;
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    color: var(--navy);
    background: linear-gradient(135deg, #fff7e7, #f0dfb8);
    border: 1px solid rgba(196, 154, 69, 0.22);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.text-icon {
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0.06em;
}

.feature-card h3,
.dashboard-card h3,
.admin-card h3,
.content-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.feature-card p,
.dashboard-card p,
.admin-card p,
.content-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.plan-card {
    padding: 31px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,241,0.84)),
        var(--surface);
    box-shadow: var(--shadow);
}

.plan-tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--navy);
    border: 1px solid rgba(196, 154, 69, 0.28);
    background: rgba(196, 154, 69, 0.12);
    font-size: 0.82rem;
    font-weight: 950;
}

.price {
    margin: 18px 0 12px;
    font-size: clamp(2.1rem, 4.6vw, 3rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    color: var(--navy);
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 23px 0;
}

.plan-list li {
    padding: 12px 0;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
}

.plan-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 950;
    margin-right: 10px;
}

.page-hero {
    padding: 72px 0 34px;
}

.page-hero h1 {
    font-size: clamp(2.45rem, 5vw, 4.8rem);
    max-width: 920px;
}

.page-hero .lead {
    max-width: 830px;
}

.content-stack {
    display: grid;
    gap: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: start;
}

.auth-wrap {
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
    padding: 50px 0;
}

.form-card {
    width: min(540px, 100%);
    padding: 30px;
    margin: 0 auto;
}

.form-card h1 {
    font-size: clamp(2.1rem, 5vw, 2.75rem);
    margin: 0 0 10px;
}

.form-card p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 24px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 850;
    font-size: 0.92rem;
    color: var(--navy);
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    outline: none;
    padding: 0 15px;
    color: var(--text);
    background: #ffffff;
}

textarea {
    min-height: 130px;
    padding: 14px 15px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(196, 154, 69, 0.78);
    box-shadow: 0 0 0 4px rgba(196, 154, 69, 0.13);
}

.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    line-height: 1.5;
    font-weight: 750;
}

.alert-danger {
    color: #8f2020;
    background: rgba(204,59,59,0.1);
    border: 1px solid rgba(204,59,59,0.22);
}

.alert-success {
    color: #0c6643;
    background: rgba(18,135,90,0.1);
    border: 1px solid rgba(18,135,90,0.22);
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

.auth-switch a {
    color: var(--navy);
    font-weight: 950;
}

.password-meter {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(16,26,52,0.09);
    margin: 10px 0 12px;
}

.password-meter-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--danger);
    transition: 0.25s ease;
}

.password-meter-bar.medium {
    background: var(--warning);
}

.password-meter-bar.strong {
    background: var(--success);
}

.password-rules {
    display: grid;
    gap: 6px;
    color: var(--muted-2);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.password-rules span.valid {
    color: var(--success);
}

.dashboard {
    padding: 46px 0 72px;
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.dashboard-head h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4.5vw, 4rem);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 950;
    font-size: 0.88rem;
}

.status-active {
    color: #0c6643;
    background: rgba(18,135,90,0.1);
    border: 1px solid rgba(18,135,90,0.24);
}

.status-locked {
    color: #8f2020;
    background: rgba(204,59,59,0.1);
    border: 1px solid rgba(204,59,59,0.24);
}

.locked {
    opacity: 0.82;
}

.admin-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--navy);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(196, 154, 69, 0.1);
}

td {
    color: var(--muted);
    line-height: 1.5;
    background: rgba(255,255,255,0.6);
}

.table-action {
    color: var(--navy);
    font-weight: 900;
}

.inline-form {
    display: inline;
}

.danger-button {
    color: #8f2020;
    background: rgba(204,59,59,0.12);
    border: 1px solid rgba(204,59,59,0.25);
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
}

.faq-item {
    padding: 24px;
}

.faq-item h3 {
    margin: 0 0 9px;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.64);
    padding: 40px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 28px;
    align-items: start;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 950;
    color: var(--navy);
    line-height: 1;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.site-footer p {
    max-width: 580px;
    color: var(--muted);
    line-height: 1.65;
}

.site-footer h4 {
    margin: 0 0 12px;
    color: var(--navy);
}

.site-footer a {
    display: block;
    color: var(--muted);
    margin: 9px 0;
    font-weight: 700;
}

.site-footer a:hover {
    color: var(--navy);
}

.footer-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted-2);
    font-size: 0.92rem;
}

@media (max-width: 1020px) {
    .menu-toggle {
        display: block;
    }

    .header-inner {
        min-height: 76px;
    }

    .nav-links {
        position: fixed;
        left: 18px;
        right: 18px;
        top: 86px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        border: 1px solid var(--line);
        background: rgba(255, 250, 241, 0.98);
        box-shadow: var(--shadow);
    }

    body.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        padding: 13px 14px;
    }

    .hero-grid,
    .grid-4,
    .grid-3,
    .grid-2,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .dashboard-head,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .hero {
        padding-top: 56px;
    }
}

@media (max-width: 540px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-logo-wrap {
        width: 48px;
        height: 48px;
    }

    .brand-title {
        font-size: 0.98rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .hero-actions .btn,
    .plan-card .btn,
    .content-card .btn {
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .form-card,
    .plan-card,
    .hero-card,
    .feature-card,
    .dashboard-card,
    .admin-card,
    .content-card,
    .faq-item {
        padding: 22px;
    }
}

.forgot-password-link {
    color: var(--navy) !important;
    font-weight: 950;
    font-size: 0.92rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.forgot-password-link:hover {
    color: var(--gold) !important;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.34);
    transition: 0.22s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 24px 58px rgba(37, 211, 102, 0.42);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

@media (max-width: 540px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 31px;
        height: 31px;
    }
}

.resource-list {
    display: grid;
    gap: 18px;
}

.resource-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.resource-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.resource-card h3 {
    margin: 0 0 8px;
    font-size: 1.28rem;
}

.resource-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.small-meta {
    margin-top: 12px;
    color: var(--muted-2);
    font-size: 0.9rem;
    font-weight: 700;
}

.resource-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .resource-card {
        grid-template-columns: 1fr;
    }

    .resource-actions,
    .resource-actions .btn {
        width: 100%;
    }
}

.code-sample {
    white-space: pre-wrap;
    background: rgba(16, 26, 52, 0.06);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.6;
    overflow-x: auto;
}

.admin-card ul,
.content-card ul {
    color: var(--muted);
    line-height: 1.7;
}

.exam-body {
    margin: 0;
    background: #eef3f8;
    color: #172033;
    overflow: hidden;
}

.exam-start-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fbff, #eaf1f8);
}

.exam-start-card {
    width: min(720px, 100%);
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(16, 26, 52, 0.18);
    text-align: center;
}

.exam-start-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 14px;
}

.exam-start-card h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.06em;
}

.exam-start-card p {
    color: var(--muted);
    line-height: 1.7;
}

.exam-rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.exam-rules div {
    padding: 14px;
    border-radius: 18px;
    background: #f4f7fb;
    border: 1px solid rgba(16, 26, 52, 0.1);
}

.fullscreen-warning {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.72);
    padding: 20px;
}

.fullscreen-warning > div {
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
}

.exam-shell {
    height: 100vh;
    display: grid;
    grid-template-rows: 72px 40px 1fr;
    background: #eef3f8;
}

.exam-topbar {
    display: grid;
    grid-template-columns: 260px 1fr 190px;
    gap: 18px;
    align-items: center;
    padding: 10px 18px;
    background: #ffffff;
    border-bottom: 1px solid #d8e0ea;
}

.exam-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exam-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.exam-brand div,
.exam-title-block {
    display: grid;
}

.exam-brand span,
.exam-title-block span,
.exam-timer-box span {
    color: #657086;
    font-size: 0.82rem;
    font-weight: 700;
}

.exam-title-block {
    text-align: center;
}

.exam-title-block strong {
    color: #101a34;
    font-size: 1.05rem;
}

.exam-timer-box {
    justify-self: end;
    padding: 8px 14px;
    border-radius: 14px;
    background: #101a34;
    color: #ffffff;
    text-align: center;
    min-width: 160px;
}

.exam-timer-box span {
    color: #d7deec;
}

.exam-timer-box strong {
    display: block;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.exam-security-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: #dfe9f4;
    border-bottom: 1px solid #cad7e6;
    color: #101a34;
    font-size: 0.9rem;
    font-weight: 800;
}

.exam-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 320px;
}

.exam-question-area {
    min-height: 0;
    display: grid;
    grid-template-rows: 62px 1fr 76px;
    background: #f8fbff;
}

.exam-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
    background: #ffffff;
    border-bottom: 1px solid #d8e0ea;
}

.exam-section-header div {
    display: grid;
}

.exam-section-header span {
    color: #657086;
    font-size: 0.84rem;
    font-weight: 800;
}

.exam-section-header strong {
    color: #101a34;
    font-size: 1.08rem;
}

.exam-submit-top,
.exam-submit-main {
    border: 0;
    border-radius: 999px;
    background: #cc3b3b;
    color: #ffffff;
    padding: 12px 18px;
    font-weight: 950;
    cursor: pointer;
}

.exam-question-panel {
    display: none;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
}

.exam-question-panel.active {
    display: block;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.question-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8eef6;
    color: #101a34;
    font-size: 0.82rem;
    font-weight: 850;
}

.question-text {
    padding: 22px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d8e0ea;
    color: #101a34;
    line-height: 1.75;
    font-size: 1.05rem;
    font-weight: 650;
}

.options-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.option-row {
    display: grid;
    grid-template-columns: 22px 38px 1fr;
    align-items: start;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #d8e0ea;
    background: #ffffff;
    cursor: pointer;
}

.option-row:hover {
    border-color: #101a34;
}

.option-label {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eef3f8;
    color: #101a34;
    font-weight: 950;
}

.option-text {
    color: #26324a;
    line-height: 1.6;
}

.exam-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    background: #ffffff;
    border-top: 1px solid #d8e0ea;
}

.exam-sidebar {
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: #ffffff;
    border-left: 1px solid #d8e0ea;
}

.candidate-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #eef3f8;
    margin-bottom: 16px;
}

.candidate-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #101a34;
    color: #ffffff;
    font-weight: 950;
    font-size: 1.2rem;
}

.candidate-card div:last-child {
    display: grid;
    min-width: 0;
}

.candidate-card span {
    color: #657086;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.palette-legend {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.86rem;
    font-weight: 800;
    color: #26324a;
}

.palette-legend div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: inline-block;
}

.question-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
    margin-bottom: 18px;
}

.palette-btn {
    height: 42px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 950;
}

.palette-btn.current {
    border-color: #101a34;
}

.palette-btn.answered,
.legend-box.answered {
    background: #12875a;
    color: #ffffff;
}

.palette-btn.not-answered,
.legend-box.not-answered {
    background: #cc3b3b;
    color: #ffffff;
}

.palette-btn.not-visited,
.legend-box.not-visited {
    background: #e3e8ef;
    color: #101a34;
}

.palette-btn.review,
.legend-box.review {
    background: #7c3aed;
    color: #ffffff;
}

.palette-btn.answered-review,
.legend-box.answered-review {
    background: linear-gradient(135deg, #12875a 0%, #12875a 50%, #7c3aed 51%, #7c3aed 100%);
    color: #ffffff;
}

.exam-submit-main {
    width: 100%;
}

@media (max-width: 900px) {
    .exam-body {
        overflow: auto;
    }

    .exam-shell {
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto auto auto;
    }

    .exam-topbar,
    .exam-layout {
        grid-template-columns: 1fr;
    }

    .exam-title-block {
        text-align: left;
    }

    .exam-timer-box {
        justify-self: stretch;
    }

    .exam-layout {
        display: flex;
        flex-direction: column;
    }

    .exam-question-area {
        display: block;
    }

    .exam-question-panel {
        max-height: none;
    }

    .exam-bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .exam-bottom-actions .btn {
        width: 100%;
    }

    .exam-sidebar {
        border-left: 0;
        border-top: 1px solid #d8e0ea;
    }

    .exam-rules {
        grid-template-columns: 1fr;
    }
}
