/* ===== About-us vibe: airy sections, soft gradients, clean cards ===== */

.quiz-hero {
    padding: 4rem 0 3rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .12) 0, transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(250, 204, 21, .14) 0, transparent 60%),
        linear-gradient(135deg, #e6f0ff 0%, #fff7dd 100%);
}

.quiz-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
    gap: 2rem;
    align-items: center;
}

@media (max-width: 992px) {
    .quiz-hero-inner {
        grid-template-columns: 1fr;
    }
}

.quiz-pill {
    display: inline-block;
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .02em;
    padding: .38rem .75rem;
    border-radius: 0;
    background: rgba(207, 217, 237, 0.507);
    color: white;
    margin-bottom: .75rem;
}

.quiz-hero-copy h1 {
    margin: 0 0 .5rem;
    font-weight: 700;
}

.quiz-hero-copy p {
    margin: 0;
    opacity: .85;
    max-width: 60ch;
}

.quiz-hero-actions {
    margin-top: 1.1rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.quiz-mini-stats {
    margin-top: 1.2rem;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.ms-item {
    /* background: rgba(255, 255, 255, .70); */
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: .75rem .9rem;
    min-width: 110px;
    backdrop-filter: blur(8px);
}

.ms-top {
    font-weight: 700;
}

.ms-bot {
    font-size: .85rem;
    opacity: .75;
    font-weight: 400;
}

.quiz-hero-card {
    /* background: rgba(255, 255, 255, .78); */
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 60px rgba(2, 6, 23, .12);
}

.qh-badge {
    display: inline-flex;
    font-weight: 700;
    font-size: .82rem;
    padding: .32rem .65rem;
    border-radius: 0;
    background: rgba(250, 204, 21, .18);
    color: #92400e;
    margin-bottom: .65rem;
}

.qh-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

.qh-sub {
    opacity: .78;
    font-weight: 400;
}

.qh-card-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.qh-metric {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: .8rem .85rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.qh-metric .val {
    font-weight: 700;
}

.qh-metric .lbl {
    font-size: .85rem;
    opacity: .75;
    font-weight: 400;
}

.qh-note {
    margin-top: .9rem;
    font-size: .88rem;
    opacity: .75;
    font-weight: 400;
}

.quiz-wrap {
    padding: 2.8rem 0 4rem;
}

.quiz-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .quiz-section {
        grid-template-columns: 1fr;
    }
}

.quiz-sec-pill {
    display: inline-block;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    padding: .35rem .7rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    margin-bottom: .7rem;
}

.quiz-section-left h2 {
    margin: 0 0 .35rem;
    font-weight: 700;
}

.quiz-sec-sub {
    margin: 0;
    opacity: .78;
    max-width: 60ch;
}

.quiz-points {
    margin-top: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .95rem;
}

.qp {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}

.qp .dot {
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: rgba(37, 99, 235, .80);
    margin-top: .4rem;
    flex: 0 0 10px;
}

.qp .t {
    font-weight: 700;
}

.qp .d {
    opacity: .75;
    font-weight: 400;
}

.quiz-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

.quiz-card-head h3 {
    margin: 0 0 .25rem;
    font-weight: 700;
}

.quiz-card-head p {
    margin: 0;
    opacity: .78;
}

.quiz-form {
    margin-top: 1.1rem;
}

.quiz-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 520px) {
    .quiz-form-grid {
        grid-template-columns: 1fr;
    }
}

.qf-field label {
    display: block;
    font-weight: 700;
    margin-bottom: .4rem;
}

.qf-control {
    width: 100%;
    border-radius: 0;
    border: 1px solid rgba(15, 23, 42, .14);
    padding: .8rem .9rem;
    outline: none;
}

.qf-control:focus {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.quiz-form-actions {
    margin-top: 1rem;
    display: flex;
    gap: .9rem;
    align-items: center;
    flex-wrap: wrap;
}

.qf-note {
    font-size: .9rem;
    opacity: .75;
    font-weight: 400;
}

/* Course block */
.quiz-course-block {
    margin-top: 2.25rem;
}

.quiz-course-head h2 {
    margin: 0 0 .25rem;
    font-weight: 700;
}

.quiz-course-head p {
    margin: 0;
    opacity: .78;
    font-weight: 400;
}

.quiz-course-grid {
    margin-top: 1.15rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 992px) {
    .quiz-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .quiz-course-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-course-card {
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: 1.1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.quiz-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
}

.qc-title {
    font-weight: 700;
    margin-bottom: .25rem;
}

.qc-meta {
    opacity: .75;
    font-weight: 400;
    font-size: .9rem;
}

/* Guest lock blur + overlay */
.is-locked {
    filter: blur(8px);
    opacity: .55;
    pointer-events: none;
    user-select: none;
}

.quiz-lock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .45);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    z-index: 9999;
}

.quiz-lock-card {
    width: min(520px, 100%);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 0;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 25px 70px rgba(2, 6, 23, .25);
}

.quiz-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .85rem;
    padding: .35rem .65rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
    margin-bottom: .75rem;
}

