:root {
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --cyan: #06b6d4;
}
body {
    min-height: 100vh;
}
.hero {
    position: relative;
    padding: 80px 0 40px;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}
.highlight {
    background: linear-gradient(135deg, var(--purple-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Progress Bar */
.measurement-progress {
    background: var(--clr-border);
    border-radius: 50px;
    height: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.measurement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 50px;
    transition: width 0.4s ease;
}

/* Question Card */
.q-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    transition: border-color 0.3s;
}
.q-card.active {
    border-color: rgba(124, 58, 237, 0.4);
}
.q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--purple-light);
    margin-bottom: 14px;
}
.q-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 20px;
}
.q-domain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--cyan);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Options */
.opt-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--primary-12);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.opt-item:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.3);
}
.opt-item.selected {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.5);
}
.opt-item.correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}
.opt-item.wrong {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}
.opt-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.opt-item.selected .opt-letter {
    background: var(--purple);
    color: #fff;
}
.opt-item.correct .opt-letter {
    background: var(--green);
    color: #fff;
}
.opt-item.wrong .opt-letter {
    background: #ef4444;
    color: #fff;
}
.opt-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Explanation */
.explanation {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 14px;
    display: none;
}
.explanation.show {
    display: block;
}
.explanation-title {
    font-weight: 700;
    color: var(--green);
    margin-bottom: 6px;
    font-size: 0.85rem;
}
.explanation-text {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.7;
}

/* Blur Overlay */
.blur-overlay {
    position: relative;
}
.blur-overlay::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.locked-banner {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 20px;
}

/* Score Preview */
.score-preview {
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
}
.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--purple) 0% 60%, var(--clr-border) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}
.score-circle::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg);
}
.score-num {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--purple-light);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border: none;
    color: #fff;
    padding: 14px 32px;
    border-radius: 14px;
    font-family: "Cairo", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}
footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 80px;
}

/* ── Light Mode Overrides ── */
html[data-theme="light"] .q-card { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html[data-theme="light"] .score-preview { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html[data-theme="light"] .locked-banner { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html[data-theme="light"] .score-circle::before { background: var(--clr-bg); }
