/* Exam system: hub, free tests, daily MCQ, packs, scholarship, analytics */
.ep-section-head { margin: 2.6rem 0 1rem; max-width: 72ch; }
.ep-section-head:first-child { margin-top: 0; }
.ep-section-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 .35rem; }
.ep-section-head p { margin: 0; }
.ep-sub { font-size: 1.15rem; margin: 2rem 0 .8rem; }
.ep-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ph-muted, var(--muted)); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.ep-lead { font-size: 1.05rem; line-height: 1.7; max-width: 70ch; }

/* My access strip */
.ep-mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--ph-line2, var(--line)); border-left: 3px solid var(--ph-magenta, var(--teal)); border-radius: 8px; background: var(--ph-surface, #fff); margin-bottom: 2rem; }
.ep-mine h2 { font-size: 1rem; margin: 0 0 .2rem; }
.ep-mine p { margin: 0; font-size: .92rem; }

/* Free tier tiles: one wide, three compact */
.ep-free { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
@media (min-width: 720px) { .ep-free { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ep-tile-wide { grid-column: 1 / -1; } }
.ep-tile { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.2rem; min-height: 44px; border: 1px solid var(--ph-line, var(--line)); border-radius: 8px; background: var(--ph-surface, #fff); color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.ep-tile:hover { border-color: var(--ph-line2, var(--teal)); transform: translateY(-2px); color: inherit; }
.ep-tile-wide { padding: 1.4rem 1.4rem; }
.ep-tile-wide strong { font-size: 1.2rem; }
.ep-tile-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--ph-surface2, var(--soft)); color: var(--ph-magenta, var(--teal)); }
.ep-tile-ic .icon { width: 20px; height: 20px; }
.ep-tile-body { flex: 1; min-width: 0; display: grid; gap: .25rem; }
.ep-tile-body strong { color: var(--ink); }
.ep-tile-body span { font-size: .92rem; overflow-wrap: anywhere; }
.ep-tile-body small { color: var(--ph-muted, var(--muted)); }
.ep-go { flex: none; width: 18px; height: 18px; margin-top: .2rem; color: var(--ph-muted, var(--muted)); }

/* Subject sets */
.ep-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: .8rem; }
.ep-subject { padding: 1rem 1.1rem; border: 1px solid var(--ph-line, var(--line)); border-radius: 8px; }
.ep-subject > strong { color: var(--ink); display: block; margin-bottom: .5rem; }
.ep-subject ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ep-subject li { display: flex; justify-content: space-between; gap: .6rem; font-size: .92rem; }
.ep-subject li a { overflow-wrap: anywhere; }
.ep-subject li small { flex: none; color: var(--ph-muted, var(--muted)); }
.ep-more { display: flex; align-items: center; gap: .35rem; margin-top: .7rem; color: var(--ph-muted, var(--muted)); }
.ep-more .icon { width: 14px; height: 14px; }

/* Paid tier: subscription card beside the pack list */
.ep-paid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 900px) { .ep-paid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); } }
.ep-sub-card { padding: 1.4rem; border: 1px solid var(--ph-line2, var(--line)); border-top: 3px solid var(--ph-magenta, var(--teal)); border-radius: 8px; background: var(--ph-surface, #fff); }
.ep-sub-card p { font-size: .92rem; margin: .6rem 0 1.1rem; }
.ep-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.ep-price b { font-size: 2rem; line-height: 1.1; color: var(--ink); }
.ep-price s { color: var(--ph-muted, var(--muted)); }
.ep-price span { color: var(--ph-muted, var(--muted)); font-size: .9rem; }
.ep-packs { display: grid; gap: .6rem; }
.ep-pack { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--ph-line, var(--line)); border-radius: 8px; color: inherit; text-decoration: none; transition: border-color .18s ease; }
.ep-pack:hover { border-color: var(--ph-line2, var(--teal)); color: inherit; }
.ep-pack img, .ep-pack-ic { flex: none; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.ep-pack-ic { display: grid; place-items: center; background: var(--ph-surface2, var(--soft)); color: var(--ph-magenta, var(--teal)); }
.ep-pack-body { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.ep-pack-body strong { color: var(--ink); overflow-wrap: anywhere; }
.ep-pack-body small { color: var(--ph-muted, var(--muted)); }
.ep-pack-price { flex: none; text-align: right; display: grid; }
.ep-pack-price b { color: var(--ink); font-size: 1.1rem; }
.ep-pack-price s { font-size: .82rem; color: var(--ph-muted, var(--muted)); }
@media (max-width: 480px) { .ep-pack { flex-wrap: wrap; } .ep-pack-price { width: 100%; text-align: left; grid-auto-flow: column; justify-content: start; gap: .5rem; align-items: baseline; } }

/* Weekly test */
.ep-weekly { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding: 1.5rem; border: 1px solid var(--ph-line2, var(--line)); border-radius: 10px; background: var(--ph-surface, #fff); }
@media (min-width: 860px) { .ep-weekly { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 2rem; } }
.ep-weekly h2 { font-size: clamp(1.3rem, 2.8vw, 1.9rem); margin: 0 0 .4rem; overflow-wrap: anywhere; }
.ep-when { display: flex; align-items: center; gap: .45rem; margin: .8rem 0 0; font-weight: 600; color: var(--ink); }
.ep-when .icon { width: 18px; height: 18px; color: var(--ph-magenta, var(--teal)); }
.ep-weekly-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.ep-countdown small { color: var(--ph-muted, var(--muted)); }
.ep-cd-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: .4rem; }
.ep-cd-cells span { display: grid; justify-items: center; padding: .6rem .4rem; min-width: 64px; border: 1px solid var(--ph-line, var(--line)); border-radius: 8px; font-size: .78rem; color: var(--ph-muted, var(--muted)); }
.ep-cd-cells b { font-size: 1.6rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .ep-cd-cells span { min-width: 0; } .ep-cd-cells b { font-size: 1.3rem; } }

/* Past weekly tests */
.ep-past { display: grid; border-top: 1px solid var(--ph-line, var(--line)); margin-bottom: 1rem; }
.ep-past-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 1rem 0; border-bottom: 1px solid var(--ph-line, var(--line)); align-items: center; }
@media (min-width: 860px) { .ep-past-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 1.5rem; } }
.ep-past-t strong { color: var(--ink); display: block; overflow-wrap: anywhere; }
.ep-past-t small { color: var(--ph-muted, var(--muted)); }
.ep-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .9rem; }
.ep-podium b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: .35rem; border-radius: 4px; background: var(--ph-surface2, var(--soft)); font-size: .75rem; }
.ep-podium small { color: var(--ph-muted, var(--muted)); margin-left: .3rem; }