.quiz-lock-card h2 {
    margin: 0 0 .35rem;
    font-weight: 700;
}

.quiz-lock-card p {
    margin: 0 0 1rem;
    opacity: .85;
}

.quiz-lock-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.quiz-lock-note {
    margin-top: .85rem !important;
    font-size: .85rem;
    opacity: .75 !important;
}

/* ===============================
   QUIZ HERO – MORE COLORFUL
================================ */

.quiz-hero {
    position: relative;
    padding: 5rem 0 3.5rem;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, .45), transparent 55%),
        radial-gradient(circle at 90% 25%, rgba(251, 191, 36, .45), transparent 55%),
        linear-gradient(135deg,
            #e0ecff 0%,
            #eef2ff 35%,
            #fff7d6 70%,
            #fff1b8 100%);
    overflow: hidden;
}

/* subtle animated color noise */
.quiz-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 80%, rgba(99, 102, 241, .15), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(245, 158, 11, .18), transparent 55%);
    pointer-events: none;
}

/* left text stronger contrast */
.quiz-hero-copy h1 {
    color: #0f172a;
}

.quiz-hero-copy p {
    color: #334155;
    font-size: 1.05rem;
}

/* buttons pop */
.quiz-hero-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    box-shadow: 0 14px 35px rgba(37, 99, 235, .35);
}

.quiz-hero-actions .btn-outline-primary {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: rgba(255, 255, 255, .75);
}

/* stats cards more vivid */
.ms-item {
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(15, 23, 42, .12);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
}

/* ===============================
   RIGHT CARD – COLOR GLOW
================================ */

.quiz-hero-card {
    position: relative;
    background: rgba(255, 255, 255, .88);
    border-radius: 0;
    padding: 1.5rem;
    box-shadow:
        0 30px 80px rgba(2, 6, 23, .18),
        inset 0 0 0 1px rgba(15, 23, 42, .08);
}

/* glow halo */
.quiz-hero-card::before {
    content: "";
    position: absolute;
    inset: -20px;
    background:
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, .25), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(251, 191, 36, .25), transparent 60%);
    z-index: -1;
    filter: blur(30px);
}

/* difficulty cards inside */
.qh-metric {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

/* badge more contrast */
.qh-badge {
    background: linear-gradient(135deg, #fde68a, #facc15);
    color: #92400e;
    font-weight: 900;
}

/* Compact hero variant */
.quiz-hero--compact {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 2.5rem;
    background:
        linear-gradient(120deg,
            rgba(15, 23, 42, 0.05) 0%,
            rgba(31, 108, 255, 0.04) 45%,
            rgba(15, 23, 42, 0.08) 100%),
        url("/images/quiz-hero-compact-bg.webp") center / cover no-repeat;
    /* Increased blur for a softer look */
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .quiz-hero--compact {
        padding-top: 2.3rem;
        padding-bottom: 2.2rem;
        background-position: 30% top;
        background-attachment: local;
        /* Ensure image scrolls naturally */
    }

    .quiz-hero--compact .quiz-summary-card {
        margin-top: 23rem;
        /* Pushed significantly downward to show stairs in gap */
    }
}

/* Ensure content stays visible and sharp above the background */
.quiz-hero--compact .quiz-hero-inner {
    position: relative;
    z-index: 2;
}

.quiz-hero--compact h1,
.quiz-hero--compact p {
    color: #e5e7eb;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Soft light bloom */
.quiz-hero--compact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
            rgba(255, 255, 255, 0.10),
            transparent 60%);
    z-index: 1;
}

.quiz-summary-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: 0 22px 60px rgba(2, 6, 23, .12);
}

