/* ── Reset & base ── */
.nnq-wrap{
    max-width:800px;
    margin:0 auto;
    padding:16px 12px 60px;
    font-family:inherit;
    color:#1b2b4b;
}

.nnq-back-link{
    display:inline-flex;
    align-items:center;
    gap:5px;
    font-size:13px;
    font-weight:600;
    color:#5a6e8c;
    text-decoration:none;
    margin-bottom:8px;
}

.nnq-back-link:hover{
    color:#2C3E50;
}


/* ── Gate ── */
.nnq-gate{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:60vh;
}

.nnq-gate-inner{
    text-align:center;
    padding:48px 32px;
    background:#fff;
    border-radius:20px;
    border:1.5px solid #e4ebf7;
    max-width:400px;
    width:100%;
}

.nnq-gate-icon{
    font-size:48px;
    margin-bottom:16px;
}

.nnq-gate-inner h2{
    margin:0 0 10px;
    font-size:22px;
    color:#2C3E50;
}

.nnq-gate-inner p{
    color:#667085;
    margin:0 0 24px;
}


/* ── Buttons ── */
.nnq-btn-primary{
    display:inline-block;
    padding:11px 24px;
    background:#2C3E50;
    color:#fff !important;
    border-radius:10px;
    font-weight:700;
    font-size:14px;
    text-decoration:none !important;
    border:none;
    cursor:pointer;
    transition:background .18s;
}

.nnq-btn-primary:hover{
    background:#1d3e8f;
}

.nnq-btn-outline{
    display:inline-block;
    padding:11px 24px;
    background:#fff;
    color:#2C3E50 !important;
    border:2px solid #2C3E50;
    border-radius:10px;
    font-weight:700;
    font-size:14px;
    text-decoration:none !important;
    cursor:pointer;
    transition:all .18s;
}

.nnq-btn-outline:hover{
    background:#f0f5ff;
}


/* ── Result screen ── */
.nnq-result-screen{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.nnq-result-card{
    background:#fff;
    border-radius:20px;
    border:1.5px solid #e4ebf7;
    padding:36px 28px;
    text-align:center;
    box-shadow:0 8px 32px rgba(18,39,90,.08);
}

.nnq-result-icon{
    font-size:52px;
    margin-bottom:12px;
}

.nnq-result-title{
    font-size:26px;
    font-weight:800;
    color:#2C3E50;
    margin:0 0 20px;
}

.nnq-score-ring{
    margin:0 auto 12px;
    display:block;
}

.nnq-score-label{
    font-size:16px;
    color:#5a6e8c;
    font-weight:600;
    margin:0 0 24px;
}

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


/* ── Review ── */
.nnq-review-title{
    font-size:18px;
    font-weight:800;
    color:#2C3E50;
    margin:0 0 14px;
}

.nnq-review-card{
    background:#fff;
    border-radius:14px;
    border:1.5px solid #e4ebf7;
    padding:18px 16px;
    margin-bottom:12px;
}

.nnq-review-card.is-right{
    border-color:#bbf7d0;
    background:#f0fdf4;
}

.nnq-review-card.is-wrong{
    border-color:#fecaca;
    background:#fff5f5;
}

.nnq-review-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
}

.nnq-review-num{
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:#5a6e8c;
}

.nnq-review-verdict{
    font-size:12px;
    font-weight:700;
}

.nnq-review-card.is-right .nnq-review-verdict{
    color:#16a34a;
}

.nnq-review-card.is-wrong .nnq-review-verdict{
    color:#dc2626;
}

.nnq-review-q{
    font-size:14px;
    font-weight:600;
    color:#1b2b4b;
    margin:0 0 10px;
}

.nnq-review-opts{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-bottom:10px;
}

.nnq-review-opt{
    padding:7px 10px;
    border-radius:7px;
    font-size:13px;
    background:#f8faff;
    border:1.5px solid #e4ebf7;
    color:#1b2b4b;
}

.nnq-review-opt.is-correct{
    background:#dcfce7;
    border-color:#86efac;
    color:#15803d;
    font-weight:700;
}

.nnq-review-opt.is-wrong{
    background:#fee2e2;
    border-color:#fca5a5;
    color:#dc2626;
}

.nnq-review-explain{
    font-size:13px;
    color:#4b5563;
    background:#fffbeb;
    border:1px solid #fde68a;
    border-radius:8px;
    padding:9px 11px;
    line-height:1.6;
}


