/*
 * LearnNest Olympiad: competition page, enrollment, My Account, exam screen and certificate.
 */
:root {
	--ln-ol-ink: #1e1b4b;
	--ln-ol-violet: #6d28d9;
	--ln-ol-violet-2: #4c1d95;
	--ln-ol-gold: #f59e0b;
	--ln-ol-gold-2: #fbbf24;
	--ln-ol-soft: #f5f3ff;
	--ln-ol-head: var(--lk-head, "Baloo 2", system-ui, sans-serif);
}

.ln-ol-page { overflow-x: clip; }
.ln-ol-wrap { width: 100%; max-width: 1192px; margin: 0 auto; padding: 0 var(--lk-gutter, 16px); box-sizing: border-box; }
.ln-ol-narrow { max-width: 860px; }
.ln-ol-section { padding: clamp(48px, 7vw, 88px) 0; }
.ln-ol-section:nth-of-type(even) { background: var(--ln-ol-soft); }
.ln-ol-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); }
.ln-ol-head h2 { font-family: var(--ln-ol-head); font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .3em; color: var(--ln-ol-ink); }
.ln-ol-eyebrow { display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 99px; background: #ede9fe; color: var(--ln-ol-violet-2); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.ln-ol-intro { color: var(--ln-muted); font-size: 1.08rem; margin: 0; }
.ln-ol-section ul, .ln-ol-section ol { list-style: none; margin: 0; padding: 0; }
.entry-content .ln-ol-section ul, .entry-content .ln-ol-section ol, .entry-content .ln-ol-hero ul { list-style: none; padding-left: 0; margin-left: 0; margin-right: 0; }
.ln-ol-section li, .ln-ol-hero li { margin: 0; }
.ln-ol-section svg, .ln-ol-hero svg { flex: none; }

/* ---------- Buttons ---------- */
.ln-ol-btn-gold { background: linear-gradient(180deg, var(--ln-ol-gold-2), var(--ln-ol-gold)); color: #3b1d00 !important; box-shadow: 0 8px 24px rgba(245, 158, 11, .35); }
.ln-ol-btn-gold:hover { background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.ln-ol-btn-glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.ln-ol-btn-glass:hover { background: rgba(255, 255, 255, .22); }
.ln-btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Hero ---------- */
.ln-ol-hero { position: relative; overflow: hidden; color: #fff; background-color: #4c1d95; background: radial-gradient(120% 90% at 85% 10%, #8b5cf6 0%, transparent 55%), linear-gradient(135deg, #312e81 0%, #5b21b6 55%, #7c3aed 100%); padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 84px); }
.ln-ol-hero.is-home { padding-top: clamp(40px, 6vw, 72px); }
.ln-ol-hero-bg span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.ln-ol-hero-bg span:nth-child(1) { width: 420px; height: 420px; left: -160px; bottom: -200px; }
.ln-ol-hero-bg span:nth-child(2) { width: 160px; height: 160px; right: 38%; top: -60px; background: rgba(251, 191, 36, .14); }
.ln-ol-hero-bg span:nth-child(3) { width: 90px; height: 90px; right: 6%; bottom: 8%; }
.ln-ol-hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .ln-ol-hero-grid { grid-template-columns: 1.25fr .85fr; gap: 48px; } }
.ln-ol-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; font-size: .92rem; }
.ln-ol-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); animation: lnOlPulse 2s infinite; }
@keyframes lnOlPulse { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.ln-ol-hero-title { font-family: var(--ln-ol-head); font-size: clamp(2rem, 5.6vw, 3.5rem); line-height: 1.08; margin: 0 0 .35em; color: #fff; }
.ln-ol-hero-text { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #ede9fe; max-width: 600px; margin: 0 0 20px; }
.ln-ol-subject-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.ln-ol-subject-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; color: var(--ln-ol-ink); font-weight: 700; font-size: .92rem; }
.ln-ol-subject-chips li svg { color: var(--ln-accent, var(--ln-ol-violet)); }
.ln-ol-countdown { margin: 0 0 24px; }
.ln-ol-countdown-label { margin: 0 0 8px; font-weight: 700; color: #ddd6fe; font-size: .95rem; }
.ln-ol-countdown-time { display: flex; gap: 10px; margin: 0; font-weight: 700; }
.ln-ol-cd-box { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 6px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.ln-ol-cd-box b { font-family: var(--ln-ol-head); font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ln-ol-cd-box small { font-size: .75rem; color: #ddd6fe; text-transform: uppercase; letter-spacing: .06em; }
.ln-ol-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.ln-ol-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: #ede9fe; font-size: .95rem; }
.ln-ol-facts li { display: inline-flex; align-items: center; gap: 6px; }
.ln-ol-facts svg { color: var(--ln-ol-gold-2); }
.ln-ol-hero-more { margin: 18px 0 0; }
.ln-ol-hero-more a { color: #fff; font-weight: 700; }
.ln-ol-hero-art svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(30, 27, 75, .35)); }
@media (max-width: 899px) { .ln-ol-hero-art { max-width: 280px; margin: 0 auto; order: -1; } }
@media (max-width: 479px) { .ln-ol-cd-box { min-width: 0; flex: 1; } .ln-ol-hero-actions .ln-btn { width: 100%; } }

/* ---------- Banner strip ---------- */
.ln-ol-banner { color: #fff; background-color: #4c1d95; background: linear-gradient(100deg, #312e81, #6d28d9 60%, #7c3aed); padding: 18px 0; }
.ln-ol-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ln-ol-banner-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(180deg, var(--ln-ol-gold-2), var(--ln-ol-gold)); color: #78350f; flex: none; }
.ln-ol-banner-copy { flex: 1 1 260px; min-width: 0; }
.ln-ol-banner-title { margin: 0; font-family: var(--ln-ol-head); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.2; }
.ln-ol-banner-text { margin: 2px 0 0; color: #ddd6fe; font-size: .98rem; }
.ln-ol-countdown-sm { margin: 0; }
.ln-ol-countdown-sm .ln-ol-countdown-label { margin: 0 0 4px; font-size: .8rem; }
.ln-ol-countdown-sm .ln-ol-countdown-time { gap: 6px; }
.ln-ol-countdown-sm .ln-ol-cd-box { min-width: 46px; padding: 4px; border-radius: 10px; }
.ln-ol-countdown-sm .ln-ol-cd-box b { font-size: 1.2rem; }
.ln-ol-countdown-sm .ln-ol-cd-box small { font-size: .62rem; }
@media (max-width: 599px) { .ln-ol-banner .ln-btn { width: 100%; } }

/* ---------- Cards (highlights) ---------- */
.ln-ol-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ln-ol-card { background: var(--ln-card); border: 1px solid var(--ln-border); border-radius: 20px; padding: 24px; box-shadow: var(--ln-shadow); }
.ln-ol-card h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.ln-ol-card p { margin: 0; color: var(--ln-muted); }
.ln-ol-card-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #ede9fe; color: var(--ln-ol-violet); }
.ln-ol-card.ln-tone-2 .ln-ol-card-icon { background: #dcfce7; color: #15803d; }
.ln-ol-card.ln-tone-3 .ln-ol-card-icon { background: #e0f2fe; color: #0369a1; }
.ln-ol-card.ln-tone-4 .ln-ol-card-icon { background: #fef3c7; color: #b45309; }

/* ---------- Subjects ---------- */
.ln-ol-subject-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ln-ol-subject { position: relative; background: var(--ln-card); border-radius: 20px; padding: 24px 20px; text-align: center; border: 1px solid var(--ln-border); border-top: 5px solid var(--ln-accent, var(--ln-ol-violet)); box-shadow: var(--ln-shadow); }
.ln-ol-subject-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--ln-accent, var(--ln-ol-violet)); background: color-mix(in srgb, var(--ln-accent, #6d28d9) 14%, #fff); }
.ln-ol-subject h3 { margin: 12px 0 4px; font-size: 1.2rem; }
.ln-ol-subject p { margin: 0; color: var(--ln-muted); font-size: .95rem; }
.ln-ol-classes-line, .ln-ol-cert-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; color: var(--ln-muted); font-weight: 600; text-align: center; }

/* ---------- Enrollment ---------- */
.ln-ol-enroll { background: linear-gradient(180deg, var(--ln-ol-soft), #fff) !important; }
.ln-ol-form { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .ln-ol-form { grid-template-columns: 1fr 360px; } .ln-ol-summary { position: sticky; top: calc(var(--lk-header-h, 64px) + 16px); } }
.ln-ol-form-main { background: var(--ln-card); border: 1px solid var(--ln-border); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--ln-shadow); display: grid; gap: 22px; }
.ln-ol-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ln-ol-form legend, .ln-ol-field label { display: block; font-weight: 800; margin: 0 0 8px; color: var(--ln-ol-ink); }
.ln-ol-new { display: grid; gap: 22px; }
.ln-ol-new[hidden], .ln-ol-consent[hidden] { display: none; }
.ln-ol-row-2 { display: grid; gap: 16px; }
@media (min-width: 600px) { .ln-ol-row-2 { grid-template-columns: 1fr 1fr; } }
.ln-ol-field { margin: 0; }
.ln-ol-field input { width: 100%; box-sizing: border-box; min-height: var(--ln-tap); padding: 10px 14px; border: 2px solid var(--ln-border); border-radius: 12px; font: inherit; background: #fff; }
.ln-ol-field input:focus { outline: none; border-color: var(--ln-ol-violet); box-shadow: 0 0 0 4px rgba(109, 40, 217, .15); }
.ln-ol-who { display: grid; gap: 8px; padding: 16px !important; border-radius: 16px; background: var(--ln-ol-soft); }
.ln-ol-radio { display: flex; gap: 10px; align-items: center; font-weight: 600; min-height: 36px; cursor: pointer; }
.ln-ol-radio input, .ln-ol-consent input, .ln-ol-ready input { width: 20px; height: 20px; accent-color: var(--ln-ol-violet); flex: none; }
.ln-ol-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-ol-pill { position: relative; cursor: pointer; }
.ln-ol-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ln-ol-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 2px solid var(--ln-border); font-weight: 700; background: #fff; transition: all .15s; }
.ln-ol-pill input:checked + span { background: var(--ln-ol-violet); border-color: var(--ln-ol-violet); color: #fff; }
.ln-ol-pill input:focus-visible + span { outline: 3px solid var(--ln-ol-gold); outline-offset: 2px; }
.ln-ol-all { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 12px; border-radius: 16px; border: 2px dashed var(--ln-ol-gold); background: #fffbeb; cursor: pointer; }
.ln-ol-all input { width: 22px; height: 22px; accent-color: var(--ln-ol-violet); flex: none; }
.ln-ol-all em { font-style: normal; color: #b45309; font-weight: 700; }
.ln-ol-subject-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ln-ol-subject-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--ln-border); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.ln-ol-subject-opt input { width: 20px; height: 20px; accent-color: var(--ln-ol-violet); flex: none; margin: 0; }
.ln-ol-subject-opt:has(input:checked) { border-color: var(--ln-ol-violet); background: var(--ln-ol-soft); }
.ln-ol-subject-opt:has(input:focus-visible) { outline: 3px solid var(--ln-ol-gold); outline-offset: 2px; }
.ln-ol-subject-opt.is-owned { opacity: .65; cursor: default; }
.ln-ol-subject-opt-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ln-accent); background: color-mix(in srgb, var(--ln-accent, #6d28d9) 14%, #fff); flex: none; }
.ln-ol-subject-opt-text { flex: 1; min-width: 0; line-height: 1.3; }
.ln-ol-subject-opt-text strong, .ln-ol-subject-opt-text small { display: block; }
.ln-ol-subject-opt-text small { color: var(--ln-muted); font-size: .85rem; }
.ln-ol-subject-opt-price { font-weight: 800; color: var(--ln-ol-ink); }
.ln-ol-consent { margin: 0; font-size: .95rem; color: var(--ln-muted); }
.ln-ol-consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ln-ol-summary { background: var(--ln-ol-ink); color: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 20px 40px rgba(30, 27, 75, .25); }
.ln-ol-summary-title { margin: 0; color: #c4b5fd; font-weight: 700; }
.ln-ol-summary-price { margin: 4px 0; font-family: var(--ln-ol-head); font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.ln-ol-summary-save { margin: 0 0 6px; color: #86efac; font-weight: 700; }
.ln-ol-summary-unlock { margin: 0 0 6px; color: var(--ln-ol-gold-2); font-weight: 700; }
.ln-ol-summary-list { list-style: none; padding: 16px 0; margin: 12px 0 18px; border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); display: grid; gap: 8px; font-size: .95rem; color: #e0e7ff; }
.ln-ol-summary-list li { display: flex; gap: 8px; align-items: flex-start; }
.ln-ol-summary-list svg { color: #86efac; margin-top: 4px; }
.ln-ol-summary .ln-btn[aria-disabled="true"] { opacity: .75; }
.ln-ol-summary-note { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 12px 0 0; font-size: .85rem; color: #c4b5fd; text-align: center; }
.ln-ol-closed { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--ln-warn-bg); border: 1px solid var(--ln-warn-border); max-width: 720px; margin: 0 auto; }
.ln-ol-closed p { margin: 0; }

/* ---------- Timeline ---------- */
.ln-ol-timeline { display: grid; gap: 16px; counter-reset: tl; }
@media (min-width: 760px) { .ln-ol-timeline { grid-template-columns: repeat(4, 1fr); position: relative; } .ln-ol-timeline::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 4px; border-radius: 4px; background: #ddd6fe; } }
.ln-ol-timeline li { position: relative; text-align: center; padding: 0 8px; }
.ln-ol-tl-dot { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 4px solid #ddd6fe; color: var(--ln-ol-violet); }
.ln-ol-timeline .is-done .ln-ol-tl-dot { background: var(--ln-ol-violet); border-color: var(--ln-ol-violet); color: #fff; }
.ln-ol-timeline .is-now .ln-ol-tl-dot { background: var(--ln-ol-gold-2); border-color: #fde68a; color: #3b1d00; box-shadow: 0 0 0 8px rgba(251, 191, 36, .25); }
.ln-ol-timeline h3 { margin: 12px 0 2px; font-size: 1.1rem; }
.ln-ol-timeline p { margin: 0; color: var(--ln-muted); font-weight: 600; }
@media (max-width: 759px) { .ln-ol-timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; text-align: left; align-items: center; } .ln-ol-timeline .ln-ol-tl-dot { grid-row: span 2; } .ln-ol-timeline h3 { margin: 0; } }

/* ---------- Rewards ---------- */
.ln-ol-rewards { background: linear-gradient(180deg, #fffbeb, #fff) !important; }
.ln-ol-podium { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.ln-ol-rank { background: #fff; border-radius: 20px; padding: 22px 16px; text-align: center; border: 1px solid var(--ln-border); box-shadow: var(--ln-shadow); }
.ln-ol-rank-1 { border: 2px solid var(--ln-ol-gold); box-shadow: 0 16px 40px rgba(245, 158, 11, .25); }
@media (min-width: 900px) { .ln-ol-rank-1 { padding-top: 36px; padding-bottom: 32px; } .ln-ol-rank-2, .ln-ol-rank-3 { padding-top: 28px; } }
.ln-ol-medal { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-family: var(--ln-ol-head); font-size: 1.7rem; font-weight: 800; color: #fff; background: linear-gradient(180deg, #a78bfa, #7c3aed); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.ln-ol-rank-1 .ln-ol-medal { background: linear-gradient(180deg, #fde68a, #f59e0b); color: #78350f; }
.ln-ol-rank-2 .ln-ol-medal { background: linear-gradient(180deg, #f1f5f9, #94a3b8); color: #1e293b; }
.ln-ol-rank-3 .ln-ol-medal { background: linear-gradient(180deg, #fed7aa, #c2410c); }
.ln-ol-rank-label { margin: 10px 0 2px; font-weight: 800; color: var(--ln-ol-ink); }
.ln-ol-rank-reward { margin: 0; color: var(--ln-muted); font-weight: 600; }

/* ---------- How it works ---------- */
.ln-ol-steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ln-ol-steps li { position: relative; background: #fff; border-radius: 20px; padding: 24px; border: 1px solid var(--ln-border); box-shadow: var(--ln-shadow); }
.ln-ol-step-num { position: absolute; top: 16px; right: 18px; font-family: var(--ln-ol-head); font-size: 2.4rem; font-weight: 800; line-height: 1; color: #ede9fe; }
.ln-ol-step-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ln-ol-violet); color: #fff; }
.ln-ol-steps h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.ln-ol-steps p { margin: 0; color: var(--ln-muted); }

/* ---------- Pattern ---------- */
.ln-ol-pattern-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 0; }
.ln-ol-pattern-grid > div { background: #fff; border: 1px solid var(--ln-border); border-radius: 16px; padding: 18px 20px; }
.ln-ol-pattern-grid dt { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ln-ol-ink); margin: 0 0 6px; }
.ln-ol-pattern-grid dt span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #ede9fe; color: var(--ln-ol-violet); }
.ln-ol-pattern-grid dd { margin: 0; color: var(--ln-muted); }

/* ---------- FAQ ---------- */
.ln-ol-faq-list { display: grid; gap: 10px; }
.ln-ol-faq-list details { background: #fff; border: 1px solid var(--ln-border); border-radius: 16px; }
.ln-ol-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 800; cursor: pointer; list-style: none; min-height: var(--ln-tap); box-sizing: border-box; }
.ln-ol-faq-list summary::-webkit-details-marker { display: none; }
.ln-ol-faq-list summary span { display: inline-flex; color: var(--ln-ol-violet); transition: transform .2s; }
.ln-ol-faq-list details[open] summary span { transform: rotate(180deg); }
.ln-ol-faq-list summary:focus-visible { outline: 3px solid var(--ln-ol-gold); outline-offset: 2px; border-radius: 16px; }
.ln-ol-faq-list details p, .ln-ol-faq-list details > div { margin: 0; padding: 0 20px 18px; color: var(--ln-muted); }

/* ---------- Leaderboard ---------- */
.ln-ol-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.ln-ol-tabs [role="tab"] { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 2px solid var(--ln-border); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ln-text); }
.ln-ol-tabs [aria-selected="true"] { background: var(--ln-ol-violet); border-color: var(--ln-ol-violet); color: #fff; }
.ln-ol-tabs [role="tab"]:focus-visible { outline: 3px solid var(--ln-ol-gold); outline-offset: 2px; }
.ln-ol-lb-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ln-ol-lb { background: #fff; border: 1px solid var(--ln-border); border-radius: 20px; padding: 18px; box-shadow: var(--ln-shadow); }
.ln-ol-lb h3 { margin: 0 0 12px; font-size: 1.1rem; }
.ln-ol-lb ol { display: grid; gap: 8px; }
.ln-ol-lb li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: #f8fafc; }
.ln-ol-lb-rank { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; background: #ede9fe; color: var(--ln-ol-violet-2); flex: none; }
.ln-ol-lb-1 .ln-ol-lb-rank { background: #fde68a; color: #78350f; }
.ln-ol-lb-2 .ln-ol-lb-rank { background: #e2e8f0; color: #1e293b; }
.ln-ol-lb-3 .ln-ol-lb-rank { background: #fed7aa; color: #7c2d12; }
.ln-ol-lb-who { flex: 1; min-width: 0; line-height: 1.25; }
.ln-ol-lb-who strong, .ln-ol-lb-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-ol-lb-who small { color: var(--ln-muted); }
.ln-ol-lb-score { font-weight: 800; color: var(--ln-ol-ink); }
.ln-ol-lb-empty { margin: 0; color: var(--ln-muted); }

/* ---------- My Account ---------- */
.ln-ol-account { display: grid; gap: 24px; }
.ln-ol-submitted { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--ln-success-bg); color: #14532d; }
.ln-ol-submitted h2 { margin: 0 0 4px; font-size: 1.3rem; color: #14532d; }
.ln-ol-submitted p { margin: 0; }
.ln-ol-submitted-icon { color: var(--ln-success); }
.ln-ol-acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.ln-ol-acc-head h2 { margin: 0; font-size: 1.4rem; }
.ln-ol-acc-head p { margin: 0; color: var(--ln-muted); }
.ln-ol-student { background: #fff; border: 1px solid var(--ln-border); border-radius: 20px; padding: 18px; margin: 0 0 14px; box-shadow: var(--ln-shadow); }
.ln-ol-student.is-inactive { background: #f8fafc; border-style: dashed; box-shadow: none; }
.ln-ol-student-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.ln-ol-student-head h3 { margin: 0; font-size: 1.15rem; }
.ln-ol-student-head p { margin: 0; color: var(--ln-muted); font-size: .92rem; }
.ln-ol-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ln-ol-violet); color: #fff; font-weight: 800; font-size: 1.2rem; flex: none; }
.ln-ol-tag { margin-left: auto; padding: 2px 10px; border-radius: 99px; background: #fee2e2; color: var(--ln-danger); font-weight: 700; font-size: .85rem; }
.ln-ol-exams { width: 100%; border-collapse: collapse; }
.ln-ol-exams th, .ln-ol-exams td { padding: 12px 8px; border-top: 1px solid var(--ln-border); text-align: left; vertical-align: middle; }
.ln-ol-exams thead th { border-top: 0; font-size: .85rem; color: var(--ln-muted); text-transform: uppercase; letter-spacing: .04em; }
.ln-ol-exams td:last-child { text-align: right; }
.ln-ol-state { display: inline-block; padding: 2px 10px; border-radius: 99px; background: #f1f5f9; font-weight: 700; font-size: .9rem; }
.ln-ol-state.is-ready { background: #ede9fe; color: var(--ln-ol-violet-2); }
.ln-ol-state.is-live { background: #fef3c7; color: #92400e; }
.ln-ol-state.is-done { background: var(--ln-success-bg); color: var(--ln-success); }
.ln-ol-score { font-family: var(--ln-ol-head); font-weight: 800; font-size: 1.2rem; margin-right: 8px; }
.ln-ol-rankline { color: var(--ln-muted); font-weight: 700; }
.ln-ol-top5 { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #b45309; font-weight: 700; font-size: .92rem; }
.ln-ol-overall th, .ln-ol-overall td { background: var(--ln-ol-soft); }
.ln-ol-student-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ln-border); }
.ln-ol-student-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
@media (max-width: 599px) {
	.ln-ol-exams thead { display: none; }
	.ln-ol-exams tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 0; border-top: 1px solid var(--ln-border); }
	.ln-ol-exams th, .ln-ol-exams td { border: 0; padding: 0; }
	.ln-ol-exams td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
	.ln-ol-exams td:last-child { grid-row: 1; grid-column: 2; }
}

/* ---------- Exam intro ---------- */
.ln-ol-intro-card { background: #fff; border: 1px solid var(--ln-border); border-radius: 24px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--ln-shadow); max-width: 760px; }
.ln-ol-intro-card h2 { margin: 0 0 16px; }
.ln-ol-rules { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.ln-ol-rules li { display: flex; gap: 12px; align-items: flex-start; }
.ln-ol-rules svg { color: var(--ln-ol-violet); margin-top: 3px; }
.ln-ol-ready { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 0 0 16px; cursor: pointer; }
.ln-ol-intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Exam ---------- */
body.ln-exam-mode .woocommerce-MyAccount-navigation, body.ln-exam-mode .lk-announce { display: none; }
body.ln-exam-mode .woocommerce-MyAccount-content { width: 100% !important; float: none !important; max-width: none; }
body.ln-exam-mode.woocommerce-account .woocommerce { display: block; }
body.ln-exam-mode .lk-page-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ln-exam { --ln-exam-bar: 72px; }
.ln-exam-bar { position: sticky; top: calc(var(--lk-header-h, 0px) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; margin: 0 0 16px; border-radius: 16px; background: var(--ln-ol-ink); color: #fff; box-shadow: 0 8px 24px rgba(30, 27, 75, .2); }
.admin-bar .ln-exam-bar { top: calc(var(--lk-header-h, 0px) + 40px); }
.ln-exam-who { flex: 1; min-width: 0; line-height: 1.25; }
.ln-exam-who strong, .ln-exam-who span { display: block; }
.ln-exam-who span { color: #c4b5fd; font-size: .9rem; }
.ln-exam-timer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); font-family: var(--ln-ol-head); font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ln-exam-timer.is-low { background: #dc2626; animation: lnOlBlink 1s steps(2) infinite; }
@keyframes lnOlBlink { 50% { background: #b91c1c; } }
@media (prefers-reduced-motion: reduce) { .ln-exam-timer.is-low, .ln-ol-dot { animation: none; } }
.ln-exam-sync { flex-basis: 100%; margin: 0; font-size: .85rem; color: #c4b5fd; min-height: 1.2em; }
.ln-exam-sync.is-error { color: #fecaca; font-weight: 700; }
.ln-exam-sync.is-ok { color: #bbf7d0; }
.ln-exam-body { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .ln-exam-body { grid-template-columns: minmax(0, 1fr) 280px; } .ln-exam-side { position: sticky; top: calc(var(--lk-header-h, 0px) + 120px); } }
.ln-exam-form { margin: 0; }
.ln-exam-q { position: relative; border: 1px solid var(--ln-border); border-radius: 20px; padding: clamp(52px, 6vw, 60px) clamp(16px, 3vw, 28px) clamp(16px, 3vw, 28px); margin: 0 0 16px; background: #fff; box-shadow: var(--ln-shadow); min-width: 0; }
.ln-exam-q:focus { outline: none; }
.ln-exam-q[hidden] { display: none; }
.ln-exam-qhead { position: absolute; top: clamp(16px, 3vw, 24px); left: clamp(16px, 3vw, 28px); padding: 0; margin: 0; }
.ln-exam-qnum { display: inline-block; padding: 3px 12px; border-radius: 99px; background: #ede9fe; color: var(--ln-ol-violet-2); font-weight: 800; font-size: .88rem; }
.ln-exam-qtext { font-size: clamp(1.1rem, 2.4vw, 1.3rem); font-weight: 600; margin: 0 0 18px; color: var(--ln-ol-ink); overflow-wrap: anywhere; }
.ln-exam-qtext p { margin: 0 0 .6em; }
.ln-exam-qtext img { max-width: 100%; height: auto; border-radius: 8px; }
.ln-exam-opts { display: grid; gap: 10px; }
.ln-exam-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; border: 2px solid var(--ln-border); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.ln-exam-opt:hover { border-color: #c4b5fd; }
.ln-exam-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ln-exam-letter { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c4b5fd; font-weight: 800; color: var(--ln-ol-violet); flex: none; }
.ln-exam-opt-text { flex: 1; overflow-wrap: anywhere; }
.ln-exam-opt:has(input:checked) { border-color: var(--ln-ol-violet); background: var(--ln-ol-soft); }
.ln-exam-opt:has(input:checked) .ln-exam-letter { background: var(--ln-ol-violet); border-color: var(--ln-ol-violet); color: #fff; }
.ln-exam-opt:has(input:focus-visible) { outline: 3px solid var(--ln-ol-gold); outline-offset: 2px; }
.ln-exam-qtools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ln-exam-clear { min-height: 40px; padding: 0 12px; border: 0; background: none; color: var(--ln-muted); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ln-exam-flag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #b45309; cursor: pointer; min-height: 40px; }
.ln-exam-flag input { width: 20px; height: 20px; accent-color: #f59e0b; }
.ln-exam-nav { display: none; justify-content: space-between; gap: 12px; }
.ln-exam.is-js .ln-exam-nav { display: flex; }
.ln-exam-nav .ln-btn[disabled] { opacity: .45; cursor: default; transform: none; }
.ln-exam-nav .is-last { background: var(--ln-success); }
.ln-exam-side { background: #fff; border: 1px solid var(--ln-border); border-radius: 20px; padding: 16px; box-shadow: var(--ln-shadow); }
.ln-exam:not(.is-js) .ln-exam-palette, .ln-exam:not(.is-js) .ln-exam-side { display: none; }
.ln-exam-side-title { margin: 0 0 10px; font-weight: 800; }
.ln-exam-palette { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.ln-exam-palette button { width: 100%; aspect-ratio: 1; min-height: 40px; border-radius: 10px; border: 2px solid var(--ln-border); background: #fff; font: inherit; font-weight: 800; cursor: pointer; color: var(--ln-text); padding: 0; }
.ln-exam-palette .is-answered { background: var(--ln-ol-violet); border-color: var(--ln-ol-violet); color: #fff; }
.ln-exam-palette .is-flagged { box-shadow: inset 0 0 0 3px #f59e0b; }
.ln-exam-palette .is-current { outline: 3px solid var(--ln-ol-ink); outline-offset: 1px; }
.ln-exam-palette button:focus-visible { outline: 3px solid var(--ln-ol-gold); outline-offset: 2px; }
.ln-exam-legend { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.ln-exam-legend li { display: flex; align-items: center; gap: 8px; }
.ln-exam-legend li strong { margin-left: auto; }
.ln-exam-legend span { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--ln-border); }
.ln-exam-legend .is-answered { background: var(--ln-ol-violet); border-color: var(--ln-ol-violet); }
.ln-exam-legend .is-flagged { border-color: #f59e0b; border-width: 3px; }
@media (max-width: 899px) { .ln-exam-palette { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); } }
.ln-exam.is-submitting { pointer-events: none; opacity: .75; }
.ln-exam-dialog { border: 0; border-radius: 20px; padding: 24px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 60px rgba(15, 23, 42, .3); }
.ln-exam-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.ln-exam-dialog-title { margin: 0 0 10px; font-weight: 800; font-size: 1.15rem; }
.ln-exam-dialog-notes { margin: 0 0 16px; padding-left: 20px; color: #b45309; font-weight: 600; }
.ln-exam-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ---------- Certificate ---------- */
.ln-cert-page { margin: 0; background: #e5e7eb; font-family: "Mukta", Georgia, serif; color: #1e1b4b; }
.ln-cert-actions { text-align: center; margin: 16px; }
.ln-cert-actions button { font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 10px; border: 0; background: #6d28d9; color: #fff; cursor: pointer; }
.ln-cert { width: 297mm; max-width: calc(100vw - 32px); aspect-ratio: 297 / 210; margin: 0 auto 32px; background: #fff; padding: 10mm; box-sizing: border-box; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); background-image: radial-gradient(circle at 0 0, #ede9fe 0 18%, transparent 18.2%), radial-gradient(circle at 100% 100%, #fef3c7 0 18%, transparent 18.2%); }
.ln-cert-inner { height: 100%; box-sizing: border-box; border: 3px solid #6d28d9; outline: 1px solid #c4b5fd; outline-offset: -10px; padding: 9% 8% 4%; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.ln-cert-org { margin-top: auto !important; }
.ln-cert.is-merit .ln-cert-inner { border-color: #d97706; outline-color: #fcd34d; }
.ln-cert-org { margin: 0; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #6d28d9; font-size: clamp(.7rem, 1.4vw, 1rem); }
.ln-cert h1 { margin: .2em 0 .3em; font-family: "Baloo 2", Georgia, serif; font-size: clamp(1.4rem, 4.6vw, 3.2rem); line-height: 1.1; }
.ln-cert-lead, .ln-cert-text, .ln-cert-meta { margin: 0; font-size: clamp(.8rem, 1.6vw, 1.15rem); color: #475569; }
.ln-cert-name { margin: .2em auto; padding: 0 1em .1em; border-bottom: 2px solid #c4b5fd; font-family: "Baloo 2", Georgia, serif; font-size: clamp(1.4rem, 4.4vw, 3rem); font-weight: 800; color: #4c1d95; display: inline-block; }
.ln-cert-meta { margin-bottom: .8em; }
.ln-cert-text { font-size: clamp(.9rem, 1.9vw, 1.35rem); color: #1e1b4b; font-weight: 600; }
.ln-cert-score { margin: .5em 0 0; font-weight: 800; color: #6d28d9; font-size: clamp(.8rem, 1.6vw, 1.1rem); }
.ln-cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 4%; }
.ln-cert-foot p { margin: 0; min-width: 28%; font-size: clamp(.65rem, 1.2vw, .9rem); color: #475569; }
.ln-cert-foot p span { display: block; border-bottom: 1px solid #94a3b8; padding-bottom: 4px; margin-bottom: 4px; color: #1e1b4b; font-weight: 700; min-height: 1.4em; }
.ln-cert-seal { min-width: 0 !important; display: grid; place-items: center; width: clamp(48px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fde68a, #f59e0b); color: #78350f !important; font-family: "Baloo 2", serif; font-weight: 800; font-size: clamp(1.2rem, 3.4vw, 2.4rem) !important; box-shadow: 0 0 0 6px #fef3c7, 0 0 0 8px #f59e0b; }
@page { size: A4 landscape; margin: 0; }
@media print {
	.ln-cert-page { background: #fff; }
	.ln-cert-actions { display: none; }
	.ln-cert { width: 297mm; height: 210mm; max-width: none; margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Exam: v1.5 additions ---------- */
.ln-exam { --ln-exam-fs: 1; }
.ln-exam-qtext { font-size: calc(clamp(1.1rem, 2.4vw, 1.3rem) * var(--ln-exam-fs)); }
.ln-exam-opt-text, .ln-exam-fill input { font-size: calc(1.05rem * var(--ln-exam-fs)); }
.ln-exam-tools { display: inline-flex; gap: 6px; }
.ln-exam-tool { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ln-exam-tool:hover { background: rgba(255, 255, 255, .2); }
.ln-exam-tool:focus-visible { outline: 3px solid var(--ln-ol-gold); outline-offset: 2px; }
.ln-exam-tool[hidden] { display: none; }
.ln-exam-progress { flex-basis: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ln-exam-progress span { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, #22c55e); border-radius: 6px; transition: width .3s; }
.ln-exam-alert { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; font-weight: 700; }
.ln-exam-alert[hidden] { display: none; }
.ln-exam-qhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; right: clamp(16px, 3vw, 28px); }
.ln-exam-qmarks { display: inline-block; padding: 3px 10px; border-radius: 99px; background: #f1f5f9; color: var(--ln-muted); font-weight: 700; font-size: .82rem; }
.ln-exam-qhint { margin: -8px 0 14px; color: var(--ln-muted); font-weight: 700; font-size: .92rem; }
.ln-exam-qfig { margin: 0 0 14px; }
.ln-exam-qfig img { max-width: 100%; height: auto; max-height: 360px; border-radius: 12px; border: 1px solid var(--ln-border); }
.ln-exam-fill input { width: 100%; max-width: 480px; box-sizing: border-box; min-height: 56px; padding: 10px 16px; border: 2px solid var(--ln-border); border-radius: 14px; font: inherit; font-weight: 700; background: #fff; }
.ln-exam-fill input:focus { outline: none; border-color: var(--ln-ol-violet); box-shadow: 0 0 0 4px rgba(109, 40, 217, .15); }
.ln-exam-opts.is-tf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ln-exam-opts.is-tf .ln-exam-letter { font-size: 1.1rem; }
.ln-exam-opt input[type="checkbox"] + .ln-exam-letter { border-radius: 8px; }
.ln-exam-keys { margin: 10px 0 0; color: var(--ln-muted); font-size: .85rem; }
@media (hover: none) { .ln-exam-keys { display: none; } }
.ln-exam-palette .is-seen:not(.is-answered) { border-color: #c4b5fd; }
.ln-exam-palette button[disabled] { cursor: default; opacity: 1; }
.ln-exam.is-linear .ln-exam-palette button { pointer-events: none; }
.ln-ol-actions-cell { white-space: nowrap; }
.ln-ol-actions-cell .ln-btn + .ln-btn { margin-left: 6px; }

/* ---------- Answer review ---------- */
.ln-ol-review-page h2 { margin: 0 0 4px; }
.ln-ol-review-meta { margin: 0 0 18px; color: var(--ln-muted); }
.ln-review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 20px; border-radius: 18px; background: var(--ln-ol-soft); margin: 0 0 18px; }
.ln-review-score { margin: 0; display: flex; flex-direction: column; line-height: 1.1; }
.ln-review-score span { color: var(--ln-muted); font-weight: 700; font-size: .85rem; }
.ln-review-score strong { font-family: var(--ln-ol-head); font-size: 2rem; color: var(--ln-ol-ink); }
.ln-review-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-weight: 700; }
.ln-review-counts li { display: inline-flex; align-items: center; gap: 6px; }
.ln-review-counts .is-right { color: var(--ln-success); }
.ln-review-counts .is-wrong { color: var(--ln-danger); }
.ln-review-counts .is-skip { color: var(--ln-muted); }
.ln-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ln-review-item { background: #fff; border: 1px solid var(--ln-border); border-left: 5px solid #cbd5e1; border-radius: 16px; padding: 16px 18px; }
.ln-review-item.is-right { border-left-color: #22c55e; }
.ln-review-item.is-wrong { border-left-color: #ef4444; }
.ln-review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; }
.ln-review-n { font-weight: 800; color: var(--ln-ol-violet-2); }
.ln-review-badge { font-weight: 800; font-size: .85rem; padding: 2px 10px; border-radius: 99px; background: #f1f5f9; color: var(--ln-muted); }
.is-right .ln-review-badge { background: var(--ln-success-bg); color: var(--ln-success); }
.is-wrong .ln-review-badge { background: #fee2e2; color: var(--ln-danger); }
.ln-review-q { font-weight: 700; color: var(--ln-ol-ink); margin: 0 0 10px; }
.ln-review-q p { margin: 0 0 .4em; }
.ln-review-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ln-review-opts li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--ln-border); }
.ln-review-opts li.is-key { border-color: #86efac; background: #f0fdf4; }
.ln-review-opts li.is-chosen:not(.is-key) { border-color: #fca5a5; background: #fef2f2; }
.ln-review-letter { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c4b5fd; font-weight: 800; font-size: .85rem; color: var(--ln-ol-violet); flex: none; }
.ln-review-otext { flex: 1; min-width: 0; }
.ln-review-tag { font-size: .78rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: #fee2e2; color: var(--ln-danger); }
.ln-review-tag.is-key { background: var(--ln-success-bg); color: var(--ln-success); }
.ln-review-fill { margin: 0 0 4px; }
.ln-review-fill span { color: var(--ln-muted); }
.ln-review-fill.is-key strong { color: var(--ln-success); }
.ln-review-expl { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fffbeb; color: #78350f; font-size: .95rem; }
.ln-review-expl svg { flex: none; margin-top: 2px; color: #d97706; }

/* ---------- Free mock test ---------- */
.ln-mock-setup { background: #fff; border: 1px solid var(--ln-border); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--ln-shadow); display: grid; gap: 20px; }
.ln-mock-setup[hidden] { display: none; }
.ln-mock-setup fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ln-mock-setup legend { font-weight: 800; margin: 0 0 8px; color: var(--ln-ol-ink); }
.ln-ol-pill span svg { margin-right: 6px; color: var(--ln-accent, currentColor); }
.ln-ol-pill input:checked + span svg { color: #fff; }
.ln-ol-pill.is-off { opacity: .45; }
.ln-ol-pill.is-off span { cursor: not-allowed; text-decoration: line-through; }
.ln-mock-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--ln-border); }
.ln-mock-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; color: var(--ln-muted); font-weight: 700; }
.ln-mock-facts li { display: inline-flex; align-items: center; gap: 6px; }
.ln-mock-facts svg { color: var(--ln-ol-violet); }
.ln-mock-msg, .ln-mock-warn { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fef3c7; color: #78350f; font-weight: 700; }
.ln-mock-msg[hidden] { display: none; }
.ln-mock-stage:focus { outline: none; }
.ln-mock-loading { text-align: center; padding: 30px; font-weight: 700; color: var(--ln-muted); }
.ln-mock-bar { position: sticky; top: calc(var(--lk-header-h, 0px) + 8px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; margin: 0 0 16px; border-radius: 16px; background: var(--ln-ol-ink); color: #fff; }
.ln-mock-bar strong, .ln-mock-bar span { display: block; }
.ln-mock-bar span { color: #c4b5fd; font-size: .88rem; }
.ln-mock-bar .ln-exam-timer { font-size: 1.2rem; }
.ln-mock-count { font-weight: 700; }
.ln-mock-count span { display: inline; color: #fff; font-size: inherit; }
.ln-mock-q { padding-top: clamp(52px, 6vw, 60px); }
.ln-mock-submit { display: grid; gap: 10px; justify-items: center; padding: 8px 0 0; }
.ln-mock-result { display: grid; gap: 18px; }
.ln-mock-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--ln-border); box-shadow: var(--ln-shadow); }
.ln-mock-hero h3 { margin: 0 0 4px; }
.ln-mock-hero p { margin: 0 0 10px; color: var(--ln-muted); }
.ln-mock-late { color: #b45309 !important; font-weight: 700; }
.ln-mock-ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--ln-ol-violet) calc(var(--p) * 1%), #ede9fe 0); }
.ln-mock-ring span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; font-family: var(--ln-ol-head); font-size: 1.6rem; font-weight: 800; color: var(--ln-ol-ink); }
.ln-mock-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599px) { .ln-mock-go .ln-btn, .ln-mock-actions .ln-btn { width: 100%; } }
.ln-exam-nav [hidden] { display: none !important; }
.ln-exam.is-linear .ln-exam-nav { justify-content: flex-end; }

/* ---------- Mock test cards ---------- */
.ln-mock-list { gap: 16px; }
.ln-mock-filter { gap: 8px; }
.ln-mock-chip { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--ln-border); background: #fff; font: inherit; font-weight: 700; color: var(--ln-text); cursor: pointer; }
.ln-mock-chip[aria-pressed="true"] { background: var(--ln-ol-violet); border-color: var(--ln-ol-violet); color: #fff; }
.ln-mock-chip:focus-visible { outline: 3px solid var(--ln-ol-gold); outline-offset: 2px; }
.ln-mock-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ln-mock-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid var(--ln-border); border-top: 4px solid var(--ln-accent, var(--ln-ol-violet)); background: #fff; }
.ln-mock-card[hidden] { display: none; }
.ln-mock-card.is-open { box-shadow: 0 0 0 3px var(--ln-ol-gold); }
.ln-mock-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ln-accent); background: color-mix(in srgb, var(--ln-accent, #6d28d9) 14%, #fff); }
.ln-mock-card h3 { margin: 4px 0 0; font-size: 1.08rem; line-height: 1.3; }
.ln-mock-card-meta { margin: 0; color: var(--ln-muted); font-weight: 600; font-size: .92rem; }
.ln-mock-card-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0; padding: 0; color: var(--ln-muted); font-size: .9rem; }
.ln-mock-card-facts li { display: inline-flex; align-items: center; gap: 4px; }
.ln-mock-card-tag { position: absolute; top: 14px; right: 14px; margin: 0; padding: 2px 10px; border-radius: 99px; background: var(--ln-success-bg); color: var(--ln-success); font-weight: 800; font-size: .78rem; }
.ln-mock-card-lock { margin: 0; color: #92400e; font-size: .88rem; font-weight: 600; }
.ln-mock-card .ln-btn { margin-top: auto; }