.qs-head {
    font-weight: 500;
    margin-bottom: .75rem;
    font-size: 2.25rem;
}

.qs-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .7rem;
    border-radius: 0;
    background: rgba(15, 23, 42, .03);
    margin-bottom: .5rem;
    color: #000;
}

.qs-row span {
    color: #000;
    font-weight: 700;
}

.qs-edit {
    display: inline-block;
    margin-top: .35rem;
    font-weight: 700;
    text-decoration: none;
}

/* Make course cards clickable buttons */
.quiz-course-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, .10);
}

.quiz-course-btn.is-selected {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 18px 45px rgba(15, 23, 42, .10);
    transform: translateY(-2px);
}

/* Levels */
.quiz-level-block {
    margin-top: 2.25rem;
}

.quiz-level-grid {
    margin-top: 1.15rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 992px) {
    .quiz-level-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .quiz-level-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-level-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: 1.1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.quiz-level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
}

.ql-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.ql-tag {
    font-weight: 700;
    font-size: .82rem;
    padding: .3rem .6rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

.ql-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.ql-desc {
    margin-top: .55rem;
    opacity: .78;
    font-weight: 400;
}

.ql-cta {
    margin-top: .9rem;
    font-weight: 700;
}

.quiz-level-note {
    margin-top: .9rem;
    opacity: .8;
    font-weight: 400;
}

.qsb-honor {
    margin-top: .9rem;
    opacity: .8;
    font-weight: 400;
}

.quiz-subject-grid {
    margin-top: 1.15rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 992px) {
    .quiz-subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .quiz-subject-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-subject-card {
    cursor: pointer;
    display: block;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: 1.1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
    user-select: none;
}

.quiz-subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
}

.quiz-subject-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-subject-card:has(input:checked) {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 18px 45px rgba(15, 23, 42, .10);
}

.qsc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.qsc-pill {
    font-weight: 700;
    font-size: .82rem;
    padding: .3rem .6rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

.qsc-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.qsc-meta {
    margin-top: .55rem;
    opacity: .78;
    font-weight: 400;
}

.qsc-cta {
    margin-top: .9rem;
    font-weight: 700;
}

.qs-skilllist {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .6rem;
}

/* ✅ Add/replace these styles in quiz.css (skills UI polish) */

.qf-skillbox {
    margin-top: .4rem;
    position: relative;
    padding: .8rem;
    border-radius: 0;
    border: 1px solid rgba(15, 23, 42, .10);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.qf-skillrow {
    display: flex;
    align-items: center;
}

.qf-skillinput {
    flex: 1;
    border-radius: 0;
}

/* chips row */
.qf-chips {
    display: none;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .65rem;
}

.qf-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .65rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .10);
    border: 1px solid rgba(37, 99, 235, .18);
    color: #1d4ed8;
    font-weight: 700;
    font-size: .88rem;
}

.qf-chip-x {
    width: 22px;
    height: 22px;
    border-radius: 0;
    border: 1px solid rgba(29, 78, 216, .20);
    background: rgba(255, 255, 255, .85);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
    color: #1d4ed8;
}

.qf-chip-x:hover {
    background: rgba(29, 78, 216, .08);
}

/* suggestions dropdown */
.qf-suggest {
    position: absolute;
    left: .8rem;
    right: .8rem;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 0;
    box-shadow: 0 18px 55px rgba(2, 6, 23, .12);
    padding: .4rem;
    z-index: 20;
}

.qf-suggest-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: .7rem .8rem;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qf-suggest-item::after {
    content: "Add";
    font-size: .85rem;
    font-weight: 700;
    color: #2563eb;
    opacity: .9;
}

.qf-suggest-item:hover {
    background: rgba(37, 99, 235, .06);
}

/* Difficulty cards – fixed layout */
.quiz-difficulty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: .75rem;
}