/* ── Quiz screen ── */
.nnq-quiz-screen{
    display:flex;
    flex-direction:column;
    gap:0;
}


/* Header */
.nnq-header{
    display:flex;
    align-items:center;
    gap:12px;
    background:#2C3E50;
    color:#fff;
    border-radius:16px 16px 0 0;
    padding:14px 18px;
}

.nnq-back-link.in-header{
    color:rgba(255,255,255,.75);
    margin:0;
}

.nnq-header-spacer{
    flex:1;
}

.nnq-header-info{
    flex:0 0 auto;
    min-width:0;
    text-align:right;
}

.nnq-header-title{
    font-size:14px;
    font-weight:700;
    color:#fff;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.nnq-header-sub{
    font-size:11px;
    color:rgba(255,255,255,.65);
    margin-top:2px;
}

.nnq-header-counter{
    font-size:13px;
    font-weight:800;
    color:#fff;
    white-space:nowrap;
    background:rgba(255,255,255,.15);
    padding:4px 10px;
    border-radius:999px;
}


/* Navigator bar sits full-width above the question */
.nnq-two-col{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.nnq-col-question{
    width:100%;
    min-width:0;
    order:2;
}

.nnq-col-side{
    width:100%;
    box-sizing:border-box;
    min-width:0;
    background:#fff;
    border:1.5px solid #e4ebf7;
    border-radius:16px;
    padding:16px 18px;
    position:static;
    order:1;
}

.nnq-side-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.nnq-col-side .nnq-back-link{
    display:inline-block;
    margin:0;
}

.nnq-side-counter{
    font-size:13px;
    font-weight:800;
    color:#fff;
    background:#2C3E50;
    display:inline-block;
    padding:4px 12px;
    border-radius:999px;
    margin:0;
}

.nnq-col-side .nnq-dots{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(28px,1fr));
    gap:6px;
    justify-content:flex-start;
    margin-top:14px;
    background:transparent;
    padding:0;
    border-bottom:none;
}

@media(max-width:700px){
    .nnq-col-side .nnq-dots{
        grid-template-columns:repeat(auto-fill,minmax(24px,1fr));
    }
}


/* Back link in header */
.nnq-header .nnq-back-link{
    color:rgba(255,255,255,.8);
    margin:0;
    font-size:18px;
}


/* Progress */
.nnq-progress-bar{
    height:4px;
    background:#e4ebf7;
}

