/* ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ
   AcePath Hub ΓÇö Main Stylesheet
   Theme: Dark background, Gold accent
ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */

/* ΓöÇΓöÇ Variables ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
:root {
    --bg:           #0a0a0f;
    --card-bg: #13131a;
    --primary: #f0c040;
    --input-bg: #0a0a0f;
    --sidebar-bg:   #111118;
    --navbar-bg:    #111118;
    --accent:       #f0c040;
    --accent-hover: #d4a928;
    --text:         #f0ede8;
    --muted:        #6b6b7a;
    --border:       rgba(240, 192, 64, 0.2);
    --radius:       6px;
    --font:         'DM Sans', 'Segoe UI', sans-serif;
}

/* ΓöÇΓöÇ Reset ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
}

body {
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: var(--text);
}

/* ΓöÇΓöÇ Navbar ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 200;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

#navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#navbar-brand {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-decoration: none;
}

#navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

#side_panel_icon {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 18px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

#side_panel_icon:hover {
    background: var(--accent);
    color: var(--bg);
}

#notif-link {
    position: relative;
    color: var(--text);
    font-size: 1.2rem;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: firebrick;
    position: absolute;
    top: -2px;
    right: -2px;
}

.navbar-login-link {
    color: var(--accent);
    font-weight: 600;
}

/* ΓöÇΓöÇ Profile menu ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.links {
    display: inline-block;
    color: var(--text);
    padding: 0 5px;
    position: relative;
    width: fit-content;
    cursor: pointer;
}

.links a {
    color: var(--text);
    display: block;
}

.profile_menu {
    position: relative;
}

.profile_submenu.open {
    display: block;
}

.submenu,
.profile_submenu {
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    position: absolute;
    right: 0;
    top: 100%;
    text-align: left;
    min-width: 140px;
    display: none;
    border-radius: var(--radius);
    z-index: 200;
    transition: opacity 0.15s ease;
}

@media (min-width: 501px) {
    .profile_menu:hover .profile_submenu {
        display: block;
    }
}

.sublinks {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
}

.sublinks:last-child {
    border-bottom: none;
}

.sublinks:hover {
    background: var(--accent);
}

.sublinks:hover a {
    color: var(--bg);
}

.sublinks a {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ΓöÇΓöÇ Sidebar ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
#side_panel {
    position: fixed;
    top: 60px;
    left: 0;
    width: 240px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    z-index: 150;
    transition: left 0.3s ease;
}

#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
}

#sidebar-overlay.active {
    display: block;
}

#side_menu_links {
    width: 100%;
}

.side-links {
    display: block;
    padding: 9px 14px;
    width: 100%;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background 0.15s;
}

.side-links:hover {
    background: rgba(240, 192, 64, 0.08);
    color: var(--accent);
}

.side-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.side-links:hover a {
    color: var(--accent);
}

.side-links img {
    width: 16px;
    opacity: 0.75;
}

/* Submenu */
.side-submenu {
    display: none;
    background: rgba(240, 192, 64, 0.04);
    border-left: 2px solid var(--accent);
    padding-left: 10px;
}

.side-submenu.open {
    display: block;
}

.side-sublinks {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
}

.side-sublinks a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.side-sublinks:hover a {
    color: var(--accent);
}