@media (max-width:768px) {
    .quiz-difficulty-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-diff-card {
    -webkit-appearance: none;
    appearance: none;

    width: 100%;
    background: #fff;
    border: 1.5px solid rgba(15, 23, 42, .12);
    border-radius: 0;
    padding: 1.1rem 1.25rem;

    cursor: pointer;
    text-align: left;

    display: flex;
    flex-direction: column;
    gap: .35rem;

    transition: all .18s ease;
    outline: none;

    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

/* remove browser focus ring / glow */
.quiz-diff-card:focus,
.quiz-diff-card:focus-visible {
    outline: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

/* hover */
.quiz-diff-card:hover {
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
    transform: translateY(-1px);
}

/* selected */
.quiz-diff-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18), 0 16px 40px rgba(15, 23, 42, .10);
}

.qd-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.qd-desc {
    font-size: .92rem;
    font-weight: 500;
    color: #40464e;
}

.quiz-level-card {
    background: #fff;
    border: 1.5px solid rgba(15, 23, 42, .12);
    border-radius: 0;
    padding: 1.1rem;
    cursor: pointer;
    transition: all .18s ease;
}

.quiz-level-card:hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.quiz-level-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

/* Levels: clean single-layer cards */
.quiz-level-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .quiz-level-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .quiz-level-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-level-card {
    width: 100%;
    text-align: left;
    border: 1.5px solid rgba(15, 23, 42, .12);
    background: #fff;
    border-radius: 0;
    padding: 1.15rem 1.25rem;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: all .18s ease;
}

.quiz-level-card:hover {
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
    transform: translateY(-1px);
}

.quiz-level-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18), 0 16px 40px rgba(15, 23, 42, .10);
}

.qlv-badge {
    font-weight: 700;
    font-size: .95rem;
    padding: .35rem .7rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .10);
    border: 1px solid rgba(37, 99, 235, .18);
    color: #1d4ed8;
}

.qlv-cta {
    font-weight: 700;
    color: #0f172a;
    opacity: .9;
}

/* Sticky Start Quiz Bar */
.quiz-startbar {
    position: sticky;
    bottom: 16px;
    z-index: 50;
    margin-top: 1.25rem;
}

.qsb-inner {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 0;
    box-shadow: 0 22px 70px rgba(2, 6, 23, .18);
    padding: .9rem 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    backdrop-filter: blur(10px);
}

.qsb-title {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.qsb-sub {
    margin-top: .15rem;
    font-weight: 500;
    color: #475569;
    font-size: .92rem;
}

.qsb-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* =========================
   Difficulty cards – PREMIUM LOOK + hard override
========================= */

.quiz-difficulty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: .9rem;
}

@media (max-width:768px) {
    .quiz-difficulty-grid {
        grid-template-columns: 1fr;
    }
}

/* Hard reset button styling */
.quiz-diff-card.qd-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Real card UI on inner layout */
.quiz-diff-card.qd-btn {
    width: 100%;
    cursor: pointer;
    text-align: left;

    border-radius: 0;
    padding: 1.2rem 1.25rem !important;

    background:
        transparent !important;

    border: 1.5px solid rgba(15, 23, 42, .10) !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .08) !important;

    display: flex;
    flex-direction: column;
    gap: .35rem;

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* ===== Force metallic by default (overrides bg:#fff !important) ===== */
.quiz-diff-card.qd-btn.qd--bronze {
    background: linear-gradient(135deg, #f7e7d3 0%, #e3b786 55%, #c6844a 100%) !important;
    border-color: #c6844a !important;
    box-shadow: 0 12px 36px rgba(198, 132, 74, .22) !important;
}

.quiz-diff-card.qd-btn.qd--bronze .qd-title {
    color: #6b3416 !important;
}

.quiz-diff-card.qd-btn.qd--silver {
    background: linear-gradient(135deg, #f8fafc 0%, #d8dde6 55%, #b7bec9 100%) !important;
    border-color: #9aa3b2 !important;
    box-shadow: 0 12px 36px rgba(154, 163, 178, .22) !important;
}

.quiz-diff-card.qd-btn.qd--silver .qd-title {
    color: #334155 !important;
}

.quiz-diff-card.qd-btn.qd--gold {
    background: linear-gradient(135deg, #fff6d6 0%, #f6d56a 55%, #eab308 100%) !important;
    border-color: #eab308 !important;
    box-shadow: 0 12px 38px rgba(234, 179, 8, .26) !important;
}

.quiz-diff-card.qd-btn.qd--gold .qd-title {
    color: #7c4a02 !important;
}


/* hover */
.quiz-diff-card.qd-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .25) !important;
    box-shadow: 0 18px 52px rgba(15, 23, 42, .12) !important;
}

/* selected – obvious */
.quiz-diff-card.qd-btn.is-selected {
    border-color: rgba(37, 99, 235, .65) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14), 0 18px 52px rgba(15, 23, 42, .12) !important;
    background: #ffffff;
}

/* remove browser focus ring */
.quiz-diff-card.qd-btn:focus,
.quiz-diff-card.qd-btn:focus-visible {
    outline: none !important;
}

/* Title + desc with stronger hierarchy */
.qd-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
}