.nnq-progress-fill{
    height:4px;
    background:linear-gradient(90deg,#2C3E50,#3b6cf4);
    width:0;
    transition:width .35s ease;
}


/* Dots */
.nnq-dots{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    padding:12px 16px;
    background:#f8faff;
    border-bottom:1px solid #e4ebf7;
}

.nnq-dot{
    width:28px;
    height:28px;
    border-radius:50%;
    border:2px solid #dce4f2;
    background:#fff;
    font-size:10px;
    font-weight:700;
    color:#7a8aaa;
    cursor:pointer;
    transition:all .18s;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:inherit;
    padding:0;
}

.nnq-dot.is-active{
    border-color:#2C3E50;
    background:#2C3E50;
    color:#fff;
}

.nnq-dot.is-answered{
    border-color:#3b6cf4;
    background:#eef3ff;
    color:#3b6cf4;
}

.nnq-dot.is-active.is-answered{
    background:#2C3E50;
    color:#fff;
}


/* Question card */
.nnq-question{
    background:#fff;
    border:1.5px solid #e4ebf7;
    border-radius:0;
    padding:24px 20px 20px;
}

.nnq-q-label{
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.07em;
    color:#3b6cf4;
    margin:0 0 10px;
}

.nnq-q-text{
    font-size:16px;
    font-weight:600;
    color:#1b2b4b;
    line-height:1.6;
    margin:0 0 20px;
}

.nnq-q-text img{
    max-width:100%;
    border-radius:8px;
    margin:8px 0;
}


/* Options */
.nnq-options{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.nnq-option{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:10px;
    border:2px solid #e4ebf7;
    background:#fff;
    cursor:pointer;
    transition:all .18s;
    user-select:none;
}

.nnq-option:hover{
    border-color:#b9c9ea;
    background:#f0f5ff;
}

.nnq-option.is-selected{
    border-color:#2C3E50;
    background:#eef3ff;
}

.nnq-opt-key{
    flex-shrink:0;
    width:30px;
    height:30px;
    border-radius:8px;
    background:#f0f4ff;
    color:#2C3E50;
    font-size:12px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .18s,color .18s;
}

.nnq-option.is-selected .nnq-opt-key{
    background:#2C3E50;
    color:#fff;
}

.nnq-opt-text{
    font-size:14px;
    font-weight:500;
    color:#1b2b4b;
    line-height:1.5;
    flex:1;
}

.nnq-option input[type="radio"]{
    position:absolute;
    opacity:0;
    pointer-events:none;
}


/* Nav buttons */
.nnq-nav{
    display:flex;
    gap:10px;
    align-items:center;
    padding:14px 16px;
    background:#fff;
    border:1.5px solid #e4ebf7;
    border-top:none;
    border-radius:0 0 16px 16px;
}

.nnq-btn-nav{
    padding:10px 20px;
    border-radius:9px;
    border:2px solid #e4ebf7;
    background:#fff;
    color:#1b2b4b;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:all .18s;
    font-family:inherit;
}

.nnq-btn-nav:hover:not(:disabled){
    border-color:#2C3E50;
    background:#f0f5ff;
    color:#2C3E50;
}

.nnq-btn-nav:disabled{
    opacity:.4;
    cursor:not-allowed;
}

.nnq-btn-next{
    margin-left:auto;
    background:#2C3E50;
    color:#fff;
    border-color:#2C3E50;
}

.nnq-btn-next:hover:not(:disabled){
    background:#1d3e8f;
    border-color:#1d3e8f;
    color:#fff;
}

.nnq-btn-check{
    margin-left:auto;
    background:#3b6cf4;
    color:#fff;
    border-color:#3b6cf4;
}

.nnq-btn-check:hover:not(:disabled){
    background:#2c56d6;
    border-color:#2c56d6;
    color:#fff;
}

.nnq-btn-check[hidden]{
    display:none!important;
}

.nnq-btn-submit{
    display:none;
    margin-left:auto;
    padding:10px 22px;
    border-radius:9px;
    border:none;
    background:#16a34a;
    color:#fff;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    font-family:inherit;
    transition:background .18s;
}

.nnq-btn-submit:hover{
    background:#15803d;
}

.nnq-btn-submit[hidden]{
    display:none!important;
}


/* Checked option states */
.nnq-option.is-locked{
    cursor:default;
    pointer-events:none;
}

.nnq-option.is-correct-answer{
    border-color:#86efac;
    background:#dcfce7;
}

.nnq-option.is-correct-answer .nnq-opt-key{
    background:#16a34a;
    color:#fff;
}

.nnq-option.is-wrong-answer{
    border-color:#fca5a5;
    background:#fee2e2;
}

.nnq-option.is-wrong-answer .nnq-opt-key{
    background:#dc2626;
    color:#fff;
}


/* Inline explanation panel */
.nnq-inline-explain{
    margin-top:14px;
    font-size:13px;
    color:#4b5563;
    background:#fffbeb;
    border:1px solid #fde68a;
    border-radius:8px;
    padding:10px 12px;
    line-height:1.6;
}

.nnq-inline-explain[hidden]{
    display:none!important;
}

.nnq-inline-explain-label{
    font-weight:800;
    color:#92660a;
    margin-bottom:4px;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.05em;
}


/* Answered bar */
.nnq-answered-bar{
    text-align:center;
    font-size:12px;
    color:#7a8aaa;
    padding:10px 0 0;
    font-weight:600;
}

.nnq-answered-bar span{
    color:#2C3E50;
    font-weight:800;
}


/* Mobile */
@media(max-width:600px){

    .nnq-wrap{
        padding:10px 6px 60px;
    }

    .nnq-q-text{
        font-size:15px;
    }

    .nnq-opt-text{
        font-size:13px;
    }

    .nnq-result-card{
        padding:28px 18px;
    }

    .nnq-result-title{
        font-size:22px;
    }

    .nnq-header{
        border-radius:12px 12px 0 0;
        padding:12px 14px;
    }

    .nnq-dots{
        padding:10px 12px;
    }

    .nnq-dot{
        width:24px;
        height:24px;
        font-size:9px;
    }

    .nnq-nav{
        padding:12px;
    }

    .nnq-btn-nav,
    .nnq-btn-submit{
        padding:10px 14px;
        font-size:12px;
    }
}