:root {
--primary: #af4689;
    --primary-dark: #933a73;
    --primary-deep: #6f2b58;
    --secondary: #ffc107;
    --dark: #212529;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #000;
}

.navbar {
    background-color: var(--primary) !important;
}

.top-bar {
    background-color: #1a1a2e !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* CBT Simulator Cards */
.simulator-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform .2s;
    min-height: 120px;
}

.simulator-card:hover {
    transform: translateY(-3px);
}

.simulator-card.cbt {
    background: linear-gradient(135deg, #fff7f0, #ffedd5);
}

.simulator-card.jamb {
    background: linear-gradient(135deg, #f3f2f2, #e8e8e8);
}

.simulator-card.waec {
    background: linear-gradient(135deg, #f9edf5, #f3d9e8);
}

.simulator-card.neco {
    background: linear-gradient(135deg, #fbeef6, #f5dcec);
}

.simulator-card.challenge {
    background: linear-gradient(135deg, #fdf4f9, #f8e4f0);
}

/* News cards */
.news-card {
    border-radius: 10px;
    overflow: hidden;
}

.news-card img {
    height: 180px;
    object-fit: cover;
}

.news-card .card-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Category badge */
.badge-cat {
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Exam subject list */
.subject-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}

.subject-item:hover {
    background: #f0f0f0;
    color: inherit;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 6px;
}

.leaderboard-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    background: var(--primary);
    color: #fff;
}

/* Store product */
.product-card {
    border-radius: 10px;
    transition: transform .2s;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-card .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Group card */
.group-card {
    border-radius: 10px;
    overflow: hidden;
}

/* Scholarship card */
.scholarship-card {
    border-radius: 10px;
    overflow: hidden;
}

/* Carousel */
.carousel-indicators [data-bs-target] {
    background-color: var(--primary);
}

/* Section heading */
.section-heading {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Exam timer */
.exam-timer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Q&A */
.question-card {
    border-left: 3px solid var(--primary);
}

.answer-card {
    border-left: 3px solid #28a745;
}

/* Marketplace */
.ad-card {
    border-radius: 10px;
    overflow: hidden;
}

.ad-card img {
    height: 160px;
    object-fit: cover;
}

/* Chat */
.chat-bubble {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.chat-bubble.sent {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    background: #e9ecef;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .simulator-card {
        min-height: 100px;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
    }

    .exam-timer {
        position: static;
        text-align: center;
        margin: 10px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Image placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Admin sidebar */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #1a1a2e;
}

.admin-sidebar a {
    color: #adb5bd;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: all .15s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Tab style */
.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

.nav-tabs .nav-link {
    color: #666;
}

/* Material card */
.material-card {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all .2s;
}

.material-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(135,11,9,.1);
}

/* ============================================================
   Myschool-style app shell (fixed header + left icon rail)
   ============================================================ */
.app-shell {
    min-height: 100vh;
    background: #f4f4f4;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 50;
    background: #af4689;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.app-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.app-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-m { color: #141419; }
.logo-f { color: var(--primary); }
.logo-dot { color: #95968c; font-weight: 600; font-size: 1rem; }

.header-search {
    flex: 1;
    max-width: 620px;
    margin: 0 auto;
}

.search-pill {
    position: relative;
    display: flex;
    align-items: center;
}

.search-pill input {
    width: 100%;
    height: 40px;
    border-radius: 200px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: #fff;
    padding-left: 41px;
    padding-right: 16px;
    font-size: .95rem;
    outline: none;
    transition: all .2s;
}

.search-pill input:focus {
    background: #fff;
    border-color: #6f2b58;
    box-shadow: 0 0 0 3px rgba(74, 29, 60, .22);
}

.search-icon {
    position: absolute;
    left: 14px;
    color: #a57a97;
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.pill-btn {
    border-radius: 200px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
    white-space: nowrap;
}

.pill-ghost {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .7);
    color: #fff;
}

.pill-ghost:hover {
    background: rgba(255, 255, 255, .16);
    border-color: #fff;
    color: #fff;
}

.pill-dark {
    background: #302c2c;
    color: #fff;
    border: 1.5px solid #302c2c;
}

.pill-dark:hover {
    background: #1f1c1c;
    border-color: #1f1c1c;
    color: #fff;
}

.header-mobile-toggle {
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 6px 10px;
    color: #fff;
}

/* Layout row */
.layout-row {
    display: flex;
    padding-top: 72px;
    min-height: 100vh;
}

.icon-rail {
    width: 90px;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0 24px;
    flex-shrink: 0;
}

.rail-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rail-group {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    text-decoration: none;
    width: 100%;
    position: relative;
}

.rail-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    transition: all .15s;
    color: #3F3B3B;
}

.rail-item:hover .rail-icon,
.rail-item.active .rail-icon {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.rail-label {
    font-size: .72rem;
    font-weight: 600;
    color: #3F3B3B;
}

.rail-item:hover .rail-label,
.rail-item.active .rail-label {
    color: #141419;
}

.rail-divider {
    width: 60%;
    height: 1px;
    background: #dcdcdc;
    margin: 6px 0;
}

.content-scroll {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    margin-left: 6px;
}

.content-inner {
    padding: 20px;
}

/* ============================================================
   Footer
   ============================================================ */
.app-footer {
    background: #af4689;
    padding: 44px 24px 24px;
}

.app-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}

.footer-col { min-width: 180px; }
.footer-brand { max-width: 300px; flex-basis: 280px; flex-grow: 1; }
.footer-explore { flex-basis: 240px; flex-grow: 1; }
.footer-quick { flex-basis: 200px; flex-grow: 1; }
.footer-connect { flex-basis: 260px; flex-grow: 1; }

.footer-col h6 {
    font-weight: 700;
    margin-bottom: 14px;
    font-size: .95rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col a {
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
}

.footer-col a:hover { color: #ffe9f3; }

.footer-brand p {
    font-size: .9rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 200px;
    padding: 8px 16px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: #141419;
    transition: all .15s;
}

.footer-pill:hover { background: #000; color: #fff; }

.footer-pill .pill-ic {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #3F3B3B;
    font-size: .7rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.footer-legal a {
    font-size: .82rem;
    color: #fff;
    font-weight: 700;
}

.footer-legal .sep { color: rgba(255, 255, 255, .55); font-size: .82rem; }

.call-hours {
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 10px;
}

.phones { margin-bottom: 10px; }
.phones a { display: inline-flex; align-items: center; gap: 6px; }

.mailto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-ic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #141419;
    color: #fff;
    font-size: .95rem;
    transition: all .15s;
}

.social-ic:hover {
    background: #6f2b58;
    color: #fff;
}

.footer-copy {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    text-align: center;
}

.copy-line {
    font-size: .8rem;
    color: #fff;
    font-weight: 700;
}

.app-footer .logo-m { color: #fff; }
.app-footer .logo-f { color: #ffcceb; }
.app-footer .logo-dot { color: rgba(255, 255, 255, .7); }
.app-footer .footer-logo-img { display: block; height: 48px; margin-bottom: 16px; }
.app-footer .footer-pill-dark { background: rgba(255, 255, 255, .18); }
.app-footer .footer-pill-dark:hover { background: #6f2b58; }
.app-footer .footer-pill-dark .pill-ic { background: rgba(255, 255, 255, .25); }

/* Mobile nav */
.mob-nav li { margin-bottom: 4px; }
.mob-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #141419;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}
.mob-nav a:hover { background: #f3f2f2; color: var(--primary); }

/* ============================================================
   Classroom page (myschool.ng/classroom clone)
   ============================================================ */
.classroom-page {
    padding: 8px 0 40px;
}

.classroom-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.classroom-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.classroom-aside {
    width: 362px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 992px) {
    .classroom-aside { display: block; }
}

/* Hero */
.cc-hero {
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    border-radius: 22px;
    padding: 30px 34px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(74, 29, 60, .28);
}

.cc-hero::before, .cc-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cc-hero::before {
    width: 320px; height: 320px;
    top: -80px; right: -40px;
    background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}

.cc-hero::after {
    width: 180px; height: 180px;
    bottom: -30px; left: -30px;
    background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
}

.cc-hero-inner {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cc-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,.3);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.cc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.16);
    color: #fff;
    border-radius: 200px;
    padding: 5px 14px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cc-hero h1 {
    font-size: 1.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.cc-hero p {
    color: rgba(255,255,255,.82);
    margin: 0;
    font-size: .95rem;
    max-width: 720px;
}

.cc-hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 16px;
}

.cc-hstat b { display: block; font-size: 1.3rem; font-weight: 800; }
.cc-hstat span { font-size: .7rem; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }

@media (max-width: 768px) {
    .cc-hero { padding: 24px 22px; }
    .cc-hero-inner { gap: 14px; }
    .cc-hero-logo { width: 56px; height: 56px; border-radius: 15px; }
    .cc-hero h1 { font-size: 1.6rem; }
    .cc-hero-stats { flex-wrap: wrap; row-gap: 12px; column-gap: 26px; }
    .cc-hstat b { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .cc-hero { padding: 22px 18px; }
    .cc-hero-logo { width: 48px; height: 48px; }
    .cc-hero h1 { font-size: 1.4rem; }
    .cc-hero p { font-size: .88rem; }
    .cc-hero-stats { gap: 10px 20px; }
}

/* Action pills */
.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cc-pill {
    border-radius: 200px;
    padding: 9px 20px;
    font-weight: 600;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #DFDEDE;
    background: transparent;
    color: #3F3B3B;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}

.cc-pill:hover { background: #f3f2f2; color: #3F3B3B; }

.cc-pill-primary-outline {
    border-color: #D0D5DD;
    color: var(--primary);
}

.cc-pill-primary-outline:hover {
    background: var(--primary);
    color: #fff;
}

.classroom-page .cc-pill { background: #fff; border-color: #e3d3dc; color: #6f2b58; }
.classroom-page .cc-pill:hover { background: #f6edf2; color: #5c2349; border-color: #d9bcc9; }
.classroom-page .cc-pill-primary-outline { border-color: #d9bcc9; color: #6f2b58; }
.classroom-page .cc-pill-primary-outline:hover { background: #6f2b58; border-color: #6f2b58; color: #fff; }

/* Section cards */
.cc-card {
    border: 1px solid #ececec;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.cc-card-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid #f2f2f2;
}

.cc-card-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Subject search */
.subject-search { position: relative; }

.subject-search input {
    width: 296px;
    height: 40px;
    border-radius: 200px;
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    padding-left: 41px;
    padding-right: 14px;
    outline: none;
    font-size: .9rem;
    transition: all .2s;
}

.subject-search input:focus {
    background: #fff;
    border-color: #8a3b70;
    box-shadow: 0 0 0 3px rgba(138, 59, 112, .16);
}

.subject-search .bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa1a6;
}

@media (max-width: 768px) {
    .subject-search { width: 100%; }
    .subject-search input { width: 100%; }
}

/* Subject list */
.subject-list { padding: 8px; }

.subject-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background .15s;
}

.subject-row:hover { background: #f7f7f7; }

.subject-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.subject-row-main:hover { color: inherit; }

.subject-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #6f2b58;
    background: #f4ecf1;
}

.subject-name {
    font-weight: 600;
    font-size: .9rem;
}

.subject-caret {
    color: #141419;
    padding: 6px 8px;
    cursor: pointer;
    display: none;
}

.subject-row:hover .subject-caret { display: block; }

.subject-hover { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.subject-row:hover .subject-hover { display: flex; }

.h-pill {
    border: 1px solid #e3e3e3;
    border-radius: 200px;
    padding: 6px 14px;
    text-decoration: none;
    color: #141419;
    font-size: .78rem;
    font-weight: 600;
    background: #fff;
    transition: all .15s;
    white-space: nowrap;
}

.h-pill:hover {
    background: #6f2b58;
    border-color: #6f2b58;
    color: #fff;
}

@media (max-width: 768px) {
    .subject-hover { display: flex; margin-top: 4px; }
    .subject-row { flex-wrap: wrap; }
}

/* Quick links */
.cc-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px;
}

@media (max-width: 768px) { .cc-quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cc-quick-grid { grid-template-columns: 1fr; } }

.quick-link {
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform .25s;
    color: #fff;
    min-height: 64px;
}

.quick-link:hover { transform: scale(1.03); color: #fff; text-decoration: none; }

.ql-teal { background: #14B8A6; }
.ql-blue { background: #3B82F6; }
.ql-green { background: #22C55E; }
.ql-purple { background: #A855F7; }
.ql-orange { background: #F97316; }
.ql-pink { background: #EC4899; }
.ql-red { background: #EF4444; }

.ql-ic {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.ic-deep-rose { background: #BE123C; }
.ic-blue-dk { background: #1E40AF; }
.ic-green-dk { background: #166534; }
.ic-purple-dk { background: #6D28D9; }
.ic-orange-dk { background: #C2410C; }
.ic-teal-dk { background: #0F766E; }

.ql-label {
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.25;
    color: #fff;
}

/* Simulators */
.simulator-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 992px) { .simulator-grid { grid-template-columns: 1fr; } }

.simulator {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.simulator:hover { color: inherit; }

.simulator {
    transition: transform .22s, box-shadow .22s;
}

.simulator:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(74, 29, 60, .14);
}

.simulator .display {
    width: 40px;
    height: 80px;
    display: grid;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.simulator .details {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.simulator h4 {
    margin: 0 0 2px;
    font-size: .95rem;
    font-weight: 700;
}

.simulator p {
    margin: 0;
    font-size: .76rem;
    line-height: 1.35;
}

.simulator .pattern {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 62%;
    background-image: radial-gradient(circle at 100% 100%, rgba(0, 0, 0, .05), transparent 60%);
    background-position: 100% 100%;
    background-repeat: no-repeat;
}

.cc-qchip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    background: rgba(0, 0, 0, .08);
    color: inherit;
    border-radius: 200px;
    padding: 3px 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.simulator-cbt { background: #FFF7F0; }
.simulator-cbt h4 { color: #55300E; }
.simulator-cbt p { color: #AA611C; }

.simulator-jamb { background: #F3F2F2; }
.simulator-jamb h4 { color: #131212; }
.simulator-jamb p { color: #3F3B3B; }

.simulator-waec { background: #F9EDF5; }
.simulator-waec h4 { color: #131212; }
.simulator-waec p { color: #3F3B3B; }

.simulator-neco { background: #F9EDF5; }
.simulator-neco h4 { color: #6F2B58; }
.simulator-neco p { color: #8A5F76; }

/* JAMB tiles */
.jamb-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 992px) { .jamb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .jamb-grid { grid-template-columns: 1fr; } }

.jamb-tile {
    background: #fff;
    border: 1px solid #f0e6eb;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
    display: block;
    box-shadow: 0 2px 10px rgba(111, 43, 88, .05);
}

.jamb-tile:hover { transform: translateY(-3px); color: inherit; text-decoration: none; box-shadow: 0 12px 24px rgba(111, 43, 88, .15); border-color: #dfc2d0; }

.jt-ic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    color: #fff;
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(111, 43, 88, .25);
}

.jt-label {
    font-weight: 700;
    font-size: .82rem;
    color: #141419;
    display: block;
}

/* Sidebar CTA */
.cbt-card {
    background: linear-gradient(160deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    color: #fff;
    border-radius: 22px;
    padding: 26px 24px;
    position: sticky;
    top: 96px;
    box-shadow: 0 14px 30px rgba(74, 29, 60, .3);
    overflow: hidden;
}

.cbt-card h3 {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.cbt-card p {
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    line-height: 1.55;
}

.cbt-free {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .16);
    border-radius: 200px;
    padding: 4px 12px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cbt-stats {
    display: flex;
    gap: 22px;
    margin: 16px 0 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.cbt-stats .cbt-s b { display: block; font-size: 1.15rem; font-weight: 800; }
.cbt-stats .cbt-s span { font-size: .66rem; color: rgba(255, 255, 255, .62); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }

.start-here {
    display: inline-block;
    margin-top: 16px;
    background: #fff;
    color: var(--primary-deep);
    font-weight: 700;
    padding: 11px 30px;
    border-radius: 200px;
    text-decoration: none;
    transition: all .15s;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}

.start-here:hover {
    background: #fff;
    color: var(--primary-deep);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
    transform: translateY(-1px);
}

.cbt-foot {
    margin: 16px 0 0;
    font-size: .76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .75) !important;
}

/* ============================================================
   Responsive shell tweaks
   ============================================================ */
@media (max-width: 575.98px) {
    .app-header {
        padding: 0 14px;
        height: 64px;
    }

    .layout-row { padding-top: 64px; }

    .content-scroll {
        border-radius: 0;
        margin-left: 0;
    }

    .content-inner { padding: 12px; }

.logo-text { font-size: 1.15rem; }
    .pill-btn { font-size: .8rem; padding: 7px 12px; }
}

/* Hide the left icon rail below lg (mobile uses the offcanvas menu instead) */
@media (max-width: 991.98px) {
    .icon-rail { display: none !important; }
    .content-scroll { border-radius: 0; margin-left: 0; }
}

/* ============ Video lessons / class cards ============ */
.vl-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.vl-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    padding: 30px 32px;
    color: #fff;
}

.vl-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -150px;
    right: -70px;
}

.vl-glow.ig2 {
    width: 190px;
    height: 190px;
    bottom: -90px;
    left: 34%;
    top: auto;
    right: auto;
    background: rgba(255, 255, 255, .06);
}

.vl-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .16);
    border-radius: 200px;
    padding: 6px 14px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.vl-hero h1 {
    position: relative;
    z-index: 1;
    margin: 14px 0 8px;
    font-size: 1.6rem;
    font-weight: 800;
}

.vl-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
    max-width: 560px;
}

.vl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.vl-card {
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(111, 43, 88, .05);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.vl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(111, 43, 88, .12);
    border-color: #e2cfdd;
}

.vl-card-head { display: flex; align-items: center; gap: 12px; }

.vl-chip {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 14px rgba(111, 43, 88, .22);
}

.vl-card-title { display: flex; flex-direction: column; min-width: 0; }

.vl-code {
    font-size: 1.3rem;
    font-weight: 800;
    color: #141419;
    letter-spacing: .3px;
    line-height: 1.1;
}

.vl-level {
    align-self: flex-start;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #6f2b58;
    background: #f4ecf1;
    border-radius: 200px;
    padding: 3px 10px;
    margin-top: 4px;
}

.vl-name { margin: 2px 0 0; font-size: .94rem; font-weight: 800; color: #6b7280; }

.vl-desc {
    margin: 0;
    font-size: .86rem;
    line-height: 1.55;
    color: #6b7280;
}

.vl-divider { border: 0; border-top: 1px solid #f4ecf1; margin: 2px 0 4px; }

.vl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    border-radius: 200px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(111, 43, 88, .22);
    transition: background .15s;
}

.vl-btn:hover { color: #fff; background: linear-gradient(135deg, #5c2349, #6f2b58); }

.vl-btn .bi { font-size: .9rem; }

.vl-empty {
    margin: 24px 0 40px;
    padding: 40px 20px;
    text-align: center;
    border: 1px dashed #e6d3e0;
    border-radius: 18px;
    background: #fdf8fc;
    color: #6b7280;
}
.vl-empty .bi { font-size: 2.2rem; color: #c39ab8; }
.vl-empty p { margin: 10px 0 0; font-weight: 700; }

@media (max-width: 560px) {
    .vl-hero { padding: 22px 18px; }
    .vl-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Subject page (myschool.ng/classroom/{subject} clone)
   ============================================================ */
.subject-page { padding: 0 0 40px; }

.subject-wrap {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.subject-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: #3F3B3B;
    text-decoration: none;
}

.subject-back a:hover { color: var(--primary); }

/* Subject hero */
.subject-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    border: none;
    border-radius: 20px;
    padding: 26px 26px 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.subject-hero::before,
.subject-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.subject-hero::before { width: 320px; height: 320px; top: -150px; right: -60px; }
.subject-hero::after { width: 190px; height: 190px; bottom: -90px; left: 34%; background: rgba(255, 255, 255, .06); }

.sh-inner { display: flex; gap: 18px; align-items: flex-start; position: relative; z-index: 1; }

.subject-big-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.sh-info h1 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
}

.sh-info p {
    margin: 0 0 12px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.5;
}

.sh-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: .82rem;
    color: #fff;
}

.sh-stats strong { color: #fff; font-size: .95rem; }

.sh-stat-type {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border-radius: 200px;
    padding: 3px 12px;
    font-size: .75rem;
    font-weight: 600;
    color: #fff;
}

.sh-stat-type .bi-dot { color: #fff; font-size: 1.1rem; }

.subject-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    padding-top: 16px;
    position: relative;
    z-index: 1;
}

.subject-switch label {
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.subject-switch label .bi { color: #fff; }

.subject-switch select { max-width: 260px; }

/* Quick links strip */
.quick-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.quick-strip::-webkit-scrollbar { height: 4px; }
.quick-strip::-webkit-scrollbar-thumb { background: #e3e3e3; border-radius: 4px; }

.qs-card {
    flex-shrink: 0;
    width: 172px;
    border: 1px solid #f0e6f1;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #141419;
    font-size: .82rem;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 4px 14px rgba(111, 43, 88, .05);
    transition: all .15s;
}

.qs-card:hover { border-color: #8a3b70; color: #6f2b58; transform: translateY(-2px); box-shadow: 0 9px 18px rgba(111, 43, 88, .12); }

.qs-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .95rem;
    flex-shrink: 0;
}

/* Filter chips */
.filter-wrap {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid #f2f2f2;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 200px;
    border: 1.5px solid #e5d6df;
    background: #fff;
    color: #6f2b58;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
}

.chip:hover { background: #f8eef4; color: #6f2b58; border-color: #8a3b70; }

.chip.chip-on {
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    border-color: #6f2b58;
    color: #fff;
    box-shadow: 0 6px 14px rgba(111, 43, 88, .25);
}

.chip.chip-on:hover { background: linear-gradient(135deg, #5c2349, #6f2b58); color: #fff; }

/* Question section */
.q-section { overflow: hidden; }

.q-total {
    font-size: .82rem;
    font-weight: 700;
    color: #6f2b58;
}

.q-list { padding: 8px 20px 0; }

.q-card {
    border: 1px solid #f0e6f1;
    border-radius: 14px;
    padding: 16px;
    margin: 12px 0;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(111, 43, 88, .05);
    transition: box-shadow .15s, border-color .15s;
    scroll-margin-top: 96px;
}

.q-card:hover { border-color: #e2cfdd; box-shadow: 0 10px 22px rgba(111, 43, 88, .1); }

.q-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.q-number {
    font-weight: 800;
    font-size: .9rem;
    color: #141419;
}

.q-badges { display: flex; gap: 6px; align-items: center; }

.q-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 200px;
}

.b-type { background: #e8f5e9; color: #1b5e20; }
.b-jamb { background: #e8f5e9; color: #1b5e20; }
.b-waec { background: #fff3e0; color: #e65100; }
.b-neco { background: #e0f7fa; color: #00695c; }
.b-post_utme { background: #fce4ec; color: #880e4f; }
.b-custom { background: #ede7f6; color: #4527a0; }

.b-year { background: #e3f2fd; color: #0d47a1; }

.q-body {
    font-size: .95rem;
    line-height: 1.55;
    color: #141419;
    margin-bottom: 12px;
    white-space: pre-line;
}

.q-options { display: flex; flex-direction: column; gap: 8px; }

.q-option {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #eedce8;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .9rem;
    line-height: 1.4;
    background: #fff;
    transition: border-color .15s, background .15s;
}

.q-option:hover { border-color: #c9a7bb; background: #fcf8fb; }

.q-option .q-ol {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .75rem;
    font-weight: 800;
    color: #6f2b58;
    background: #f4ecf1;
}

.q-foot {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.q-foot .q-explain { margin-left: auto; }

/* Single-question viewer (CBT-style) */
.q-show { padding: 8px 20px 0; }

.q-show-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0 2px;
}

.q-show-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    color: #6b7280;
}

.q-show-count strong { color: #6f2b58; }

.q-show-count .bi { color: #8a3b70; }

.q-slot { display: none; margin: 12px 0; }

.q-slot.q-slot-on { display: block; animation: qFadeIn .18s ease; }

@keyframes qFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.q-nav-show { margin-top: 6px; }

.q-palette { margin-top: 14px; }

.q-explain {
    border: none;
    background: none;
    padding: 0;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1.5px solid transparent;
}

.q-explain:hover { border-bottom-color: var(--primary); }

.q-explain.disabled { color: #9a9a9a; cursor: default; border-bottom-color: transparent; }

.q-explanation {
    margin-top: 12px;
    background: #f8eef4;
    border-left: 3px solid #6f2b58;
    border-radius: 8px;
    padding: 12px 16px;
}

.qe-title {
    font-weight: 800;
    font-size: .85rem;
    color: #141419;
    margin-bottom: 6px;
}

.qe-answer {
    font-weight: 700;
    font-size: .78rem;
    color: #1b5e20;
    margin-left: 8px;
}

.q-explanation p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
    color: #3F3B3B;
}

.q-empty {
    text-align: center;
    padding: 48px 20px;
    color: #9aa1a6;
}

.q-empty i { font-size: 2.2rem; }
.q-empty p { margin: 12px 0 18px; }

/* Pagination */
.q-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.q-page {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid #eedce8;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #6f2b58;
    text-decoration: none;
    background: #fff;
    transition: all .15s;
}

.q-page:hover { border-color: #8a3b70; background: #f8eef4; color: #6f2b58; }

.q-page.q-page-on {
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    border-color: #6f2b58;
    color: #fff;
}

.q-page.q-page-on:hover { background: var(--primary-dark); color: #fff; }

.q-page-dots { color: #9aa1a6; padding: 0 4px; }

@media (max-width: 768px) {
    .subject-hero { padding: 18px; }
    .sh-inner { flex-direction: column; }
    .subject-switch { flex-direction: column; align-items: flex-start; }
    .subject-switch select { max-width: 100%; width: 100%; }
    .q-card { padding: 14px; }
}

/* ============================================================
   CBT page (myschool.ng/classroom/exam/cbt clone)
   ============================================================ */
.cbt-page { padding: 0 0 40px; }

.cbt-wrap { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }

/* Hero */
.cbt-hero {
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    border-radius: 22px;
    padding: 28px;
    display: flex;
    gap: 28px;
    align-items: center;
    color: #fff;
    box-shadow: 0 12px 28px rgba(74, 29, 60, .25);
    position: relative;
    overflow: hidden;
}

.cbt-hero-media { flex-shrink: 0; position: relative; z-index: 2; }

.cbt-hero-illus {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 3.4rem;
}

.cbt-hero-text { position: relative; z-index: 2; flex: 1; min-width: 0; }

.cbt-hero-text h1 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.cbt-hero-text p {
    margin: 0 0 18px;
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

.cbt-hero-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.cbt-hero-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #fff;
    color: #4a1d3c;
    text-decoration: none;
    font-weight: 700;
    font-size: .86rem;
    transition: all .15s;
}

.cbt-hero-btn:hover { transform: translateY(-2px); color: #4a1d3c; box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }

.cbt-hero-btn small { display: block; font-size: .68rem; font-weight: 600; color: #8a3b70; line-height: 1.1; }

.cbth-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cbth-rose { background: #e0612f; }
.cbth-blue { background: #2f6fe0; }
.cbth-green { background: #1fa458; }
.cbth-purple { background: #6d28d9; }

/* Customize section */
.cbt-customize { overflow: hidden; }

.cbt-customize .cc-card-header { padding-bottom: 10px; }

.cbt-customize .cc-card-header p {
    margin: 4px 0 0;
    font-size: .85rem;
    color: #3F3B3B;
}

.cbt-actions { margin: 12px 20px; }

.cbt-config {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
    padding: 8px 20px 24px;
}

.cbt-panel {
    background: #faf6f9;
    border: 1px solid #eadce6;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cbt-panel-head h5 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cbt-panel-head h5::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: #6f2b58;
    display: inline-block;
}

.cbt-panel-head p { margin: 0; font-size: .8rem; color: #3F3B3B; line-height: 1.4; }

.cbt-panel-head .subject-search { margin-top: 6px; }

.cbt-subject-list {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 4px;
}

.cbt-subject-list::-webkit-scrollbar { width: 6px; }
.cbt-subject-list::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

.cbt-subject {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    cursor: pointer;
    transition: all .15s;
}

.cbt-subject:hover { border-color: #d9dde2; }

.cbt-subject:has(input:checked) {
    border-color: #8a3b70;
    box-shadow: 0 2px 10px rgba(111, 43, 88, .12);
}

.cbt-subject input { width: 17px; height: 17px; accent-color: #6f2b58; flex-shrink: 0; }

.cbt-subject input:disabled { cursor: not-allowed; }

.cbt-subj-ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f4ecf1;
    color: #6f2b58;
    font-size: .9rem;
    flex-shrink: 0;
}

.cbt-subj-name {
    font-size: .82rem;
    font-weight: 600;
    color: #141419;
    line-height: 1.15;
}

.cbt-subj-name small { display: block; font-size: .66rem; font-weight: 500; color: #9aa1a6; }

/* Config panel */
.cbt-config-table {
    border: 1px solid #eef0f2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.cbt-config-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f5;
    background: #fff;
}

.cbt-config-row:last-child { border-bottom: none; }

.cbt-config-head {
    background: #f6eef2;
    font-size: .74rem;
    font-weight: 700;
    color: #6f2b58;
}

.cbt-config-subj { font-size: .82rem; font-weight: 600; color: #141419; }

.cbt-config-count { font-size: .8rem !important; }

.cbt-config-empty {
    text-align: center;
    padding: 34px 16px;
    color: #9aa1a6;
}

.cbt-config-empty i { font-size: 1.9rem; }
.cbt-config-empty p { margin: 10px 0 0; font-size: .8rem; }

.cbt-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.cbt-time-row label { font-size: .82rem; font-weight: 600; color: #141419; }
.cbt-time-row select { width: 140px; }

.cbt-proceed {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    box-shadow: 0 8px 18px rgba(111, 43, 88, .28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all .15s;
}

.cbt-proceed:hover { background: linear-gradient(135deg, #5c2349, #6f2b58); }

.cbt-proceed:disabled {
    background: #dcd9d9;
    color: #9aa1a6;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .cbt-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
    .cbt-config { grid-template-columns: 1fr; }
    .cbt-hero-actions { grid-template-columns: 1fr; }
}

/* ============================================================
   Exam session page (mirrors myschool CBT exam session)
   ============================================================ */
.exam-session-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exam-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid #ececec;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    padding: 12px 16px;
}

.exam-topbar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.exam-exit {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f5f3f3;
    color: #6b6464;
    text-decoration: none;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: all .15s;
}

.exam-exit:hover { background: var(--primary); color: #fff; }

.exam-title { display: flex; flex-direction: column; margin-right: auto; }

.exam-title strong {
    font-size: .98rem;
    font-weight: 800;
    color: #141419;
}

.exam-title small { font-size: .75rem; color: #6b6464; }

.exam-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #101623;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 10px;
}

.exam-timer.bg-danger {
    background: #dc3545 !important;
    animation: pulse-danger .8s infinite alternate;
}

.exam-timer .bi-stopwatch { font-size: 1.1rem; }

@keyframes pulse-danger {
    from { box-shadow: 0 0 0 rgba(220, 53, 69, 0); }
    to   { box-shadow: 0 0 14px rgba(220, 53, 69, .55); }
}

.exam-submit-btn {
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: .86rem;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all .15s;
}

.exam-submit-btn:hover { background: var(--primary-dark); }

.exam-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

/* Palette */
.exam-palette {
    position: sticky;
    top: 76px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exam-palette-bottom {
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 1px solid #f2f2f2;
}

.palette-head h6 {
    margin: 0 0 10px;
    font-size: .92rem;
    font-weight: 800;
    color: #141419;
}

.palette-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .72rem;
    color: #6b6464;
    margin-bottom: 10px;
}

.palette-legend span { display: inline-flex; align-items: center; gap: 6px; }

.pal-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.pal-done { background: #2e7d32; }
.pal-current { background: var(--primary); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
.pal-pending { background: #e4e4e4; border: 1px solid #d0d0d0; }

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 6px;
}

.pal-btn {
    aspect-ratio: 1;
    border: 1.5px solid #dedede;
    border-radius: 8px;
    background: #fff;
    color: #3F3B3B;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .12s;
    display: grid;
    place-items: center;
}

.pal-btn:hover { border-color: var(--primary); color: var(--primary); }

.pal-btn.pal-done {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.pal-btn.pal-current {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 2px rgba(183, 12, 1, .28);
}

.pal-btn.pal-done.pal-current { background: var(--primary); border-color: var(--primary); color: #fff; }

.pal-btn.pal-wrong {
    background: #d64545;
    border-color: #d64545;
    color: #fff;
}

.pal-btn.pal-wrong.pal-current { background: var(--primary); border-color: var(--primary); color: #fff; }

.pal-btn.pal-pending.pal-current { background: var(--primary); border-color: var(--primary); color: #fff; }

.palette-summary {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: .75rem;
    color: #6b6464;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px 12px;
}

.pal-total strong { color: #141419; }

.pal-submit { justify-content: center; width: 100%; }

/* Selected subjects bar */
.exam-subjects {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subjects-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.subjects-label {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b6464;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subjects-label .bi { color: var(--primary); }

.subjects-progress {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    background: #fcf0ef;
    border-radius: 200px;
    padding: 5px 14px;
}

.subjects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    padding: 7px 12px;
    font-size: .82rem;
    font-weight: 600;
    color: #141419;
    cursor: pointer;
    transition: all .13s;
}

.subject-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fcf0ef;
}

.subject-chip.sc-on {
    border-color: #2e7d32;
    background: #f0f7f0;
    color: #145214;
}

.subject-chip.sc-current {
    border-color: var(--primary);
    background: #fff6f5;
    box-shadow: 0 0 0 2px rgba(183, 12, 1, .18);
}

.subject-chip.sc-current .sc-name { color: var(--primary); }

.subject-chip.sc-on.sc-current {
    border-color: var(--primary);
    background: #fcf0ef;
    box-shadow: 0 0 0 2px rgba(183, 12, 1, .18);
}

.subject-chip.sc-all { color: #3F3B3B; }

.sc-ic {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: #f0efef;
    color: var(--primary);
    font-size: .85rem;
    flex-shrink: 0;
}

.sc-count { font-size: .8rem; font-weight: 700; color: #6b6464; }

.sc-count .sc-done { color: #141419; }

.sc-check { color: #2e7d32; font-size: .85rem; display: none; }

.subject-chip.sc-on .sc-check { display: inline-block; }

.subject-chip.sc-on .sc-done { color: #145214; }

@media (max-width: 600px) {
    .subject-chip .sc-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Question area */
.exam-question-area {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 20px;
}

.question-slot { display: none; }

.question-slot.q-active { display: block; animation: fadeInQ .25s ease; }

@keyframes fadeInQ {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.q-meta-num {
    font-size: .82rem;
    font-weight: 800;
    color: var(--primary);
    background: #fcf0ef;
    border-radius: 200px;
    padding: 6px 14px;
}

.q-meta-state { font-size: .74rem; font-weight: 600; color: #9a5720; background: #fff7e6; border-radius: 200px; padding: 4px 12px; }

.q-meta-state.state-on { color: #1b5e20; background: #e8f5e9; }

.q-meta-subject {
    font-size: .74rem;
    font-weight: 700;
    color: #145214;
    background: #eef7ee;
    border-radius: 200px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.q-meta-subject .bi { font-size: .85rem; }

.question-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #141419;
    margin-bottom: 12px;
    white-space: pre-line;
    font-weight: 500;
}

.question-image {
    max-width: 100%;
    max-height: 220px;
    border-radius: 10px;
    margin-bottom: 6px;
    border: 1px solid #eee;
}

.question-passage {
    position: relative;
    background: #f8f5fa;
    border: 1px solid #e6dced;
    border-left: 4px solid #b07aa0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: .98rem;
    line-height: 1.65;
    color: #2c2233;
    white-space: pre-line;
}
.question-passage-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a6296;
    margin-bottom: 6px;
}
.question-passage p { margin: 0 0 8px; }
.question-passage p:last-child { margin-bottom: 0; }

.question-options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

.opt-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1.5px solid #e6e6e6;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    transition: all .13s;
}

.opt-row:hover { border-color: #cfcfcf; background: #fafafa; }

.opt-row input { display: none; }

.opt-row.opt-on {
    border-color: var(--primary);
    background: #fcf0ef;
    box-shadow: 0 2px 12px rgba(183, 12, 1, .12);
}

.opt-key {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 800;
    color: #3F3B3B;
    background: #f1f1f1;
    transition: all .13s;
}

.opt-on .opt-key { background: var(--primary); color: #fff; }

.opt-text {
    font-size: .95rem;
    line-height: 1.45;
    color: #141419;
    flex: 1;
}

.opt-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 2px solid #d6d6d6;
    font-size: .75rem;
    opacity: 0;
    transition: all .13s;
}

.opt-on .opt-check { background: var(--primary); border-color: var(--primary); opacity: 1; }

/* Navigation buttons */
.exam-navbtns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f2f2f2;
}

.nav-btn {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #141419;
    font-weight: 700;
    font-size: .88rem;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all .15s;
}

.nav-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }

.nav-btn:disabled { opacity: .45; cursor: not-allowed; }

.nav-next {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.nav-next:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

@media (max-width: 960px) {
    .exam-body { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .exam-title { display: none; }
    .exam-topbar-inner { justify-content: space-between; }
    .palette-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ============ JAMB CBT page ============ */

.jmb-page { padding: 8px 0 40px; }

.jmb-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Hero */
.jmb-hero {
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 12px 28px rgba(74, 29, 60, .25);
}

.jmb-hero-display {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .16);
    display: grid;
    place-items: center;
    font-size: 2.3rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.jmb-hero-details { position: relative; z-index: 1; }

.jmb-hero-details h4 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.jmb-hero-details p {
    margin: 0;
    font-size: .85rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
    max-width: 640px;
}

/* Action cards */
.jmb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jmb-action-card {
    flex: 1 1 calc(25% - 10px);
    min-width: 170px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.jmb-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(111, 43, 88, .12);
}

.jmb-action-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4ecf1;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #6f2b58;
}

.jmb-action-card p {
    margin: 0;
    font-size: .84rem;
    font-weight: 600;
    color: #141419;
    line-height: 1.3;
}

/* Setup card */
.jmb-setup { overflow: hidden; }

.jmb-setup-head {
    padding: 18px 22px;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.jmb-setup-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #141419;
}

.jmb-setup-head p {
    margin: 0;
    font-size: .82rem;
    color: #6a6464;
}

.jmb-setup-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.jmb-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Subject panel */
.jmb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

.jmb-panel-head h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jmb-panel-head h5 i { color: #6f2b58; font-size: 1.1rem; }

.jmb-counter {
    font-size: .8rem;
    font-weight: 700;
    color: #6f2b58;
    background: #f4ecf1;
    padding: 4px 12px;
    border-radius: 200px;
}

/* English compulsory card */
.jmb-english {
    background: #faf6f9;
    border: 1px solid #eadce6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.jmb-subj-title {
    margin: 0 0 12px;
    font-size: .98rem;
    font-weight: 600;
    color: #141419;
}

.jmb-sub-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: #6a6464;
    cursor: pointer;
    margin: 0 0 8px;
}

.jmb-sub-check:last-child { margin-bottom: 0; }

.jmb-sub-check input { accent-color: #6f2b58; width: 15px; height: 15px; }

/* Slot pickers */
.jmb-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.jmb-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px dashed #d9bcc9;
    border-radius: 12px;
    background: #fff;
    padding: 13px 16px;
    cursor: pointer;
    color: #6a6464;
    font-size: .84rem;
    transition: border-color .15s;
    user-select: none;
}

.jmb-slot:hover { border-color: #6f2b58; }

.jmb-slot .bi-plus-lg { font-size: .95rem; color: #c9a7bb; }

.jmb-slot.jmb-filled {
    border: 1.5px solid #2e7d32;
    background: #f5faf5;
    color: #145214;
    font-weight: 600;
}

.jmb-slot.jmb-filled .bi-x-lg { color: #2e7d32; font-size: .95rem; }

/* Picker dropdown */
.jmb-picker {
    display: none;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16,13,13,.12);
    overflow: hidden;
}

.jmb-picker-open { display: block; }

.jmb-picker-search {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
    font-size: .84rem;
    outline: none;
    background: #fff;
}

.jmb-picker-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.jmb-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .84rem;
    color: #141419;
    transition: background .12s;
}

.jmb-picker-item:hover { background: #f8eef4; }

.jmb-picker-ic {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f4ecf1;
    display: grid;
    place-items: center;
    font-size: .95rem;
    color: #6f2b58;
    flex-shrink: 0;
}

.jmb-picker-empty { padding: 14px; text-align: center; font-size: .82rem; color: #9aa1a6; }

/* Test mode */
.jmb-modes { display: flex; gap: 12px; }

.jmb-mode {
    flex: 1;
    background: #f3f2f2;
    border: 1.5px solid transparent;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all .2s;
    min-height: 108px;
}

.jmb-mode input { display: none; }

.jmb-mode-label {
    align-self: flex-end;
    background: #fff;
    border-radius: 200px;
    padding: 5px 12px;
    font-size: .78rem;
    font-weight: 500;
    color: #3f3b3b;
    box-shadow: 0 2px 6px rgba(16,13,13,.06);
}

.jmb-mode-time { display: flex; align-items: baseline; gap: 4px; }

.jmb-mode-time strong { font-size: 1.7rem; font-weight: 800; color: #7a7474; line-height: 1; }

.jmb-mode-time { color: #7a7474; font-size: .72rem; }

.jmb-mode.jmb-selected {
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    border-color: #6f2b58;
}

.jmb-mode.jmb-selected .jmb-mode-time strong,
.jmb-mode.jmb-selected .jmb-mode-time { color: #fff; }

.jmb-mode.jmb-selected .jmb-mode-label { background: #fff; color: #6f2b58; }

/* Year */
.jmb-year-select { max-width: 320px; border-radius: 10px; }

.jmb-year-panel { display: flex; flex-direction: column; }

/* Submit */
.jmb-submit {
    border-top: 1px solid #f2f2f2;
    padding-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.jmb-proceed {
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    color: #fff;
    border: none;
    border-radius: 200px;
    padding: 12px 30px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s;
    box-shadow: 0 8px 18px rgba(111, 43, 88, .25);
}

.jmb-proceed:hover:not(:disabled) { background: linear-gradient(135deg, #5c2349, #6f2b58); }

.jmb-proceed:disabled {
    background: #f7f7f7;
    color: #afabab;
    cursor: not-allowed;
}

/* Get ready for JAMB */
.jmb-ready { border: 1px solid #ececec; border-radius: 20px; background: #fff; overflow: hidden; }

.jmb-ready-head { padding: 16px 20px; border-bottom: 1px solid #f2f2f2; }

.jmb-ready-head h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #141419;
}

.jmb-ready-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px 20px;
}

.jmb-ready-card {
    background: #f9f9f9;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    transition: transform .35s;
}

.jmb-ready-card:hover { transform: scale(1.03); }

.jmb-ready-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4ecf1;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #6f2b58;
}

.jmb-ready-card h5 {
    margin: 0;
    font-size: .84rem;
    font-weight: 600;
    color: #141419;
    line-height: 1.35;
}

/* Bottom actions */
.jmb-bottom-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .jmb-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
    .jmb-action-card { flex: 1 1 calc(50% - 10px); min-width: 0; }
    .jmb-modes { flex-direction: column; }
    .jmb-setup-actions { width: 100%; }
    .jmb-ready-grid { grid-template-columns: repeat(2, 1fr); }
}

.jmb-year-hint{
  margin:10px 0 0;
  font-size:13px;
  color:#9a5b00;
  background:#fff4e0;
  border:1px solid #ffd98a;
border-radius:8px;
  padding:8px 12px;
}

/* ============ WAEC/NECO CBT pages (subject grid) ============ */

.jmb-select-hint {
    margin: 0 0 12px;
    font-size: .8rem;
    color: #6a6464;
}

.jmb-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.jmb-sub-card {
    background: #f9f9f9;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
}

.jmb-sub-card:hover { background: #f8eef4; }

.jmb-sub-card input { display: none; }

.jmb-sub-ic {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f4ecf1;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #6f2b58;
}

.jmb-sub-name {
    font-size: .8rem;
    font-weight: 600;
    color: #141419;
    line-height: 1.3;
}

.jmb-sub-na {
    font-size: .7rem;
    color: #9aa1a6;
}

.jmb-sub-card.jmb-sub-off {
    opacity: .55;
    cursor: not-allowed;
}

.jmb-sub-card.jmb-selected-card {
    border-color: #2e7d32;
    background: #f5faf5;
}

.jmb-sub-card.jmb-selected-card .jmb-sub-name { color: #145214; }

.jmb-sub-card.jmb-selected-card .jmb-sub-ic { color: #2e7d32; }

.jmb-sub-card.jmb-disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ============ WAEC/NECO CBT Simulator (myschool clone) ============ */

.mcb-wrap {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Hero */
.mcb-hero {
    display: flex;
    flex-direction: row;
    gap: 17px;
    align-items: center;
    border-radius: 22px;
    min-height: 144px;
    padding: 24px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mcb-hero.waec { background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%); }
.mcb-hero.neco { background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%); }

.mcb-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -60px;
    top: -80px;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
    pointer-events: none;
}

.mcb-hero::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    z-index: 1;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.4) 0 1.5px, transparent 2px);
    background-size: 26px 26px;
    background-position: 0 0;
    opacity: .5;
}

.mcb-hero-img {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .92);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.mcb-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mcb-hero-details { position: relative; z-index: 2; }

.mcb-hero-details h4 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.mcb-hero-details p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    max-width: 640px;
}

/* Quick-link cards */
.mcb-qcards {
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 16px;
}

.mcb-qcards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 640px) {
    .mcb-qcards-grid { display: flex; flex-wrap: wrap; }
}

.mcb-qcard {
    flex: 0 0 auto;
    width: 183px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f7f8f8;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s;
}

.mcb-qcard:hover { transform: translateY(-2px); }

.mcb-qcard-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4ecf1;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #6f2b58;
}

.mcb-qcard p {
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    color: #141419;
    line-height: 1.3;
}

/* Setup card */
.mcb-setup {
    max-width: 630px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .mcb-setup {
        border: 1px solid #e3e3e3;
        border-radius: 16px;
        background: #fff;
    }
}

.mcb-setup-head { padding: 18px 20px 0; }

@media (min-width: 640px) {
    .mcb-setup-head { padding: 18px 20px; border-bottom: 1px solid #eef0f0; }
}

.mcb-setup-head h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #141419;
}

.mcb-setup-head p {
    margin: 0;
    font-size: .8rem;
    color: #7a7a86;
}

.mcb-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.mcb-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 200px;
    padding: 7px 14px;
    font-size: .78rem;
    color: #3f3b3b;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.mcb-pill:hover { background: #f6edf2; }

.mcb-pill-primary { color: #6f2b58; border-color: #d9bcc9; }

.mcb-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 640px) {
    .mcb-body { padding: 20px; }
}

/* Panels */
.mcb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.mcb-panel-head h5 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcb-panel-head h5 i { font-size: 1.05rem; color: #6f2b58; }

.mcb-counter {
    font-size: .75rem;
    font-weight: 700;
    background: #f4ecf1;
    padding: 6px 10px;
    border-radius: 200px;
    color: #6f2b58;
}

/* Subject selector */
.mcb-subject-box {
    border-radius: 12px;
    background: #faf6f9;
    padding: 16px;
}

.mcb-search { position: relative; margin-bottom: 16px; }

.mcb-search i.bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a1b2;
    font-size: .9rem;
    z-index: 1;
}

.mcb-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #c3c5c9;
    border-radius: 14px;
    font-size: .85rem;
    outline: none;
    background: #fff;
}

.mcb-search input:focus { border-color: #8a3b70; }

.mcb-subject-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.s-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background .12s;
    user-select: none;
}

.s-tab:hover { background: #f8eef4; }

.s-tab input {
    accent-color: #6f2b58;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.s-tab span {
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 500;
    color: #344054;
}

/* Test mode */
.mcb-modes { display: flex; gap: 12px; }

.mode-card {
    flex: 1;
    background: #f3f2f2;
    border-radius: 16px;
    min-height: 111px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: background .2s;
}

.mode-card input { display: none; }

.mode-pill {
    align-self: flex-end;
    background: #fff;
    border-radius: 200px;
    padding: 5px 12px;
    font-size: .76rem;
    font-weight: 500;
    color: #7a7474;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.mode-time { display: flex; align-items: baseline; gap: 4px; }

.mode-time strong {
    font-size: 1.9rem;
    font-weight: 800;
    color: #7a7474;
    line-height: 1;
}

.mode-time small { font-size: .72rem; color: #7a7474; }

.mode-card.selected { background: linear-gradient(135deg, #6f2b58, #8a3b70); }

.mode-card.selected .mode-time strong,
.mode-card.selected .mode-time small,
.mode-card.selected .mode-pill { color: #fff; }

@media (max-width: 640px) {
    .mcb-modes { flex-direction: column; }
}

/* Footer / proceed */
.mcb-setup-foot {
    padding: 16px 20px;
    border-top: 1px solid #eef0f0;
    display: flex;
    justify-content: flex-end;
}

.mcb-proceed {
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    color: #fff;
    border: none;
    border-radius: 200px;
    padding: 11px 28px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s;
    box-shadow: 0 8px 18px rgba(111, 43, 88, .25);
}

.mcb-proceed:hover:not(:disabled) { background: linear-gradient(135deg, #5c2349, #6f2b58); }

.mcb-proceed:disabled {
    background: #f7f8f8;
    color: #afabab;
    cursor: not-allowed;
}

/* Get ready for SSCE and GCE */
.mcb-ready {
    border: 1px solid #e3e3e3;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.mcb-ready-head { padding: 16px 18px; }

.mcb-ready-head h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #141419;
}

.mcb-ready-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px 18px 20px;
}

@media (min-width: 768px) {
    .mcb-ready-grid { grid-template-columns: repeat(3, 1fr); }
}

.mcb-ready-card {
    background: #f7f8f8;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: transform .35s;
}

.mcb-ready-card:hover { transform: scale(1.04); }

.mcb-ready-ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4ecf1;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #6f2b58;
}

.mcb-ready-card h5 {
    margin: 0;
    font-size: .84rem;
    font-weight: 600;
    color: #141419;
    line-height: 1.35;
}

/* Year modal */
.mcb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(34,34,113,.38);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 16px;
}

.mcb-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 80vh;
    overflow: auto;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(16,13,13,.2);
}

.mcb-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mcb-modal-head h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #141419;
}

.mcb-modal-close {
    background: #f3f2f2;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #3f3b3b;
    cursor: pointer;
}

.mcb-modal-sub {
    margin: 0 0 14px;
    font-size: .82rem;
    color: #6a6464;
}

.mcb-year-list { display: flex; flex-direction: column; gap: 8px; }

.mcb-year {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid #ececec;
    border-radius: 12px;
    padding: 13px 16px;
    background: #fff;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    color: #141419;
    transition: border-color .15s;
}

.mcb-year:hover { border-color: #8a3b70; }

.mcb-year small {
    font-weight: 400;
    color: #6a6464;
    font-size: .76rem;
}

.mcb-modal-empty {
    margin: 10px 0 0;
    font-size: .85rem;
    color: #9a5b00;
    text-align: center;
}

@media (max-width: 640px) {
    .mcb-hero { flex-direction: row; min-height: auto; padding: 20px; }
    .mcb-hero-img { width: 60px; height: 60px; }
    .mcb-hero-details h4 { font-size: 1rem; }
}

/* Exam result: per-subject score rows (clickable) */
.subject-score-row {
    cursor: pointer;
    transition: background-color .12s ease;
}

.subject-score-row:hover { background: var(--bs-primary-bg-subtle) !important; }

.subject-score-row.active { box-shadow: inset 3px 0 0 var(--primary); }

.subject-score-row .subject-review-arrow { transition: transform .12s ease; }

.subject-score-row.active .subject-review-arrow { transform: translateX(2px); }

.review-card { transition: display .2s ease; }

/* ============ Admin Dashboard ============ */
.admin-dash {
    background: #f3f5f9;
    min-height: 100vh;
}

.admin-sidebar-card {
    background: #161b2d;
    border: 0;
    border-radius: 18px;
    color: #cdd3e0;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.admin-sidebar-card .brand-zone {
    padding: 24px 20px 18px;
    background: linear-gradient(135deg, rgba(175,70,137,.25), rgba(175,70,137,.05));
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.admin-sidebar-card .brand-zone .brand-badge {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d84a9e, #7d2c5f);
    display: grid; place-items: center;
    color: #fff; font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(175,70,137,.4);
}

.admin-sidebar-card .nav-sec-title {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b7388;
    padding: 16px 20px 6px;
}

.admin-sidebar-card .side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    color: #aeb6c8;
    text-decoration: none;
    font-size: .9rem;
    border-left: 3px solid transparent;
    transition: all .15s ease;
}

.admin-sidebar-card .side-link i { font-size: 1.05rem; width: 20px; text-align: center; }

.admin-sidebar-card .side-link:hover { color: #fff; background: rgba(255,255,255,.05); }

.admin-sidebar-card .side-link.active,
.admin-sidebar-card .side-link.current {
    color: #fff;
    background: linear-gradient(90deg, rgba(175,70,137,.45), rgba(175,70,137,.08));
    border-left-color: #ef7c3f;
}

.admin-hero {
    background: linear-gradient(120deg, #8f2f6e 0%, #af4689 45%, #e079ae 100%);
    border-radius: 22px;
    padding: 26px 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 14px 30px rgba(175,70,137,.28);
    position: relative;
    overflow: hidden;
}

.admin-hero::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 230px; height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}

.admin-hero .hero-eyebrow {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .85;
    font-weight: 600;
}

.admin-hero h1 { font-size: 1.55rem; font-weight: 700; margin: 6px 0 0; }

.admin-hero .hero-sub { opacity: .92; font-size: .92rem; margin-top: 4px; }

.admin-hero .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; z-index: 1; }

.admin-hero .hero-actions .btn-light {
    background: rgba(255,255,255,.95);
    border: 0; color: #8f2f6e; font-weight: 600;
    border-radius: 12px;
}

.admin-hero .hero-actions .btn-white-outline {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.45);
    color: #fff; font-weight: 600; border-radius: 12px;
}

.admin-hero .hero-actions .btn-white-outline:hover { background: rgba(255,255,255,.24); color: #fff; }

.stat-card {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(22,27,45,.06);
    padding: 18px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,27,45,.12); }

.stat-card .stat-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.35rem;
    color: #fff;
}

.stat-card .stat-value { font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: #161b2d; }

.stat-card .stat-label { font-size: .78rem; color: #7a8294; font-weight: 500; }

.stat-card .stat-trend { font-size: .72rem; color: #23a55a; font-weight: 600; }

.admin-panel {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(22,27,45,.06);
}

.admin-panel .panel-head {
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef0f5;
}

.admin-panel .panel-head h6 { margin: 0; font-weight: 700; color: #161b2d; }

.admin-panel .panel-head a { font-size: .8rem; text-decoration: none; font-weight: 600; }

.admin-panel .panel-body { padding: 6px 8px; }

.admin-user-list { margin: 0; padding: 0; list-style: none; }

.admin-user-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 12px;
}

.admin-user-list li:hover { background: #f6f7fb; }

.admin-user-list .u-avatar {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e6a8d0, #af4689);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: .9rem;
}

.admin-user-list .u-info { min-width: 0; }

.admin-user-list .u-info .u-name {
    font-weight: 600; color: #161b2d; font-size: .9rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-user-list .u-info .u-meta {
    font-size: .75rem; color: #7a8294;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-role-badge {
    font-size: .7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    letter-spacing: .03em;
}

.admin-role-badge.r-admin { background: #fde7ec; color: #c2255c; }

.admin-role-badge.r-user { background: #e8eefb; color: #3b5bdb; }

.admin-role-badge.r-moderator { background: #fff4e3; color: #b3640e; }

.admin-question-item {
    padding: 10px 12px; border-radius: 12px; display: block; text-decoration: none;
}

.admin-question-item:hover { background: #f6f7fb; }

.admin-question-item .q-text {
    color: #2b3040; font-size: .88rem; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.admin-question-item .q-meta { font-size: .74rem; color: #7a8294; margin-top: 4px; }

.admin-question-item .q-meta .badge { font-weight: 600; border-radius: 8px; }

.admin-exam-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }

.admin-exam-bar .bar-label { width: 150px; font-size: .82rem; font-weight: 500; color: #3a4155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-exam-bar .bar-track { flex: 1; height: 8px; border-radius: 8px; background: #eef0f5; overflow: hidden; }

.admin-exam-bar .bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #af4689, #e079ae); }

.admin-exam-bar .bar-count { font-size: .8rem; font-weight: 700; color: #161b2d; width: 46px; text-align: right; }

@media (max-width: 991.98px) {
    .admin-sidebar-card { position: static; }
}

/* Admin page header */
.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-page-head h4 { font-weight: 700; color: #161b2d; margin: 0; }

.admin-page-head .page-sub { color: #7a8294; font-size: .86rem; margin-top: 2px; }

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #af4689, #d264a9);
    color: #fff;
    border: 0;
    font-weight: 600;
    font-size: .92rem;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(175,70,137,.25);
    transition: all .15s ease;
}

.admin-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(175,70,137,.35); }

.admin-btn-soft {
    background: #fdeef8;
    color: #9b2f78;
}

.admin-btn-soft:hover { background: #fadcf0; color: #8a2a6b; }

.admin-btn-ghost {
    background: transparent;
    color: #5a6172;
    box-shadow: none;
    border: 1px solid #dfe3ec;
}

.admin-btn-ghost:hover { background: #f2f4f9; color: #161b2d; }

.admin-btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 10px; }

/* Admin tables */
.admin-table-wrap { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; margin: 0; }

.admin-table thead th {
    background: #fafbfe;
    color: #7a8294;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 13px 16px;
    border-bottom: 1px solid #eef0f5;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 13px 16px;
    font-size: .88rem;
    color: #2b3040;
    border-bottom: 1px solid #f0f2f7;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: 0; }

.admin-table tbody tr { transition: background .12s ease; }

.admin-table tbody tr:hover { background: #f8fafd; }

.admin-table .cell-title { font-weight: 600; color: #161b2d; }

.admin-table .cell-sub { font-size: .78rem; color: #8b93a7; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: .03em; }

.pill-on { background: #e7f7ec; color: #1a8a4a; }

.pill-off { background: #fdeeec; color: #c0392b; }

.pill-soft { background: #f0f2f8; color: #5a6172; }

.pill-brand { background: #fdeef8; color: #9b2f78; }

.pill-info { background: #e8eefb; color: #3b5bdb; }

.pill-warn { background: #fff4e3; color: #b3640e; }

/* Admin action buttons (row actions) */
.row-actions { display: flex; gap: 5px; align-items: center; white-space: nowrap; }

.row-actions form { display: inline; }

.row-actions a, .row-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 10px;
    border: 1px solid #e6e9f0;
    background: #fff;
    color: #5a6172;
    text-decoration: none;
    font-size: .8rem;
    transition: all .12s ease;
}

.row-actions a:hover, .row-actions button:hover { background: #f4f6fb; color: #161b2d; }

.row-actions a.act-edit:hover { border-color: #af4689; color: #af4689; background: #fdf3fa; }

.row-actions a.act-link:hover { border-color: #3b5bdb; color: #3b5bdb; background: #f0f3fe; }

.row-actions button.act-del:hover { border-color: #dc3545; color: #dc3545; background: #fef1f1; }

/* Admin list rows (card-style lists) */
.admin-list-items { display: flex; flex-direction: column; padding: 6px; }

.admin-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background .12s ease;
}

.admin-list-item:hover { background: #f8fafd; }

.admin-list-item + .admin-list-item { border-top: 1px solid #f4f6fb; }

/* Admin forms */
.admin-form { padding: 22px 26px 26px; }

.admin-form .form-label { font-weight: 600; font-size: .85rem; color: #3a4155; }

.admin-form .form-control,
.admin-form .form-select {
    border-radius: 12px;
    border: 1.5px solid #e2e6ee;
    font-size: .92rem;
    padding: 10px 14px;
    color: #2b3040;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: #af4689;
    box-shadow: 0 0 0 .18rem rgba(175,70,137,.12);
}

.admin-form .form-text { font-size: .78rem; color: #8b93a7; }

.admin-form .inp-icon { position: relative; }

.empty-state {
    text-align: center;
    padding: 46px 20px;
    color: #8b93a7;
}

.empty-state i { font-size: 2.4rem; color: #cdd3e0; display: block; margin-bottom: 10px; }

.empty-state p { margin-bottom: 14px; font-size: .92rem; }

.admin-breadcrumb { font-size: .8rem; color: #8b93a7; margin-bottom: 10px; }

.admin-breadcrumb a { color: #af4689; text-decoration: none; font-weight: 600; }

.admin-breadcrumb .sep { margin: 0 8px; color: #cdd3e0; }

/* ============================================================
   Member dashboard
   ============================================================ */
.mbr-page {
    padding: 8px 0 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile hero */
.mbr-hero {
    border-radius: 20px;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    padding: 26px 30px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.mbr-hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    top: -130px;
    right: -50px;
}

.mbr-hero-glow.ig2 {
    width: 180px;
    height: 180px;
    top: auto;
    right: auto;
    bottom: -70px;
    left: 34%;
    background: rgba(255,255,255,.06);
}

.mbr-hero-grid {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.mbr-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.9);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    flex-shrink: 0;
    background: #fff;
}

.mbr-hero-info { flex: 1; min-width: 240px; }

.mbr-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mbr-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.mbr-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 200px;
    padding: 3px 12px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.mbr-user {
    color: rgba(255,255,255,.85);
    font-weight: 600;
    margin: 4px 0 10px;
    font-size: .92rem;
}

.mbr-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.mbr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border-radius: 200px;
    padding: 5px 12px;
    font-size: .8rem;
    font-weight: 600;
}

.mbr-chip-ghost {
    background: #f3edf4;
    color: var(--primary-deep);
    font-weight: 600;
}

.mbr-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mbr-hero-actions .cc-pill {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: rgba(255,255,255,.12);
}

.mbr-hero-actions .cc-pill:hover { background: #fff; color: #6f2b58; }

.mbr-hero-actions .cc-pill.cc-pill-solid {
    background: #fff;
    border-color: #fff;
    color: #6f2b58;
}

.mbr-hero-actions .cc-pill.cc-pill-solid:hover { background: #f6e9f1; }

.mbr-hero-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.2);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(255,255,255,.85);
    position: relative;
    z-index: 2;
}

.mbr-hero-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* Stat tiles */
.mbr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mbr-stat {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .2s, box-shadow .2s;
}

.mbr-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }

.mbr-stat-ic {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mbr-stat.rose .mbr-stat-ic { background: #f0e6f1; color: #6f2b58; }
.mbr-stat.purple .mbr-stat-ic { background: #f0e6f1; color: #6f2b58; }
.mbr-stat.blue .mbr-stat-ic { background: #f0e6f1; color: #6f2b58; }
.mbr-stat.teal .mbr-stat-ic { background: #f0e6f1; color: #6f2b58; }

.mbr-stat-num { font-size: 1.5rem; font-weight: 800; line-height: 1; color: #141419; }

.mbr-stat-label { font-size: .8rem; color: #6b7280; margin-top: 4px; font-weight: 600; }

/* Content columns */
.mbr-cols { display: flex; gap: 24px; align-items: flex-start; }

.mbr-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mbr-aside {
    width: 340px;
    flex-shrink: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #8a3b70;
    border-radius: 20px;
    padding: 20px 0;
    box-shadow: 0 10px 24px rgba(122, 50, 105, .35);
}

.mbr-aside .cc-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 992px) { .mbr-aside { display: flex; } }

.cc-card-header a.viewall {
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.cc-card-header a.viewall:hover { text-decoration: underline; }

/* List rows */
.mbr-list { padding: 6px 0; }

.mbr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.mbr-item:last-child { border-bottom: 0; }
.mbr-item:hover { background: #fafafa; }

.mbr-item-left { min-width: 0; }

.mbr-item-title {
    font-weight: 600;
    font-size: .95rem;
    color: #141419;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.mbr-item-sub {
    font-size: .8rem;
    color: #6b7280;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mbr-item-right { text-align: right; flex-shrink: 0; }

.mbr-status {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-radius: 200px;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mbr-status.ok { background: #e7f7ee; color: #16803c; }
.mbr-status.warn { background: #fdf3dc; color: #a16207; }

.score { font-weight: 800; font-size: 1rem; }
.score-good { color: #16a34a; }
.score-mid { color: #6b7280; }
.score-low { color: #6b7280; }

.go-link {
    font-size: .8rem;
    font-weight: 700;
    color: #6f2b58;
    text-decoration: none;
}

.go-link:hover { text-decoration: underline; }

.mbr-answers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    font-weight: 700;
    color: #6b7280;
}

/* Quick actions */
.mbr-qa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.mbr-qa-grid .quick-link {
    padding: 14px;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.mbr-qa-grid .ql-ic { width: 34px; height: 34px; }
.mbr-qa-grid .ql-label { font-size: .82rem; line-height: 1.2; }

/* Notifications */
.mbr-notif { padding: 6px 0; }

.mbr-notif-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.mbr-notif-item:last-child { border-bottom: 0; }

.mbr-notif-item.unread { background: #fdf4fa; }

.mbr-notif-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3e9f4;
    color: var(--primary-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mbr-notif-body { flex: 1; min-width: 0; }

.mbr-notif-text { font-size: .86rem; color: #343434; line-height: 1.35; }

a.mbr-notif-link { color: inherit; text-decoration: none; }
a.mbr-notif-link:hover { color: #6f2b58; }

.mbr-notif-item.unread .mbr-notif-text { font-weight: 600; }

.mbr-notif-ago {
    font-size: .76rem;
    color: #6b7280;
    margin-top: 2px;
    display: block;
}

.mbr-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6f2b58;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Empty state */
.mbr-empty { text-align: center; padding: 32px 20px; color: #9ca3af; }
.mbr-empty i { font-size: 2rem; display: block; margin-bottom: 4px; }
.mbr-empty p { margin: 0; font-size: .9rem; line-height: 1.6; }
.mbr-empty a { color: #6f2b58; font-weight: 600; text-decoration: none; }
.mbr-empty a:hover { text-decoration: underline; }

/* Member page accent re-theme to #6f2b58 */
.mbr-page .text-primary { color: #6f2b58 !important; }
.mbr-page .cc-card-header a.viewall { color: #6f2b58; }

/* Member sidebar panel (#8a3b70) - white text */
.mbr-aside .cc-card-header { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.mbr-aside .cc-card-header h4,
.mbr-aside .cc-card-header .text-primary { color: #fff !important; }
.mbr-aside .cc-card-header a.viewall { color: #ffe3f3; }
.mbr-aside .cc-card-header a.viewall:hover { color: #fff; text-decoration: underline; }
.mbr-aside .mbr-qa-grid .quick-link { min-height: 62px; }
.mbr-aside .mbr-notif-item { border-bottom-color: rgba(255, 255, 255, .12); }
.mbr-aside .mbr-notif-item.unread { background: rgba(255, 255, 255, .12); }
.mbr-aside .mbr-notif-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.mbr-aside .mbr-notif-text { color: #fff; }
.mbr-aside .mbr-notif-ago { color: rgba(255, 255, 255, .62); }
.mbr-aside .mbr-notif-dot { background: #ffd9f0; }
.mbr-aside .mbr-empty { color: rgba(255, 255, 255, .65); }
.mbr-aside .mbr-empty a { color: #ffe3f3; }
.mbr-aside .mbr-empty a:hover { color: #fff; }

@media (max-width: 992px) { .mbr-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mbr-stats { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
    .mbr-hero { padding: 22px 20px; }
    .mbr-avatar { width: 72px; height: 72px; }
    .mbr-name { font-size: 1.25rem; }
    .mbr-hero-actions { width: 100%; }
}

/* My Exams & My Questions pages */
.mbr-exams .me-hero-ic,
.mbr-questions .me-hero-ic,
.mbr-activities .me-hero-ic {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .16);
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: #fff;
}

.mbr-exams .me-list-wrap,
.mbr-questions .me-list-wrap,
.mbr-activities .me-list-wrap { max-width: 100%; }

.mbr-exams .me-list-card,
.mbr-questions .me-list-card,
.mbr-activities .me-list-card { overflow: hidden; }

.mbr-exams .me-count,
.mbr-questions .me-count,
.mbr-activities .me-count {
    font-size: .78rem;
    font-weight: 700;
    color: #6f2b58;
    background: #f4ecf1;
    padding: 5px 13px;
    border-radius: 200px;
}

.mbr-exams .me-item,
.mbr-questions .me-item,
.mbr-activities .me-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mbr-activities .ac-progress {
    height: 7px;
    margin-top: 10px;
    max-width: 320px;
    background: #f2e7ee;
    border-radius: 200px;
    overflow: hidden;
}

.mbr-activities .ac-progress-fill {
    display: block;
    height: 100%;
    border-radius: 200px;
    background: linear-gradient(90deg, #af468a, #7a2f68);
    min-width: 2px;
}

.mbr-exams .me-chip,
.mbr-questions .me-chip {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.mbr-exams .me-chip.jamb         { background: #f9e7ef; color: #9d2a5c; }
.mbr-exams .me-chip.waec         { background: #e8f0fb; color: #2456a6; }
.mbr-exams .me-chip.neco         { background: #e6f5ee; color: #16744a; }
.mbr-exams .me-chip.post_utme    { background: #fdf3dc; color: #a16207; }
.mbr-exams .me-chip.custom       { background: #f0e6f1; color: #6f2b58; }
.mbr-exams .me-chip.challenge    { background: #fdece8; color: #c2410c; }
.mbr-exams .me-chip.gce          { background: #e6f4f6; color: #0f766e; }
.mbr-exams .me-chip.other        { background: #f1f1f4; color: #52525b; }
.mbr-questions .me-chip.academic     { background: #f0e6f1; color: #6f2b58; }
.mbr-questions .me-chip.school_based { background: #e6f4f6; color: #0f766e; }
.mbr-questions .me-chip.other        { background: #f1f1f4; color: #52525b; }

.mbr-exams .mbr-item-right .score-warn { color: #6b7280; }

.mbr-questions .mq-answers,
.mbr-questions .mq-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 700;
    color: #6f2b58;
}

.mbr-questions .mq-views { color: #6b7280; font-weight: 600; }

.mbr-questions .mbr-item { text-decoration: none; }

@media (max-width: 480px) {
    .mbr-exams .mbr-item-right .go-link { display: none; }
    .mbr-questions .mbr-item-right .mq-views { display: none; }
}

/* ============ Connect2Me profile page ============ */
.pf-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

.pf-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
}

.pf-side { position: sticky; top: 90px; }

.pf-main { display: flex; flex-direction: column; gap: 18px; }

.pf-card {
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(111, 43, 88, .05);
    padding: 22px;
}

/* Identity card */
.pf-idcard { padding: 0; overflow: hidden; }

.pf-cover {
    position: relative;
    height: 96px;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    overflow: hidden;
}

.pf-glow {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    width: 180px;
    height: 180px;
    top: -90px;
    right: -40px;
}

.pf-glow.ig2 { width: 120px; height: 120px; bottom: -70px; left: -30px; top: auto; right: auto; background: rgba(255, 255, 255, .07); }

.pf-idbody {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 22px 24px;
}

.pf-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    border: 4px solid #fff;
    background: #f4ecf1;
    margin-top: -50px;
    box-shadow: 0 8px 20px rgba(111, 43, 88, .15);
}

.pf-name { margin: 12px 0 2px; font-size: 1.2rem; font-weight: 800; color: #141419; }

.pf-username { font-size: .85rem; color: #9ca3af; font-weight: 600; }

.pf-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 12px; }

.pf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4ecf1;
    color: #6f2b58;
    border-radius: 200px;
    padding: 5px 13px;
    font-size: .75rem;
    font-weight: 700;
}

.pf-bio {
    margin: 14px 0 0;
    font-size: .86rem;
    line-height: 1.6;
    color: #4b5563;
}

.pf-friend-btn {
    margin-top: 18px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 200px;
    padding: 11px 20px;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
}

.pf-friend-btn.is-add { background: linear-gradient(135deg, #6f2b58, #8a3b70); color: #fff; box-shadow: 0 8px 18px rgba(111, 43, 88, .22); }

.pf-friend-btn.is-add:hover { background: linear-gradient(135deg, #5c2349, #6f2b58); }

.pf-friend-btn.is-sent { background: #f4ecf1; color: #6f2b58; cursor: default; }

.pf-friend-btn.is-friends { background: #e7f7ee; color: #16803c; cursor: default; }

.pf-friend-btn:disabled { opacity: 1; }

/* Main cards */
.pf-sec-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-sec-title .bi { color: #6f2b58; }

.pf-info-list { list-style: none; margin: 16px 0 0; padding: 0; }

.pf-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f4ecf1;
    font-size: .86rem;
}

.pf-info-list li:last-child { border-bottom: 0; }

.pf-info-list li > span { color: #6b7280; }

.pf-info-list li > strong { color: #141419; font-weight: 700; text-align: right; }

.pf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.pf-count {
    font-size: .78rem;
    font-weight: 700;
    color: #6f2b58;
    background: #f4ecf1;
    border-radius: 200px;
    padding: 4px 12px;
}

.pf-groups { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.pf-group {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #f0e6f1;
    border-radius: 12px;
    text-decoration: none;
    transition: all .15s;
}

.pf-group:hover { border-color: #e2cfdd; background: #fcf8fb; transform: translateX(2px); }

.pf-group-ic {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: #f0e6f1;
    color: #6f2b58;
}

.pf-group-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }

.pf-group-meta strong { font-size: .9rem; font-weight: 700; color: #141419; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-group-meta small { font-size: .76rem; color: #9ca3af; }

.pf-group-arrow { color: #c9a7bb; font-size: 1rem; }

.pf-group:hover .pf-group-arrow { color: #6f2b58; }

.pf-empty { text-align: center; padding: 34px 20px; color: #6b7280; }

.pf-empty i { font-size: 2.2rem; color: #c9a7bb; display: block; margin-bottom: 8px; }

.pf-empty p { margin: 0; font-size: .88rem; }

@media (max-width: 860px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-side { position: static; }
}

/* ============ Group detail page ============ */
.grp-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    color: #fff;
}

.grp-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -150px;
    right: -60px;
    pointer-events: none;
}

.grp-glow.ig2 { width: 190px; height: 190px; bottom: -90px; left: 34%; top: auto; right: auto; background: rgba(255, 255, 255, .06); }

.grp-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .28;
}

.grp-hero-body { position: relative; z-index: 1; padding: 26px 28px; }

.grp-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.grp-id { display: flex; gap: 16px; align-items: flex-start; min-width: 260px; }

.grp-ic {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.grp-id-text { min-width: 0; }

.grp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .16);
    border-radius: 200px;
    padding: 5px 13px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.grp-id-text h1 { margin: 10px 0 8px; font-size: 1.5rem; font-weight: 800; line-height: 1.25; }

.grp-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .85); }

.grp-meta span { display: inline-flex; align-items: center; gap: 6px; }

.grp-desc {
    margin: 18px 0 0;
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
    max-width: 720px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.grp-join-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    border-radius: 200px;
    padding: 11px 22px;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
}

.grp-join-btn.grp-join { background: #fff; color: #6f2b58; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }

.grp-join-btn.grp-join:hover { background: #ffe9f5; }

.grp-join-btn.grp-leave { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }

.grp-join-btn.grp-leave:hover { background: rgba(255, 255, 255, .2); }

.grp-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }

.grp-main { display: flex; flex-direction: column; gap: 18px; }

.grp-aside { display: flex; flex-direction: column; gap: 16px; }

.grp-card {
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(111, 43, 88, .05);
}

/* Composer */
.grp-composer-top { display: flex; gap: 12px; align-items: flex-start; }

.grp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0e6f1;
    background: #fff;
    flex-shrink: 0;
}

.grp-textarea {
    flex: 1;
    min-width: 0;
    border: 1.5px solid #e5d6df;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .9rem;
    font-family: inherit;
    resize: vertical;
    background: #faf6f9;
    color: #141419;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.grp-textarea:focus { outline: none; border-color: #8a3b70; background: #fff; box-shadow: 0 0 0 3px rgba(143, 59, 112, .12); }

.grp-composer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.grp-file {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    font-weight: 700;
    color: #6f2b58;
    background: #f8eef4;
    border-radius: 200px;
    padding: 8px 15px;
    cursor: pointer;
}

.grp-file input[type="file"] { display: none; }

.grp-file:hover { background: #f4ecf1; }

.grp-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    border-radius: 200px;
    padding: 10px 22px;
    font-size: .84rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    box-shadow: 0 8px 18px rgba(111, 43, 88, .22);
}

.grp-submit:hover { background: linear-gradient(135deg, #5c2349, #6f2b58); }

/* Feed */
.grp-feed { display: flex; flex-direction: column; gap: 16px; }

.grp-post { padding: 20px 22px; }

.grp-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.grp-post-meta { display: flex; flex-direction: column; line-height: 1.3; }

.grp-post-name { font-size: .9rem; font-weight: 800; color: #141419; text-decoration: none; }

.grp-post-name:hover { color: #6f2b58; }

.grp-post-time { font-size: .76rem; color: #9ca3af; }

.grp-post-body { margin: 0; font-size: .94rem; line-height: 1.65; color: #3f3b3b; white-space: pre-line; }

.grp-post-img {
    display: block;
    margin-top: 14px;
    max-width: 100%;
    max-height: 420px;
    border-radius: 12px;
    border: 1px solid #f0e6f1;
}

.grp-empty { text-align: center; padding: 44px 20px; color: #6b7280; }

.grp-empty i { font-size: 2.4rem; color: #c9a7bb; display: block; margin-bottom: 8px; }

.grp-empty p { margin: 0; line-height: 1.6; }

/* Sidebar cards */
.grp-side-title {
    margin: 0 0 14px;
    font-size: .95rem;
    font-weight: 800;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grp-side-title .bi { color: #6f2b58; }

.grp-info-list { list-style: none; margin: 0; padding: 0; }

.grp-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f4ecf1;
    font-size: .83rem;
}

.grp-info-list li:last-child { border-bottom: 0; }

.grp-info-list li > span { color: #6b7280; }

.grp-info-list li > strong { color: #141419; text-align: right; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

.grp-info-list li > strong .bi { color: #8a3b70; font-size: .8rem; }

.grp-join-card { text-align: center; }

.grp-cta-ic {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    background: #f0e6f1;
    color: #6f2b58;
}

.grp-join-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: #141419; }

.grp-join-card p { margin: 0 0 16px; font-size: .82rem; line-height: 1.5; color: #6b7280; }

.grp-join-card .grp-join-btn { width: 100%; justify-content: center; }

.grp-join-card .grp-join-btn.grp-join { background: linear-gradient(135deg, #6f2b58, #8a3b70); color: #fff; box-shadow: 0 8px 18px rgba(111, 43, 88, .22); }

.grp-cta {
    text-align: center;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    border: none;
    color: #fff;
}

.grp-cta .grp-cta-ic { background: rgba(255, 255, 255, .16); color: #fff; }

.grp-cta h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; }

.grp-cta p { margin: 0 0 16px; font-size: .82rem; line-height: 1.5; color: rgba(255, 255, 255, .85); }

.grp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #6f2b58;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 200px;
    padding: 10px 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.grp-cta-btn:hover { background: #ffe9f5; color: #6f2b58; }

@media (max-width: 920px) {
    .grp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grp-hero-body { padding: 22px 18px; }
    .grp-id-text h1 { font-size: 1.28rem; }
    .grp-card { padding: 18px; }
}

/* ============ Exam ranking / leaderboard ============ */
.rk-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rk-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    padding: 28px 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rk-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -140px;
    right: -60px;
}

.rk-glow.ig2 { width: 190px; height: 190px; bottom: -80px; left: 38%; top: auto; right: auto; background: rgba(255, 255, 255, .06); }

.rk-hero-left { position: relative; z-index: 1; min-width: 260px; }

.rk-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .16);
    border-radius: 200px;
    padding: 6px 14px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.rk-hero-left h1 { margin: 12px 0 6px; font-size: 1.55rem; font-weight: 800; }

.rk-hero-left p { margin: 0; font-size: .88rem; line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 540px; }

.rk-hero-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #6f2b58;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 200px;
    padding: 10px 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.rk-hero-btn:hover { color: #6f2b58; background: #ffe9f5; }

/* Podium */
.rk-podium {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
}

.rk-pod {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 290px;
    border-radius: 18px;
    padding: 22px 18px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid #f0e6f1;
    background: #fff;
    box-shadow: 0 8px 22px rgba(111, 43, 88, .09);
}

.rk-pod.rk-pod-first { transform: scale(1.05); box-shadow: 0 16px 34px rgba(111, 43, 88, .2); border-color: #e2cfdd; }

.rk-pod-medal {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.rk-gold   .rk-pod-medal, .rk-medal.rk-gold   { background: linear-gradient(135deg, #f2c94c, #e6a817); }
.rk-silver .rk-pod-medal, .rk-medal.rk-silver { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.rk-bronze .rk-pod-medal, .rk-medal.rk-bronze { background: linear-gradient(135deg, #d39b72, #a96e3c); }

.rk-pod-rank { font-size: .72rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #9ca3af; }

.rk-pod-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0e6f1;
    background: #fff;
}

.rk-pod-name {
    font-size: .95rem;
    font-weight: 800;
    color: #141419;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rk-pod-score { font-size: 1.3rem; font-weight: 800; color: #6f2b58; }

.rk-pod-score small { font-size: .72rem; color: #9ca3af; margin-left: 2px; }

.rk-pod-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    color: #6f2b58;
    background: #f4ecf1;
    border-radius: 200px;
    padding: 4px 11px;
}

/* Leaderboard table */
.rk-card {
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(111, 43, 88, .05);
}

.rk-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.rk-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rk-card-head h2 .bi { color: #6f2b58; }

.rk-count {
    font-size: .8rem;
    font-weight: 700;
    color: #6f2b58;
    background: #f4ecf1;
    border-radius: 200px;
    padding: 5px 13px;
}

.rk-table { display: flex; flex-direction: column; }

.rk-row {
    display: grid;
    grid-template-columns: 54px 1fr auto auto 190px;
    align-items: center;
    gap: 14px;
    padding: 13px 10px;
    border-top: 1px solid #f4ecf1;
}

.rk-row:first-child { border-top: 0; }

.rk-row.rk-row-top { background: #fbf7fa; border-radius: 12px; }

.rk-rank { display: flex; justify-content: center; }

.rk-medal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .88rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.rk-num {
    font-size: 1rem;
    font-weight: 800;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}

.rk-student {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rk-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0e6f1;
    background: #fff;
    flex-shrink: 0;
}

.rk-student-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }

.rk-name {
    font-size: .9rem;
    font-weight: 700;
    color: #141419;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rk-name:hover { color: #6f2b58; }

.rk-sub { font-size: .75rem; color: #9ca3af; }

.rk-type.chip { font-size: .74rem; padding: 4px 11px; white-space: nowrap; }

.rk-type.chip i { font-size: .8rem; }

.rk-questions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: #6b7280;
}

.rk-questions .bi { color: #8a3b70; }

.rk-score { display: flex; align-items: center; gap: 10px; }

.rk-score-bar {
    flex: 1;
    height: 8px;
    min-width: 60px;
    border-radius: 200px;
    background: #f0e6f1;
    overflow: hidden;
}

.rk-score-fill {
    display: block;
    height: 100%;
    border-radius: 200px;
    background: linear-gradient(90deg, #6f2b58, #8a3b70);
}

.rk-score-num { font-size: .95rem; font-weight: 800; min-width: 46px; text-align: right; }

.rk-score-num small { font-size: .68rem; font-weight: 700; color: inherit; margin-left: 1px; }

.rk-score-num.hi  { color: #16803c; }
.rk-score-num.mid { color: #6b7280; }
.rk-score-num.lo  { color: #9ca3af; }

/* Empty state */
.rk-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
}

.rk-empty i { font-size: 2.6rem; color: #c9a7bb; display: block; margin-bottom: 10px; }

.rk-empty p { margin: 0 0 18px; line-height: 1.6; }

.rk-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    color: #fff;
    text-decoration: none;
    border-radius: 200px;
    padding: 10px 22px;
    font-size: .86rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(111, 43, 88, .22);
}

.rk-empty-btn:hover { color: #fff; background: linear-gradient(135deg, #5c2349, #6f2b58); }

@media (max-width: 800px) {
    .rk-row { grid-template-columns: 46px 1fr auto; }
    .rk-questions { display: none; }
    .rk-score { grid-column: 2 / 4; }
}

@media (max-width: 520px) {
    .rk-pod { min-width: 100%; }
    .rk-pod.rk-pod-first { transform: none; }
}

/* ============ Q&A listing page ============ */
.qa-ql-head {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    padding: 28px 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.qa-ql-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -140px;
    right: -60px;
}

.qa-ql-glow.ig2 {
    width: 190px;
    height: 190px;
    top: auto;
    right: auto;
    bottom: -80px;
    left: 38%;
    background: rgba(255, 255, 255, .06);
}

.qa-ql-left { position: relative; z-index: 1; min-width: 260px; }

.qa-ql-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .16);
    border-radius: 200px;
    padding: 6px 14px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.qa-ql-left h1 { margin: 12px 0 6px; font-size: 1.55rem; font-weight: 800; }

.qa-ql-left p { margin: 0; font-size: .88rem; line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 560px; }

.qa-ql-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }

.qa-ql-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #6f2b58;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 200px;
    padding: 10px 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.qa-ql-btn:hover { color: #6f2b58; background: #ffe9f5; }

.qa-ql-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: none; }

.qa-ql-btn.ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.qa-tabs {
    display: flex;
    gap: 8px;
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 14px;
    padding: 6px;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
}

.qa-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: .86rem;
    font-weight: 700;
    color: #6b7280;
    text-decoration: none;
}

.qa-tab .bi { color: #c9a7bb; }

.qa-tab.active { background: linear-gradient(135deg, #6f2b58, #8a3b70); color: #fff; box-shadow: 0 6px 14px rgba(111, 43, 88, .25); }

.qa-tab.active .bi { color: #fff; }

.qa-tab:not(.active):hover { background: #f8eef4; color: #6f2b58; }

.qa-ask form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.qa-input {
    width: 100%;
    border: 1.5px solid #e5d6df;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: .9rem;
    font-family: inherit;
    background: #fff;
    color: #141419;
    transition: border-color .15s, box-shadow .15s;
}

.qa-input:focus { outline: none; border-color: #8a3b70; box-shadow: 0 0 0 3px rgba(143, 59, 112, .12); }

.qa-ask-foot { display: flex; gap: 10px; align-items: center; }

.qa-ask-foot .qa-input { flex: 1; min-width: 0; }

.qa-result-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 700;
    color: #6f2b58;
}

.qa-result-count .bi { font-size: .95rem; }

.qa-qcards { display: flex; flex-direction: column; gap: 14px; }

.qa-qcard {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(111, 43, 88, .05);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.qa-qcard:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(111, 43, 88, .12); border-color: #e2cfdd; }

.qa-qchip {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.qa-qchip.academic     { background: #f0e6f1; color: #6f2b58; }
.qa-qchip.school_based { background: #e6f4f6; color: #0f766e; }

.qa-qcard-body { flex: 1; min-width: 0; }

.qa-qcard-body h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.4;
    color: #141419;
}

.qa-qcard:hover .qa-qcard-body h3 { color: #6f2b58; }

.qa-qexcerpt {
    margin: 0 0 10px;
    font-size: .86rem;
    line-height: 1.55;
    color: #6b7280;
}

.qa-qmeta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: #9ca3af;
}

.qa-qmeta span { display: inline-flex; align-items: center; gap: 5px; }
.qa-qmeta .bi { color: #8a3b70; }

.qa-qmeta .qa-chip { font-size: .74rem; padding: 4px 11px; }

.qa-qauthor { color: #6b7280; font-weight: 600; }

.qa-mini-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f0e6f1;
}

.qa-qarrow { font-size: 1.2rem; color: #c9a7bb; flex-shrink: 0; }

.qa-qcard:hover .qa-qarrow { color: #6f2b58; transform: translateX(2px); }

.qa-pagination { display: flex; align-items: center; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

.qa-pagebtn {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 13px;
    border: 1.5px solid #eedce8;
    border-radius: 10px;
    background: #fff;
    color: #6f2b58;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.qa-pagebtn:hover:not(.disabled):not(.active) { border-color: #8a3b70; background: #f8eef4; }

.qa-pagebtn.active { background: linear-gradient(135deg, #6f2b58, #8a3b70); border-color: #6f2b58; color: #fff; }

.qa-pagebtn.disabled { opacity: .4; cursor: not-allowed; background: #fafafa; color: #b0a8af; }

.qa-help-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.qa-help-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .85rem; color: #4b5563; line-height: 1.45; }

.qa-help-list .bi { color: #8a3b70; margin-top: 2px; }

@media (max-width: 600px) {
    .qa-ql-head { padding: 22px 18px; }
    .qa-ql-left h1 { font-size: 1.3rem; }
    .qa-ask-foot { flex-direction: column; align-items: stretch; }
}

/* ============ Q&A question detail page ============ */
.qa-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #9ca3af;
}

.qa-crumbs a {
    color: #6f2b58;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.qa-crumbs a:hover { text-decoration: underline; }

.qa-crumb-current {
    color: #6b7280;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    align-items: start;
}

.qa-main { display: flex; flex-direction: column; gap: 22px; }

.qa-card {
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(111, 43, 88, .05);
}

.qa-tagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.qa-badge,
.qa-chip,
.qa-solved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 700;
    border-radius: 200px;
    padding: 5px 13px;
}

.qa-badge.academic     { background: #f0e6f1; color: #6f2b58; }
.qa-badge.school_based { background: #e6f4f6; color: #0f766e; }
.qa-chip               { background: #f4ecf1; color: #6f2b58; }
.qa-solved             { background: #e7f7ee; color: #16803c; }

.qa-title {
    margin: 0 0 16px;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.35;
    color: #141419;
}

.qa-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid #f4ecf1;
}

.qa-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0e6f1;
    background: #fff;
    flex-shrink: 0;
}

.qa-avatar.sm { width: 36px; height: 36px; }

.qa-author-meta { display: flex; flex-direction: column; line-height: 1.35; }

.qa-author-meta strong { font-size: .9rem; color: #141419; }
.qa-author-meta span   { font-size: .78rem; color: #9ca3af; }

.qa-body {
    font-size: .98rem;
    line-height: 1.7;
    color: #3f3b3b;
    padding: 6px 0 4px;
}

.qa-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f4ecf1;
    color: #6b7280;
    font-size: .8rem;
}

.qa-stats span { display: inline-flex; align-items: center; gap: 6px; }
.qa-stats .bi { color: #8a3b70; }

.qa-sec-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-sec-title .bi { color: #6f2b58; }

.qa-answers { display: flex; flex-direction: column; gap: 14px; }

.qa-answer {
    display: flex;
    gap: 18px;
    padding: 20px 22px;
}

.qa-answer.is-accepted { border-color: #16803c; background: #f6fcf8; }

.qa-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 52px;
}

.qa-vote-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #6f2b58;
    line-height: 1;
    padding: 6px 0 2px;
}

.qa-vote-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; }

.qa-vote-accepted {
    margin-top: 6px;
    font-size: 1.5rem;
    color: #16803c;
    line-height: 1;
}

.qa-answer-main { flex: 1; min-width: 0; }

.qa-answer-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.qa-answer-head .qa-avatar.sm { width: 34px; height: 34px; }

.qa-accepted-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    color: #16803c;
    background: #e7f7ee;
    border-radius: 200px;
    padding: 4px 11px;
}

.qa-answer-body {
    font-size: .94rem;
    line-height: 1.7;
    color: #3f3b3b;
}

.qa-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
}

.qa-empty i { font-size: 2.4rem; color: #c9a7bb; display: block; margin-bottom: 8px; }

.qa-empty p { margin: 0; line-height: 1.6; }

.qa-form-card { background: #faf6f9; }

.qa-form-card form { margin-top: 14px; }

.qa-textarea {
    width: 100%;
    border: 1.5px solid #e5d6df;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .92rem;
    font-family: inherit;
    resize: vertical;
    background: #fff;
    color: #141419;
    transition: border-color .15s, box-shadow .15s;
}

.qa-textarea:focus { outline: none; border-color: #8a3b70; box-shadow: 0 0 0 3px rgba(143, 59, 112, .12); }

.qa-form-foot { margin-top: 12px; display: flex; justify-content: flex-end; }

.qa-submit {
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    color: #fff;
    border: none;
    border-radius: 200px;
    padding: 10px 22px;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 8px 18px rgba(111, 43, 88, .22);
}

.qa-submit:hover { background: linear-gradient(135deg, #5c2349, #6f2b58); }

.qa-login {
    text-align: center;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qa-login .bi { font-size: 1.2rem; color: #8a3b70; }

.qa-login p { margin: 0; font-size: .9rem; }

.qa-login a { color: #6f2b58; font-weight: 700; text-decoration: none; }
.qa-login a:hover { text-decoration: underline; }

.qa-aside { display: flex; flex-direction: column; gap: 16px; }

.qa-info { padding: 20px; }

.qa-side-title {
    margin: 0 0 14px;
    font-size: .95rem;
    font-weight: 800;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-side-title .bi { color: #6f2b58; }

.qa-info-list { list-style: none; margin: 0; padding: 0; }

.qa-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f4ecf1;
    font-size: .83rem;
}

.qa-info-list li:last-child { border-bottom: 0; }

.qa-info-list li > span { color: #6b7280; }

.qa-info-list li > strong { color: #141419; text-align: right; font-weight: 700; }

.qa-status-solved { color: #16803c !important; }
.qa-status-open { color: #6f2b58 !important; }

.qa-cta {
    text-align: center;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    border: none;
    color: #fff;
    padding: 30px 22px;
}

.qa-cta-ic {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.qa-cta h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 800; }

.qa-cta p { margin: 0 0 16px; font-size: .82rem; color: rgba(255, 255, 255, .85); }

.qa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #6f2b58;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 200px;
    padding: 10px 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.qa-cta-btn:hover { background: #ffe9f5; }

@media (max-width: 920px) {
    .qa-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .qa-card { padding: 18px; }
    .qa-title { font-size: 1.2rem; }
    .qa-answer { flex-direction: column; }
    .qa-vote { flex-direction: row; align-items: center; min-width: 0; }
    .qa-vote-accepted { margin-top: 0; margin-left: 6px; }
}

/* ============================================================
   Home page — profile-style portal (sidebar + content)
   ============================================================ */
.hpf {
    padding: 8px 0 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cover */
.hpf-cover {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #6f2b58 0%, #af4689 55%, #d55b9e 100%);
    padding: 26px 30px;
    color: #fff;
}

.hpf-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    top: -140px;
    right: -60px;
}

.hpf-glow.ig {
    width: 190px;
    height: 190px;
    top: auto;
    right: auto;
    bottom: -80px;
    left: 30%;
    background: rgba(255,255,255,.06);
}

.hpf-cover-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hpf-crest {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    flex-shrink: 0;
}

.hpf-cover-copy { flex: 1; min-width: 250px; }

.hpf-name { font-size: 1.9rem; font-weight: 800; margin: 0; color: #fff; }

.hpf-role { margin: 6px 0 12px; }

.hpf-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 200px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.hpf-chips { display: flex; gap: 12px; flex-wrap: wrap; }

.hpf-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

.hpf-cover-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hpf-cover-actions .cc-pill {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: rgba(255,255,255,.12);
}

.hpf-cover-actions .cc-pill:hover { background: #fff; color: #6f2b58; }

.hpf-cover-actions .cc-pill.cc-pill-solid { background: #fff; border-color: #fff; color: #6f2b58; }
.hpf-cover-actions .cc-pill.cc-pill-solid:hover { background: #f6e9f1; }

/* Body */
.hpf-body { display: flex; gap: 24px; align-items: flex-start; }

.hpf-side {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #8a3b70;
    border-radius: 20px;
    padding: 20px 0;
    box-shadow: 0 10px 24px rgba(122, 50, 105, .35);
}

.hpf-side .cc-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hpf-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Identity card */
.hpf-id-wrap { padding-bottom: 14px; }

.hpf-id { text-align: center; padding: 26px 20px 18px; }

.hpf-ava {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.14);
    background: #fff;
}

.hpf-id-name { font-weight: 800; font-size: 1.15rem; margin-top: 12px; color: #141419; }

.hpf-id-user { font-size: .84rem; color: #6b7280; font-weight: 600; }

.hpf-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    background: #eef6ff;
    color: #1d6fd6;
    border-radius: 200px;
    padding: 4px 12px;
    font-size: .74rem;
    font-weight: 700;
}

.hpf-id-divider { height: 1px; background: #f0f0f0; margin: 0 20px; }

.hpf-stat-rows {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    padding: 16px 16px 4px;
    text-align: center;
}

.hpf-stat-rows b { display: block; font-size: 1.12rem; color: #141419; }

.hpf-stat-rows span {
    font-size: .66rem;
    color: #8b93a7;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Quick links nav */
.hpf-nav { padding: 10px; }

.hpf-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #3a4155;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s, color .15s;
}

.hpf-nav a:hover { background: #f8eef4; color: var(--primary); }

.hpf-ni {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f4eef6;
    color: var(--primary-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hpf-nav a:hover .hpf-ni { background: #fff; }

.hpf-nc { flex: 1; min-width: 0; }

.hpf-ns { font-size: .74rem; color: #8b93a7; display: block; font-weight: 500; }

.hpf-nav a .chev { color: #cdd3e0; margin-left: 6px; }
.hpf-nav a:hover .chev { color: var(--primary); }

/* Top scores */
.hpf-scores { padding: 6px 12px 12px; }

.hpf-score {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-bottom: 1px solid #f5f5f5;
}

.hpf-score:last-child { border-bottom: 0; }

.hpf-score .rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .76rem;
    flex-shrink: 0;
}

.hpf-score .rank.r1 { background: linear-gradient(135deg, #f6c453, #f0a53c); color: #fff; }
.hpf-score .rank.r2 { background: linear-gradient(135deg, #cfd8e3, #aeb9c8); color: #fff; }
.hpf-score .rank.r3 { background: linear-gradient(135deg, #e8a48b, #d98263); color: #fff; }
.hpf-score .rank.other { background: #f2f2f4; color: #6b7280; }

.hpf-score .nm { flex: 1; min-width: 0; }
.hpf-score .nm b { display: block; font-size: .86rem; color: #141419; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpf-score .nm span { font-size: .72rem; color: #8b93a7; }
.hpf-score .sc { font-weight: 800; color: var(--primary); }

/* Dark sidebar panel (#8a3b70) - white text */
.hpf-side .cc-card-header { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.hpf-side .cc-card-header h4 { color: #fff; }
.hpf-side .cc-card-header .text-primary { color: #ffd9f0 !important; }
.hpf-side .cc-card-header a.viewall { color: #ffe3f3; }
.hpf-side .cc-card-header a.viewall:hover { color: #fff; text-decoration: underline; }

.hpf-side .hpf-id-name { color: #fff; }
.hpf-side .hpf-id-user { color: rgba(255, 255, 255, .75); }
.hpf-side .hpf-id-badge { background: rgba(255, 255, 255, .18); color: #fff; }
.hpf-side .hpf-id-divider { background: rgba(255, 255, 255, .16); }
.hpf-side .hpf-stat-rows b { color: #fff; }
.hpf-side .hpf-stat-rows span { color: rgba(255, 255, 255, .62); }

.hpf-side .hpf-nav a { color: rgba(255, 255, 255, .92); }
.hpf-side .hpf-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hpf-side .hpf-ni { background: rgba(255, 255, 255, .18); color: #fff; }
.hpf-side .hpf-nav a:hover .hpf-ni { background: rgba(255, 255, 255, .32); }
.hpf-side .hpf-ns { color: rgba(255, 255, 255, .6); }
.hpf-side .hpf-nav a .chev { color: rgba(255, 255, 255, .5); }
.hpf-side .hpf-nav a:hover .chev { color: #fff; }

.hpf-side .hpf-score { border-bottom-color: rgba(255, 255, 255, .14); }
.hpf-side .hpf-score .rank.other { background: rgba(255, 255, 255, .2); color: #fff; }
.hpf-side .hpf-score .nm b { color: #fff; }
.hpf-side .hpf-score .nm span { color: rgba(255, 255, 255, .6); }
.hpf-side .hpf-score .sc { color: #fff; }
.hpf-side .hpf-empty p { color: rgba(255, 255, 255, .65); }

/* Info rows */
.hpf-info { padding: 12px 20px 16px; }

.hpf-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #f5f5f5;
    flex-wrap: wrap;
}

.hpf-info-row:last-child { border-bottom: 0; }

.hpf-info-row .ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f4eef6;
    color: var(--primary-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hpf-info-row .lb {
    color: #6b7280;
    font-size: .84rem;
    font-weight: 600;
    min-width: 140px;
}

.hpf-info-row .vl { color: #141419; font-weight: 700; font-size: .92rem; margin-left: auto; }

/* News list */
.hpf-news { padding: 10px 0; }

.hpf-news-item {
    display: flex;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.hpf-news-item:hover { background: #fafafa; }
.hpf-news-item:last-child { border-bottom: 0; }

.hpf-news-thumb {
    width: 78px;
    height: 78px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4eef6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hpf-news-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hpf-news-copy { min-width: 0; }

.hpf-news-title {
    display: block;
    font-weight: 700;
    font-size: .94rem;
    color: #141419;
    line-height: 1.4;
}

.hpf-news-item:hover .hpf-news-title { color: var(--primary); }

.hpf-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: .78rem;
    color: #8b93a7;
    flex-wrap: wrap;
}

.hpf-news-cat {
    background: #f8eef4;
    color: var(--primary-deep);
    border-radius: 200px;
    padding: 2px 10px;
    font-weight: 700;
}

/* Subject grid */
.hpf-subject-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
}

@media (max-width: 1100px) { .hpf-subject-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .hpf-subject-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .hpf-subject-grid { grid-template-columns: 1fr; } }

.hpf-subject {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .15s;
}

.hpf-subject:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    transform: translateY(-1px);
}

.hpf-subject .si {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f4eef6;
    color: var(--primary-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hpf-subject .sn {
    display: block;
    font-weight: 700;
    font-size: .86rem;
    color: #141419;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hpf-subject .sq { font-size: .74rem; color: #8b93a7; }

/* Pairs */
.hpf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 768px) { .hpf-pair { grid-template-columns: 1fr; } }

/* Mini lists (events/scholarships/groups/store) */
.hpf-mini-list { padding: 8px 0; }

.hpf-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.hpf-mini-item:hover { background: #fafafa; }
.hpf-mini-item:last-child { border-bottom: 0; }

.hpf-mini-item .chev { color: #cdd3e0; margin-left: auto; flex-shrink: 0; }
.hpf-mini-item:hover .chev { color: var(--primary); }

.hpf-date {
    width: 52px;
    height: 56px;
    border-radius: 12px;
    background: #f8eef4;
    color: var(--primary-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.hpf-date b { font-size: 1.15rem; line-height: 1; }

.hpf-badge-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef6ff;
    color: #1d6fd6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hpf-ava-sm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    background: #f4eef6;
    color: var(--primary-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hpf-mini-copy { flex: 1; min-width: 0; }
.hpf-mini-copy b { display: block; font-size: .88rem; color: #141419; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpf-mini-copy span { font-size: .76rem; color: #8b93a7; margin-top: 2px; display: block; }

/* Marketplace grid */
.hpf-mkt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 20px;
}

@media (max-width: 992px) { .hpf-mkt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hpf-mkt-grid { grid-template-columns: 1fr; } }

.hpf-mkt {
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all .18s;
}

.hpf-mkt:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,.08); transform: translateY(-2px); }

.hpf-mkt-img {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f3f7;
    color: var(--primary);
    overflow: hidden;
}

.hpf-mkt-img img { width: 100%; height: 100%; object-fit: cover; }

.hpf-mkt-title { display: block; font-weight: 700; font-size: .88rem; color: #141419; padding: 10px 12px 0; }

.hpf-mkt-price { display: block; font-weight: 800; color: var(--primary); font-size: .92rem; padding: 2px 12px 0; }

.hpf-mkt-loc { display: block; font-size: .74rem; color: #8b93a7; padding: 2px 12px 12px; }

/* Newsletter */
.hpf-newsletter { background: linear-gradient(135deg, #6f2b58, #af4689 60%, #d55b9e); }

.hpf-newsletter-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 30px;
}

.hpf-newsletter-copy { flex: 1; min-width: 240px; color: #fff; }
.hpf-newsletter-copy h4 { font-weight: 800; margin: 0 0 6px; color: #fff; }
.hpf-newsletter-copy p { margin: 0; opacity: .85; font-size: .9rem; }

.hpf-newsletter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.hpf-newsletter-form input {
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.16);
    color: #fff;
    border-radius: 200px;
    padding: 10px 18px;
    outline: none;
    min-width: 240px;
}

.hpf-newsletter-form input::placeholder { color: rgba(255,255,255,.7); }

.hpf-newsletter-form .cc-pill { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.12); }
.hpf-newsletter-form .cc-pill:hover { background: #fff; color: #6f2b58; }
.hpf-newsletter-form .cc-pill.cc-pill-solid { background: #fff; border-color: #fff; color: #6f2b58; }
.hpf-newsletter-form .cc-pill.cc-pill-solid:hover { background: #f6e9f1; }

/* Empty */
.hpf-empty { text-align: center; padding: 24px 16px; color: #9ca3af; font-size: .9rem; }

@media (max-width: 991.98px) {
    .hpf-body { flex-direction: column; }
    .hpf-side { width: 100%; }
}

@media (max-width: 600px) {
    .hpf-cover { padding: 22px 20px; }
    .hpf-crest { width: 66px; height: 66px; border-radius: 16px; }
    .hpf-name { font-size: 1.45rem; }
    .hpf-cover-actions { width: 100%; }
    .hpf-newsletter-inner { padding: 22px 20px; }
    .hpf-newsletter-form input { min-width: 100%; }
}

/* ============ CBT exam result page ============ */
.cr-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cr-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 58%, #8a3b70 100%);
    padding: 30px 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cr-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -150px;
    right: -70px;
}

.cr-glow.ig2 {
    width: 190px;
    height: 190px;
    bottom: -90px;
    left: 34%;
    top: auto;
    right: auto;
    background: rgba(255, 255, 255, .06);
}

.cr-hero-left { position: relative; z-index: 1; min-width: 260px; flex: 1; }

.cr-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .16);
    border-radius: 200px;
    padding: 6px 14px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.cr-hero-left h1 { margin: 12px 0 6px; font-size: 1.6rem; font-weight: 800; }

.cr-hero-left p { margin: 0; font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 520px; }

.cr-hero-left p strong { color: #fff; }

.cr-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.cr-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 200px;
    padding: 5px 12px;
    font-size: .76rem;
    font-weight: 600;
}

.cr-ring {
    position: relative;
    z-index: 1;
    width: 158px;
    height: 158px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(var(--arc, #f3cfe6) calc(var(--val, 0) * 1%), rgba(255, 255, 255, .16) 0);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.cr-ring-in {
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3f1833, #5c2349);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cr-ring-num { font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1; }

.cr-ring-lbl {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

/* Summary tiles */
.cr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.cr-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(111, 43, 88, .05);
}

.cr-stat-ic {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.cr-stat strong { font-size: 1.5rem; font-weight: 800; line-height: 1; }

.cr-stat small {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #9ca3af;
}

.cr-stat-ok .cr-stat-ic { background: #e7f7ee; color: #16803c; }
.cr-stat-ok strong { color: #16803c; }
.cr-stat-no .cr-stat-ic { background: #f4ecf1; color: #8a3b70; }
.cr-stat-no strong { color: #8a3b70; }
.cr-stat-all .cr-stat-ic { background: #f3f4f6; color: #6b7280; }
.cr-stat-all strong { color: #6f2b58; }

/* Cards */
.cr-card {
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(111, 43, 88, .05);
}

.cr-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cr-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #141419;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cr-card-head h2 .bi { color: #6f2b58; }

.cr-hint { font-size: .78rem; color: #9ca3af; font-weight: 600; }

/* Subject breakdown */
.cr-subjects { display: flex; flex-direction: column; }

.cr-subj-row {
    display: grid;
    grid-template-columns: 40px 1fr auto 18px;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-top: 1px solid #f4ecf1;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s;
}

.cr-subj-row:first-child { border-top: 0; }

.cr-subj-row:hover { background: #fbf7fa; }

.cr-subj-row.active { background: #f4ecf1; }

.cr-subj-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f4ecf1;
    color: #6f2b58;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.cr-subj-meta { min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.cr-subj-meta strong {
    font-size: .9rem;
    font-weight: 700;
    color: #141419;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cr-subj-bar { height: 7px; border-radius: 200px; background: #f0e6f1; overflow: hidden; }

.cr-subj-bar span { display: block; height: 100%; border-radius: 200px; background: linear-gradient(90deg, #6f2b58, #8a3b70); }

.cr-subj-score { font-size: 1rem; font-weight: 800; color: #16803c; }

.cr-subj-score small { font-size: .75rem; color: #9ca3af; font-weight: 700; }

.cr-subj-arrow { color: #c9a7bb; }

.cr-subj-row:hover .cr-subj-arrow { color: #6f2b58; }

.cr-subjects-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0e6f1;
    font-size: .95rem;
    font-weight: 800;
    color: #141419;
}

.cr-subjects-total strong { color: #6f2b58; }

.cr-subjects-total small { color: #9ca3af; font-weight: 700; font-size: .8rem; }

/* Review toolbar */
.cr-review-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.cr-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4ecf1;
    color: #6f2b58;
    border-radius: 200px;
    padding: 5px 13px;
    font-size: .76rem;
    font-weight: 700;
}

.cr-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e6cfe0;
    background: #fff;
    color: #6f2b58;
    border-radius: 200px;
    padding: 5px 13px;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}

.cr-filter-clear:hover { background: #f4ecf1; }

/* Review cards */
.cr-review-list { display: flex; flex-direction: column; gap: 14px; }

.cr-review {
    display: none;
    border: 1px solid #f0e6f1;
    border-left: 4px solid #c9a7bb;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.cr-review.is-active { display: block; }
.cr-review.is-correct { border-left-color: #16803c; }
.cr-review.is-wrong { border-left-color: #8a3b70; }
.cr-review.is-unanswered { border-left-color: #9ca3af; }

.cr-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cr-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 200px;
    padding: 5px 12px;
    font-size: .74rem;
    font-weight: 800;
}

.is-correct .cr-review-badge { background: #e7f7ee; color: #16803c; }
.is-wrong .cr-review-badge { background: #f4ecf1; color: #8a3b70; }
.is-unanswered .cr-review-badge { background: #f3f4f6; color: #6b7280; }

.cr-review-subj { font-size: .76rem; font-weight: 700; color: #6b7280; display: inline-flex; align-items: center; gap: 5px; }

.cr-review-subj .bi { color: #8a3b70; }

.cr-q { font-size: .98rem; font-weight: 700; color: #141419; line-height: 1.55; margin: 0 0 12px; }

.cr-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    color: #374151;
    font-size: .9rem;
    line-height: 1.45;
}

.cr-opt-key {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #f3f4f6;
    color: #6b7280;
}

.cr-opt-text { flex: 1; min-width: 0; }

.cr-opt-mark { margin-top: 2px; }

.cr-opt.is-correct { background: #f1faf4; border-color: #cdebd8; }

.cr-opt.is-correct .cr-opt-key { background: #16803c; color: #fff; }

.cr-opt.is-correct .cr-opt-text { font-weight: 700; color: #141419; }

.cr-opt-mark.ok { color: #16803c; }

.cr-opt.is-selected { background: #fbf2f8; border-color: #e6cfe0; }

.cr-opt.is-selected .cr-opt-key { background: #8a3b70; color: #fff; }

.cr-opt-mark.no { color: #8a3b70; }

.cr-exp {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8eef4;
    border-left: 3px solid #af4689;
}

.cr-exp strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 800;
    color: #6f2b58;
    margin-bottom: 4px;
}

.cr-exp p { margin: 0; font-size: .87rem; line-height: 1.55; color: #4b5563; }

/* Review navigation */
.cr-nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }

.cr-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 200px;
    padding: 10px 20px;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #6f2b58, #8a3b70);
    color: #fff;
    box-shadow: 0 8px 18px rgba(111, 43, 88, .22);
    transition: background .15s;
}

.cr-nav:hover:not(:disabled) { background: linear-gradient(135deg, #5c2349, #6f2b58); }

.cr-nav-ghost { background: #fff; color: #6f2b58; border: 1px solid #e6cfe0; box-shadow: none; }

.cr-nav-ghost:hover:not(:disabled) { background: #f4ecf1; }

.cr-nav:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.cr-pos { font-size: .85rem; font-weight: 700; color: #6b7280; }

/* Bottom actions */
.cr-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.cr-cta,
.cr-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 200px;
    padding: 12px 26px;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.cr-cta { background: linear-gradient(135deg, #6f2b58, #8a3b70); color: #fff; box-shadow: 0 10px 22px rgba(111, 43, 88, .24); }

.cr-cta:hover { color: #fff; background: linear-gradient(135deg, #5c2349, #6f2b58); }

.cr-cta-ghost { background: #fff; color: #6f2b58; border: 1px solid #e6cfe0; }

.cr-cta-ghost:hover { background: #f4ecf1; color: #6f2b58; }

@media (max-width: 620px) {
    .cr-hero { padding: 24px 20px; }
    .cr-ring { width: 132px; height: 132px; }
    .cr-ring-in { width: 100px; height: 100px; }
    .cr-ring-num { font-size: 1.35rem; }
    .cr-stats { grid-template-columns: 1fr; }
    .cr-subj-row { grid-template-columns: 36px 1fr auto; }
    .cr-subj-arrow { display: none; }
}

/* ============================================================
   Exam practice setup (classroom/exam/practice/{id})
   ============================================================ */
.ep-page { padding: 0 0 44px; }

.ep-wrap {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Breadcrumb */
.ep-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: #9ca3af;
}
.ep-crumb a { color: #6f2b58; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ep-crumb a:hover { color: #8a3b70; }
.ep-crumb .sep { font-size: .62rem; color: #c39ab8; }
.ep-crumb span { color: #6b7280; }

/* Hero */
.ep-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 32px 34px;
    color: #fff;
    background: linear-gradient(135deg, #4a1d3c 0%, #6f2b58 55%, #8a3b70 100%);
    box-shadow: 0 18px 40px rgba(74, 29, 60, .28);
    display: flex;
    align-items: center;
    gap: 20px;
}
.ep-orb { position: absolute; border-radius: 50%; opacity: .55; pointer-events: none; }
.ep-orb.a { width: 240px; height: 240px; right: -70px; top: -110px; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.ep-orb.b { width: 200px; height: 200px; left: -90px; bottom: -130px; background: radial-gradient(circle, rgba(175,70,137,.5), transparent 70%); }
.ep-hero-main { position: relative; z-index: 2; flex: 1 1 auto; min-width: 0; }

.ep-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 200px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4a1d3c;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}
.ep-hero h1 { margin: 14px 0 8px; font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; }
.ep-hero-main > p { margin: 0; max-width: 620px; font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .84); }

.ep-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ep-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}
.ep-stat-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: .95rem;
}
.ep-stat b { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.ep-stat small { font-size: .66rem; font-weight: 600; color: rgba(255, 255, 255, .78); }

.ep-hero-art {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, .1);
    transform: rotate(-6deg);
}

/* Layout */
.ep-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
    gap: 20px;
    align-items: start;
}

/* Cards */
.ep-card {
    background: #fff;
    border: 1px solid #f0e6f1;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(111, 43, 88, .06);
}
.ep-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.ep-card-head h2 {
    margin: 0 0 4px;
    font-size: 1.06rem;
    font-weight: 800;
    color: #1a1a22;
    display: flex;
    align-items: center;
    gap: 9px;
}
.ep-card-head h2 .bi {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #f4ecf1;
    color: #6f2b58;
    font-size: .9rem;
}
.ep-card-head p { margin: 0; font-size: .8rem; color: #6b7280; line-height: 1.45; }

.ep-head-tools { display: flex; gap: 6px; flex-shrink: 0; }
.ep-mini {
    border: 1px solid #e6d3e0;
    background: #fff;
    color: #6f2b58;
    border-radius: 9px;
    padding: 6px 10px;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.ep-mini:hover { background: #f4ecf1; }

/* Subject cards */
.ep-subj-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.ep-subj {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ep-subj:hover { border-color: #d9bcc9; background: #fdfafc; }
.ep-subj input { position: absolute; opacity: 0; pointer-events: none; }
.ep-subj-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #f4ecf1;
    color: #6f2b58;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all .15s;
}
.ep-subj-body { min-width: 0; flex: 1; }
.ep-subj-name { display: block; font-size: .84rem; font-weight: 700; color: #1a1a22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-subj-meta { display: block; font-size: .68rem; font-weight: 600; color: #9ca3af; }
.ep-subj-check {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid #e0d3dc;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .7rem;
    flex-shrink: 0;
    transition: all .15s;
}
.ep-subj-check .bi { opacity: 0; transform: scale(.6); transition: all .15s; }
.ep-subj:has(input:checked) {
    border-color: #8a3b70;
    background: linear-gradient(180deg, #fdf7fb, #fff);
    box-shadow: 0 6px 18px rgba(111, 43, 88, .1);
}
.ep-subj:has(input:checked) .ep-subj-ic { background: linear-gradient(135deg, #6f2b58, #8a3b70); color: #fff; }
.ep-subj:has(input:checked) .ep-subj-check { background: #8a3b70; border-color: #8a3b70; }
.ep-subj:has(input:checked) .ep-subj-check .bi { opacity: 1; transform: scale(1); }

/* Settings side panel */
.ep-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.ep-field { display: flex; flex-direction: column; gap: 8px; }
.ep-field-label { font-size: .8rem; font-weight: 700; color: #3a4155; display: inline-flex; align-items: center; gap: 7px; }
.ep-field-label .bi { color: #8a3b70; }
.ep-select-wrap { position: relative; }
.ep-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #e6d3e0;
    border-radius: 12px;
    padding: 12px 40px 12px 14px;
    font-size: .88rem;
    font-weight: 700;
    color: #1a1a22;
    background: #fdfafc;
    cursor: pointer;
    transition: all .15s;
}
.ep-select:focus { outline: none; border-color: #8a3b70; box-shadow: 0 0 0 3px rgba(138, 59, 112, .14); background: #fff; }
.ep-select-wrap .bi { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #8a3b70; pointer-events: none; font-size: .85rem; }

.ep-summary {
    border: 1px solid #f0e6f1;
    border-radius: 14px;
    background: #fdfafc;
    overflow: hidden;
}
.ep-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid #f4ecf1;
    font-size: .82rem;
}
.ep-summary-row:last-child { border-bottom: none; }
.ep-summary-row span { color: #6b7280; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ep-summary-row span .bi { color: #b07aa0; }
.ep-summary-row b { font-size: .95rem; font-weight: 800; color: #6f2b58; }

/* Buttons */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border: none;
    border-radius: 13px;
    padding: 13px 18px;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
}
.ep-btn-primary { color: #fff; background: linear-gradient(135deg, #6f2b58, #8a3b70); box-shadow: 0 10px 22px rgba(111, 43, 88, .28); }
.ep-btn-primary:hover { color: #fff; background: linear-gradient(135deg, #5c2349, #6f2b58); transform: translateY(-1px); }
.ep-btn-primary:disabled { background: #ded9dc; color: #9ca3af; box-shadow: none; cursor: not-allowed; transform: none; }
.ep-btn-ghost { background: #fff; color: #6f2b58; border: 1px solid #e6d3e0; }
.ep-btn-ghost:hover { background: #f4ecf1; color: #6f2b58; }
.ep-start { margin-top: 4px; }

/* Empty state */
.ep-empty {
    text-align: center;
    padding: 54px 24px;
    border: 1px dashed #e6d3e0;
    border-radius: 22px;
    background: linear-gradient(180deg, #fdf8fc, #fff);
}
.ep-empty-ic {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: #8a3b70;
    background: #f4ecf1;
}
.ep-empty h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; color: #1a1a22; }
.ep-empty p { margin: 0 auto; max-width: 460px; font-size: .9rem; line-height: 1.6; color: #6b7280; }
.ep-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ep-empty-actions .ep-btn { width: auto; padding: 12px 22px; }

@media (max-width: 900px) {
    .ep-grid { grid-template-columns: 1fr; }
    .ep-side { position: static; }
    .ep-hero-art { display: none; }
}

@media (max-width: 560px) {
    .ep-hero { padding: 24px 20px; border-radius: 20px; }
    .ep-hero h1 { font-size: 1.5rem; }
    .ep-subj-grid { grid-template-columns: 1fr; }
    .ep-card { padding: 18px; }
}