/* ΓöÇΓöÇ Layout ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
#main-content {
    margin-left: 240px;
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

.desktop { display: block; }
.mobile  { display: none;  }

/* ΓöÇΓöÇ Hero ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.hero {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(240,192,64,0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 1px;
    text-shadow: 3px 3px 20px rgba(240,192,64,0.3);
    margin-bottom: 16px;
}

.hero h2 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.hero h4 {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 400;
}

.hero .cta-group {
    margin-top: 28px;
}

/* ΓöÇΓöÇ Buttons ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.btn-primary-custom {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    color: var(--bg);
}

.btn-outline-custom {
    padding: 10px 24px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ΓöÇΓöÇ Feature Cards ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.features-section {
    text-align: center;
    padding: 50px 0;
}

.features-section h4 {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 36px auto;
    border-radius: 2px;
}

.card_box {
    padding: 24px 16px;
    margin: 12px;
    text-align: center;
    border-radius: var(--radius);
    width: 100%;
    max-width: 180px;
    display: inline-block;
    border: 1px solid var(--border);
    background: var(--sidebar-bg);
    transition: all 0.25s;
    vertical-align: top;
}

.card_box:hover {
    border-color: var(--accent);
    background: rgba(240,192,64,0.08);
    transform: translateY(-5px);
    cursor: pointer;
}

.card_box h1 {
    font-size: 2rem;
    margin: 0 0 6px 0;
    color: var(--accent);
}

.card_box div {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ΓöÇΓöÇ Footer ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.footer {
    background: var(--sidebar-bg);
    border-top: 2px solid var(--border);
    padding: 40px 0 20px;
    margin-left: 240px;
}

.footer-logo {
    width: 60px;
}

.footer-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.footer-links a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    margin: 4px 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.footer-social a {
    color: var(--accent);
    font-size: 1.6rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-copyright {
    text-align: center;
    color: var(--accent);
    font-weight: 500;
    font-size: 1rem;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ΓöÇΓöÇ Messenger float ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.messanger img {
    width: 40px;
    border-radius: 50%;
    height: 40px;
    position: fixed;
    right: 18px;
    bottom: 18px;
    box-shadow: 0 0 10px rgba(240,192,64,0.3);
    cursor: pointer;
    border: 1px solid var(--accent);
    transition: transform 0.2s;
}

.messanger img:hover {
    transform: scale(1.1);
}

/* ΓöÇΓöÇ Mobile ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
@media only screen and (max-width: 768px) {
    .desktop { display: none; }
    .mobile  { display: block; }

    #side_panel {
        left: -240px;
    }

    #side_panel.open {
        left: 0;
    }

    #main-content,
    .footer {
        margin-left: 0;
    }

    .card_box {
        width: 48% !important;
        max-width: none;
        margin: 8px 1%;
        padding: 15px;
    }
}

@media only screen and (max-width: 400px) {
    .card_box {
        width: 100% !important;
        margin: 10px 0;
    }
}

.info_card {
    display: inline-block;
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--accent);
    text-align: center;
    color: var(--accent);
}

.info_card:hover {
    color: white;
    background: var(--accent);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    cursor: pointer;
}

@media (max-width: 768px) {
    .info_card {
        display: block;
        width: 100%;
        margin: 8px 0;
        box-sizing: border-box;
    }
}

label { font-weight: 700; }
.question-block {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.text-muted {
    color: #888 !important;
}

/* ΓöÇΓöÇ mcq-details.php ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.mcqd-actions { display: flex; gap: 8px; align-items: center; }

.mcqd-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px; margin-bottom: 1rem;
}
.mcqd-meta-date { font-size: 11px; color: #555; margin-left: auto; }

.badge-unverified { background: #2e1a0e; color: #e07b39; }
.badge-draft      { background: #1e1e2e; color: #888; border: 1px solid #2a2a3a; }

.mcqd-passage {
    font-size: 13px; color: #bbb; line-height: 1.7;
    background: #12121e; border: 1px solid #2a2a3a;
    border-radius: 6px; padding: .75rem 1rem; margin-bottom: 1rem;
}
.mcqd-passage-label {
    font-size: 10px; font-weight: 500; color: #555;
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem;
}

.mcqd-image { margin-bottom: 1rem; }
.mcqd-image img { max-width: 320px; border-radius: 6px; border: 1px solid #2a2a3a; }

.mcqd-q-card {
    background: #12121e; border: 1px solid #2a2a3a;
    border-radius: 8px; margin-bottom: 1rem; overflow: hidden;
}
.mcqd-q-head {
    display: flex; align-items: center; gap: 8px;
    padding: .5rem 1rem; border-bottom: 1px solid #2a2a3a;
    background: #0d0d18;
}
.mcqd-q-id { font-size: 11px; color: #444; font-family: monospace; }
.mcqd-q-body { padding: .75rem 1rem; }
.mcqd-q-text { font-size: 13px; color: #d0d0d0; line-height: 1.6; margin-bottom: .6rem; }

.mcqd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 1rem; margin-bottom: .5rem; }
.mcqd-opt  { font-size: 13px; color: #777; padding: 2px 0; }
.mcqd-opt-correct { color: #6abf47; font-weight: 500; }
.mcqd-tick { margin-left: 4px; }

.mcqd-expl {
    font-size: 12px; color: #999; line-height: 1.6;
    background: #0d0d18; border-left: 2px solid #2a2a3a;
    padding: .4rem .75rem; margin-top: .5rem; border-radius: 0 4px 4px 0;
}
.mcqd-expl-label {
    font-size: 10px; font-weight: 500; color: #555;
    text-transform: uppercase; letter-spacing: .05em;
    display: block; margin-bottom: 2px;
}

/* ΓöÇΓöÇ unverified-mcqs.php ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇ */
.qs-eb-select {
    max-width: 300px;
    margin-bottom: 1.25rem;
}
.uv-topic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    background: #12121e;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    margin-bottom: .5rem;
    cursor: pointer;
}
.uv-topic-row:hover { border-color: #444; }
.uv-topic-name { font-size: 13px; color: #d0d0d0; }
.uv-topic-count { font-size: 11px; color: #f0c040; }

/* —— QS Buttons ————————————————————————— */
.btn-qs-gold,
.btn-qs-sm,
.btn-qs-danger {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-qs-gold {
    background: var(--accent);
    color: var(--bg);
}

.btn-qs-sm {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-qs-danger {
    background: #c0392b;
    color: #fff;
}

.btn-qs-gold:hover,
.btn-qs-sm:hover,
.btn-qs-danger:hover {
    opacity: 0.85;
    color: inherit;
}

/* —— DataTables dark theme override ————————————— */
#datatable,
#datatable thead,
#datatable tbody tr,
#datatable tfoot {
    background-color: var(--bg) !important;
    color: var(--text) !important;
}

#datatable thead th {
    background-color: var(--sidebar-bg) !important;
    color: var(--accent) !important;
    border-color: var(--border) !important;
}

#datatable tbody tr:hover {
    background-color: rgba(240, 192, 64, 0.06) !important;
}

#datatable td, #datatable th {
    border-color: var(--border) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent) !important;
    color: var(--bg) !important;
    border-color: var(--accent) !important;
}