.qd-desc {
    font-size: .93rem;
    color: #5b5d61;
}

/* Optional: add a check mark on selected TICK MARK*/
.quiz-diff-card.qd-btn.is-selected .qd-title::after {
    content: " ✓";
    color: #2563eb;
    font-weight: 700;
}

/* Sets */
.quiz-set-block {
    margin-top: 1.25rem;
}

.quiz-set-grid {
    margin-top: .9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .quiz-set-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-set-card {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    text-align: left;
    cursor: pointer;

    border-radius: 0;
    padding: 1.1rem 1.25rem;

    background: #fff;
    border: 1.5px solid rgba(15, 23, 42, .12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: all .18s ease;
}

.quiz-set-card:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, .30);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
}

.quiz-set-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18), 0 16px 40px rgba(15, 23, 42, .10);
}

.qs-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

.qs-meta {
    margin-top: .25rem;
    font-weight: 400;
    color: #475569;
    font-size: .92rem;
}

/* Metallic difficulty cards */
.quiz-diff-card {
    position: relative;
    overflow: hidden;
}

/* subtle metallic shine */
.quiz-diff-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, .0) 0%, rgba(255, 255, 255, .28) 35%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-35%);
    transition: transform .35s ease;
    pointer-events: none;
}

.quiz-diff-card:hover::before {
    transform: translateX(35%);
}

.qd--bronze {
    background: linear-gradient(135deg,
            #f7e7d3 0%,
            #e3b786 55%,
            #c6844a 100%);
    border-color: #c6844a;
    box-shadow: 0 10px 28px rgba(198, 132, 74, .22);
}

.qd--bronze .qd-title {
    color: #6b3416;
}

.qd--silver {
    background: linear-gradient(135deg,
            #f8fafc 0%,
            #d8dde6 55%,
            #b7bec9 100%);
    border-color: #9aa3b2;
    box-shadow: 0 10px 28px rgba(154, 163, 178, .22);
}

.qd--silver .qd-title {
    color: #334155;
}

.qd--gold {
    background: linear-gradient(135deg,
            #fff6d6 0%,
            #f6d56a 55%,
            #eab308 100%);
    border-color: #eab308;
    box-shadow: 0 10px 30px rgba(234, 179, 8, .26);
}

.qd--gold .qd-title {
    color: #7c4a02;
}

/* Selected: keep your blue ring, but add metallic glow tint */
.qd--bronze.is-selected {
    box-shadow: 0 0 0 3px rgba(205, 127, 50, .22);
    border-color: rgba(205, 127, 50, .55);
}

.qd--silver.is-selected {
    box-shadow: 0 0 0 3px rgba(192, 192, 192, .28);
    border-color: rgba(120, 129, 139, .45);
}

.qd--gold.is-selected {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .25);
    border-color: rgba(212, 175, 55, .60);
}

/* FORCE metallic fill when selected (override any previous .is-selected styles) */
.quiz-difficulty-grid .quiz-diff-card.is-selected {
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Bronze selected */
.quiz-difficulty-grid .quiz-diff-card.qd--bronze.is-selected {
    background: linear-gradient(135deg,
            #ffe9cf 0%,
            #e7b06c 45%,
            #b96a2b 100%) !important;
    border-color: #b96a2b !important;
    box-shadow:
        0 0 0 4px rgba(185, 106, 43, .30),
        0 18px 48px rgba(185, 106, 43, .45) !important;
}

.quiz-difficulty-grid .quiz-diff-card.qd--bronze.is-selected .qd-title {
    color: #6b3416 !important;
}

/* Silver selected */
.quiz-difficulty-grid .quiz-diff-card.qd--silver.is-selected {
    background: linear-gradient(135deg,
            #ffffff 0%,
            #e3e8f0 45%,
            #9aa3b2 100%) !important;
    border-color: #9aa3b2 !important;
    box-shadow:
        0 0 0 4px rgba(154, 163, 178, .35),
        0 18px 48px rgba(154, 163, 178, .40) !important;
}

.quiz-difficulty-grid .quiz-diff-card.qd--silver.is-selected .qd-title {
    color: #334155 !important;
}

/* Gold selected */
.quiz-difficulty-grid .quiz-diff-card.qd--gold.is-selected {
    background: linear-gradient(135deg,
            #fffbe6 0%,
            #facc15 45%,
            #d97706 100%) !important;
    border-color: #d97706 !important;
    box-shadow:
        0 0 0 4px rgba(217, 119, 6, .40),
        0 20px 52px rgba(217, 119, 6, .50) !important;
}

.quiz-difficulty-grid .quiz-diff-card.qd--gold.is-selected .qd-title {
    color: #7c4a02 !important;
}

/* Locked level — no blur, no fade */
.quiz-level-card.is-locked {
    cursor: not-allowed;
    position: relative;
}

/* Prevent hover effects */
.quiz-level-card.is-locked:hover {
    box-shadow: none;
    transform: none;
}

/* Lock badge */
.quiz-level-card.is-locked .qlv-cta {
    color: #6b7280;
    font-weight: 700;
}

/* Optional lock icon bubble */
.quiz-level-card.is-locked::after {
    /* content: "🔒"; */
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1.1rem;
}

/* HARD OVERRIDE: never blur level cards or the grid */
.quiz-level-block,
.quiz-level-grid,
.quiz-level-card,
.quiz-level-card.is-locked,
.quiz-level-grid .quiz-level-card.is-locked {
    filter: none !important;
    backdrop-filter: none !important;
}

/* IMPORTANT: allow tooltip to escape the grid/cards */
.quiz-level-grid {
    overflow: visible !important;
}

.quiz-level-block {
    overflow: visible !important;
}

/* wrapper */
.qlv-wrap {
    position: relative;
    overflow: visible;
}

/* tooltip only for locked wrappers */




/* ===== FORCE: NEVER BLUR LEVELS GRID OR CARDS ===== */
#levelsWrap,
#levelsWrap * {
    filter: none !important;
    backdrop-filter: none !important;
}

/* Ensure tooltip can escape */
.quiz-level-grid,
.quiz-level-block,
#levelsWrap {
    overflow: visible !important;
}

/* wrapper */
.qlv-wrap {
    position: relative;
    overflow: visible;
}

/* tooltip element */
.qlv-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    background: #0f172a;
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 650;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 999999;
}

/* arrow */
.qlv-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #0f172a;
}

/* show on hover of wrapper (works even if button disabled) */
.qlv-wrap.is-locked:hover .qlv-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.qlv-wrap {
    position: relative;
    overflow: visible;
}

.qlv-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    background: #0f172a;
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 650;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 999999;
}

.qlv-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #0f172a;
}

