/* =====================================================================
   ValoResult — public pages theme (home + class hubs)
   Same palette as the rest of the site: blue → violet gradient + gold.

   BUTTON SYSTEM (use these everywhere so colours stay consistent)
   .vr-btn-gold          main action on blue/dark backgrounds (Register, Start)
   .vr-btn-primary       main action on light backgrounds
   .vr-btn-outline-light secondary action on blue/dark backgrounds (Login)
   .vr-btn-outline       secondary action on light backgrounds
   .vr-btn-premium       premium / upgrade actions only
   ===================================================================== */

:root {
    --vr-blue: #0d6efd;
    --vr-violet: #6610f2;
    --vr-grad: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --vr-gold: #ffd700;
    --vr-gold-2: #ffc107;
    --vr-ink: #1a1a2e;
    --vr-text: #2b3245;
    --vr-muted: #5b6475;
    --vr-bg: #f0f4ff;
    --vr-card: #ffffff;
    --vr-line: #e3e8f4;
    --vr-green: #198754;
    --vr-red: #dc3545;
    --vr-radius: 16px;
    --vr-shadow: 0 6px 24px rgba(13, 110, 253, .08);
    --vr-shadow-h: 0 12px 34px rgba(13, 110, 253, .16);
    --vr-font: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
    --vr-font-display: 'Noto Serif Bengali', 'Hind Siliguri', serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--vr-font);
    background: var(--vr-bg);
    color: var(--vr-text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .vr-display { font-family: var(--vr-font-display); color: var(--vr-ink); }
a { color: var(--vr-blue); }
:focus-visible { outline: 3px solid var(--vr-gold); outline-offset: 2px; }

.vr-skip {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: var(--vr-gold); color: var(--vr-ink); padding: .5rem 1rem; border-radius: 8px; font-weight: 700;
}
.vr-skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.vr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 44px; padding: .6rem 1.35rem;
    border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.vr-btn:hover { transform: translateY(-2px); text-decoration: none; }
.vr-btn:active { transform: translateY(0); }
.vr-btn-sm { min-height: 38px; padding: .35rem 1rem; font-size: .92rem; }
.vr-btn-lg { min-height: 52px; padding: .8rem 1.8rem; font-size: 1.08rem; }
.vr-btn-block { width: 100%; }

.vr-btn-gold { background: var(--vr-gold); color: var(--vr-ink); border-color: var(--vr-gold); }
.vr-btn-gold:hover { background: #ffe44d; color: var(--vr-ink); box-shadow: 0 8px 22px rgba(255, 215, 0, .35); }

.vr-btn-primary { background: var(--vr-grad); color: #fff; }
.vr-btn-primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(13, 110, 253, .35); }

.vr-btn-outline-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.vr-btn-outline-light:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #fff; }

.vr-btn-outline { background: #fff; color: var(--vr-blue); border-color: #c9d8ff; }
.vr-btn-outline:hover { color: var(--vr-violet); border-color: var(--vr-violet); }

.vr-btn-premium { background: linear-gradient(135deg, #ffc107, #f59f00); color: var(--vr-ink); }
.vr-btn-premium:hover { color: var(--vr-ink); box-shadow: 0 8px 22px rgba(245, 159, 0, .35); }

/* ---------- Navbar ---------- */
.vr-nav { background: var(--vr-grad) !important; padding: .55rem 0; box-shadow: 0 4px 18px rgba(13, 110, 253, .22); position: sticky; top: 0; z-index: 1030; }
.vr-brand { font-family: var(--vr-font-display); font-weight: 800; font-size: 1.45rem; color: #fff !important; text-decoration: none; }
.vr-brand i { color: var(--vr-gold); margin-right: 6px; }
.vr-brand span { color: var(--vr-gold); }
.vr-nav .nav-link { color: rgba(255, 255, 255, .88) !important; font-weight: 600; border-radius: 8px; padding: .5rem .85rem !important; }
.vr-nav .nav-link:hover, .vr-nav .nav-link.active { background: rgba(255, 255, 255, .16); color: #fff !important; }
.vr-nav .navbar-toggler { border-color: rgba(255, 255, 255, .45); padding: .3rem .55rem; }
.vr-nav .dropdown-menu { border: 0; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .15); }
.vr-nav .dropdown-item { padding: .55rem 1rem; font-weight: 500; }
.vr-nav .dropdown-item.active, .vr-nav .dropdown-item:active { background: var(--vr-blue); }
@media (max-width: 991.98px) {
    .vr-nav .navbar-collapse { padding: .5rem 0 .75rem; }
    .vr-nav .dropdown-menu { background: rgba(255, 255, 255, .97); }
}

/* ---------- Generic sections ---------- */
.vr-section { padding: 2.75rem 0; }
.vr-section-tight { padding: 1.75rem 0; }
.vr-h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: .35rem; line-height: 1.3; }
.vr-h2 .hl { background: var(--vr-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.vr-lead { color: var(--vr-muted); margin-bottom: 1.5rem; }
.vr-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.vr-head-row .vr-lead { margin-bottom: 0; }
.vr-link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.vr-link-more:hover { text-decoration: underline; }
/* A long "more" link sitting on its own line (e.g. "SSC English 2nd Paper Model Test (উত্তরসহ) — …")
   must wrap on phones; nowrap made it wider than the screen and the whole page scrolled sideways. */
p > .vr-link-more, .vr-link-more.wrap { white-space: normal; overflow-wrap: anywhere; }
.vr-card { background: var(--vr-card); border-radius: var(--vr-radius); box-shadow: var(--vr-shadow); border: 1px solid var(--vr-line); }

.vr-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .8rem; font-weight: 600; line-height: 1.3;
    padding: .25rem .7rem; border-radius: 999px;
    background: #eef2ff; color: #3b4a7a;
}
.vr-chip-live { background: #fff4cc; color: #7a5a00; }
.vr-badge-free { background: #dcfce7; color: #166534; }
.vr-badge-premium { background: #fef3c7; color: #854d0e; }

/* ---------- Hero ---------- */
.vr-hero {
    background: var(--vr-grad); color: #fff;
    padding: 1.6rem 0 2.25rem; border-radius: 0 0 32px 32px;
    position: relative; overflow: hidden;
}
.vr-hero::before {
    content: ''; position: absolute; top: -140px; right: -120px;
    width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.vr-hero > .container { position: relative; z-index: 1; }
.vr-hero h1 { color: #fff; font-size: 1.65rem; font-weight: 800; line-height: 1.35; margin: 0 0 .5rem; }
.vr-hero h1 .gold { color: var(--vr-gold); }
.vr-hero-sub { color: rgba(255, 255, 255, .9); margin: 0 0 1rem; font-size: 1rem; }
.vr-hero-sub strong { color: var(--vr-gold); }
.vr-hero .vr-chip { background: rgba(255, 255, 255, .15); color: #fff; }
.vr-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* Class tiles (4 in one row on phones) */
.vr-class-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .25rem 0 1rem; }
.vr-class-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
    min-height: 68px; padding: .5rem .25rem;
    background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 14px; color: #fff; text-decoration: none; text-align: center;
    transition: background .2s, transform .15s, border-color .2s;
}
.vr-class-tile:hover { background: #fff; color: var(--vr-blue); transform: translateY(-2px); border-color: #fff; }
.vr-class-tile .n { font-family: var(--vr-font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.vr-class-tile .l { font-size: .74rem; opacity: .9; }
.vr-class-tile.is-mine { border-color: var(--vr-gold); background: rgba(255, 215, 0, .18); }
.vr-class-tile.is-ssc .n { color: var(--vr-gold); }
.vr-class-tile.is-ssc:hover .n { color: var(--vr-violet); }

/* ---------- Question of the day ---------- */
.vr-qotd-wrap { background: #fff; color: var(--vr-text); border-radius: 20px; padding: 1rem; box-shadow: 0 16px 40px rgba(16, 24, 64, .25); }
.vr-qotd-tabs { display: flex; gap: .35rem; margin-bottom: .75rem; overflow-x: auto; scrollbar-width: none; }
.vr-qotd-tabs::-webkit-scrollbar { display: none; }
.vr-qotd-tab {
    flex: 0 0 auto; min-height: 36px; padding: .3rem .85rem; border-radius: 999px;
    border: 1.5px solid var(--vr-line); background: #f6f8ff; color: var(--vr-muted);
    font-weight: 700; font-size: .88rem; cursor: pointer;
}
.vr-qotd-tab.active { background: var(--vr-grad); color: #fff; border-color: transparent; }
.vr-hero .vr-qotd-wrap .vr-chip { background: #eef2ff; color: #3b4a7a; }
.vr-hero .vr-qotd-wrap .vr-chip-live { background: #fff4cc; color: #7a5a00; }
.vr-qotd-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.vr-qotd-q { font-size: 1.08rem; font-weight: 700; color: var(--vr-ink); margin: 0 0 .75rem; line-height: 1.5; }
.vr-qotd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.vr-opt {
    display: flex; align-items: center; gap: .55rem; text-align: left;
    min-height: 48px; padding: .5rem .65rem; border-radius: 12px;
    border: 2px solid var(--vr-line); background: #fff; color: var(--vr-text);
    font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s;
}
.vr-opt:hover:not(:disabled) { border-color: var(--vr-blue); background: #f3f7ff; }
.vr-opt-l {
    flex: 0 0 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eef2ff; color: var(--vr-blue); font-weight: 800; font-size: .9rem;
}
.vr-opt-t { line-height: 1.35; }
.vr-opt.is-right { border-color: var(--vr-green); background: #e9f9ef; }
.vr-opt.is-right .vr-opt-l { background: var(--vr-green); color: #fff; }
.vr-opt.is-wrong { border-color: var(--vr-red); background: #fdecee; }
.vr-opt.is-wrong .vr-opt-l { background: var(--vr-red); color: #fff; }
.vr-opt:disabled { cursor: default; opacity: 1; }
.vr-qotd-result { margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed var(--vr-line); }
.vr-qotd-verdict { font-weight: 800; margin: 0 0 .35rem; }
.vr-qotd-verdict.ok { color: var(--vr-green); }
.vr-qotd-verdict.no { color: var(--vr-red); }
.vr-qotd-exp { font-size: .93rem; color: var(--vr-muted); margin: 0 0 .75rem; }
.vr-qotd-cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.vr-qotd-foot { font-size: .82rem; color: var(--vr-muted); margin: .7rem 0 0; text-align: center; }

/* ---------- Trust strip ---------- */
.vr-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.vr-trust-item { text-align: center; color: #fff; }
.vr-trust-item .n { font-family: var(--vr-font-display); font-weight: 800; font-size: 1.3rem; color: var(--vr-gold); line-height: 1.2; }
.vr-trust-item .l { font-size: .78rem; opacity: .88; }

/* ---------- Feature tiles ---------- */
.vr-features { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.vr-feature {
    display: flex; flex-direction: column; gap: .3rem;
    padding: 1rem; background: #fff; border-radius: var(--vr-radius);
    border: 1px solid var(--vr-line); box-shadow: var(--vr-shadow);
    text-decoration: none; color: var(--vr-text); transition: transform .2s, box-shadow .2s;
}
.vr-feature:hover { transform: translateY(-4px); box-shadow: var(--vr-shadow-h); color: var(--vr-text); }
.vr-feature .ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.vr-feature .t { font-weight: 700; color: var(--vr-ink); font-size: 1rem; line-height: 1.35; }
.vr-feature .d { font-size: .86rem; color: var(--vr-muted); line-height: 1.5; flex-grow: 1; }
.vr-feature .vr-chip { align-self: flex-start; font-size: .72rem; }
.ic-daily { background: #e8f5e9; color: #198754; }
.ic-prep { background: #fff3e0; color: #e67700; }
.ic-model { background: #f3e8ff; color: #7c3aed; }
.ic-chapter { background: #e3f2fd; color: #0d6efd; }
.ic-game { background: #fce4ec; color: #d6336c; }
.ic-retry { background: #e0f7fa; color: #0b8a9a; }

/* ---------- Class cards (home) ---------- */
.vr-classes { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.vr-class-card {
    --c: var(--vr-blue);
    display: block; position: relative; padding: 1.15rem 1.15rem 1rem;
    background: #fff; border-radius: var(--vr-radius); border: 1px solid var(--vr-line);
    border-top: 5px solid var(--c); box-shadow: var(--vr-shadow);
    text-decoration: none; color: var(--vr-text); transition: transform .2s, box-shadow .2s;
}
.vr-class-card:hover { transform: translateY(-4px); box-shadow: var(--vr-shadow-h); color: var(--vr-text); }
.vr-class-card h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 .15rem; }
.vr-class-card .en { font-family: var(--vr-font); font-size: .85rem; color: var(--vr-muted); font-weight: 600; }
.vr-class-card p { font-size: .9rem; color: var(--vr-muted); margin: .4rem 0 .6rem; }
.vr-class-card .subs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .7rem; }
.vr-class-card .subs span { font-size: .75rem; background: #f3f5fb; color: #475069; padding: .15rem .55rem; border-radius: 6px; }
.vr-class-card .go { font-weight: 700; color: var(--c); }
.vr-class-card .ic { position: absolute; top: 1rem; right: 1rem; color: var(--c); opacity: .2; font-size: 2rem; }

/* ---------- Subjects (class hub) ---------- */
.vr-group-nav { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .35rem; margin-bottom: 1rem; scrollbar-width: none; }
.vr-group-nav::-webkit-scrollbar { display: none; }
.vr-group-nav a { flex: 0 0 auto; text-decoration: none; }
.vr-group-h { font-size: 1.1rem; font-weight: 800; margin: 1.25rem 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.vr-group-h:first-of-type { margin-top: 0; }
.vr-subjects { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.vr-subject { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .55rem; }
.vr-subject-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.vr-subject h3, .vr-subject .vr-subject-name { font-family: var(--vr-font); font-size: 1.06rem; font-weight: 700; margin: 0; color: var(--vr-ink); line-height: 1.35; }
.vr-subject .en { display: block; font-size: .8rem; color: var(--vr-muted); font-weight: 500; }
.vr-subject-stats { font-size: .8rem; color: var(--vr-muted); white-space: nowrap; text-align: right; }
.vr-subject-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.vr-subject-actions .vr-btn { min-height: 40px; padding: .35rem .6rem; font-size: .9rem; }

/* ---------- Model tests (compact cards, dark band) ---------- */
.vr-band { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); border-radius: 24px; padding: 1.75rem 1rem; color: #fff; }
.vr-band h2 { color: #fff; }
.vr-band .vr-h2 .hl { background: linear-gradient(135deg, #ffd700, #fbbf24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.vr-band .vr-lead { color: rgba(255, 255, 255, .75); }
.vr-band .vr-link-more { color: var(--vr-gold); }
.mt-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.mtc { --accent: #0d6efd; display: flex; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transition: transform .2s, box-shadow .2s; min-height: 118px; }
.mtc:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(13, 110, 253, .35); color: inherit; }
.mtc-accent { width: 4px; background: var(--accent); flex-shrink: 0; }
.mtc-main { flex: 1; padding: .7rem .85rem; display: flex; flex-direction: column; min-width: 0; }
.mtc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .4rem; }
.mtc-icon { width: 28px; height: 28px; border-radius: 8px; background: rgba(13, 110, 253, .08); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.mtc-badges { display: flex; gap: .25rem; flex-wrap: wrap; }
.mtc-badge { font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; }
.mtc-badge.b-free { background: #dcfce7; color: #166534; }
.mtc-badge.b-premium { background: #fef3c7; color: #854d0e; }
.mtc-badge.b-lock { background: #f1f5f9; color: #64748b; }
.mtc-title { display: block; font-size: .95rem; font-weight: 700; line-height: 1.35; color: #1e293b; margin-bottom: .15rem; }
.mtc-subtitle { display: block; font-size: .8rem; color: #64748b; margin-bottom: .4rem; }
.mtc-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .45rem; }
.mtc-chip { font-size: .72rem; font-weight: 600; background: #f1f5f9; color: #475569; padding: .12rem .5rem; border-radius: 6px; display: inline-flex; align-items: center; gap: .25rem; }
.mtc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .35rem; border-top: 1px dashed #e8edf5; }
.mtc-stats { display: flex; gap: .6rem; font-size: .75rem; color: #64748b; }
.mtc-cta { font-size: .8rem; font-weight: 700; color: var(--vr-blue); display: inline-flex; align-items: center; gap: .3rem; }
.vr-empty { text-align: center; padding: 1.25rem; color: rgba(255, 255, 255, .7); }
.vr-empty-light { color: var(--vr-muted); background: #fff; border-radius: var(--vr-radius); border: 1px dashed var(--vr-line); }

/* ---------- Games ---------- */
.vr-games { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.vr-game { --g: #e91e63; display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; background: #fff; border-radius: 14px; border: 1px solid var(--vr-line); box-shadow: var(--vr-shadow); text-decoration: none; color: var(--vr-text); transition: transform .2s, box-shadow .2s; }
.vr-game:hover { transform: translateY(-3px); box-shadow: var(--vr-shadow-h); color: var(--vr-text); }
.vr-game-icon { flex: 0 0 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--g) 14%, #fff); color: var(--g); font-size: 1.2rem; }
.vr-game-body { flex: 1; min-width: 0; }
.vr-game-title { display: block; font-weight: 700; color: var(--vr-ink); line-height: 1.3; }
.vr-game-desc { display: block; font-size: .82rem; color: var(--vr-muted); }
.vr-game-tag { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.vr-game-tag.free { background: #dcfce7; color: #166534; }
.vr-game-tag.premium { background: #fef3c7; color: #854d0e; }

/* ---------- Steps ---------- */
.vr-steps { display: grid; grid-template-columns: 1fr; gap: .75rem; counter-reset: s; }
.vr-step { padding: 1rem 1rem 1rem 3.6rem; position: relative; }
.vr-step::before { counter-increment: s; content: counter(s, bengali); position: absolute; left: 1rem; top: 1rem; width: 32px; height: 32px; border-radius: 50%; background: var(--vr-grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.vr-step h3 { font-family: var(--vr-font); font-size: 1.02rem; font-weight: 700; margin: 0 0 .2rem; }
.vr-step p { margin: 0; font-size: .9rem; color: var(--vr-muted); }

/* ---------- CTA banners ---------- */
.vr-cta { border-radius: 20px; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.vr-cta h2 { font-size: 1.35rem; margin: 0 0 .25rem; }
.vr-cta p { margin: 0; }
.vr-cta-premium { background: linear-gradient(135deg, #fff8db 0%, #ffe8a3 100%); border: 1px solid #ffe08a; }
.vr-cta-premium h2 { color: #6b4e00; }
.vr-cta-premium p { color: #6b5a2a; }
.vr-cta-join { background: var(--vr-grad); color: #fff; }
.vr-cta-join h2 { color: #fff; }
.vr-cta-join p { color: rgba(255, 255, 255, .9); }

/* ---------- Prose (SEO copy) ---------- */
.vr-prose { padding: 1.25rem; }
.vr-prose h2 { font-size: 1.3rem; font-weight: 800; }
.vr-prose h3 { font-family: var(--vr-font); font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .3rem; }
.vr-prose p, .vr-prose li { color: var(--vr-text); font-size: .97rem; }
.vr-prose ul { padding-left: 1.2rem; margin-bottom: .5rem; }

/* ---------- FAQ ---------- */
.vr-faq { background: #fff; border: 1px solid var(--vr-line); border-radius: 14px; margin-bottom: .6rem; overflow: hidden; }
.vr-faq summary { list-style: none; cursor: pointer; padding: .9rem 2.6rem .9rem 1rem; font-weight: 700; color: var(--vr-ink); position: relative; }
.vr-faq summary::-webkit-details-marker { display: none; }
.vr-faq summary::after { content: '+'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--vr-blue); font-weight: 400; }
.vr-faq[open] summary::after { content: '−'; }
.vr-faq-a { padding: 0 1rem 1rem; color: var(--vr-muted); }

/* ---------- Breadcrumb ---------- */
.vr-crumbs { font-size: .85rem; margin-bottom: .6rem; }
.vr-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.vr-crumbs li { color: rgba(255, 255, 255, .8); }
.vr-crumbs li + li::before { content: '›'; margin-right: .3rem; opacity: .7; }
.vr-crumbs a { color: #fff; text-decoration: none; }
.vr-crumbs a:hover { text-decoration: underline; }

/* ---------- Other classes ---------- */
.vr-other-classes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.vr-other-classes a { display: block; text-align: center; padding: .8rem .5rem; font-weight: 700; text-decoration: none; color: var(--vr-ink); }
.vr-other-classes a:hover { color: var(--vr-blue); }
.vr-other-classes small { display: block; color: var(--vr-muted); font-weight: 500; }

/* ---------- Footer ---------- */
.vr-footer { background: #1a1a2e; color: rgba(255, 255, 255, .78); padding: 2.5rem 0 1.25rem; margin-top: 2.5rem; }
.vr-footer-brand { display: inline-block; margin-bottom: .6rem; }
.vr-footer-about { font-size: .9rem; color: rgba(255, 255, 255, .68); }
.vr-footer-h { font-family: var(--vr-font); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .7rem; }
.vr-footer ul li { margin-bottom: .35rem; }
.vr-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.vr-footer a:hover { color: #fff; text-decoration: underline; }
.vr-social { display: flex; gap: .5rem; }
.vr-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.vr-social a:hover { background: var(--vr-blue); text-decoration: none; }
.vr-footer-hr { border-color: rgba(255, 255, 255, .1); margin: 1.5rem 0 1rem; }
.vr-copy { text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .5); margin: 0; }
.vr-copy span { color: var(--vr-gold); }

/* ---------- Larger screens ---------- */
@media (min-width: 576px) {
    .vr-features { grid-template-columns: repeat(3, 1fr); }
    .mt-grid, .vr-games, .vr-subjects { grid-template-columns: repeat(2, 1fr); }
    .vr-other-classes { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
    .vr-hero { padding: 2.5rem 0 3rem; border-radius: 0 0 44px 44px; }
    .vr-hero h1 { font-size: 2.3rem; }
    .vr-hero-sub { font-size: 1.08rem; }
    .vr-h2 { font-size: 2rem; }
    .vr-classes { grid-template-columns: repeat(2, 1fr); }
    .vr-steps { grid-template-columns: repeat(3, 1fr); }
    .vr-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.75rem 2rem; }
    .vr-band { padding: 2.25rem 1.75rem; }
    .vr-section { padding: 3.5rem 0; }
    .vr-class-tile { min-height: 80px; }
    .vr-class-tile .n { font-size: 1.5rem; }
    .vr-qotd-wrap { padding: 1.4rem; }
}
@media (min-width: 992px) {
    .vr-hero h1 { font-size: 2.6rem; }
    .vr-classes { grid-template-columns: repeat(4, 1fr); }
    .mt-grid, .vr-games { grid-template-columns: repeat(3, 1fr); }
    .vr-subjects { grid-template-columns: repeat(3, 1fr); }
    .vr-trust { max-width: 460px; }
}
@media (max-width: 359.98px) {
    .vr-qotd-opts { grid-template-columns: 1fr; }
    .vr-class-tile .l { display: none; }
    .vr-features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Phones: model tests become a swipeable row instead of a long column */
@media (max-width: 575.98px) {
    .mt-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: .7rem; margin: 0 -1rem; padding: .25rem 1rem .75rem; scrollbar-width: none;
    }
    .mt-grid::-webkit-scrollbar { display: none; }
    .mt-grid .mtc { flex: 0 0 82%; scroll-snap-align: start; }
}

/* =====================================================================
   DAILY MCQ (/daily-mcq) — test builder
   ===================================================================== */
.dm-hero { padding-bottom: 3.25rem; }
.dm-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.vr-hero .dm-status-ok { background: rgba(25, 135, 84, .9); }
.vr-hero .dm-status-done { background: rgba(255, 255, 255, .92); color: #7a3e00; }
.vr-hero .dm-status-premium { background: var(--vr-gold); color: var(--vr-ink); }
.vr-hero .dm-streak { background: rgba(255, 120, 40, .9); }
.dm-wrap { margin-top: -2rem; position: relative; z-index: 2; }
.dm-alert { background: #fff4e5; border: 1px solid #ffd8a8; color: #7a3e00; border-radius: 14px; padding: .8rem 1rem; margin-bottom: .9rem; font-weight: 600; }

.dm-builder { padding: 1rem; }
.dm-progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; padding: 0; margin: 0 0 1rem; position: relative; }
.dm-progress::before { content: ''; position: absolute; left: 12%; right: 12%; top: 15px; height: 3px; background: var(--vr-line); z-index: 0; }
.dm-progress li { display: flex; flex-direction: column; align-items: center; gap: .2rem; position: relative; z-index: 1; }
.dm-progress .dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 3px solid var(--vr-line); color: var(--vr-muted); font-weight: 800; font-size: .9rem; }
.dm-progress .lbl { font-size: .78rem; color: var(--vr-muted); font-weight: 600; }
.dm-progress li.done .dot { background: var(--vr-green); border-color: var(--vr-green); color: #fff; }
.dm-progress li.now .dot { background: var(--vr-grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 4px rgba(13, 110, 253, .15); }
.dm-progress li.now .lbl { color: var(--vr-blue); }

.dm-summary { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; background: #f6f8ff; border: 1px solid var(--vr-line); border-radius: 12px; margin-bottom: .6rem; }
.dm-summary .k { font-size: .78rem; color: var(--vr-muted); font-weight: 700; min-width: 3.2rem; }
.dm-summary .v { flex: 1; font-weight: 700; color: var(--vr-ink); }
.dm-summary .chg { font-size: .88rem; font-weight: 700; text-decoration: none; }
.dm-mine { font-size: .72rem; font-weight: 700; background: #e7f6ec; color: #166534; border-radius: 999px; padding: .1rem .5rem; margin-left: .3rem; }

.dm-step { padding-top: .35rem; }
.dm-step-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dm-step-h { font-family: var(--vr-font); font-size: 1.12rem; font-weight: 800; color: var(--vr-ink); margin: .3rem 0 .6rem; }
.dm-help { font-size: .9rem; color: var(--vr-muted); margin: -.2rem 0 .75rem; }
.dm-note { font-size: .85rem; color: var(--vr-muted); margin: .8rem 0 0; }
.dm-link-btn { white-space: nowrap; flex-shrink: 0; border: 0; background: #eef2ff; color: var(--vr-blue); font-weight: 700; border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; min-height: 36px; cursor: pointer; }

.dm-class-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.dm-class { --c: var(--vr-blue); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 86px; border-radius: 14px; border: 2px solid var(--vr-line); border-bottom: 4px solid var(--c); background: #fff; text-decoration: none; color: var(--vr-ink); transition: transform .15s, box-shadow .2s; }
.dm-class:hover { transform: translateY(-3px); box-shadow: var(--vr-shadow-h); color: var(--c); }
.dm-class .n { font-family: var(--vr-font-display); font-size: 1.6rem; font-weight: 800; color: var(--c); line-height: 1.1; }
.dm-class .l { font-size: .85rem; color: var(--vr-muted); }

.dm-filter { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .5rem; scrollbar-width: none; }
.dm-filter::-webkit-scrollbar { display: none; }
.dm-filter-btn { flex: 0 0 auto; min-height: 38px; border-radius: 999px; border: 1.5px solid var(--vr-line); background: #fff; color: var(--vr-muted); font-weight: 700; padding: .3rem .9rem; font-size: .88rem; cursor: pointer; }
.dm-filter-btn.active { background: var(--vr-grad); color: #fff; border-color: transparent; }

.dm-subjects { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.dm-subject { position: relative; display: flex; flex-direction: column; padding: .75rem 2.6rem .75rem .9rem; border: 1.5px solid var(--vr-line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--vr-text); transition: border-color .15s, background .15s; }
.dm-subject:hover { border-color: var(--vr-blue); background: #f6f9ff; color: var(--vr-text); }
.dm-subject .t { font-weight: 700; color: var(--vr-ink); }
.dm-subject .m { font-size: .8rem; color: var(--vr-muted); }
.dm-subject .go { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--vr-blue); }
.dm-subject .tag { position: absolute; right: 2.3rem; top: 50%; transform: translateY(-50%); font-size: .75rem; }
.dm-subject .tag-inf { color: var(--vr-green); }
.dm-subject.is-thin { opacity: .7; }

.dm-chapters { display: flex; flex-direction: column; gap: .45rem; }
.dm-ch { border: 1.5px solid var(--vr-line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.dm-ch.is-on { border-color: var(--vr-blue); background: #f5f8ff; }
.dm-ch.is-empty { opacity: .55; }
.dm-ch-row { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; cursor: pointer; margin: 0; min-height: 50px; }
.dm-ch-row input, .dm-topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dm-ch-row .box { flex: 0 0 24px; height: 24px; border-radius: 7px; border: 2px solid #b9c4dd; display: flex; align-items: center; justify-content: center; color: transparent; font-size: .75rem; background: #fff; }
.dm-ch-row input:checked + .box { background: var(--vr-blue); border-color: var(--vr-blue); color: #fff; }
.dm-ch-row input:focus-visible + .box { outline: 3px solid var(--vr-gold); outline-offset: 2px; }
.dm-ch-row .name { flex: 1; font-weight: 600; color: var(--vr-ink); line-height: 1.35; }
.dm-ch-row .qc { font-size: .78rem; color: var(--vr-muted); white-space: nowrap; }
.dm-topics { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .85rem .75rem 3rem; }
.dm-topic { margin: 0; cursor: pointer; }
.dm-topic span { display: inline-block; padding: .3rem .75rem; border-radius: 999px; border: 1.5px solid var(--vr-line); background: #fff; font-size: .85rem; font-weight: 600; }
.dm-topic small { color: var(--vr-muted); }
.dm-topic input:checked + span { background: var(--vr-blue); color: #fff; border-color: var(--vr-blue); }
.dm-topic input:checked + span small { color: rgba(255, 255, 255, .8); }
.dm-topic input:focus-visible + span { outline: 3px solid var(--vr-gold); }

.dm-startbar { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--vr-line); }
.dm-count { font-size: .92rem; color: var(--vr-muted); text-align: center; }
.dm-count strong { color: var(--vr-ink); }
.dm-count .warn { color: #b45309; font-weight: 600; }
.dm-startbar .vr-btn { width: 100%; }
.dm-startbar .vr-btn:disabled { background: #c9d1e3; color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 991.98px) {
    body.dm-ready .dm-startbar {
        position: sticky; bottom: 0; z-index: 20; background: #fff;
        margin: 1rem -1rem -1rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--vr-line); border-radius: 0 0 var(--vr-radius) var(--vr-radius);
        box-shadow: 0 -8px 20px rgba(16, 24, 64, .08);
    }
}

.dm-more { padding: 1rem; margin-top: 1rem; }
.dm-more-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.dm-more-grid a { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1.5px solid var(--vr-line); border-radius: 12px; text-decoration: none; color: var(--vr-ink); font-weight: 700; }
.dm-more-grid a:hover { border-color: var(--vr-blue); }
.dm-more-grid i { font-size: 1.2rem; color: var(--vr-violet); width: 1.5rem; text-align: center; }
.dm-more-grid small { display: block; font-weight: 500; color: var(--vr-muted); font-size: .8rem; }

.dm-side { margin-bottom: 1rem; }
.dm-side-h { font-weight: 800; color: var(--vr-ink); margin: 0 0 .6rem; font-size: .98rem; }
.dm-side-h i { color: #f76707; }
.dm-side .vr-qotd-opts { grid-template-columns: 1fr; }
.dm-recent { padding: 1rem; }
.dm-recent ul { list-style: none; padding: 0; margin: 0 0 .6rem; }
.dm-recent li { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--vr-line); }
.dm-recent li strong.hi { color: var(--vr-green); }
.dm-recent li strong.mid { color: #b45309; }
.dm-recent li strong.lo { color: var(--vr-red); }

@media (min-width: 576px) {
    .dm-class-grid { grid-template-columns: repeat(4, 1fr); }
    .dm-subjects, .dm-more-grid { grid-template-columns: repeat(2, 1fr); }
    .dm-startbar { flex-direction: row; align-items: center; justify-content: space-between; }
    .dm-startbar .vr-btn { width: auto; }
    .dm-count { text-align: left; }
}
@media (min-width: 768px) {
    .dm-builder { padding: 1.5rem; }
    .dm-steps4 { grid-template-columns: repeat(4, 1fr); }
    .dm-more-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   SUBJECT PREP (/student-subject-prep) — chapter list (reuses .dm-* builder)
   ===================================================================== */
.sp-chapters { display: flex; flex-direction: column; gap: .5rem; }
.sp-ch { display: flex; align-items: stretch; gap: .45rem; }
.sp-ch-open {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem;
    min-height: 56px; padding: .6rem .85rem; border: 1.5px solid var(--vr-line); border-radius: 12px;
    background: #fff; color: var(--vr-text); text-decoration: none; transition: border-color .15s, background .15s, transform .15s;
}
a.sp-ch-open:hover { border-color: var(--vr-blue); background: #f5f8ff; color: var(--vr-text); transform: translateX(2px); }
.sp-num { flex: 0 0 34px; height: 34px; border-radius: 10px; background: #eef2ff; color: var(--vr-blue); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sp-name { flex: 1; min-width: 0; font-weight: 700; color: var(--vr-ink); line-height: 1.35; }
.sp-name small { display: block; font-weight: 500; font-size: .8rem; color: var(--vr-muted); }
.sp-go { font-weight: 700; color: var(--vr-blue); white-space: nowrap; font-size: .92rem; }
.sp-ch-open.is-locked { background: #f7f8fb; cursor: default; }
.sp-ch-open.is-locked .sp-go { color: var(--vr-muted); }
.sp-ch.is-empty .sp-ch-open { opacity: .55; }
.sp-ch.is-last .sp-ch-open { border-color: var(--vr-gold); box-shadow: 0 0 0 3px rgba(255, 215, 0, .25); }
.sp-test {
    flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
    border-radius: 12px; border: 1.5px solid #ffe08a; background: #fff8db; color: #7a5a00;
    font-size: .75rem; font-weight: 700; text-decoration: none;
}
.sp-test i { font-size: 1rem; }
.sp-test:hover { background: #ffefb0; color: #5c4300; }
.sp-tips { padding-left: 1.2rem; margin: 0 0 .6rem; color: var(--vr-text); font-size: .92rem; }
.sp-tips li { margin-bottom: .3rem; }

/* =====================================================================
   PUBLIC SUBJECT / CHAPTER PAGES (/class-6/mathematics/chapter-1)
   ===================================================================== */
.cp-card { padding: 1rem; }
.cp-score {
    position: sticky; top: 64px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    margin: -1rem -1rem 1rem; padding: .6rem 1rem; background: #f6f8ff; border-bottom: 1px solid var(--vr-line);
    border-radius: var(--vr-radius) var(--vr-radius) 0 0; font-size: .9rem; color: var(--vr-muted);
}
.cp-score strong { color: var(--vr-ink); }
.cp-score i { color: var(--vr-blue); }
.cq-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.cq { border: 1.5px solid var(--vr-line); border-radius: 14px; padding: .85rem; background: #fff; }
.cq.is-done { border-color: #cfd9f2; }
.cq-q { font-weight: 700; color: var(--vr-ink); margin: 0 0 .65rem; line-height: 1.55; }
.cq-n { color: var(--vr-blue); margin-right: .15rem; }
.cq-opts { display: grid; grid-template-columns: 1fr; gap: .45rem; }
.cq-ans { margin-top: .6rem; }
.cq-ans summary { cursor: pointer; font-weight: 700; color: var(--vr-blue); font-size: .9rem; list-style: none; }
.cq-ans summary::-webkit-details-marker { display: none; }
.cq-ans summary::before { content: '▸ '; }
.cq-ans[open] summary::before { content: '▾ '; }
.cq-right { margin: .45rem 0 .25rem; color: var(--vr-green); }
.cq-exp { margin: 0; color: var(--vr-text); font-size: .93rem; }
.cp-passage { margin-top: 1rem; padding: .9rem; border-radius: 14px; background: #fbfcff; border: 1px dashed #c9d8ff; }
.cp-passage-h { font-weight: 800; color: var(--vr-ink); margin: 0 0 .4rem; }
.cp-passage-t { font-size: .95rem; margin-bottom: .8rem; color: var(--vr-text); }
.cp-more { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--vr-line); }
.cp-more-t { color: var(--vr-text); margin: 0 0 .7rem; }
.cp-more-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.cp-pn { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.cp-pn a { display: block; padding: .75rem .9rem; text-decoration: none; color: var(--vr-ink); font-weight: 700; font-size: .92rem; line-height: 1.35; }
.cp-pn a small { display: block; color: var(--vr-blue); font-weight: 700; font-size: .78rem; margin-bottom: .15rem; }
.cp-pn a:hover { border-color: var(--vr-blue); }
.cp-pn .cp-next { text-align: right; grid-column: 2; }
.cp-side-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.cp-side-list li a { display: block; padding: .4rem .5rem; border-radius: 8px; text-decoration: none; color: var(--vr-text); font-size: .92rem; }
.cp-side-list li a:hover { background: #f3f6ff; color: var(--vr-blue); }
.cp-side-list li a.on { background: var(--vr-grad); color: #fff; font-weight: 700; }
@media (min-width: 576px) { .cq-opts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .cp-card { padding: 1.5rem; } .cp-score { margin: -1.5rem -1.5rem 1rem; padding: .7rem 1.5rem; } }
.vr-subject-link { color: inherit; text-decoration: none; }
.vr-subject-link:hover { color: var(--vr-blue); text-decoration: underline; }
.vr-subject-more { font-size: .85rem; font-weight: 700; text-decoration: none; margin-top: -.15rem; }
.vr-subject-more:hover { text-decoration: underline; }

/* =====================================================================
   CHAPTER READER (/student-subject-prep-view) — uses .cq cards
   ===================================================================== */
.rd-hero { padding-bottom: 3rem; }
.rd-h1 { font-size: 1.45rem; }
.rd-h1 .gold { font-size: .78em; margin-top: .2rem; }
.rd-wrap { margin-top: -1.75rem; position: relative; z-index: 2; max-width: 860px; }
.rd-bar {
    position: sticky; top: 60px; z-index: 15; background: #fff; border: 1px solid var(--vr-line);
    border-radius: 14px; box-shadow: var(--vr-shadow); padding: .6rem .75rem .5rem; margin-bottom: .8rem;
}
.rd-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; background: #f1f4fb; border-radius: 999px; padding: .2rem; }
.rd-mode { border: 0; border-radius: 999px; background: transparent; color: var(--vr-muted); font-weight: 700; font-size: .9rem; min-height: 38px; cursor: pointer; }
.rd-mode.active { background: var(--vr-grad); color: #fff; box-shadow: 0 3px 10px rgba(13, 110, 253, .25); }
.rd-prog { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--vr-muted); margin: .45rem .15rem .3rem; }
.rd-prog strong { color: var(--vr-ink); }
.rd-read .rd-score { visibility: hidden; }
.rd-track { height: 5px; background: #e9eef8; border-radius: 99px; overflow: hidden; }
.rd-track span { display: block; height: 100%; background: var(--vr-grad); border-radius: 99px; }
.rd-hint { font-size: .9rem; color: var(--vr-muted); background: #f8faff; border: 1px dashed #d4ddf3; border-radius: 10px; padding: .55rem .75rem; margin-bottom: .9rem; }
.rd-hint i { color: #f59f00; }
.rd-img { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin: 0 auto .7rem; }
.rd-read .cq .vr-opt { cursor: default; }
.rd-upsell { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; padding: .7rem .9rem; border-radius: 12px; background: #fff8db; border: 1px solid #ffe08a; color: #6b4e00; font-size: .92rem; }
.rd-upsell a { font-weight: 800; color: #6b4e00; }
.rd-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; margin: 1rem 0; }
.rd-page-no { text-align: center; font-size: .85rem; color: var(--vr-muted); font-weight: 600; }
.rd-done { padding: 1.5rem 1.1rem; text-align: center; margin: 1rem 0; }
.rd-done-ic { font-size: 2.4rem; line-height: 1; margin-bottom: .4rem; }
.rd-done-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.rd-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.rd-foot a { font-weight: 700; text-decoration: none; }
.rd-share { border: 1.5px solid var(--vr-line); background: #fff; color: var(--vr-violet); font-weight: 700; border-radius: 999px; padding: .4rem 1rem; min-height: 40px; cursor: pointer; }
.rd-share:hover { border-color: var(--vr-violet); }
@media (max-width: 575.98px) {
    .rd-nav .vr-btn { padding: .55rem .9rem; font-size: .92rem; }
    .rd-done-btns .vr-btn { width: 100%; }
}
@media (min-width: 768px) { .rd-h1 { font-size: 2rem; } }

/* =====================================================================
   STUDENT DASHBOARD (/student-dashboard)
   ===================================================================== */
.db-hero { padding: 1.25rem 0 3.4rem; }
.db-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.db-greet { margin: 0; color: rgba(255, 255, 255, .85); font-weight: 600; }
.db-name { color: #fff; font-size: 1.7rem; margin: 0 0 .5rem; }
.db-streak { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 16px; padding: .5rem .8rem; min-width: 84px; }
.db-flame { font-size: 1.5rem; color: rgba(255, 255, 255, .45); line-height: 1; }
.db-flame.on { color: #ffb020; filter: drop-shadow(0 0 6px rgba(255, 176, 32, .7)); }
.db-streak-n { font-family: var(--vr-font-display); font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.db-streak-l { font-size: .72rem; color: rgba(255, 255, 255, .85); }
.db-week { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.db-week li { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.db-week .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: #fff; }
.db-week li.on .dot { background: #ffb020; border: 2px solid #ffb020; color: #1a1a2e; }
.db-week li.today .dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.db-week .lbl { font-size: .72rem; color: rgba(255, 255, 255, .85); }
.db-streak-tip { margin: .7rem 0 0; font-size: .86rem; color: rgba(255, 255, 255, .92); }
.db-wrap { margin-top: -2.2rem; position: relative; z-index: 2; }

.db-card { padding: 1rem; margin-bottom: 1rem; }
.db-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.db-h { font-family: var(--vr-font); font-size: 1.08rem; font-weight: 800; color: var(--vr-ink); margin: 0 0 .25rem; }
.db-h i { color: var(--vr-violet); margin-right: .2rem; }
.db-h3 { font-family: var(--vr-font); font-size: .95rem; font-weight: 800; margin: 1rem 0 .4rem; }
.db-sub { font-size: .88rem; color: var(--vr-muted); margin: 0 0 .7rem; }

.db-plan-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.db-ring { --p: 0; flex: 0 0 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--vr-green) calc(var(--p) * 1%), #e7ecf7 0); }
.db-ring span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--vr-ink); font-size: .95rem; }
.db-tasks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.db-tasks li { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1.5px solid var(--vr-line); border-radius: 12px; }
.db-tasks li.done { background: #f1fbf4; border-color: #bfe8cc; }
.db-tasks .ck { flex: 0 0 36px; height: 36px; border-radius: 50%; background: #eef2ff; color: var(--vr-blue); display: grid; place-items: center; }
.db-tasks li.done .ck { background: var(--vr-green); color: #fff; }
.db-tasks .tx { flex: 1; min-width: 0; line-height: 1.3; }
.db-tasks .tx strong { display: block; color: var(--vr-ink); }
.db-tasks li.done .tx strong { text-decoration: line-through; text-decoration-color: rgba(25, 135, 84, .5); }
.db-tasks .tx small { color: var(--vr-muted); }
.db-done-tag { font-size: .78rem; font-weight: 700; color: var(--vr-green); }

.db-assigned { border: 1.5px solid #ffe08a; background: #fffdf3; }
.db-asg { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem 0; border-top: 1px dashed #f0e2a8; }
.db-asg:first-of-type { border-top: 0; }
.db-asg small { display: block; color: var(--vr-muted); }
.db-asg .urgent { color: var(--vr-red); font-weight: 700; }

.db-continue { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.db-continue .ic { flex: 0 0 42px; height: 42px; border-radius: 12px; background: #f3e8ff; color: #7c3aed; display: grid; place-items: center; font-size: 1.1rem; }
.db-continue .tx { flex: 1; min-width: 180px; line-height: 1.35; }
.db-continue .tx small { color: var(--vr-muted); display: block; }
.db-continue .bt { display: flex; gap: .4rem; }

.db-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
.db-stats .vr-card { padding: .8rem; text-align: center; }
.db-stats .n { display: block; font-family: var(--vr-font-display); font-size: 1.45rem; font-weight: 800; color: var(--vr-ink); line-height: 1.2; }
.db-stats .n.hi { color: var(--vr-green); } .db-stats .n.mid { color: #b45309; } .db-stats .n.lo { color: var(--vr-red); }
.db-stats .l { font-size: .8rem; color: var(--vr-muted); }

.db-mastery { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.db-mastery .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .25rem; }
.db-mastery .nm { font-weight: 700; color: var(--vr-ink); }
.db-mastery .lv { font-size: .72rem; font-weight: 800; padding: .1rem .55rem; border-radius: 999px; }
.db-mastery .bar { height: 10px; background: #eef1f8; border-radius: 99px; overflow: hidden; }
.db-mastery .bar span { display: block; height: 100%; border-radius: 99px; }
.db-mastery .meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--vr-muted); margin-top: .25rem; }
.db-mastery .meta a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.lv-none { background: #eef1f8; color: var(--vr-muted); }
.lv-1 { background: #fdecee; color: #b42318; } .bar .lv-1 { background: #ef6b5b; }
.lv-2 { background: #fff4e5; color: #b45309; } .bar .lv-2 { background: #f5a524; }
.lv-3 { background: #e8f1ff; color: #1d4ed8; } .bar .lv-3 { background: #3b82f6; }
.lv-4 { background: #e7f6ec; color: #166534; } .bar .lv-4 { background: #22a35a; }

.db-focus-list { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-direction: column; gap: .5rem; }
.db-focus-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1.5px solid var(--vr-line); border-radius: 12px; flex-wrap: wrap; }
.db-focus-list .pc { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: #fdecee; color: #b42318; }
.db-focus-list .tx { flex: 1; min-width: 150px; line-height: 1.3; }
.db-focus-list .tx small { display: block; color: var(--vr-muted); }
.db-focus-list .bt { display: flex; gap: .35rem; }
.db-retry { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem .8rem; border-radius: 12px; background: #f0f7ff; border: 1px solid #cfe2ff; }
.db-retry small { display: block; color: var(--vr-muted); }
.db-retry .bt { display: flex; gap: .35rem; }

.db-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; align-items: end; height: 150px; padding-top: .3rem; }
.db-bars .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .2rem; }
.db-bars .v { font-size: .72rem; color: var(--vr-muted); min-height: 1em; }
.db-bars .b { width: 70%; max-width: 34px; background: linear-gradient(180deg, #6ea8fe, #0d6efd); border-radius: 8px 8px 3px 3px; }
.db-bars .col.today .b { background: var(--vr-grad); }
.db-bars .l { font-size: .74rem; color: var(--vr-muted); }
.db-recent { list-style: none; padding: 0; margin: 0 0 .5rem; }
.db-recent li { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px dashed var(--vr-line); }
.db-recent .tx { line-height: 1.3; }
.db-recent .tx small { display: block; color: var(--vr-muted); font-size: .8rem; }
.db-recent .tag { font-size: .68rem; background: #eef2ff; color: var(--vr-blue); padding: .05rem .4rem; border-radius: 6px; font-weight: 700; }
.db-recent .pc, .db-focus-list .pc { font-weight: 800; }
.db-recent .pc.hi { color: var(--vr-green); } .db-recent .pc.mid { color: #b45309; } .db-recent .pc.lo { color: var(--vr-red); }

.db-badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.db-badges li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .6rem .4rem; border-radius: 12px; background: #f6f7fb; color: #9aa3b5; }
.db-badges .ic { width: 40px; height: 40px; border-radius: 50%; background: #e8ebf3; display: grid; place-items: center; font-size: 1.05rem; margin-bottom: .25rem; }
.db-badges .t { font-size: .8rem; font-weight: 700; line-height: 1.25; }
.db-badges .p { font-size: .7rem; }
.db-badges li.on { background: #fff8db; color: #6b4e00; }
.db-badges li.on .ic { background: linear-gradient(135deg, #ffd700, #f59f00); color: #fff; box-shadow: 0 4px 12px rgba(245, 159, 0, .35); }
.db-badges li.on .p { color: #166534; font-weight: 700; }

.db-acc-line { font-size: .9rem; margin: 0 0 .6rem; }
.db-acc-line.warn { color: #9a3412; background: #fff4e5; padding: .5rem .65rem; border-radius: 10px; }
.db-upsell { background: #fff8db; border: 1px solid #ffe08a; border-radius: 12px; padding: .75rem .85rem; margin-bottom: .7rem; color: #6b4e00; }
.db-upsell ul { padding-left: 1.1rem; margin: .35rem 0 .6rem; font-size: .86rem; }
.db-links { list-style: none; padding: 0; margin: 0; }
.db-links a { display: flex; gap: .55rem; align-items: center; padding: .5rem .3rem; text-decoration: none; color: var(--vr-text); border-bottom: 1px dashed var(--vr-line); font-size: .92rem; }
.db-links a:hover { color: var(--vr-blue); }
.db-links i { width: 1.2rem; color: var(--vr-violet); }
.db-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.db-quick a { display: flex; align-items: center; gap: .45rem; padding: .6rem .7rem; border: 1.5px solid var(--vr-line); border-radius: 12px; text-decoration: none; color: var(--vr-ink); font-weight: 700; font-size: .88rem; }
.db-quick a:hover { border-color: var(--vr-blue); }
.db-quick i { color: var(--vr-blue); }

@media (min-width: 576px) { .db-stats { grid-template-columns: repeat(4, 1fr); } .db-badges { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .db-badges { grid-template-columns: repeat(2, 1fr); } .db-name { font-size: 2.1rem; } }
.db-recent .tx small.tag { display: inline-block; margin-left: .3rem; font-size: .68rem; }

/* =====================================================================
   TEST SCREEN (/daily-mcq-quiz)
   ===================================================================== */
.qz-page { padding-bottom: 84px; }
.qz-top { position: sticky; top: 0; z-index: 1030; background: var(--vr-grad); color: #fff; box-shadow: 0 4px 16px rgba(13, 110, 253, .25); }
.qz-top-in { display: flex; align-items: center; gap: .6rem; min-height: 58px; }
.qz-exit { flex: 0 0 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.qz-title { flex: 1; min-width: 0; line-height: 1.25; }
.qz-title strong { display: block; font-size: 1rem; }
.qz-title small { display: block; font-size: .78rem; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-timer { flex: 0 0 auto; font-weight: 800; font-size: 1.05rem; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: .35rem .8rem; font-variant-numeric: tabular-nums; }
.qz-timer.warn { background: var(--vr-gold); color: var(--vr-ink); }
.qz-timer.danger { background: #dc3545; color: #fff; animation: qzPulse 1s infinite; }
.qz-timer.done { background: rgba(255, 255, 255, .16); color: #fff; animation: none; opacity: .7; }
@keyframes qzPulse { 50% { opacity: .6; } }
.qz-progress { height: 4px; background: rgba(255, 255, 255, .25); }
.qz-progress span { display: block; height: 100%; width: 0; background: var(--vr-gold); transition: width .25s; }

.qz-main { max-width: 820px; padding-top: 1rem; }
.qz-tools { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.qz-count { font-size: .9rem; color: var(--vr-muted); }
.qz-count strong { color: var(--vr-ink); }
.qz-count i { color: var(--vr-green); }
.qz-view { display: flex; background: #e9eef9; border-radius: 999px; padding: .15rem; }
.qz-view button { border: 0; background: transparent; border-radius: 999px; padding: .3rem .75rem; font-weight: 700; font-size: .82rem; color: var(--vr-muted); min-height: 34px; cursor: pointer; }
.qz-view button.active { background: #fff; color: var(--vr-blue); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.qz-access { font-size: .82rem; color: var(--vr-muted); margin: 0 0 .7rem; }

.qz-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.qz-q { padding: 1rem; }
.qz-single .qz-q { display: none; }
.qz-single .qz-q.is-current { display: block; animation: qzIn .18s ease-out; }
@keyframes qzIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qz-list-view .qz-q.is-current { outline: 2px solid rgba(13, 110, 253, .35); }
.qz-q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.qz-q-no { font-weight: 800; color: var(--vr-blue); }
.qz-q-no small { color: var(--vr-muted); font-weight: 600; }
.qz-flag { border: 1.5px solid var(--vr-line); background: #fff; color: var(--vr-muted); border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; font-weight: 700; min-height: 34px; cursor: pointer; }
.qz-flag.on { background: #fff4cc; border-color: #ffd43b; color: #7a5a00; }
.qz-passage { background: #fbfcff; border: 1px dashed #c9d8ff; border-radius: 12px; padding: .6rem .8rem; margin-bottom: .8rem; }
.qz-passage summary { cursor: pointer; font-weight: 700; color: var(--vr-ink); }
.qz-passage summary small { color: var(--vr-muted); font-weight: 500; }
.qz-passage-t { margin-top: .5rem; font-size: .95rem; }
.qz-text { font-size: 1.06rem; font-weight: 700; color: var(--vr-ink); line-height: 1.6; margin: 0 0 .8rem; }
.qz-opts { display: grid; grid-template-columns: 1fr; gap: .55rem; }
.qz-opt { min-height: 54px; }
.qz-opt.is-picked { border-color: var(--vr-blue); background: #eef4ff; }
.qz-opt.is-picked .vr-opt-l { background: var(--vr-blue); color: #fff; }
.qz-list-submit { display: none; margin: 1rem 0; }
.qz-list-view .qz-list-submit { display: block; }

.qz-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; border-top: 1px solid var(--vr-line); box-shadow: 0 -6px 18px rgba(16, 24, 64, .08); padding: .55rem 0 calc(.55rem + env(safe-area-inset-bottom)); }
.qz-nav-in { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; max-width: 820px; }
.qz-nav .vr-btn:disabled { opacity: .45; transform: none; }
.qz-grid-btn { justify-self: center; border: 1.5px solid var(--vr-line); background: #f6f8ff; color: var(--vr-ink); font-weight: 800; border-radius: 999px; padding: .45rem 1rem; min-height: 44px; cursor: pointer; }
.qz-list-view .qz-nav { display: none; }

.qz-modal { overflow: hidden; }
.qz-sheet { position: fixed; inset: 0; z-index: 1050; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; justify-content: center; }
.qz-sheet[hidden] { display: none; }
.qz-sheet-box { background: #fff; width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); max-height: 85vh; overflow: auto; animation: qzUp .2s ease-out; }
@keyframes qzUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 576px) { .qz-sheet { align-items: center; } .qz-sheet-box { border-radius: 20px; } }
.qz-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-size: 1.05rem; }
.qz-x { border: 0; background: #f1f4fb; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.qz-legend { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .78rem; color: var(--vr-muted); margin-bottom: .6rem; }
.qz-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--vr-line); vertical-align: -1px; }
.qz-legend .lg.ans { background: var(--vr-blue); border-color: var(--vr-blue); }
.qz-legend .lg.flg { background: #ffd43b; border-color: #ffd43b; }
.qz-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.qz-cells button { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--vr-line); background: #fff; font-weight: 700; color: var(--vr-ink); position: relative; cursor: pointer; }
.qz-cells button.ans { background: var(--vr-blue); border-color: var(--vr-blue); color: #fff; }
.qz-cells button.flg::after { content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ffb020; }
.qz-cells button.flg:not(.ans) { background: #fff4cc; border-color: #ffd43b; }
.qz-cells button.cur { outline: 3px solid rgba(102, 16, 242, .35); }
.qz-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .8rem; text-align: center; }
.qz-sum div { background: #f6f8ff; border-radius: 12px; padding: .6rem .3rem; font-size: .8rem; color: var(--vr-muted); }
.qz-sum .n { display: block; font-size: 1.5rem; font-weight: 800; color: var(--vr-ink); }
.qz-sum .n.ok { color: var(--vr-blue); } .qz-sum .n.fl { color: #b45309; }
.qz-sum p { grid-column: 1 / -1; margin: 0; }
.qz-warn { color: #9a3412; background: #fff4e5; border-radius: 10px; padding: .5rem .7rem; font-size: .88rem; text-align: left; }
.qz-ok { color: var(--vr-green); font-weight: 700; }
.qz-sheet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* result */
.qz-result { padding-top: .2rem; }
.qz-loading { padding: 2rem 1rem; text-align: center; color: var(--vr-muted); }
.qz-score { padding: 1.3rem 1rem; text-align: center; margin-bottom: 1rem; }
.qz-timeup { background: #fff4e5; color: #9a3412; border-radius: 10px; padding: .45rem .7rem; font-size: .88rem; }
.qz-ring { --p: 0; width: 132px; height: 132px; margin: .3rem auto .6rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--vr-blue)) calc(var(--p) * 1%), #e9eef8 0); }
.qz-ring.hi { --c: #22a35a; } .qz-ring.mid { --c: #f5a524; } .qz-ring.lo { --c: #ef6b5b; }
.qz-ring span { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--vr-font-display); font-size: 1.9rem; font-weight: 800; color: var(--vr-ink); }
.qz-grade { font-family: var(--vr-font); font-size: 1.35rem; font-weight: 800; margin: 0; }
.qz-msg { color: var(--vr-muted); margin: .2rem 0 .4rem; }
.qz-change { font-weight: 700; color: var(--vr-muted); margin: 0 0 .6rem; }
.qz-change.up { color: var(--vr-green); } .qz-change.down { color: var(--vr-red); }
.qz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .8rem 0 1rem; }
.qz-stats div { background: #f6f8ff; border-radius: 12px; padding: .55rem .2rem; font-size: .78rem; color: var(--vr-muted); }
.qz-stats .n { display: block; font-size: 1.25rem; font-weight: 800; color: var(--vr-ink); }
.qz-stats .n.ok { color: var(--vr-green); } .qz-stats .n.bad { color: var(--vr-red); }
.qz-actions { display: flex; flex-direction: column; gap: .5rem; }
.qz-join { margin-top: 1rem; padding: .9rem; border-radius: 14px; background: #fff8db; border: 1px solid #ffe08a; color: #6b4e00; display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.qz-review { padding: 1rem; }
.qz-review-head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.qz-filter { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.qz-filter button { flex: 0 0 auto; border: 1.5px solid var(--vr-line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: .84rem; color: var(--vr-muted); min-height: 36px; cursor: pointer; }
.qz-filter button.active { background: var(--vr-grad); color: #fff; border-color: transparent; }
.qz-rv { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.qz-rv-i { border: 1.5px solid var(--vr-line); border-left-width: 5px; border-radius: 12px; padding: .75rem .85rem; }
.qz-rv-i.ok { border-left-color: #22a35a; } .qz-rv-i.bad { border-left-color: #ef6b5b; } .qz-rv-i.skip { border-left-color: #b9c4dd; }
.qz-rv-h { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--vr-muted); margin-bottom: .3rem; }
.qz-rv-i.ok .st { color: var(--vr-green); } .qz-rv-i.bad .st { color: var(--vr-red); }
.qz-rv .qz-text { font-size: 1rem; margin-bottom: .45rem; }
.qz-rv-o { list-style: none; padding: 0; margin: 0 0 .4rem; display: flex; flex-direction: column; gap: .25rem; font-size: .93rem; }
.qz-rv-o li { padding: .3rem .55rem; border-radius: 8px; }
.qz-rv-o li b { color: var(--vr-blue); margin-right: .2rem; }
.qz-rv-o li.right { background: #e9f9ef; color: #166534; font-weight: 700; }
.qz-rv-o li.picked { background: #fdecee; color: #b42318; text-decoration: line-through; text-decoration-color: rgba(180, 35, 24, .4); }
.qz-rv-o li.picked small { text-decoration: none; }
.qz-exp { font-size: .9rem; margin: 0; color: var(--vr-text); background: #f8faff; border-radius: 8px; padding: .45rem .6rem; }
@media (min-width: 576px) {
    .qz-opts { grid-template-columns: 1fr 1fr; }
    .qz-cells { grid-template-columns: repeat(10, 1fr); }
    .qz-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .qz-review-head { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Saved questions (bookmarks) ---------- */
.qz-note { background: #eef4ff; color: #1e3a8a; border-radius: 10px; padding: .5rem .7rem; font-size: .88rem; text-align: left; margin: .5rem 0; }
.qz-note a { font-weight: 700; }
.qz-mk { color: #f59f00; margin-left: .25rem; }
.qz-star { margin-top: .5rem; border: 1.5px solid var(--vr-line); background: #fff; color: var(--vr-muted); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 700; min-height: 36px; cursor: pointer; }
.qz-star.on { background: #fff4cc; border-color: #ffd43b; color: #7a5a00; }
.qz-star:disabled { opacity: .6; }
.sv-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.sv-head .qz-star { margin-top: 0; }
.sv-item { transition: opacity .2s; }
.vr-chip.sv-on { background: var(--vr-grad); color: #fff; }
.db-saved { background: #fffbea; border-color: #ffe08a; margin-bottom: .6rem; }

/* =====================================================================
   PROFILE (/student-profile) + SETTINGS (/student-update-profile)
   ===================================================================== */
.pf-hero { padding: 1.1rem 0 3.4rem; }
.pf-hero-sm { padding-bottom: 3rem; }
.pf-id { display: flex; align-items: center; gap: 1rem; }
.pf-avatar {
    flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .16); border: 3px solid rgba(255, 255, 255, .55); color: #fff;
    font-family: var(--vr-font-display); font-size: 1.9rem; font-weight: 800;
}
.pf-avatar.is-premium { border-color: var(--vr-gold); box-shadow: 0 0 0 4px rgba(255, 215, 0, .25); }
.pf-name { color: #fff; font-size: 1.55rem; margin: 0 0 .15rem; line-height: 1.3; word-break: break-word; }
.pf-handle { color: rgba(255, 255, 255, .82); font-size: .88rem; margin: 0 0 .5rem; }
.pf-wrap { margin-top: -2.2rem; position: relative; z-index: 2; padding-bottom: 2rem; }
.pf-settings { max-width: 860px; }
.pf-card { padding: 1rem 1.05rem; margin-bottom: 1rem; }
.pf-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.pf-edit { font-size: .86rem; font-weight: 700; color: var(--vr-blue); text-decoration: none; white-space: nowrap; }
.pf-edit:hover { text-decoration: underline; }
.pf-sub { font-family: var(--vr-font); font-size: .82rem; font-weight: 800; letter-spacing: .02em; color: var(--vr-muted); text-transform: uppercase; margin: 1rem 0 .4rem; }
.pf-list { margin: 0; }
.pf-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--vr-line); font-size: .93rem; }
.pf-row:last-child { border-bottom: 0; }
.pf-row dt { font-weight: 600; color: var(--vr-muted); flex: 0 0 auto; }
.pf-row dt i { width: 1.15rem; color: var(--vr-violet); text-align: center; }
.pf-row dd { margin: 0; text-align: right; font-weight: 600; color: var(--vr-ink); word-break: break-word; }
.pf-row dd.pf-empty { color: #a0a8b8; font-weight: 400; font-style: italic; }
.pf-big { font-family: var(--vr-font-display); font-size: 1.2rem; font-weight: 800; color: var(--vr-ink); margin: .2rem 0 .4rem; }
.pf-note { font-size: .86rem; color: var(--vr-muted); margin: 0 0 .6rem; display: block; }
.pf-more { font-size: .88rem; font-weight: 700; color: var(--vr-blue); text-decoration: none; display: inline-block; margin-top: .5rem; }
.pf-complete { border-left: 4px solid var(--vr-gold-2); }
.pf-complete-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pf-meter { height: 10px; background: #eef1f8; border-radius: 999px; overflow: hidden; margin: .55rem 0 .6rem; }
.pf-meter span { display: block; height: 100%; background: var(--vr-grad); border-radius: 999px; }
.pf-req { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .86rem; background: #f6f8fd; border-radius: 10px; padding: .5rem .65rem; margin-top: .7rem; }
.pf-st { font-size: .76rem; font-weight: 800; padding: .15rem .6rem; border-radius: 999px; white-space: nowrap; background: #eef1f8; color: var(--vr-muted); }
.pf-st-pending { background: #fff4d6; color: #8a5a00; }
.pf-st-ok { background: #e3f6ea; color: #146c43; }
.pf-st-no { background: #fde8ea; color: #b02a37; }
.pf-plan.is-premium { background: linear-gradient(160deg, #fffdf2 0%, #fff 60%); border-color: #ffe08a; }
.pf-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; text-align: center; margin: .4rem 0 .5rem; }
.pf-nums div { background: #f6f8fd; border-radius: 12px; padding: .5rem .2rem; }
.pf-nums strong { display: block; font-family: var(--vr-font-display); font-size: 1.2rem; color: var(--vr-ink); }
.pf-nums span { font-size: .76rem; color: var(--vr-muted); }
.pf-logout { margin-bottom: 1rem; }
.pf-alert { display: flex; gap: .55rem; align-items: flex-start; border-radius: 12px; padding: .7rem .85rem; margin-bottom: 1rem; font-size: .93rem; font-weight: 600; box-shadow: var(--vr-shadow); }
.pf-alert i { margin-top: .25rem; }
.pf-alert.ok { background: #e9f9ef; color: #0f5132; border: 1px solid #b7e4c7; }
.pf-alert.err { background: #fdecee; color: #842029; border: 1px solid #f5c2c7; }

/* settings tabs */
.pf-tabs {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; background: #fff; border: 1px solid var(--vr-line);
    border-radius: 14px; box-shadow: var(--vr-shadow); padding: .3rem; margin-bottom: 1rem; position: sticky; top: 60px; z-index: 15;
}
.pf-tab { display: flex; flex-direction: column; align-items: center; gap: .1rem; border-radius: 10px; padding: .45rem .2rem; text-decoration: none; color: var(--vr-muted); font-weight: 700; font-size: .85rem; min-height: 48px; justify-content: center; }
.pf-tab:hover { color: var(--vr-blue); background: #f3f6ff; }
.pf-tab.active { background: var(--vr-grad); color: #fff; box-shadow: 0 3px 10px rgba(13, 110, 253, .25); }
@media (min-width: 576px) { .pf-tab { flex-direction: row; gap: .4rem; font-size: .93rem; } }
.pf-panel { display: none; }
.pf-panel.active { display: block; }
.pf-settings .form-label { font-weight: 700; font-size: .9rem; color: var(--vr-ink); margin-bottom: .3rem; }
.pf-settings .form-control, .pf-settings .form-select { min-height: 46px; border-radius: 10px; border-color: #d5dcea; font-size: 1rem; }
.pf-settings textarea.form-control { min-height: 0; }
.pf-settings .form-control:focus, .pf-settings .form-select:focus { border-color: var(--vr-blue); box-shadow: 0 0 0 3px rgba(13, 110, 253, .15); }
.pf-req-mark { color: var(--vr-red); }
.pf-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.1rem; }
.pf-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.pf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pf-seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1.5px solid #d5dcea; border-radius: 10px; cursor: pointer; font-weight: 600; }
.pf-seg input:checked + span { border-color: var(--vr-blue); background: #eef4ff; color: var(--vr-blue); }
.pf-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(13, 110, 253, .25); }
.pf-lock { display: flex; justify-content: space-between; align-items: center; background: #f6f8fd; border-radius: 12px; padding: .7rem .9rem; margin: .4rem 0 .7rem; }
.pf-lock > i { font-size: 1.4rem; color: var(--vr-gold-2); }
.pf-form-box { border-top: 1px dashed var(--vr-line); padding-top: .9rem; margin-top: .4rem; }
.pf-box { border-radius: 12px; padding: .7rem .85rem; font-size: .9rem; margin-bottom: .8rem; }
.pf-box.warn { background: #fff8e6; border: 1px solid #ffe3a3; color: #6b4b00; }
.pf-box.ok { background: #e9f9ef; border: 1px solid #b7e4c7; color: #0f5132; }
.pf-hist { list-style: none; padding: 0; margin: .3rem 0 0; }
.pf-hist li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--vr-line); font-size: .92rem; }
.pf-hist li:last-child { border-bottom: 0; }
.pf-hist .pf-note { margin: 0; font-size: .8rem; }
.pf-narrow { max-width: 440px; }
.pf-pw { position: relative; }
.pf-pw .form-control { padding-right: 3rem; }
.pf-eye { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--vr-muted); width: 40px; height: 40px; border-radius: 8px; }
/* payment steps */
.pf-steps { list-style: none; counter-reset: pf; padding: 0; margin: .6rem 0 0; }
.pf-steps > li { counter-increment: pf; position: relative; padding: 0 0 1.1rem 2.6rem; }
.pf-steps > li::before {
    content: counter(pf); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--vr-grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.pf-steps > li:not(:last-child)::after { content: ''; position: absolute; left: .93rem; top: 2.1rem; bottom: .2rem; width: 2px; background: var(--vr-line); }
.pf-step-h { font-family: var(--vr-font); font-size: 1rem; font-weight: 800; color: var(--vr-ink); margin: .2rem 0 .6rem; }
.pf-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
@media (min-width: 576px) { .pf-plans { grid-template-columns: repeat(4, 1fr); } }
.pf-plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pf-plan-opt span { display: flex; flex-direction: column; align-items: center; border: 1.5px solid #d5dcea; border-radius: 12px; padding: .55rem .3rem; cursor: pointer; text-align: center; height: 100%; }
.pf-plan-opt strong { font-family: var(--vr-font-display); font-size: 1.2rem; color: var(--vr-ink); }
.pf-plan-opt small { color: var(--vr-muted); font-weight: 600; }
.pf-plan-opt em { font-style: normal; font-size: .7rem; font-weight: 800; color: #8a5a00; background: #fff4d6; border-radius: 999px; padding: 0 .45rem; margin-top: .2rem; }
.pf-plan-opt input:checked + span { border-color: var(--vr-gold-2); background: #fffbea; box-shadow: 0 0 0 3px rgba(255, 193, 7, .25); }
.pf-plan-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(13, 110, 253, .3); }
.pf-mode { display: flex; flex-direction: column; gap: .3rem; margin: .7rem 0 .3rem; font-size: .92rem; }
.pf-mode label { display: flex; gap: .45rem; align-items: center; cursor: pointer; }
.pf-mode input { width: 1.1rem; height: 1.1rem; accent-color: var(--vr-blue); }
.pf-amt { color: #d12053; }
.pf-bkash { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; background: #fdf0f5; border: 1.5px dashed #e2136e; border-radius: 12px; padding: .6rem .8rem; margin-bottom: .5rem; }
.pf-bkash-type { font-size: .78rem; font-weight: 800; color: #fff; background: #e2136e; border-radius: 999px; padding: .1rem .55rem; }
.pf-bkash-no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 800; color: var(--vr-ink); letter-spacing: .04em; }
.pf-mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }

/* =====================================================================
   MODEL TESTS — card (.mtx) used on /model-tests, test pages, hubs, home
   ===================================================================== */
.mtx {
    display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--vr-line);
    border-radius: 14px; padding: .7rem .75rem; text-decoration: none; color: var(--vr-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0;
}
.mtx:hover { transform: translateY(-2px); box-shadow: var(--vr-shadow-h); border-color: #c9d6f5; color: var(--vr-text); }
.mtx-num {
    flex: 0 0 52px; height: 52px; border-radius: 12px; background: var(--vr-grad); color: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-family: var(--vr-font-display); font-size: 1.3rem; font-weight: 800; line-height: 1;
}
.mtx-num small { font-family: var(--vr-font); font-size: .6rem; font-weight: 700; opacity: .85; margin-bottom: .15rem; }
.mtx-num.prem { background: linear-gradient(135deg, #f59f00, #e8590c); }
.mtx.is-done .mtx-num { background: linear-gradient(135deg, #20c997, #198754); }
.mtx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.mtx-title { font-weight: 700; font-size: .95rem; line-height: 1.35; color: var(--vr-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mtx-meta { display: flex; flex-wrap: wrap; gap: .15rem .7rem; font-size: .8rem; color: var(--vr-muted); }
.mtx-meta i { opacity: .8; }
.mtx-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.mtx-tag { font-size: .72rem; font-weight: 800; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; }
.mtx-tag.free { background: #dcfce7; color: #166534; }
.mtx-tag.prem { background: #fff3cd; color: #8a5a00; }
.mtx-tag.done { background: #d1f2e4; color: #0f5132; }
.mtx-go { width: 30px; height: 30px; border-radius: 50%; background: #eef3ff; color: var(--vr-blue); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.mtx:hover .mtx-go { background: var(--vr-grad); color: #fff; }
.mtx.mtx-sm { padding: .55rem .6rem; gap: .6rem; box-shadow: none; }
.mtx.mtx-sm .mtx-num { flex-basis: 42px; height: 42px; font-size: 1.05rem; }
.mtx.mtx-sm .mtx-title { font-size: .88rem; }
.mtx.mtx-sm .mtx-go { display: none; }
.mtx-list { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 .3rem; }
.mtx-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 768px) { .mtx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .mtx-grid { grid-template-columns: repeat(3, 1fr); } }
.mt-grid .mtx { align-self: stretch; }
@media (max-width: 575.98px) { .mt-grid .mtx { flex: 0 0 86%; scroll-snap-align: start; } }

/* ---------- /model-tests listing ---------- */
.ml-hero { padding: 1.1rem 0 3.2rem; }
.ml-h1 { color: #fff; font-size: 1.55rem; line-height: 1.35; margin: 0 0 .45rem; }
.ml-sub { color: rgba(255, 255, 255, .9); margin: 0 0 .8rem; font-size: .98rem; }
.ml-cta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; }
.ml-progress { color: rgba(255, 255, 255, .92); font-size: .9rem; font-weight: 600; }
.ml-progress .bar { display: block; width: 180px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .25); margin-top: .3rem; overflow: hidden; }
.ml-progress .bar span { display: block; height: 100%; background: var(--vr-gold); }
.ml-wrap { margin-top: -2rem; position: relative; z-index: 2; padding-bottom: 1.5rem; }
.ml-filter { position: sticky; top: 60px; z-index: 14; background: #fff; border: 1px solid var(--vr-line); border-radius: 14px; box-shadow: var(--vr-shadow); padding: .55rem .65rem; margin-bottom: 1rem; }
.ml-frow { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ml-frow::-webkit-scrollbar { display: none; }
.ml-frow + .ml-frow { margin-top: .4rem; padding-top: .4rem; border-top: 1px dashed var(--vr-line); }
.ml-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem; min-height: 38px; padding: .3rem .85rem; border-radius: 999px; background: #f1f4fb; color: var(--vr-text); font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.ml-pill small { font-weight: 600; opacity: .7; }
.ml-pill:hover { background: #e4ebfb; color: var(--vr-blue); }
.ml-pill.active { background: var(--vr-grad); color: #fff; box-shadow: 0 3px 10px rgba(13, 110, 253, .25); }
.ml-pill.active small { opacity: .85; }
.ml-pill.is-empty { background: #f7f8fc; color: #8a93a6; font-weight: 600; }
.ml-pill.is-empty small { font-size: .7rem; }
.ml-pill.is-empty.active { background: #dfe6f7; color: var(--vr-ink); box-shadow: none; }
.ml-sec-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1.2rem 0 .6rem; }
.ml-sec-h h2 { font-family: var(--vr-font); font-size: 1.12rem; font-weight: 800; color: var(--vr-ink); margin: 0; }
.ml-sec-h h2 i.free { color: var(--vr-green); }
.ml-sec-h h2 i.prem { color: var(--vr-gold-2); }
.ml-count { font-size: .82rem; font-weight: 700; color: var(--vr-muted); background: #fff; border: 1px solid var(--vr-line); border-radius: 999px; padding: .1rem .6rem; }
.ml-more-btn { display: block; width: 100%; margin-top: .7rem; }
.mtx-grid .mtx.is-extra { display: none; }
.mtx-grid.show-all .mtx.is-extra { display: flex; }
.ml-upsell { display: flex; gap: .9rem; align-items: center; background: linear-gradient(135deg, #fff8e1, #fff); border: 1px solid #ffe08a; border-radius: 14px; padding: .9rem 1rem; margin-top: .9rem; }
.ml-upsell > i { font-size: 1.8rem; color: var(--vr-gold-2); }
.ml-upsell p { margin: 0; font-size: .9rem; }
.ml-how { display: grid; grid-template-columns: 1fr; gap: .6rem; counter-reset: h; }
@media (min-width: 768px) { .ml-how { grid-template-columns: repeat(3, 1fr); } }
.ml-how li { list-style: none; background: #fff; border: 1px solid var(--vr-line); border-radius: 14px; padding: .8rem .9rem .8rem 3.1rem; position: relative; font-size: .92rem; counter-increment: h; }
.ml-how li::before { content: counter(h); position: absolute; left: .85rem; top: .8rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--vr-grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.ml-how strong { display: block; color: var(--vr-ink); }
.ml-seo { padding: 1rem 1.05rem; margin-top: 1rem; }
.ml-seo h2 { font-family: var(--vr-font); font-size: 1.1rem; font-weight: 800; color: var(--vr-ink); margin: 0 0 .5rem; }
.ml-seo h3 { font-family: var(--vr-font); font-size: .98rem; font-weight: 800; color: var(--vr-ink); margin: .8rem 0 .3rem; }
.ml-seo ul { padding-left: 1.2rem; margin-bottom: .4rem; font-size: .93rem; }
.ml-seo p { font-size: .93rem; }
.ml-classlinks { display: flex; flex-wrap: wrap; gap: .4rem; }
.ml-empty { text-align: center; padding: 1.5rem 1rem; }
.ml-updated { text-align: center; font-size: .78rem; color: var(--vr-muted); margin: 1rem 0 0; }

/* ---------- /model-test-play ---------- */
.mp-hero { padding: 1.1rem 0 3.2rem; }
.mp-h1 { color: #fff; font-size: 1.45rem; line-height: 1.35; margin: 0 0 .35rem; }
.mp-draft { display: inline-block; background: #fff3cd; color: #6b4b00; font-weight: 700; font-size: .82rem; border-radius: 8px; padding: .15rem .6rem; margin-bottom: .4rem; }
.vr-hero .dm-status-free { background: #d1f2e4; color: #0f5132; }
.mp-wrap { margin-top: -2rem; position: relative; z-index: 2; padding-bottom: 1.5rem; }
.mp-start { padding: 1rem; margin-bottom: 1rem; }
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-bottom: .9rem; text-align: center; }
.mp-stats > div { background: #f6f8fd; border-radius: 12px; padding: .55rem .2rem; display: flex; flex-direction: column; align-items: center; }
.mp-stats i { color: var(--vr-violet); font-size: .95rem; }
.mp-stats strong { font-family: var(--vr-font-display); font-size: 1.3rem; color: var(--vr-ink); line-height: 1.2; }
.mp-stats span { font-size: .78rem; color: var(--vr-muted); }
.mp-last { background: #e9f9ef; color: #0f5132; border-radius: 10px; padding: .5rem .7rem; font-size: .88rem; margin-bottom: .7rem; }
.mp-hint { font-size: .8rem; color: var(--vr-muted); margin: .55rem 0 0; text-align: center; }
.mp-card { padding: 1rem 1.05rem; margin-bottom: 1rem; }
.mp-desc { font-size: .94rem; margin-bottom: .6rem; }
.mp-steps { padding-left: 1.2rem; font-size: .93rem; margin-bottom: .6rem; }
.mp-steps li { margin-bottom: .35rem; }
.mp-pn { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.mp-pn a { padding: .7rem .8rem; text-decoration: none; color: var(--vr-text); display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.mp-pn a.next { text-align: right; }
.mp-pn span { font-size: .78rem; font-weight: 700; color: var(--vr-blue); }
.mp-pn strong { font-size: .86rem; line-height: 1.35; color: var(--vr-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-join { background: linear-gradient(160deg, #f3f6ff, #fff); }
.mp-hub { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; text-decoration: none; color: var(--vr-ink); font-weight: 700; font-size: .92rem; margin-bottom: 1rem; }
.mp-hub > i:first-child { color: var(--vr-gold-2); }
.mp-hub span { flex: 1; }
/* full-screen test mode */
html.mp-lock, html.mp-lock body { overflow: hidden; }
.mp-play { position: fixed; inset: 0; z-index: 2000; background: #eef2fb; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.mp-play[hidden] { display: none; }
.mp-bar { flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; background: var(--vr-grad); color: #fff; min-height: 50px; }
.mp-exit { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; border-radius: 999px; padding: .3rem .8rem; min-height: 38px; font-size: .88rem; }
.mp-bar-title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.mp-timer { flex: 0 0 auto; background: rgba(0, 0, 0, .18); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.mp-timer.over { background: #ffc107; color: var(--vr-ink); }
.mp-frame-wrap { flex: 1; min-height: 0; position: relative; background: #fff; }
.mp-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
@media (min-width: 992px) {
    .mp-frame-wrap { margin: .75rem auto; width: calc(100% - 1.5rem); max-width: 1100px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(13, 110, 253, .12); }
}
.mp-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; color: var(--vr-muted); background: #fff; z-index: 2; transition: opacity .3s; text-align: center; padding: 1rem; }
.mp-loading.hidden { opacity: 0; pointer-events: none; }
.mp-spin { width: 44px; height: 44px; border: 4px solid #e0e8ff; border-top-color: var(--vr-blue); border-radius: 50%; animation: mpspin 1s linear infinite; }
@keyframes mpspin { to { transform: rotate(360deg); } }
.mp-confirm { position: absolute; inset: 0; background: rgba(10, 16, 40, .55); display: flex; align-items: center; justify-content: center; z-index: 5; padding: 1rem; }
.mp-confirm[hidden] { display: none; }
.mp-confirm-box { background: #fff; border-radius: 16px; padding: 1.1rem; max-width: 360px; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.mp-confirm-box p { font-size: .95rem; }
a.ml-count { text-decoration: none; color: var(--vr-blue); }
a.ml-count:hover { background: #eef3ff; }
.ml-classlinks .vr-chip { text-decoration: none; }
.ml-count { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 575.98px) { .ml-upsell { flex-wrap: wrap; } .ml-upsell > div { flex-basis: calc(100% - 3rem); } .ml-upsell .vr-btn { width: 100%; } }

/* =====================================================================
   GAMES — card (.gm-card) on /games, game pages, class hubs, home
   ===================================================================== */
.gm-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 768px) { .gm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .gm-grid { grid-template-columns: repeat(3, 1fr); } }
.gm-card {
    --g: #6610f2; display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--vr-line);
    border-radius: 16px; padding: .7rem .75rem; text-decoration: none; color: var(--vr-text); min-width: 0;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.gm-card:hover { transform: translateY(-2px); box-shadow: var(--vr-shadow-h); border-color: #c9d6f5; color: var(--vr-text); }
.gm-art {
    flex: 0 0 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 45%), var(--g);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), 0 4px 12px color-mix(in srgb, var(--g) 35%, transparent);
}
.gm-card.is-locked .gm-art { filter: saturate(.55); }
.gm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.gm-title { font-weight: 800; font-size: .98rem; line-height: 1.3; color: var(--vr-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gm-topic { font-size: .8rem; color: var(--vr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-meta { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .15rem; }
.gm-pill { font-size: .7rem; font-weight: 700; background: #f1f4fb; color: #475569; border-radius: 999px; padding: .05rem .5rem; white-space: nowrap; }
.gm-pill.free { background: #dcfce7; color: #166534; }
.gm-pill.prem { background: #fff3cd; color: #8a5a00; }
.gm-play { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef3ff; color: var(--vr-blue); font-size: .85rem; }
.gm-card:hover .gm-play { background: var(--vr-grad); color: #fff; }
.gm-card.gm-sm { padding: .5rem .55rem; gap: .6rem; }
.gm-card.gm-sm .gm-art { flex-basis: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
.gm-card.gm-sm .gm-title { font-size: .9rem; }
.gm-card.gm-sm .gm-play { display: none; }
.gm-list { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 .3rem; }
.gm-subj { font-family: var(--vr-font); font-size: .9rem; font-weight: 800; color: var(--vr-muted); margin: .4rem 0 .45rem; }
.gm-hero { padding: 1.1rem 0 3.2rem; }
.ml-sec-h h2 i.prem { color: var(--vr-gold-2); }
/* hubs / home use .vr-games for game cards */
.vr-games .gm-card { height: 100%; }

/* ---------- model test question paper (mq-) + SSC English 2nd paper page (se-) ---------- */
.mq-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.mq-top .db-h { margin: 0; }
.mq-paper { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, var(--vr-font); font-size: .95rem; color: var(--vr-text); }
.mq-part { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--vr-grad); color: #fff; border-radius: 10px; padding: .5rem .8rem; margin: 1.1rem 0 .6rem; }
.mq-part span { font-size: .82rem; opacity: .9; white-space: nowrap; }
.mq-sec { border: 1px solid var(--vr-line); border-radius: 12px; padding: .8rem .9rem; margin-bottom: .7rem; background: #fff; scroll-margin-top: 80px; }
.mq-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; font-size: 1rem; font-weight: 700; color: var(--vr-ink); margin: 0 0 .5rem; line-height: 1.4; font-family: inherit; }
.mq-m { flex: 0 0 auto; font-size: .75rem; font-weight: 700; background: #fff3cd; color: #6b4b00; border-radius: 999px; padding: .1rem .55rem; margin-top: .1rem; }
.mq-inst { font-size: .88rem; color: var(--vr-muted); font-style: italic; margin: 0 0 .5rem; }
.mq-p { margin: 0 0 .5rem; }
.mq-pas { background: #f8faff; border-left: 3px solid var(--vr-blue); border-radius: 0 8px 8px 0; padding: .6rem .75rem; line-height: 1.75; margin: 0 0 .6rem; }
.mq-words { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem; margin: 0 0 .6rem; background: #f3f6ff; border: 1px dashed #c9d6f5; border-radius: 10px; }
.mq-words li { background: #fff; border: 1px solid var(--vr-line); border-radius: 999px; padding: .1rem .6rem; font-size: .86rem; font-weight: 600; }
.mq-opts-shared li { border-radius: 8px; font-weight: 500; }
.mq-qs { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-direction: column; gap: .35rem; }
.mq-qs li { line-height: 1.6; }
.mq-n { color: var(--vr-blue); margin-right: .15rem; }
.mq-o { color: var(--vr-muted); font-size: .86rem; }
.mq-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: .6rem; }
.mq-tbl th, .mq-tbl td { border: 1px solid var(--vr-line); padding: .35rem .5rem; vertical-align: top; }
.mq-tbl th { background: #f3f6ff; }
.mq-ans { border-top: 1px dashed var(--vr-line); padding-top: .45rem; }
.mq-ans summary { cursor: pointer; font-weight: 700; color: var(--vr-green); font-family: var(--vr-font); font-size: .9rem; list-style: none; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: #e9f9ef; min-height: 34px; }
.mq-ans summary::-webkit-details-marker { display: none; }
.mq-ans[open] summary { background: #d1f2e4; }
.mq-ans-body { margin-top: .55rem; background: #f6fdf9; border: 1px solid #cdeedd; border-radius: 10px; padding: .6rem .75rem; }
.mq-alist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.mq-ans.is-long .mq-alist { flex-direction: column; gap: .5rem; }
.mq-alist b { color: var(--vr-green); }
.mq-model { white-space: normal; line-height: 1.7; }
.mq-cta { margin-top: 1rem; text-align: center; background: #f3f6ff; border-radius: 12px; padding: .9rem; }
.mq-cta p { font-size: .92rem; margin-bottom: .6rem; }
.mq-topics { padding-left: 1.1rem; font-size: .92rem; margin-bottom: .6rem; }
.mq-topics li { margin-bottom: .2rem; }
.se-hero .vr-hero-sub { max-width: 760px; }
.se-sec { padding: 1.1rem 1.1rem; margin-bottom: 1rem; }
.se-sec h2 { font-family: var(--vr-font); font-size: 1.2rem; font-weight: 800; color: var(--vr-ink); margin: 0 0 .5rem; }
.se-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.se-tbl th, .se-tbl td { border-bottom: 1px solid var(--vr-line); padding: .45rem .5rem; text-align: left; vertical-align: top; }
.se-tbl th { background: #f3f6ff; font-weight: 700; }
.se-tbl td:last-child, .se-tbl th:last-child { text-align: right; white-space: nowrap; }
.se-tbl tr.se-total td { font-weight: 800; border-bottom: 0; }
.se-types { display: grid; grid-template-columns: 1fr; gap: .7rem; }
@media (min-width: 768px) { .se-types { grid-template-columns: repeat(2, 1fr); } }
.se-type { border: 1px solid var(--vr-line); border-radius: 12px; padding: .75rem .85rem; background: #fff; }
.se-type h3 { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, var(--vr-font); font-size: 1rem; font-weight: 700; margin: 0 0 .3rem; color: var(--vr-ink); }
.se-type p { font-size: .9rem; margin: 0 0 .35rem; }
.se-ex { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: .86rem; background: #f8faff; border-left: 3px solid var(--vr-violet); border-radius: 0 8px 8px 0; padding: .4rem .6rem; margin: 0; }
.se-ex b { color: var(--vr-green); }
.se-topic-tbl td:first-child { white-space: nowrap; font-weight: 700; }
.se-topic-tbl td:last-child { text-align: left; white-space: normal; }
.se-topic-tbl a { font-weight: 600; }
.se-tips { padding-left: 1.2rem; margin: 0; }
.se-tips li { margin-bottom: .45rem; }
.se-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; max-width: 520px; }
.se-stat div { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: .5rem; text-align: center; color: #fff; }
.se-stat strong { display: block; font-family: var(--vr-font-display); font-size: 1.35rem; line-height: 1.2; }
.se-stat span { font-size: .78rem; opacity: .9; }

/* ---------- /games/play ---------- */
.gp-hero { padding: 1.1rem 0 3.2rem; }
.gp-head { display: flex; gap: .85rem; align-items: center; }
.gp-icon { --g: #6610f2; flex: 0 0 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #fff;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 45%), var(--g); border: 3px solid rgba(255, 255, 255, .5); }
.gp-wrap { margin-top: -2rem; position: relative; z-index: 2; padding-bottom: 1.5rem; }
.gp-stage { background: #fff; border: 1px solid var(--vr-line); border-radius: 18px; box-shadow: var(--vr-shadow); overflow: hidden; }
.gp-bar { display: flex; align-items: center; gap: .4rem; padding: .45rem .55rem .45rem .85rem; border-bottom: 1px solid var(--vr-line); background: #fafbff; }
.gp-bar-title { flex: 1; min-width: 0; font-weight: 700; font-size: .9rem; color: var(--vr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-bar-title i { color: var(--vr-violet); }
.gp-btn { border: 1px solid var(--vr-line); background: #fff; color: var(--vr-text); border-radius: 999px; padding: .25rem .7rem; min-height: 36px; font-weight: 700; font-size: .84rem; }
.gp-btn:hover { border-color: var(--vr-blue); color: var(--vr-blue); }
@media (max-width: 400px) { .gp-btn span { display: none; } }
.gp-frame { position: relative; min-height: 340px; }
.gp-frame iframe { display: block; width: 100%; height: 520px; border: 0; background: transparent; }
.gp-stage.is-full { position: fixed; inset: 0; z-index: 2000; border-radius: 0; display: flex; flex-direction: column; background: #0f172a; }
.gp-stage.is-full .gp-frame { flex: 1; min-height: 0; }
.gp-stage.is-full iframe { height: 100% !important; }
.gp-stage.is-full .gp-bar { background: var(--vr-grad); border: 0; }
.gp-stage.is-full .gp-bar-title, .gp-stage.is-full .gp-bar-title i { color: #fff; }
.gp-next { display: flex; flex-wrap: wrap; gap: .45rem; }

/* =====================================================================
   PREMIUM (/premium-packages)
   ===================================================================== */
.pp-hero { padding: 1.1rem 0 3.4rem; }
.pp-h1 { color: #fff; font-size: 1.6rem; line-height: 1.35; margin: 0 0 .45rem; }
.pp-h1 .gold { color: var(--vr-gold); }
.pp-crown { display: inline-block; animation: ppbob 2.4s ease-in-out infinite; }
@keyframes ppbob { 50% { transform: translateY(-3px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .pp-crown { animation: none; } }
.pp-welcome { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 12px; padding: .55rem .8rem; font-weight: 600; margin-bottom: .7rem; }
.pp-status { margin-top: .9rem; border-radius: 12px; padding: .6rem .8rem; font-weight: 600; font-size: .92rem; }
.pp-status.ok { background: var(--vr-gold); color: var(--vr-ink); }
.pp-status.wait { background: #fff4d6; color: #6b4b00; }
.pp-status a { color: inherit; font-weight: 800; }
.pp-wrap { margin-top: -2.3rem; position: relative; z-index: 2; padding-bottom: 1.5rem; }
.pp-plans { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 576px) { .pp-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pp-plans { grid-template-columns: repeat(4, 1fr); } }
.pp-plan { position: relative; background: #fff; border: 1.5px solid var(--vr-line); border-radius: 18px; padding: 1.2rem 1rem 1rem; box-shadow: var(--vr-shadow); display: flex; flex-direction: column; text-align: center; }
.pp-plan.is-best { border: 2px solid var(--vr-gold-2); box-shadow: 0 10px 30px rgba(255, 193, 7, .28); background: linear-gradient(180deg, #fffbea 0%, #fff 45%); }
@media (min-width: 1100px) { .pp-plan.is-best { transform: translateY(-6px); } }
.pp-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--vr-grad); color: #fff; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: .2rem .8rem; white-space: nowrap; box-shadow: 0 4px 10px rgba(102, 16, 242, .3); }
.pp-plan.is-best .pp-badge { background: linear-gradient(135deg, #ffc107, #f59f00); color: var(--vr-ink); }
.pp-name { font-family: var(--vr-font); font-size: 1rem; font-weight: 800; color: var(--vr-muted); margin: .2rem 0 .3rem; }
.pp-price { font-family: var(--vr-font-display); font-size: 2.4rem; font-weight: 800; color: var(--vr-ink); line-height: 1.1; }
.pp-price .cur { font-size: 1.3rem; vertical-align: top; margin-right: .1rem; }
.pp-price .per { font-family: var(--vr-font); font-size: .85rem; font-weight: 600; color: var(--vr-muted); margin-left: .2rem; }
.pp-pm { margin: .35rem 0 .2rem; font-size: .92rem; color: var(--vr-text); }
.pp-pm strong { color: var(--vr-violet); font-size: 1.05rem; }
.pp-save { display: inline-block; align-self: center; background: #dcfce7; color: #166534; font-weight: 800; font-size: .8rem; border-radius: 999px; padding: .1rem .65rem; margin: 0 0 .85rem; }
.pp-save.muted { background: #f1f4fb; color: var(--vr-muted); font-weight: 600; }
.pp-plan .vr-btn { margin-top: auto; }
.pp-plan .vr-btn.disabled { pointer-events: none; opacity: .7; }
.pp-days { font-size: .78rem; color: var(--vr-muted); margin: .45rem 0 0; }
.pp-note { font-size: .88rem; color: var(--vr-muted); margin: .9rem 0 0; }
.pp-note i { color: var(--vr-violet); }
.pp-card { padding: 1.1rem; margin-top: 1.2rem; }
.pp-h2 { font-family: var(--vr-font); font-size: 1.15rem; font-weight: 800; color: var(--vr-ink); margin: 0 0 .7rem; }
.pp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.pp-table th, .pp-table td { padding: .6rem .55rem; border-bottom: 1px solid var(--vr-line); vertical-align: middle; }
.pp-table thead th { font-size: .85rem; color: var(--vr-muted); font-weight: 800; border-bottom: 2px solid var(--vr-line); }
.pp-table tbody th { font-weight: 600; color: var(--vr-ink); }
.pp-table td { text-align: center; color: var(--vr-muted); white-space: nowrap; }
.pp-table thead th:not(:first-child) { text-align: center; }
.pp-table .prem { background: #fffbea; color: var(--vr-ink); }
.pp-table thead .prem { background: linear-gradient(135deg, #ffc107, #f59f00); color: var(--vr-ink); border-radius: 10px 10px 0 0; }
.pp-table .fa-check { color: var(--vr-green); }
@media (max-width: 575.98px) { .pp-table td { white-space: normal; font-size: .84rem; } .pp-table tbody th { font-size: .86rem; } }
.pp-feats { display: grid; grid-template-columns: 1fr; gap: .7rem; }
@media (min-width: 768px) { .pp-feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pp-feats { grid-template-columns: repeat(4, 1fr); } }
.pp-feats .vr-card { padding: 1rem; }
.pp-feats i { width: 42px; height: 42px; border-radius: 12px; background: var(--vr-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.pp-feats h3 { font-family: var(--vr-font); font-size: 1rem; font-weight: 800; color: var(--vr-ink); margin: 0 0 .25rem; }
.pp-feats p { font-size: .9rem; margin: 0; color: var(--vr-text); }
.pp-free { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; padding: .9rem 1rem; margin-top: 1.2rem; font-size: .93rem; }
@media (max-width: 575.98px) { .pp-plan.is-best { order: -1; } }

/* =====================================================================
   AUTH helper pages (/forgot-password, /reset-password)
   ===================================================================== */
.au-main { padding: 2rem 0 3rem; background: linear-gradient(180deg, #e8eeff 0%, var(--vr-bg) 40%); }
.au-card { max-width: 440px; margin: 0 auto; padding: 1.6rem 1.4rem; text-align: left; }
.au-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--vr-grad); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem; }
.au-ic.ok { background: linear-gradient(135deg, #20c997, #198754); }
.au-ic.warn { background: linear-gradient(135deg, #ffc107, #f59f00); color: var(--vr-ink); }
.au-h1 { font-size: 1.4rem; text-align: center; margin: 0 0 .4rem; color: var(--vr-ink); }
.au-p { text-align: center; color: var(--vr-text); margin-bottom: 1rem; }
.au-input { min-height: 48px; border-radius: 12px; font-size: 1rem; }
.au-tips { font-size: .9rem; padding-left: 1.2rem; margin-bottom: 1rem; }
.au-tips li { margin-bottom: .3rem; }
.au-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.au-small { text-align: center; font-size: .88rem; margin: 1rem 0 0; color: var(--vr-muted); }
.au-help { text-align: center; font-size: .8rem; color: var(--vr-muted); margin: 1.1rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--vr-line); }

/* =====================================================================
   FREE TRIAL GIFT (premium packages hero + profile premium tab)
   ===================================================================== */
.tr-gift { display: flex; gap: .8rem; align-items: flex-start; background: linear-gradient(135deg, #fff8db, #ffe9a8); border: 2px solid #ffd43b; border-radius: 16px; padding: .9rem 1rem; margin: 0 0 1rem; color: #4a3500; box-shadow: 0 8px 24px rgba(245, 159, 0, .18); }
.tr-gift.on { background: #e9f9ef; border-color: #8ce0ad; color: #0f5132; box-shadow: none; }
.tr-gift .tr-ic { font-size: 2rem; line-height: 1; flex: none; animation: trBob 2.4s ease-in-out infinite; }
.tr-gift.on .tr-ic { animation: none; }
.tr-gift b { display: block; font-size: 1.05rem; color: inherit; margin-bottom: .2rem; }
.tr-gift p { font-size: .92rem; margin: 0 0 .6rem; }
.tr-gift small { display: block; font-size: .8rem; margin-top: .5rem; opacity: .85; }
.tr-gift small a { color: #0f5132; font-weight: 700; }
.tr-gift .tr-form { margin: 0; }
.tr-gift .vr-btn { width: 100%; justify-content: center; font-size: 1.02rem; }
@media (min-width: 576px) { .tr-gift .vr-btn { width: auto; } }
.tr-hero { margin-top: 1rem; max-width: 720px; text-align: left; }
.tr-or { display: flex; align-items: center; gap: .6rem; color: var(--vr-muted); font-size: .86rem; font-weight: 600; margin: .2rem 0 1rem; }
.tr-or::before, .tr-or::after { content: ""; flex: 1; height: 1px; background: var(--vr-line); }
@keyframes trBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .tr-gift .tr-ic { animation: none; } }
.tr-gift .tr-t { flex: 1; min-width: 0; }
.tr-gift .vr-btn { white-space: normal; text-align: center; }

/* subject page: a chapter with an interactive lesson pack — the lesson link sits on its own line under the chapter */
.sp-ch.has-lp { flex-wrap: wrap; }
.sp-ch.has-lp .sp-ch-open { flex: 1 1 100%; }
.sp-lp { flex: 1 1 100%; display: flex; align-items: center; gap: .4rem; margin-top: -.15rem; padding: .45rem .8rem; border-radius: 0 0 12px 12px; background: #141a3a; color: #ffd23f; font-size: .86rem; font-weight: 600; text-decoration: none; }
.sp-lp:hover { color: #fff; background: #1d2552; }
.sp-lp i { margin-left: auto; font-size: .8em; }
.sp-ch.is-empty.has-lp .sp-ch-open { opacity: .8; }