.dataTables_wrapper input,
.dataTables_wrapper select {
    background-color: var(--sidebar-bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.qs-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--accent);
    margin: 1rem 0;
}

.qs-tab {
    padding: 0.5rem 1.25rem;
    color: var(--text-muted, #aaa);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s;
}

.qs-tab:hover {
    color: var(--accent);
}

.qs-tab-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* —— unverified-mcq-details / draft-mcq-details ————————————————— */

.qs-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 0 .75rem;
    border-bottom: 1px solid #2a2a3a;
    margin-bottom: 1.25rem;
}
.qs-breadcrumb {
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .3rem;
}
.qs-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0c040;
}
.qs-total-label {
    font-size: 11px;
    color: #555;
    padding-top: .25rem;
}
.qs-empty {
    color: #555;
    font-size: 13px;
    padding: 2rem 0;
    text-align: center;
}

/* Card */
.qs-card {
    background: #0f0f1a;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color .15s;
}
.qs-card:hover { border-color: #3a3a4a; }

.qs-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: .55rem 1rem;
    background: #0a0a14;
    border-bottom: 1px solid #1e1e2e;
}
.qs-card-id {
    font-size: 11px;
    color: #444;
    font-family: monospace;
    margin-right: 2px;
}
.qs-card-status { margin-left: auto; }

/* Badges */
.badge-meta {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background: #1a1a2a;
    color: #777;
    border: 1px solid #2a2a3a;
    text-transform: lowercase;
}
.badge-source-practice {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background: #0d1f2d;
    color: #4a9eca;
    border: 1px solid #1a3a50;
    text-transform: lowercase;
}
.badge-source-past {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background: #1a0d2e;
    color: #9b6eca;
    border: 1px solid #3a1a50;
    text-transform: lowercase;
}
.badge-unverified {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background: #2e1a0e;
    color: #e07b39;
    border: 1px solid #4a2a10;
    text-transform: lowercase;
}
.badge-draft {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background: #1a1a2a;
    color: #777;
    border: 1px solid #2a2a3a;
    text-transform: lowercase;
}

/* Card body */
.qs-card-body { padding: .85rem 1rem; }

