/*
 * BProf app styles: the pages added in the Laravel version (auth, courses, student area, exams,
 * admin). Loaded after the legacy site stylesheets so it can tune Bootstrap to the brand.
 * Palette is the site's Indigo & Amber.
 */
:root {
    --ux-ink: #13113a;
    --ux-ink-soft: #17154a;
    --ux-primary: #4338ca;
    --ux-primary-dark: #3730a3;
    --ux-primary-soft: #eef0ff;
    --ux-accent: #ffb547;
    --ux-accent-dark: #e89a1c;
    --ux-text: #17154a;
    --ux-muted: #526077;
    --ux-line: rgba(15, 23, 42, .13);
    --ux-paper: #f7f8fb;
    --ux-ok: #0f7b4f;
    --ux-ok-soft: #e6f6ee;
    --ux-warn-soft: #fff4dc;
    --ux-bad: #b42318;
    --ux-bad-soft: #fdecea;
    --ux-radius: 16px;
    --ux-shadow: 0 12px 32px rgba(19, 17, 58, .08);
    --ux-shadow-lg: 0 20px 55px rgba(19, 17, 58, .14);

    /* Bootstrap, tuned to the brand */
    --bs-primary: #4338ca;
    --bs-primary-rgb: 67, 56, 202;
    --bs-link-color: #4338ca;
    --bs-link-hover-color: #3730a3;
    --bs-body-color: #17154a;
    --bs-border-radius: 12px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

.btn-primary {
    --bs-btn-bg: var(--ux-primary); --bs-btn-border-color: var(--ux-primary);
    --bs-btn-hover-bg: var(--ux-primary-dark); --bs-btn-hover-border-color: var(--ux-primary-dark);
    --bs-btn-active-bg: var(--ux-primary-dark); --bs-btn-active-border-color: var(--ux-primary-dark);
    --bs-btn-disabled-bg: var(--ux-primary); --bs-btn-disabled-border-color: var(--ux-primary);
    font-weight: 700;
}
.btn-outline-primary {
    --bs-btn-color: var(--ux-primary); --bs-btn-border-color: var(--ux-primary);
    --bs-btn-hover-bg: var(--ux-primary); --bs-btn-hover-border-color: var(--ux-primary);
    --bs-btn-active-bg: var(--ux-primary); font-weight: 700;
}
.btn { border-radius: 12px; }
.btn:focus-visible, .form-control:focus, .form-select:focus, a:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid rgba(67, 56, 202, .35); outline-offset: 2px; box-shadow: none;
}
.form-control, .form-select { border-color: rgba(15, 23, 42, .2); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--ux-primary); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ux-ink); color: #fff;
    padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- page shell ---------- */
.ux-page { padding: 40px 0 72px; min-height: 55vh; }
.ux-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.ux-narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.ux-title { font-weight: 800; letter-spacing: -.02em; color: var(--ux-ink); margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ux-sub { color: var(--ux-muted); margin: 0 0 28px; }
.ux-crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; text-decoration: none; margin-bottom: 14px; }
[dir="rtl"] .ux-crumb .bi { transform: scaleX(-1); }

/* ---------- cards ---------- */
.ux-card {
    background: #fff; border: 1px solid var(--ux-line); border-radius: var(--ux-radius);
    box-shadow: var(--ux-shadow); overflow: hidden; height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
a.ux-card, .ux-card.is-link { text-decoration: none; color: inherit; display: block; }
a.ux-card:hover, .ux-card.is-link:hover { transform: translateY(-3px); box-shadow: var(--ux-shadow-lg); color: inherit; }
.ux-card-body { padding: 20px 22px; }
.ux-card h2, .ux-card h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 6px; color: var(--ux-ink); }
.ux-thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: var(--ux-primary-soft); }

/* ---------- auth ---------- */
.ux-auth { min-height: 70vh; display: grid; place-items: center; padding: 40px 16px 64px; background:
    radial-gradient(circle at 12% 8%, rgba(255, 181, 71, .16), transparent 32%),
    radial-gradient(circle at 92% 20%, rgba(67, 56, 202, .12), transparent 34%), var(--ux-paper); }
.ux-auth-card { width: min(460px, 100%); background: #fff; border-radius: 22px; box-shadow: var(--ux-shadow-lg); padding: 34px 32px; border: 1px solid var(--ux-line); }
.ux-auth-card h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; color: var(--ux-ink); }
.ux-auth-card .lead { color: var(--ux-muted); font-size: .98rem; margin-bottom: 22px; }
.ux-auth-foot { margin-top: 22px; text-align: center; color: var(--ux-muted); font-size: .94rem; }
.ux-field { margin-bottom: 16px; }
.ux-field label { font-weight: 700; font-size: .9rem; margin-bottom: 6px; display: block; }
.ux-field .hint { color: var(--ux-muted); font-size: .84rem; margin-top: 5px; }
.ux-field .error { color: var(--ux-bad); font-size: .86rem; margin-top: 5px; font-weight: 600; }
.ux-field .form-control.is-invalid { border-color: var(--ux-bad); background-image: none; }
.ux-pw { position: relative; }
.ux-pw .form-control { padding-inline-end: 3rem; }
.ux-pw button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ux-muted); padding: 8px 10px; border-radius: 8px; }
.ux-pw button:hover { color: var(--ux-primary); }
.ux-strength { height: 5px; border-radius: 99px; background: #e5e7eb; margin-top: 8px; overflow: hidden; }
.ux-strength span { display: block; height: 100%; width: 0; background: var(--ux-bad); transition: width .2s, background .2s; }
.ux-note { background: var(--ux-primary-soft); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }

/* buttons that show progress after being pressed */
.btn.is-busy { position: relative; pointer-events: none; opacity: .85; }
.btn.is-busy::after {
    content: ""; width: 1em; height: 1em; margin-inline-start: .6em; display: inline-block; vertical-align: -.12em;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ux-spin .7s linear infinite;
}
@keyframes ux-spin { to { transform: rotate(360deg); } }

/* ---------- alerts ---------- */
.ux-alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.ux-alert.ok { background: var(--ux-ok-soft); color: var(--ux-ok); }
.ux-alert.bad { background: var(--ux-bad-soft); color: var(--ux-bad); }
.ux-alert.info { background: var(--ux-primary-soft); color: var(--ux-primary-dark); }
.ux-alert ul { margin: 0; padding-inline-start: 18px; }

/* ---------- chips / progress / empty ---------- */
.ux-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--ux-primary-soft); color: var(--ux-primary-dark); font-size: .8rem; font-weight: 700; }
.ux-chip.ok { background: var(--ux-ok-soft); color: var(--ux-ok); }
.ux-chip.warn { background: var(--ux-warn-soft); color: #8a5a00; }
.ux-chip.bad { background: var(--ux-bad-soft); color: var(--ux-bad); }
.ux-progress { height: 8px; border-radius: 99px; background: #e8eaf3; overflow: hidden; }
.ux-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ux-primary), #6d63f2); border-radius: 99px; }
.ux-empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--ux-line); border-radius: var(--ux-radius); color: var(--ux-muted); }
.ux-empty .bi { font-size: 2.4rem; color: var(--ux-primary); display: block; margin-bottom: 10px; }
.ux-empty h2 { font-size: 1.2rem; font-weight: 800; color: var(--ux-ink); }
.ux-price { font-weight: 800; color: var(--ux-ink); font-size: 1.15rem; }
.ux-price s { color: var(--ux-muted); font-weight: 600; font-size: .9rem; margin-inline-start: 6px; }
.ux-price .free { color: var(--ux-ok); }