.qlv-wrap.is-locked:hover .qlv-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Make sure the grid/blocks don’t clip */
.quiz-level-grid,
.quiz-level-block,
#levelsWrap,
#levelsWrap .container {
    overflow: visible !important;
}

/* Create a clean stacking context so tooltip can appear on top */
.quiz-level-block,
#levelsWrap {
    position: relative;
    isolation: isolate;
    /* KEY: fixes tooltip behind issues */
}

/* Wrapper must be the “top” layer when hovered */
.qlv-wrap {
    position: relative;
    overflow: visible;
}

.qlv-wrap.is-locked:hover {
    z-index: 9999;
    /* bring above neighbours */
}

/* Tooltip */
.qlv-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    background: #0f172a;
    color: #fff;
    padding: 8px 10px;
    border-radius: 0;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 999999;
    /* highest */
}

.qlv-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #0f172a;
}

.qlv-wrap.is-locked:hover .qlv-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.qlv-wrap.is-locked {
    pointer-events: auto !important;
}

.quiz-level-card.is-locked {
    pointer-events: none;
}

/* hover happens on wrapper */

/* =========================
   SKILL CATALOG (cards)
========================= */

.quiz-skill-catalog {
    margin-top: 1.15rem;
    display: grid;
    gap: 1.25rem;
}

.qsg-block {
    background: rgba(15, 23, 42, .02);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 0;
    padding: 1rem;
}

.qsg-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: .85rem;
}

.qsg-title {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
    font-size: 1.02rem;
    white-space: nowrap;
}

.qsg-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(37, 99, 235, .28), rgba(234, 179, 8, .22), transparent);
}

.quiz-skill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: .35rem;
}

@media (max-width: 992px) {
    .quiz-skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .quiz-skill-grid {
        grid-template-columns: 1fr;
    }
}