.qs-q-row {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}
.qs-q-num {
    font-size: 10px;
    font-weight: 600;
    color: #f0c040;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-top: 2px;
    min-width: 20px;
}
.qs-q-content { flex: 1; }
.qs-q-text {
    font-size: 13px;
    color: #d0d0d0;
    line-height: 1.65;
    margin-bottom: .6rem;
}

.qs-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 1.5rem;
    margin-bottom: .5rem;
}
.qs-opt {
    font-size: 12px;
    color: #666;
    padding: 2px 0;
}
.qs-opt-correct {
    color: #6abf47;
    font-weight: 500;
}
.qs-more-hint {
    font-size: 11px;
    color: #555;
    font-style: italic;
    margin-top: .35rem;
}
.qs-no-questions {
    font-size: 12px;
    color: #444;
    font-style: italic;
}

/* Card footer */
.qs-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .55rem 1rem;
    background: #0a0a14;
    border-top: 1px solid #1e1e2e;
}
.qs-creator {
    font-size: 11px;
    color: #444;
    margin-left: auto;
    font-family: monospace;
}

/* Footer buttons */
.btn-qs-sm {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    background: transparent;
    color: #888;
    border: 1px solid #2a2a3a;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.btn-qs-sm:hover { border-color: #555; color: #bbb; }

.btn-qs-gold {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    background: #f0c040;
    color: #0a0a0f;
    border: none;
    cursor: pointer;
    transition: background .15s;
}
.btn-qs-gold:hover { background: #ffd060; }

.btn-qs-danger {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    background: transparent;
    color: #e05555;
    border: 1px solid #3a1a1a;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.btn-qs-danger:hover { background: #2e1010; color: #ff6666; }

.badge-published {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background: #0d2e1a;
    color: #6abf47;
    border: 1px solid #1a5030;
    text-transform: lowercase;
}

/* ── My Products ─────────────────────────────────────────────────────── */
.mp-page-title       { color: var(--accent); font-weight: 700; }
.mp-tabs             { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; border-bottom: 1px solid #2a2a3a; }
.mp-tab              { display: block; padding: 8px 16px; color: #888; text-decoration: none; border-radius: 8px 8px 0 0; font-weight: 600; font-size: 0.88rem; transition: color 0.2s; }
.mp-tab:hover        { color: var(--accent); }
.mp-tab-active       { color: var(--accent); border-bottom: 2px solid var(--accent); }
.mp-tab-count        { background: var(--accent); color: #000; border-radius: 20px; font-size: 0.7rem; padding: 1px 6px; margin-left: 5px; font-weight: 700; }
.mp-card             { background: #13131a; border: 1px solid #2a2a3a; border-radius: 12px; padding: 18px; height: 100%; display: flex; flex-direction: column; }
.mp-card-title       { color: var(--accent); font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.mp-meta             { color: #777; font-size: 0.8rem; }
.mp-sets-remaining   { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.mp-expires-ok       { color: #4caf50; font-size: 0.85rem; font-weight: 600; }
.mp-expires-warn     { color: #ffa726; font-size: 0.85rem; font-weight: 600; }
.mp-unlimited        { color: #4caf50; font-size: 0.85rem; font-weight: 600; }
.mp-badge-active     { background: #1a3a1a; color: #4caf50; font-size: 0.7rem; padding: 2px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.mp-empty            { text-align: center; padding: 60px 20px; color: #666; }
.mp-empty p          { margin-bottom: 16px; }

/* ── Practice Subsets Manage ─────────────────────────────────────────── */
.psm-stat-card    { background: #13131a; border: 1px solid #2a2a3a; border-radius: 10px; padding: 16px; text-align: center; }
.psm-stat-value   { color: var(--accent); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.psm-stat-label   { color: #777; font-size: 0.78rem; margin-top: 4px; }
.psm-section-title { color: var(--accent); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.psm-form-card    { background: #13131a; border: 1px solid #2a2a3a; border-radius: 12px; padding: 20px; }
.psm-input        { background: #0a0a0f; border: 1px solid #2a2a3a; color: #fff; width: 160px; }
.psm-input:focus  { background: #0a0a0f; border-color: var(--accent); color: #fff; box-shadow: none; }

/* ── Practice Subject ─────────────────────────────────────────────────── */
.ps-header         { background: #13131a; border: 1px solid #2a2a3a; border-radius: 12px; padding: 20px; }
.ps-product-name   { color: var(--accent); font-size: 1.15rem; font-weight: 700; }
.ps-exam-body      { color: #888; font-size: 0.82rem; }
.ps-stat-row       { display: flex; gap: 28px; flex-wrap: wrap; }
.ps-stat-item      { text-align: center; }
.ps-stat-num       { color: var(--accent); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.ps-stat-lbl       { color: #666; font-size: 0.72rem; }
.ps-progress-wrap  { background: #1e1e2a; border-radius: 6px; height: 7px; overflow: hidden; }
.ps-progress-fill  { background: var(--accent); height: 100%; border-radius: 6px; transition: width 0.4s ease; }
.ps-subject-card   { background: #13131a; border: 1px solid #2a2a3a; border-radius: 12px; padding: 16px; height: 100%; display: flex; flex-direction: column; }
.ps-subject-name   { color: var(--accent); font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.ps-accuracy-ok    { color: #4caf50; font-size: 0.82rem; font-weight: 600; }
.ps-accuracy-warn  { color: #ffa726; font-size: 0.82rem; font-weight: 600; }
.ps-accuracy-bad   { color: #ef5350; font-size: 0.82rem; font-weight: 600; }
.btn-reset-all     { background: transparent; border: 1px solid #3a1a1a; color: #ef5350; font-size: 0.82rem; padding: 5px 14px; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.btn-reset-all:hover { background: #3a1a1a; }
.btn-reset-sm      { background: transparent; border: 1px solid #3a1a1a; color: #ef5350; font-size: 0.72rem; padding: 2px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.2s; }
.btn-reset-sm:hover { background: #3a1a1a; }

/* ── Practice Question Page ──────────────────────────────────────────── */
.pq-wrapper         { max-width: 820px; margin: 0 auto; }
.pq-set-label       { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.pq-container       { background: #13131a; border: 1px solid #2a2a3a; border-radius: 12px; padding: 20px; overflow: hidden; }
.pq-passage         { background: #1a1a25; border-left: 3px solid var(--accent); border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; color: #ccc; font-size: 0.92rem; line-height: 1.6; }
.pq-image           { max-width: 100%; border-radius: 8px; margin-bottom: 16px; display: block; }
.pq-question-block  { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #1e1e2a; }
.pq-question-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.pq-q-num           { color: var(--accent); font-size: 0.78rem; font-weight: 700; margin-bottom: 4px; }
.pq-q-text          { color: #e0e0e0; font-size: 0.95rem; margin-bottom: 12px; line-height: 1.55; }
.pq-options         { display: flex; flex-direction: column; gap: 8px; }
.pq-option          { display: flex; align-items: flex-start; gap: 10px; background: #0e0e18; border: 1px solid #2a2a3a; border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: border-color 0.15s; color: #ccc; font-size: 0.88rem; line-height: 1.4; }
.pq-option input    { display: none; }
.pq-option:hover:not(.pq-answered) { border-color: var(--accent); color: #fff; }
.pq-option.pq-correct  { border-color: #4caf50; background: #1a3a1a; color: #4caf50; }
.pq-option.pq-wrong    { border-color: #ef5350; background: #3a1a1a; color: #ef5350; }
.pq-option.pq-answered { cursor: default; }
.pq-opt-letter      { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pq-option.pq-correct .pq-opt-letter { color: #4caf50; }
.pq-option.pq-wrong   .pq-opt-letter { color: #ef5350; }
.pq-explanation     { background: #1a1e2a; border: 1px solid #2a3a4a; border-radius: 8px; padding: 10px 14px; margin-top: 10px; color: #aaa; font-size: 0.84rem; line-height: 1.5; }
.pq-no-explanation  { display: none; }
.pq-nav             { display: flex; justify-content: space-between; align-items: center; }
.pq-palette         { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: #13131a; border: 1px solid #2a2a3a; border-radius: 10px; }
.pq-badge           { width: 34px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; cursor: pointer; transition: 0.15s; border: 1px solid transparent; }
.pq-badge-current   { background: var(--accent); color: #000; border-color: var(--accent); }
.pq-badge-correct   { background: #1a3a1a; color: #4caf50; border-color: #4caf50; }
.pq-badge-wrong     { background: #3a1a1a; color: #ef5350; border-color: #ef5350; }
.pq-badge-partial   { background: #2a2510; color: #ffa726; border-color: #ffa726; }
.pq-badge-unanswered { background: #1a1a2a; color: #555; border-color: #2a2a3a; }

/* ── Profile Page ─────────────────────────────────────── */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0 1rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #0a0a0f;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-fullname {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.profile-username {
    font-size: 0.85rem;
    color: var(--muted);
}

.profile-role-badge {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    background: var(--primary);
    color: #0a0a0f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.profile-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.profile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text);
}

.profile-card-row:last-of-type {
    border-bottom: none;
}

.profile-label {
    color: var(--muted);
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.profile-card-footer {
    margin-top: 0.9rem;
}

.profile-referral {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 2rem;
}

.profile-referral-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.profile-referral-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.profile-referral-input {
    font-size: 0.82rem;
    background: var(--input-bg, #111);
    color: var(--text);
    border: 1px solid var(--border);
}

/* ── Edit Profile Page ────────────────────────────────── */
.ep-form {
    max-width: 560px;
}

.ep-field {
    margin-bottom: 1rem;
}

.ep-label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.ep-required {
    color: #e55;
}

.ep-input {
    background: var(--input-bg, #111);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 0.88rem;
}

.ep-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(240, 192, 64, 0.15);
    outline: none;
}

.ep-radio-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.ep-radio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
}

.ep-submit {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.uv-subject-header {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    margin-top: 0.8rem;
}

/* ── Generic List Rows ────────────────────────────────── */
.qs-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.qs-list-name {
    font-size: 0.92rem;
    color: var(--text);
}

.qs-list-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Dark Table ───────────────────────────────────────── */
.table > :not(caption) > * > * {
    background-color: var(--card-bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.table thead th {
    background: var(--sidebar-bg) !important;
    color: var(--accent) !important;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover > * {
    background-color: rgba(240, 192, 64, 0.06) !important;
}

/* ── Leaderboard ──────────────────────────────────────── */
.lb-time-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lb-time-btn {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    transition: 0.15s;
}

.lb-time-btn:hover { border-color: var(--accent); color: var(--accent); }

.lb-time-active {
    background: var(--accent);
    color: #0a0a0f;
    border-color: var(--accent);
    font-weight: 600;
}

.lb-total {
    font-size: 0.82rem;
    color: var(--muted);
}

.lb-my-rank-card {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}

.lb-no-rank {
    border-color: var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}

.lb-my-rank-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.lb-my-rank-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.lb-my-rank-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text);
}

.lb-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
}

.lb-podium-item {
    text-align: center;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    min-width: 100px;
}

.lb-gold   { background: rgba(255, 215, 0, 0.15); border: 2px solid #ffd700; order: 2; }
.lb-silver { background: rgba(192, 192, 192, 0.1); border: 2px solid #c0c0c0; order: 1; }
.lb-bronze { background: rgba(205, 127, 50, 0.1); border: 2px solid #cd7f32; order: 3; }

.lb-podium-icon   { font-size: 1.8rem; }
.lb-podium-name   { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-top: 0.3rem; }
.lb-podium-correct { font-size: 0.78rem; color: var(--muted); }
.lb-podium-accuracy { font-size: 0.82rem; color: var(--accent); font-weight: 600; }

.lb-row-gold   { background: rgba(255, 215, 0, 0.08) !important; }
.lb-row-silver { background: rgba(192, 192, 192, 0.06) !important; }
.lb-row-bronze { background: rgba(205, 127, 50, 0.06) !important; }

.lb-my-row td { font-weight: 600; }

.lb-you-badge {
    font-size: 0.7rem;
    background: var(--accent);
    color: #0a0a0f;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 700;
}

.lb-pagination {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.lb-page-info {
    font-size: 0.82rem;
    color: var(--muted);
}

.lb-rank-badge    { font-size: 1rem; font-weight: 700; }
.lb-rank-1        { color: #ffd700; }
.lb-rank-2        { color: #c0c0c0; }
.lb-rank-3        { color: #cd7f32; }
.lb-rank-top10    { color: var(--accent); }
.lb-rank-default  { color: var(--muted); }

input[type="file"] {
    background-color: var(--input-bg);
    color: var(--text);
    border-color: var(--border);
}