/* Daily MCQ */
.ep-daily { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .ep-daily { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); } .ep-daily-side { position: sticky; top: 96px; } }
.ep-daily-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ph-line, var(--line)); }
.ep-score { font-size: 1.25rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ep-q { padding: 1.2rem 0 1.4rem; border-bottom: 1px solid var(--ph-line, var(--line)); }
.ep-q-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.ep-q-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--ph-surface2, var(--soft)); font-weight: 700; font-size: .85rem; color: var(--ink); }
.ep-q-head small { color: var(--ph-muted, var(--muted)); }
.ep-q-text { font-size: 1.05rem; line-height: 1.65; color: var(--ink); margin: 0 0 .8rem; overflow-wrap: anywhere; }
.ep-q-img { max-width: 100%; height: auto; border-radius: 6px; margin-bottom: .8rem; }
.ep-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
@media (min-width: 640px) { .ep-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ep-opt { display: flex; align-items: flex-start; gap: .6rem; width: 100%; min-height: 48px; padding: .7rem .85rem; text-align: left; font: inherit; font-size: 1rem; color: inherit; background: transparent; border: 1px solid var(--ph-line2, var(--line)); border-radius: 8px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ep-opt:hover:not(:disabled) { border-color: var(--ph-magenta, var(--teal)); }
.ep-opt:focus-visible { outline: 2px solid var(--ph-magenta, var(--teal)); outline-offset: 2px; }
.ep-opt:disabled { cursor: default; }
.ep-opt .l { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: var(--ph-surface2, var(--soft)); font-weight: 700; font-size: .8rem; }
.ep-opt > span:last-child { overflow-wrap: anywhere; }
.ep-opt.is-right { border-color: var(--ph-green, #16a34a); background: rgba(46, 211, 138, .12); }
.ep-opt.is-right .l { background: var(--ph-green, #16a34a); color: #06281a; }
.ep-opt.is-wrong { border-color: var(--ph-red, #dc2626); background: rgba(255, 77, 109, .12); }
.ep-opt.is-wrong .l { background: var(--ph-red, #dc2626); color: #fff; }
.ep-opt.is-busy { opacity: .6; }
.ep-explain { margin: .8rem 0 0; padding: .7rem .9rem; border-left: 3px solid var(--ph-violet, var(--teal)); background: var(--ph-surface, var(--soft)); border-radius: 0 6px 6px 0; font-size: .94rem; line-height: 1.6; }
.ep-explain b { color: var(--ink); margin-right: .3rem; }
.ep-error { color: var(--ph-red, #dc2626); margin-top: 1rem; }
.ep-side-card { padding: 1.1rem 1.2rem; border: 1px solid var(--ph-line, var(--line)); border-radius: 8px; background: var(--ph-surface, #fff); margin-bottom: .8rem; }
.ep-side-card h3 { font-size: 1rem; margin: 0 0 .4rem; }
.ep-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9rem; }
.ep-recent li { display: flex; justify-content: space-between; gap: .5rem; }

/* Checkout, scholarship */
.ep-checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .ep-checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); } .ep-checkout-side { position: sticky; top: 96px; } }
.ep-checkout-side .ep-price { margin-bottom: 1rem; }
.ep-list { margin: 0; padding-left: 1.3rem; display: grid; gap: .6rem; }
.ep-list li small { display: block; color: var(--ph-muted, var(--muted)); }
.ep-list a { overflow-wrap: anywhere; }
.ep-points { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .7rem; max-width: 65ch; }
.ep-points li { display: flex; gap: .6rem; align-items: flex-start; }
.ep-points .icon { flex: none; width: 18px; height: 18px; margin-top: .2rem; color: var(--ph-green, var(--teal)); }
.ep-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; max-width: 65ch; }
.ep-steps li { display: flex; gap: .8rem; align-items: flex-start; }
.ep-steps b { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--ph-line2, var(--line)); color: var(--ink); }
.ep-table .num, .table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ep-award { padding: .7rem 0; border-bottom: 1px solid var(--ph-line, var(--line)); }
.ep-award:last-of-type { border-bottom: 0; }
.ep-award b { font-size: 1.15rem; color: var(--ink); }
.ep-award code { margin-left: .3rem; }

/* Analytics (student area) */
.ep-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
@media (min-width: 1000px) { .ep-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ep-stats > div { display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--t-line, var(--line)); border-radius: 8px; background: var(--ph-surface, #fff); }
.ep-stats small { color: var(--t-muted, var(--muted)); font-size: .8rem; }
.ep-stats b { font-size: 1.6rem; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.ep-stats b span { font-size: .95rem; color: var(--t-muted, var(--muted)); font-weight: 600; }
.ep-stats em { font-style: normal; font-size: .82rem; color: var(--t-muted, var(--muted)); }
.ep-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
@media (min-width: 1000px) { .ep-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ep-meter { margin-bottom: .8rem; }
.ep-meter-t { display: flex; justify-content: space-between; gap: .6rem; font-size: .92rem; margin-bottom: .3rem; }
.ep-meter-t small { flex: none; color: var(--t-muted, var(--muted)); }
.ep-meter-bar { height: 8px; border-radius: 4px; background: var(--ph-surface2, #eee); overflow: hidden; }
.ep-meter-bar span { display: block; height: 100%; background: var(--ph-green, #16a34a); }
.ep-meter-bar span.is-mid { background: var(--ph-yellow, #d97706); }
.ep-meter-bar span.is-low { background: var(--ph-red, #dc2626); }
.ep-weak { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--t-line, var(--line)); }
.ep-weak:last-child { border-bottom: 0; }
.ep-weak strong { overflow-wrap: anywhere; }
.ep-weak .btn { flex: none; min-height: 40px; }
.ep-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.ep-compare > div { display: grid; gap: .2rem; }
.ep-compare small { color: var(--t-muted, var(--muted)); }
.ep-compare b { font-size: 1.35rem; color: var(--ink); }
.ep-history { display: flex; align-items: flex-end; gap: .5rem; height: 170px; overflow-x: auto; padding-bottom: .2rem; }
.ep-hbar { flex: 1 0 44px; max-width: 72px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .2rem; color: inherit; text-decoration: none; font-size: .75rem; }
.ep-hbar-v { width: 100%; max-height: calc(100% - 40px); border-radius: 4px 4px 0 0; background: var(--ph-surface3, #c7c2d9); }
.ep-hbar.is-this .ep-hbar-v { background: var(--ph-magenta, var(--teal)); }
.ep-hbar b { color: var(--ink); }
.ep-hbar small { color: var(--t-muted, var(--muted)); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ep-tile, .ep-opt, .ep-pack { transition: none; } .ep-tile:hover { transform: none; } }

/* Smart Vision Pro plan picker */
.ep-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
@media (min-width: 900px) { .ep-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ep-plan { position: relative; display: grid; gap: 2px; padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); color: var(--ph-text); transition: border-color .15s ease; }
.ep-plan:hover { border-color: var(--ph-magenta); }
.ep-plan.active { border-color: var(--ph-magenta); background: rgba(225, 28, 242, .1); box-shadow: inset 0 0 0 1px var(--ph-magenta); }
.ep-plan strong { font-size: .86rem; color: var(--ph-ink); }
.ep-plan b { font-size: 1.3rem; color: var(--ph-ink); }
.ep-plan small { font-size: .74rem; color: var(--ph-muted); }
.ep-plan em { position: absolute; top: 10px; right: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(46, 211, 138, .16); color: var(--ph-green); font-style: normal; font-size: .68rem; font-weight: 700; }