/* ---------- lesson list ---------- */
.ux-lessons { list-style: none; padding: 0; margin: 0; }
.ux-lessons li { border-bottom: 1px solid var(--ux-line); }
.ux-lessons li:last-child { border-bottom: 0; }
.ux-lessons a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; text-decoration: none; color: var(--ux-ink); font-weight: 600; }
.ux-lessons a:hover { background: var(--ux-primary-soft); }
.ux-lessons .meta { color: var(--ux-muted); font-size: .84rem; font-weight: 600; white-space: nowrap; }

/* ---------- exam ---------- */
.ux-exam-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--ux-line); box-shadow: 0 6px 18px rgba(19, 17, 58, .06); }
.ux-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.25rem; padding: 4px 14px; border-radius: 99px; background: var(--ux-primary-soft); color: var(--ux-primary-dark); }
.ux-timer.low { background: var(--ux-bad-soft); color: var(--ux-bad); animation: ux-pulse 1s ease-in-out infinite; }
@keyframes ux-pulse { 50% { opacity: .55; } }
.ux-q { scroll-margin-top: 96px; }
.ux-q.unanswered-flag { border-color: var(--ux-accent); box-shadow: 0 0 0 3px rgba(255, 181, 71, .35); }
.ux-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--ux-line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: background .12s, border-color .12s; }
.ux-opt:hover { background: var(--ux-primary-soft); }
.ux-opt:has(input:checked) { border-color: var(--ux-primary); background: var(--ux-primary-soft); }
.ux-opt input { margin-top: .25rem; flex: none; }
.ux-nav-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.ux-dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 1px solid var(--ux-line); background: #fff; color: var(--ux-muted); text-decoration: none; }
.ux-dot.done { background: var(--ux-primary); color: #fff; border-color: var(--ux-primary); }

/* ---------- results ---------- */
.ux-score { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; font-weight: 800; font-size: 2.2rem;
    background: conic-gradient(var(--ux-primary) calc(var(--p) * 1%), #e8eaf3 0); position: relative; }
.ux-score::before { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%; }
.ux-score span { position: relative; }

/* ---------- admin ---------- */
.adm-table { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--ux-line); }
.adm-table thead th { background: #f1f2f9; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ux-muted); border-bottom: 0; white-space: nowrap; }
.adm-table td { vertical-align: middle; }
.adm-stat { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--ux-line); border-radius: 14px; padding: 16px 18px; height: 100%; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.adm-stat.is-link:hover { transform: translateY(-2px); box-shadow: var(--ux-shadow); color: inherit; }
.adm-stat .n { font-size: 1.9rem; font-weight: 800; color: var(--ux-ink); line-height: 1.1; }
.adm-stat .l { color: var(--ux-muted); font-size: .85rem; font-weight: 600; }
.adm-stat .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 8px; background: var(--ux-primary-soft); color: var(--ux-primary); }
.adm-stat.tone-ok .ic { background: var(--ux-ok-soft); color: var(--ux-ok); }
.adm-stat.tone-accent .ic { background: var(--ux-warn-soft); color: var(--ux-accent-dark); }
.adm-stat.tone-bad .ic { background: var(--ux-bad-soft); color: var(--ux-bad); }
.adm-hero { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; background: #fff; border: 1px solid var(--ux-line); border-radius: 16px; padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--ux-shadow); }
.adm-revenue { display: flex; flex-direction: column; background: var(--ux-ink); color: #fff; border-radius: 12px; padding: 10px 18px; }
.adm-revenue .l { font-size: .75rem; opacity: .75; font-weight: 600; }
.adm-revenue .n { font-size: 1.5rem; font-weight: 800; color: var(--ux-accent); line-height: 1.2; }
.adm-h { font-size: 1rem; font-weight: 800; color: var(--ux-ink); margin-bottom: 10px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-actions a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ux-line); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: .92rem; color: var(--ux-primary); text-decoration: none; transition: background .15s, border-color .15s; }
.adm-actions a:hover { background: var(--ux-primary-soft); border-color: var(--ux-primary); }
.adm-panel { background: #fff; border: 1px solid var(--ux-line); border-radius: 14px; overflow: hidden; height: 100%; }
.adm-panel-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #f1f2f9; font-size: .9rem; }
.adm-panel-h a { font-weight: 700; font-size: .85rem; }
.adm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--ux-line); }
.adm-row:first-of-type { border-top: 0; }
.adm-empty { padding: 26px 18px; text-align: center; color: var(--ux-muted); }
.adm-empty i { display: block; font-size: 1.6rem; color: var(--ux-ok); margin-bottom: 4px; }

/* ---------- admin shell ---------- */
.adm-nav { box-shadow: 0 2px 14px rgba(19, 17, 58, .25); font-size: .92rem; }
.adm-nav .nav-link { white-space: nowrap; border-radius: 10px; padding: .5rem .8rem; color: rgba(255,255,255,.72); transition: background .15s, color .15s; }
.adm-nav .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-nav .nav-link.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 -2px 0 var(--ux-accent); }
.adm-user { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.adm-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ux-accent); color: var(--ux-ink); font-weight: 800; }
.adm-user-name { display: flex; flex-direction: column; line-height: 1.15; color: #fff; font-weight: 700; font-size: .88rem; }
.adm-user-name small { color: rgba(255,255,255,.6); font-weight: 600; text-transform: capitalize; font-size: .72rem; }
@media (min-width: 1200px) { .adm-user { padding-top: 0; } }
main#main h1.h3 { font-weight: 800; letter-spacing: -.02em; color: var(--ux-ink); }
main#main a:not(.btn):not(.adm-actions a) { color: var(--ux-primary); }
main#main .btn { border-radius: 10px; font-weight: 700; }
main#main .table > :not(caption) > * > * { padding: .7rem .9rem; }
.adm-table tbody tr:hover { background: #fafaff; }
.adm-table td, .adm-table th { border-color: rgba(15, 23, 42, .07); }
.adm-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: #eceef5; color: var(--ux-muted); text-transform: capitalize; }
.adm-chip.ok { background: var(--ux-ok-soft); color: var(--ux-ok); }
.adm-chip.warn { background: var(--ux-warn-soft); color: #9a6200; }
.adm-chip.bad { background: var(--ux-bad-soft); color: var(--ux-bad); }
.adm-pagehead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.adm-pagehead h1 { margin: 0; }
.adm-inline { display: flex; gap: 8px; }
.adm-inline .form-select { min-width: 220px; }
@media (max-width: 575px) { main#main { padding-inline: 14px !important; } .adm-inline { flex-wrap: wrap; } .adm-inline > * { flex: 1 1 100%; } }

/* ---------- admin tables ---------- */
.adm-tablewrap { background: #fff; border: 1px solid var(--ux-line); border-radius: 16px; box-shadow: var(--ux-shadow); overflow-x: auto; margin-bottom: 18px; }
.adm-tablewrap .adm-table { border: 0; border-radius: 0; margin: 0; width: 100%; --bs-table-bg: transparent; }
.adm-tablewrap .adm-table thead th { background: #f4f5fb; padding: .75rem 1rem; font-size: .72rem; border-bottom: 1px solid var(--ux-line); }
.adm-tablewrap .adm-table td { padding: .6rem 1rem; font-size: .92rem; border-bottom: 1px solid rgba(15,23,42,.06); }
.adm-tablewrap .adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr[data-href] { cursor: pointer; }
.adm-table tbody tr:hover { background: var(--ux-primary-soft); }
.adm-id { color: var(--ux-muted); font-variant-numeric: tabular-nums; font-size: .84rem; }
.adm-person { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ux-ink) !important; text-decoration: none; }
.adm-person:hover { color: var(--ux-primary) !important; }
.adm-ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ux-primary-soft); color: var(--ux-primary); font-weight: 800; font-size: .85rem; }
.adm-table td a:not(.btn):not(.adm-person) { text-decoration: none; font-weight: 600; }
.adm-table td a:not(.btn):not(.adm-person):hover { text-decoration: underline; }
.adm-count { display: inline-block; vertical-align: middle; margin-inline-start: 8px; padding: 2px 10px; border-radius: 99px; background: var(--ux-primary-soft); color: var(--ux-primary); font-size: .8rem; font-weight: 800; letter-spacing: 0; }
.adm-iconbtn { width: 34px; height: 34px; padding: 0 !important; display: inline-grid; place-items: center; border-radius: 10px !important; }
.adm-search { flex: 1 1 280px; max-width: 360px; min-width: 0; }
.adm-inline { min-width: 0; flex-wrap: wrap; }
.pagination { gap: 4px; flex-wrap: wrap; --bs-pagination-border-radius: 10px; }
.pagination .page-link { border: 1px solid var(--ux-line); border-radius: 10px !important; color: var(--ux-ink); font-weight: 700; font-size: .88rem; min-width: 38px; text-align: center; }
.pagination .page-link:hover { background: var(--ux-primary-soft); color: var(--ux-primary); }
.pagination .page-item.active .page-link { background: var(--ux-primary); border-color: var(--ux-primary); color: #fff; }
.pagination .page-item.disabled .page-link { background: #f4f5fb; color: var(--ux-muted); }
nav[aria-label*="agination"] > div:first-child { color: var(--ux-muted); }

/* ---------- admin student profile ---------- */
.adm-profile { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; background: #fff; border: 1px solid var(--ux-line); border-radius: 16px; box-shadow: var(--ux-shadow); padding: 20px 24px; margin-top: 6px; }
.adm-ava.lg { width: 64px; height: 64px; font-size: 1.6rem; background: var(--ux-ink); color: var(--ux-accent); }
.adm-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ux-muted); font-size: .92rem; }
.adm-meta i { margin-inline-end: 6px; color: var(--ux-primary); }
.adm-mini { text-align: center; padding: 8px 20px; border-radius: 12px; background: #f4f5fb; min-width: 110px; }
.adm-mini b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ux-ink); line-height: 1.1; }
.adm-mini span { font-size: .76rem; color: var(--ux-muted); font-weight: 600; }
.adm-enrol { max-width: none; margin-top: 18px; }
.adm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--ux-muted); }
.adm-quick button { border: 1px solid var(--ux-line); background: #fff; border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: .82rem; color: var(--ux-primary); }
.adm-quick button:hover { background: var(--ux-primary-soft); border-color: var(--ux-primary); }

/* ---------- referrals ---------- */
.adm-referhero { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px 26px; margin-bottom: 18px; background: linear-gradient(135deg, var(--ux-ink), #2a2670); color: #fff; border: 0; }
.adm-referhero h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; color: #fff; }
.adm-referhero p { margin: 0 0 14px; opacity: .85; max-width: 560px; }
.adm-referhero .adm-linkbox code { background: rgba(255,255,255,.12); color: #fff; }
.adm-refercode { text-align: center; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.4); border-radius: 14px; padding: 14px 24px; }
.adm-refercode span { display: block; font-size: .74rem; opacity: .75; font-weight: 600; }
.adm-refercode b { font-size: 1.6rem; letter-spacing: .12em; color: var(--ux-accent); }
.adm-how { padding-inline-start: 1.1rem; margin: 0; display: grid; gap: 10px; font-size: .88rem; }

/* ---------- centers & instructors ---------- */
.adm-cred { background: #fffbea; border: 1px solid #f1d98a; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.adm-cred-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.adm-cred-h i { font-size: 1.4rem; color: #b87400; }
.adm-cred-h small { display: block; color: #7a6320; }
.adm-cred-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.adm-cred-row span { width: 72px; font-size: .8rem; font-weight: 700; color: #7a6320; }
.adm-cred-row code { flex: 1; min-width: 0; background: #fff; border: 1px solid #f1d98a; border-radius: 8px; padding: 4px 10px; font-size: .95rem; color: var(--ux-ink); word-break: break-all; }
.adm-linkbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-linkbox code { flex: 1; min-width: 0; background: #f4f5fb; border-radius: 8px; padding: 7px 12px; color: var(--ux-ink); word-break: break-all; }
.adm-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.adm-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.adm-steps i { color: var(--ux-primary); font-size: 1.05rem; flex: none; margin-top: 1px; }
.adm-danger { border-color: rgba(180,35,24,.35); }
.adm-danger .adm-card-h i { background: var(--ux-bad-soft); color: var(--ux-bad); }
.adm-checks { display: grid; gap: 4px; max-height: 300px; overflow: auto; border: 1px solid var(--ux-line); border-radius: 12px; padding: 6px; }
.adm-check { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; cursor: pointer; margin: 0; font-size: .9rem; }
.adm-check:hover { background: #f4f5fb; }
.adm-check:has(input:checked) { background: var(--ux-primary-soft); }
.adm-check[hidden] { display: none; }
.adm-role { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--ux-line); border-radius: 12px; margin: 0 0 8px; cursor: pointer; }
.adm-role:has(input:checked) { background: var(--ux-primary-soft); border-color: var(--ux-primary); }
.adm-role strong { display: block; font-size: .9rem; }
.adm-role small { display: block; color: var(--ux-muted); font-size: .78rem; line-height: 1.35; }
.adm-role input { margin-top: 3px; flex: none; }

/* ---------- question editor polish ---------- */
.adm-grid.wide { grid-template-columns: minmax(0, 1fr) 500px; }
@media (max-width: 1199px) { .adm-grid.wide { grid-template-columns: minmax(0, 1fr) 420px; } }
@media (max-width: 991px) { .adm-grid.wide { grid-template-columns: 1fr; } }
.adm-typegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.adm-typecard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 11px 6px; border: 1px solid var(--ux-line); border-radius: 12px; background: #fff; font-size: .76rem; font-weight: 700; color: var(--ux-muted); text-align: center; line-height: 1.2; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.adm-typecard i { font-size: 1.3rem; color: var(--ux-primary); }
.adm-typecard:hover { border-color: var(--ux-primary); }
.adm-typecard.active { background: var(--ux-primary-soft); border-color: var(--ux-primary); color: var(--ux-ink); box-shadow: 0 0 0 1px var(--ux-primary); }
.adm-qform input[type=file].form-control { padding: .35rem .5rem; font-size: .86rem; }
.adm-qform input[type=file]::file-selector-button { border: 0; background: var(--ux-primary-soft); color: var(--ux-primary); font-weight: 700; border-radius: 8px; padding: .35rem .8rem; margin-inline-end: .75rem; cursor: pointer; }
.adm-qform input[type=file]::file-selector-button:hover { background: #e2e5ff; }
.adm-qform .adm-opt { padding: 8px 10px; border: 1px solid var(--ux-line); border-radius: 12px; background: #fff; }
.adm-qform .adm-opt .form-control { border-color: transparent; background: #f7f8fb; }
.adm-qform .adm-opt .form-control:focus { background: #fff; border-color: var(--ux-primary); }
.adm-qform .adm-opts { gap: 10px; }
.adm-qform .adm-field > label { font-size: .86rem; }
.adm-qform .adm-field > label .opt { font-weight: 500; }

/* ---------- image to sentence matching ---------- */
.ux-pair-img { max-width: 100%; max-height: 170px; border-radius: 10px; border: 1px solid var(--ux-line); display: block; object-fit: contain; background: #fff; }
.adm-qform .adm-imgpair { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.adm-imgbox { position: relative; width: 104px; height: 104px; border: 2px dashed rgba(67,56,202,.4); border-radius: 12px; background: var(--ux-primary-soft); overflow: hidden; }
.adm-imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-imgpick { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin: 0; font-size: .74rem; font-weight: 700; color: var(--ux-primary); cursor: pointer; text-align: center; }
.adm-imgpick i { font-size: 1.5rem; }
.adm-imgbox img:not([hidden]) ~ .adm-imgpick { background: rgba(19,17,58,.55); color: #fff; opacity: 0; transition: opacity .15s; }
.adm-imgbox:hover img:not([hidden]) ~ .adm-imgpick, .adm-imgbox:focus-within img:not([hidden]) ~ .adm-imgpick { opacity: 1; }
.adm-imgbox:has(img:not([hidden])) { border-style: solid; border-color: var(--ux-line); }
.adm-qform .adm-imgpair textarea.form-control { resize: vertical; min-height: 104px; }
.adm-imgpairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.adm-imgpairs figure { margin: 0; background: #f4f5fb; border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.adm-imgpairs img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.adm-imgpairs figcaption { font-size: .82rem; font-weight: 600; }

/* ---------- quiz inside a lesson group ---------- */
.ux-quiz { height: auto; }
.ux-quiz-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--ux-primary-soft); color: var(--ux-primary); flex: none; }
.adm-seg.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- admin: exam question editor ---------- */
.adm-side.scroll { max-height: calc(100vh - 32px); overflow-y: auto; padding-inline-end: 2px; }
.adm-examsum { display: flex; text-align: center; margin: 0; }
.adm-examsum div { flex: 1; padding: 12px 6px; border-inline-end: 1px solid var(--ux-line); }
.adm-examsum div:last-child { border: 0; }
.adm-examsum b { display: block; font-size: 1.25rem; font-weight: 800; color: var(--ux-ink); line-height: 1.1; }
.adm-examsum span { font-size: .74rem; color: var(--ux-muted); font-weight: 600; }
.adm-qnum { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ux-ink); color: var(--ux-accent); font-weight: 800; font-size: .88rem; flex: none; }
.adm-qcard .adm-card-h { align-items: flex-start; }
.adm-qcard .adm-card-h form { margin: 0; }
.adm-qthumb { max-width: 260px; max-height: 170px; border-radius: 10px; border: 1px solid var(--ux-line); display: block; margin-bottom: 12px; }
.adm-ans { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--ux-muted); }
.adm-ans.ok { color: var(--ux-ok); font-weight: 700; }
.adm-pairs { display: grid; gap: 6px; }
.adm-pairs > div { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; background: #f4f5fb; border-radius: 8px; padding: 6px 12px; font-size: .9rem; }
.adm-fillshow { line-height: 2; margin: 0; }
.adm-fillshow mark { background: var(--ux-ok-soft); color: var(--ux-ok); font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.adm-qedit { padding: 18px 20px; background: #f7f8fb; border-top: 1px solid var(--ux-line); }
.adm-opts { display: grid; gap: 8px; }
.adm-opt { display: flex; align-items: center; gap: 8px; }
.adm-opt .form-check-input { flex: none; margin: 0; width: 1.15em; height: 1.15em; }
.adm-opt .form-control { flex: 1; min-width: 0; }
.adm-pair i { flex: none; }
.adm-tf { display: flex; gap: 10px; }
.adm-tf label { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--ux-line); border-radius: 10px; cursor: pointer; font-weight: 700; margin: 0; }
.adm-tf label:has(input:checked) { background: var(--ux-primary-soft); border-color: var(--ux-primary); }
.adm-fillbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.adm-qimg { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.adm-qimg img, .adm-qimg-prev { max-width: 140px; max-height: 90px; border-radius: 8px; border: 1px solid var(--ux-line); margin-top: 8px; }
.adm-qimg img { margin: 0; }
.adm-card-h h2.text-wrap { white-space: normal; }

/* ---------- student exam: fill-in-the-blank and matching ---------- */
.ux-fill { line-height: 2.4; font-size: 1.05rem; }
.ux-fill .fill-in { border: 0; border-bottom: 2px solid var(--ux-primary); background: var(--ux-primary-soft); border-radius: 6px 6px 0 0; padding: 2px 10px; margin: 0 4px; font-weight: 700; color: var(--ux-ink); text-align: center; min-width: 110px; }
.ux-fill .fill-in:focus { outline: 0; background: #e2e5ff; }
.ux-blank { display: inline-block; padding: 0 10px; margin: 0 4px; border-radius: 6px; font-weight: 700; }
.ux-blank.ok { background: var(--ux-ok-soft); color: var(--ux-ok); } .ux-blank.bad { background: var(--ux-bad-soft); color: var(--ux-bad); }
.ux-match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ux-line); }
.ux-match:last-child { border-bottom: 0; }
.ux-match label { font-weight: 600; margin: 0; }
@media (max-width: 575px) { .ux-match { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- admin: course material setup ---------- */
.adm-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ux-line); margin-bottom: 18px; }
.adm-subtabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; font-weight: 700; font-size: .9rem; color: var(--ux-muted) !important; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.adm-subtabs a:hover { color: var(--ux-ink) !important; }
.adm-subtabs a.active { color: var(--ux-primary) !important; border-bottom-color: var(--ux-primary); }
.adm-subtabs a span { background: var(--ux-primary-soft); color: var(--ux-primary); border-radius: 99px; padding: 0 8px; font-size: .75rem; }
.adm-mgroup .adm-card-h form { margin: 0; }
.adm-rename { display: flex; gap: 8px; padding: 12px 20px; background: #f7f8fb; border-bottom: 1px solid var(--ux-line); }
.adm-mrow { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid rgba(15,23,42,.07); }
.adm-mrow.is-off { opacity: .6; background: #fafafc; }
.adm-mic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; flex: none; background: #eceef5; color: var(--ux-muted); }
.adm-mic.t-v { background: #fdecea; color: #c0392b; } .adm-mic.t-l { background: #e3f2fd; color: #0b6aa6; } .adm-mic.t-d { background: #fff4dc; color: #b87400; } .adm-mic.t-e { background: var(--ux-ok-soft); color: var(--ux-ok); }
.adm-minfo { flex: 1; min-width: 0; }
.adm-mtitle { font-weight: 700; color: var(--ux-ink) !important; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-mtitle:hover { color: var(--ux-primary) !important; text-decoration: underline; }
.adm-msub { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .78rem; color: var(--ux-muted); }
.adm-msub .text-truncate { max-width: 220px; }
.adm-mdesc { font-size: .8rem; color: var(--ux-muted); margin-top: 2px; }
.adm-macts { display: flex; gap: 2px; flex: none; }
.adm-macts form { margin: 0; }
.adm-macts .btn { padding: .3rem .55rem; }
.adm-medit { margin: 0; padding: 14px 20px; background: #f7f8fb; border-bottom: 1px solid var(--ux-line); }
.adm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #eceef5; padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.adm-seg button { border: 0; background: transparent; padding: 7px; border-radius: 9px; font-weight: 700; font-size: .85rem; color: var(--ux-muted); }
.adm-seg button.active { background: #fff; color: var(--ux-primary); box-shadow: 0 1px 3px rgba(19,17,58,.12); }
.adm-drop { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 22px 14px; border: 2px dashed rgba(67,56,202,.35); border-radius: 14px; background: var(--ux-primary-soft); cursor: pointer; transition: background .15s, border-color .15s; margin: 0; }
.adm-drop:hover, .adm-drop.over { background: #e2e5ff; border-color: var(--ux-primary); }
.adm-drop i { font-size: 2rem; color: var(--ux-primary); }
.adm-drop strong { font-size: .9rem; color: var(--ux-ink); }
.adm-drop span { font-size: .76rem; color: var(--ux-muted); }
.adm-flist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.adm-flist li { display: flex; align-items: center; gap: 8px; font-size: .82rem; padding: 6px 10px; background: #f4f5fb; border-radius: 8px; }
.adm-flist li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-flist li small { color: var(--ux-muted); flex: none; }
.adm-flist li.bad { background: var(--ux-bad-soft); color: var(--ux-bad); } .adm-flist li.bad small { color: var(--ux-bad); }
.adm-progress { margin-top: 14px; } .adm-progress > div { height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.adm-progress span { display: block; height: 100%; width: 0; background: var(--ux-primary); transition: width .15s; }
.adm-progress small { color: var(--ux-muted); font-size: .78rem; }
@media (max-width: 575px) { .adm-mrow { flex-wrap: wrap; } .adm-macts { width: 100%; justify-content: flex-end; } }

/* ---------- admin: search, tabs, course list ---------- */
.adm main#main .adm-search .form-control { padding-inline-start: 38px; }
.adm-inline.nowrap { flex-wrap: nowrap; align-items: center; }
.adm-inline.nowrap .btn { white-space: nowrap; }
.adm-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-tabs a { padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .86rem; color: var(--ux-muted) !important; text-decoration: none; border: 1px solid transparent; }
.adm-tabs a span { margin-inline-start: 4px; padding: 1px 8px; border-radius: 99px; background: #eceef5; font-size: .74rem; }
.adm-tabs a:hover { background: #fff; border-color: var(--ux-line); }
.adm-tabs a.active { background: var(--ux-ink); color: #fff !important; }
.adm-tabs a.active span { background: rgba(255,255,255,.2); }
.adm-coursename { font-weight: 700; color: var(--ux-ink) !important; text-decoration: none; font-size: .95rem; }
.adm-coursename:hover { color: var(--ux-primary) !important; text-decoration: underline; }
.adm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.adm-chip.info { background: #e3f2fd; color: #0b6aa6; }
.adm-chip i { font-size: .72rem; }
.adm-students { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ux-ink); background: var(--ux-primary-soft); padding: 3px 12px; border-radius: 99px; font-size: .86rem; }
.adm-students.zero { background: #f1f2f6; color: var(--ux-muted); font-weight: 600; }
@media (max-width: 575px) { .adm-inline.nowrap { flex-wrap: wrap; } }

/* ---------- admin: compact density + two-column editor ---------- */
html.adm { font-size: 15px; }
.adm main#main .form-control, .adm main#main .form-select { padding: .5rem .75rem; font-size: .92rem; border-radius: 10px; }
.adm main#main textarea.form-control { padding: .6rem .75rem; }
.adm .adm-field label { font-size: .84rem; margin-bottom: 5px; }
.adm .adm-hint, .adm .adm-err { font-size: .78rem; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.adm-side { position: sticky; top: 16px; display: grid; gap: 16px; }
.adm-card { background: #fff; border: 1px solid var(--ux-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(19,17,58,.04); margin-bottom: 16px; }
.adm-side .adm-card { margin-bottom: 0; }
.adm-card-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--ux-line); }
.adm-card-h i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ux-primary-soft); color: var(--ux-primary); font-size: .95rem; flex: none; }
.adm-card-h h2 { font-size: .95rem; font-weight: 800; color: var(--ux-ink); margin: 0; line-height: 1.2; }
.adm-card-h small { display: block; color: var(--ux-muted); font-weight: 500; font-size: .76rem; }
.adm-card-b { padding: 18px 20px; }
.adm-switch { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(15,23,42,.07); cursor: pointer; margin: 0; }
.adm-switch:last-child { border-bottom: 0; padding-bottom: 0; }
.adm-switch strong { display: block; font-size: .87rem; }
.adm-switch small { display: block; color: var(--ux-muted); font-size: .76rem; line-height: 1.35; }
.adm-switch .form-check-input { width: 2.5em; height: 1.35em; margin: 0; cursor: pointer; }
.adm-switch .form-check-input:checked { background-color: var(--ux-primary); border-color: var(--ux-primary); }
.adm-savebox { padding: 16px 20px; display: grid; gap: 8px; }
.adm-savebox .btn { padding: .6rem 1rem; }
.adm-savebox .note { color: var(--ux-muted); font-size: .76rem; text-align: center; }
.adm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: #eceef5; color: var(--ux-muted); vertical-align: middle; }
.adm-pill.ok { background: var(--ux-ok-soft); color: var(--ux-ok); }
.adm-price-preview { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #f4f5fb; font-size: .86rem; color: var(--ux-muted); }
.adm-price-preview b { color: var(--ux-ink); }
.adm-counter { text-align: end; color: var(--ux-muted); font-size: .76rem; margin-top: 4px; }
@media (max-width: 991px) { .adm-grid { grid-template-columns: 1fr; } .adm-side { position: static; } }

/* ---------- admin forms ---------- */
.adm-crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; text-decoration: none; margin-bottom: 6px; }
.adm-form { max-width: 820px; background: #fff; border: 1px solid var(--ux-line); border-radius: 16px; box-shadow: var(--ux-shadow); overflow: hidden; }
.adm-section { padding: 22px 26px; border-bottom: 1px solid var(--ux-line); }
.adm-section > h2 { font-size: 1rem; font-weight: 800; color: var(--ux-ink); margin: 0 0 2px; }
.adm-section > .sub { color: var(--ux-muted); font-size: .88rem; margin: 0 0 16px; }
.adm-field { margin-bottom: 4px; }
.adm-field label { display: flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.adm-field .req { color: var(--ux-bad); }
.adm-field .opt { color: var(--ux-muted); font-weight: 500; font-size: .76rem; }
.adm-field .form-control.is-invalid, .adm-field .form-select.is-invalid { border-color: var(--ux-bad); background-image: none; }
.adm-hint { color: var(--ux-muted); font-size: .83rem; margin-top: 5px; }
.adm-err { color: var(--ux-bad); font-size: .85rem; font-weight: 600; margin-top: 5px; }
.adm-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--ux-line); border-radius: 12px; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.adm-toggle:hover { border-color: var(--ux-primary); }
.adm-toggle:has(input:checked) { background: var(--ux-primary-soft); border-color: var(--ux-primary); }
.adm-toggle input { margin-top: 3px; flex: none; }
.adm-toggle strong { display: block; font-size: .9rem; }
.adm-toggle small { color: var(--ux-muted); font-size: .8rem; }
.adm-actions-bar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 16px 26px; background: #f7f8fb; position: sticky; bottom: 0; }
.adm-actions-bar .note { margin-inline-end: auto; color: var(--ux-muted); font-size: .84rem; }
.adm-search { position: relative; min-width: min(320px, 100%); }
.adm-search i { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--ux-muted); pointer-events: none; }
.adm-search .form-control { padding-inline-start: 38px; }
.adm-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-empty-row { text-align: center; color: var(--ux-muted); padding: 34px 12px !important; }
@media (max-width: 575px) { .adm-section { padding: 18px 16px; } .adm-actions-bar { padding: 14px 16px; } .adm-actions-bar .btn { flex: 1; } }

/* ---------- toasts ---------- */
.ux-toasts { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 3000; display: grid; gap: 8px; }
.ux-toast { background: var(--ux-ink); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--ux-shadow-lg); font-weight: 600; font-size: .92rem; }

@media (max-width: 575px) {
    .ux-auth-card { padding: 26px 20px; border-radius: 18px; }
    .ux-page { padding: 24px 0 56px; }
}
@media print { .epmp-header, .epmp-footer, .ux-exam-bar button { display: none !important; } }

/* Course exams list cards */
.adm-exam { margin-bottom: 16px; transition: box-shadow .15s, transform .15s; }
.adm-exam:hover { box-shadow: var(--ux-shadow); }
.adm-exam-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.adm-exam-top .adm-mtitle { font-size: 1.05rem; }
.adm-exam-stats { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ux-paper); border-block: 1px solid var(--ux-line); }
.adm-exam-stats > div { padding: 12px 10px; text-align: center; border-inline-end: 1px solid var(--ux-line); min-width: 0; }
.adm-exam-stats > div:last-child { border-inline-end: 0; }
.adm-exam-stats b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ux-ink); line-height: 1.2; }
.adm-exam-stats span { display: block; font-size: .74rem; font-weight: 600; color: var(--ux-muted); margin-top: 2px; }
.adm-exam-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 20px; }
@media (max-width: 575.98px) {
    .adm-exam-top { flex-wrap: wrap; }
    .adm-exam-stats { grid-template-columns: repeat(3, 1fr); }
    .adm-exam-stats > div { border-bottom: 1px solid var(--ux-line); }
}
.adm-exam-set { padding: 16px 20px 18px; border-top: 1px solid var(--ux-line); background: #fff; }
.adm-exam-set[hidden] { display: none; }
.adm-pq { padding: 14px 0; border-bottom: 1px solid var(--ux-line); }
.adm-pq:last-child { border-bottom: 0; }
.adm-pq header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

/* Enrolment row actions */
.enr-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.enr-actions form { margin: 0; display: inline-flex; gap: 6px; }
.enr-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: var(--ux-primary-soft); color: var(--ux-primary); font-weight: 700; font-size: .82rem; line-height: 1; padding: 8px 12px; border-radius: 99px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.enr-btn:hover { background: var(--ux-primary); color: #fff; }
.enr-btn:focus-visible { outline: 3px solid rgba(67, 56, 202, .35); outline-offset: 2px; }
.enr-btn.is-danger { background: var(--ux-bad-soft); color: var(--ux-bad); }
.enr-btn.is-danger:hover { background: var(--ux-bad); color: #fff; }
.enr-btn.is-ok { background: var(--ux-ok-soft); color: var(--ux-ok); }
.enr-btn.is-ok:hover { background: var(--ux-ok); color: #fff; }
.enr-btn.is-save { background: var(--ux-primary); color: #fff; }
.enr-btn.is-save:hover { background: var(--ux-primary-dark); }
.enr-btn[hidden], .enr-actions form[hidden] { display: none; }
@media (max-width: 767.98px) { .enr-btn span { display: none; } .enr-btn { padding: 9px 11px; } .enr-btn.is-save span, .enr-btn[data-cancel-dates] span { display: inline; } }

/* Demo requests */
.adm-demo { overflow: hidden; transition: box-shadow .15s; }
.adm-demo:hover { box-shadow: var(--ux-shadow); }
.adm-demo-main { display: flex; gap: 14px; padding: 18px 20px; }
.adm-demo-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: .88rem; }
.adm-demo-msg { margin: 12px 0 0; padding: 10px 14px; background: var(--ux-paper); border-inline-start: 3px solid var(--ux-primary); border-radius: 0 10px 10px 0; color: var(--ux-text); white-space: pre-line; }
.adm-demo-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 20px; background: var(--ux-paper); border-top: 1px solid var(--ux-line); }
.adm-seg-inline { display: inline-flex; background: #eceef5; padding: 3px; border-radius: 99px; }
.adm-seg-inline form { margin: 0; }
.adm-seg-inline button, .adm-seg-inline .is-on { display: block; border: 0; background: transparent; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .82rem; color: var(--ux-muted); cursor: pointer; }
.adm-seg-inline button:hover { color: var(--ux-ink); }
.adm-seg-inline .is-on { background: #fff; color: var(--ux-primary); box-shadow: 0 1px 3px rgba(19,17,58,.12); cursor: default; }

/* Site footer on every public page (it was only styled on the home page) */
body[class][class] .epmp-footer {
    padding: 0;
    color: #d8d8ec;
    background: #13113a;
    text-align: start;
}

body[class][class] .epmp-footer-inner {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
    text-align: start;
}

body[class][class] .epmp-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(40px, 8vw, 110px);
    padding-block: 58px 46px;
}

body[class][class] .epmp-footer-brand { max-width: 390px; }

body[class][class] .epmp-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

body[class][class] .epmp-footer-logo img { width: 38px; height: 38px; }

body[class][class] .epmp-footer-brand p {
    max-width: 36ch;
    margin-top: 16px;
    color: #c2c0dc;
    font-size: .94rem;
    font-weight: 450;
    line-height: 1.8;
}

body[class][class] .epmp-footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

body[class][class] .epmp-footer-col h2 {
    margin: 0;
    color: #fff;
    font-size: .94rem;
    font-weight: 750;
    letter-spacing: 0;
}

body[class][class] .epmp-footer-col ul {
    display: grid;
    gap: 10px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

body[class][class] .epmp-footer-col li {
    margin: 0;
    padding: 0;
    color: #c2c0dc;
    list-style: none;
}

body[class][class] .epmp-footer-col a {
    color: #c2c0dc;
    font-size: .88rem;
    text-decoration: none;
    transition: color .18s ease;
}

body[class][class] .epmp-footer-col a:hover { color: #ffcf82; }

body[class][class] .epmp-footer-col form { margin: 0; }

body[class][class] .epmp-footer-col form button {
    padding: 0;
    border: 0;
    color: #c2c0dc;
    background: transparent;
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
}

body[class][class] .epmp-footer-col form button:hover { color: #ffcf82; }

body[class][class] .epmp-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 18px 22px;
    border-top: 1px solid rgba(255,255,255,.15);
}

body[class][class] .epmp-footer-bottom p {
    margin: 0;
    color: #aeaccd;
    font-size: .79rem;
    font-weight: 450;
}

body[class][class] .epmp-footer .epmp-credit a {
    color: #ffbf5b;
    font-size: inherit;
    font-weight: 650;
}

body[class][class] .epmp-footer .epmp-credit a:hover { color: #ffdfa2; }

@media (max-width: 680px) {
    body[class][class] .epmp-footer-inner { width: min(100% - 36px, 1240px); }
    body[class][class] .epmp-footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 30px; }
    body[class][class] .epmp-footer-cols { gap: 20px; }
    body[class][class] .epmp-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    body[class][class] .epmp-footer-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    body[class][class] .epmp-footer-col a { transition: none; }
}


/* Refer & earn: the hero must win over .adm-card's white background (it comes later in this file) */
.adm-card.adm-referhero { background: linear-gradient(135deg, var(--ux-ink), #2a2670 70%, #3b34a5); color: #fff; border: 0; box-shadow: var(--ux-shadow); position: relative; overflow: hidden; }
.adm-card.adm-referhero::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,181,71,.28), transparent 70%); pointer-events: none; }
.adm-referhero > * { position: relative; z-index: 1; }
.adm-referhero .adm-linkbox { max-width: 560px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 6px 6px 6px 10px; }
.adm-referhero .adm-linkbox code { background: transparent; padding: 4px 6px; font-size: .9rem; }
.adm-referhero .btn-outline-light { border-color: rgba(255,255,255,.55); }
.adm-referhero .btn-outline-light:hover { background: #fff; color: var(--ux-ink); }
.adm-refercode { min-width: 190px; backdrop-filter: blur(2px); }
.adm-how { counter-reset: how; list-style: none; padding: 0; }
.adm-how li { counter-increment: how; position: relative; padding-inline-start: 36px; line-height: 1.5; }
.adm-how li::before { content: counter(how); position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ux-primary-soft); color: var(--ux-primary); font-weight: 800; font-size: .78rem; }

/* Admin top bar: keep the user block on one line instead of stacking under a long menu */
.adm-user { flex-wrap: nowrap; flex-shrink: 0; }
@media (min-width: 1200px) {
    .adm-nav .navbar-collapse { flex-wrap: nowrap; }
    .adm-nav .navbar-nav { flex-wrap: nowrap; min-width: 0; }
}
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .adm-nav { font-size: .86rem; }
    .adm-nav .nav-link { padding: .45rem .5rem; }
    .adm-nav .nav-link i { display: none; }
    .adm-nav .navbar-brand { font-size: 1.05rem; margin-inline-end: .5rem; }
}