/* Slightly different from subject cards, but same language */
.quiz-skill-card {
    cursor: pointer;
    display: block;
    position: relative;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    padding: 1.05rem 1.1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    user-select: none;
    overflow: hidden;
}

/* subtle "premium" edge tint */
.quiz-skill-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, .10) 0%,
            rgba(255, 255, 255, 0) 38%,
            rgba(234, 179, 8, .10) 100%);
    opacity: .35;
    pointer-events: none;
}

.quiz-skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
    border-color: rgba(37, 99, 235, .22);
}

.quiz-skill-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-skill-card:has(input:checked) {
    border-color: rgba(37, 99, 235, .60);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 18px 45px rgba(15, 23, 42, .10);
}

.qsk-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

.qsk-pill {
    font-weight: 700;
    font-size: .80rem;
    padding: .28rem .6rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

.qsk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(234, 179, 8, .75);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, .14);
}

.qsk-title {
    margin-top: .65rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    letter-spacing: -.01em;
}

.qsk-meta {
    margin-top: .45rem;
    opacity: .78;
    font-weight: 400;
}

.qsk-cta {
    margin-top: .85rem;
    font-weight: 700;
}

/* =========================
   SKILL ACCORDION
========================= */
.quiz-skill-accordion {
    margin-top: 1.15rem;
    display: grid;
    gap: 1rem;
}

.qsg-acc {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.qsg-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: .95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
}

.qsg-toggle:hover {
    background: rgba(15, 23, 42, .02);
}

.qsg-left {
    display: grid;
    gap: .15rem;
}

.qsg-title {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
    font-size: 1.03rem;
}

.qsg-sub {
    font-weight: 500;
    color: #475569;
    opacity: .9;
    font-size: .88rem;
}

.qsg-right {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.qsg-chip {
    font-weight: 700;
    font-size: 1.05rem;
    padding: .28rem .6rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, .18);
}

.qsg-chevron {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    opacity: .75;
    transition: transform .18s ease;
}

.qsg-acc.is-open .qsg-chevron {
    transform: rotate(180deg);
}

.qsg-panel {
    padding: 0 1rem 1rem;
}

/* =========================
   SKILL GRID + CARDS
   (same vibe as subject cards, slightly different)
========================= */
.quiz-skill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: .35rem;
}

@media (max-width: 992px) {
    .quiz-skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .quiz-skill-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-skill-card {
    cursor: pointer;
    display: block;
    position: relative;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0px;
    padding: 1.05rem 1.1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    user-select: none;
    overflow: hidden;
}

.quiz-skill-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, .10) 0%,
            rgba(255, 255, 255, 0) 38%,
            rgba(234, 179, 8, .10) 100%);
    opacity: .32;
    pointer-events: none;
}

.quiz-skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
    border-color: rgba(37, 99, 235, .22);
}

.quiz-skill-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* selected state (works with your JS too) */
.quiz-skill-card.is-selected,
.quiz-skill-card:has(input:checked) {
    border-color: rgba(37, 99, 235, .60);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 18px 45px rgba(15, 23, 42, .10);
}

.qsk-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

.qsk-pill {
    font-weight: 700;
    font-size: .80rem;
    padding: .28rem .6rem;
    border-radius: 0;
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

.qsk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(234, 179, 8, .75);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, .14);
}

.qsk-title {
    margin-top: .65rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    letter-spacing: -.01em;
}

.qsk-meta {
    margin-top: .45rem;
    opacity: .78;
    font-weight: 400;
}

.qsk-cta {
    margin-top: .85rem;
    font-weight: 700;
}

.quiz-level-card.is-completed {
    border-color: rgba(34, 197, 94, .55);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18), 0 16px 40px rgba(15, 23, 42, .10);
    background: linear-gradient(135deg, #ffffff 0%, rgba(34, 197, 94, .10) 60%, rgba(34, 197, 94, .06) 100%);
}

.quiz-level-card.is-completed .qlv-badge {
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .22);
    color: #166534;
}

.qlv-done {
    font-weight: 700;
    color: #166534;
}

.is-blurred {
    filter: blur(6px);
    opacity: .7;
    pointer-events: none;
    /* prevents clicking behind */
    user-select: none;
}
.watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -30deg,
    rgba(0,0,0,0.08),
    rgba(0,0,0,0.08) 120px,
    transparent 120px,
    transparent 240px
  );
}

