/* =========================================
   1. Login & Subscription Boxes
   ========================================= */
.mcq-login-box {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
}
.mcq-login-icon { font-size: 56px; margin-bottom: 15px; display: block; }
.bold-text { font-weight: 700; }
.mcq-login-actions { display: flex; gap: 15px; justify-content: center; margin-top: 25px; flex-wrap: wrap; }
.mcq-btn {
    display: inline-block; padding: 12px 28px; border-radius: 8px; font-size: 15px;
    text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer;
}
.mcq-login-btn { background: linear-gradient(135deg, #ff9800, #f57c00); color: #fff !important; }
.mcq-login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4); }
.mcq-register-btn { background: #f5f5f5; color: #333 !important; border: 1px solid #ddd; }
.mcq-register-btn:hover { background: #e0e0e0; }

/* =========================================
   2. Exam Container & Start Box
   ========================================= */
.bexam-wrap { max-width: 800px; margin: 0 auto; }
.bexam-start-box {
    position: relative; text-align: center; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 10px; padding: 30px; margin-bottom: 20px;
}
.bexam-start-btn {
    background: #e74c3c; color: #fff; border: none; padding: 14px 35px;
    border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 700; transition: all 0.3s ease;
}
.bexam-start-btn:hover { background: #c0392b; transform: translateY(-2px); }
.bexam-pass-mark-note {
    margin-top: 12px; padding: 10px 15px; background: #e8f5e9;
    border-left: 3px solid #4caf50; border-radius: 4px; font-size: 14px; color: #2e7d32; display: inline-block;
}
.bexam-pass-mark-note strong { color: #1b5e20; }
.bexam-category-meta {
    margin-bottom: 12px; padding: 8px 14px; background: linear-gradient(135deg, #f5f7fa, #e8eef5);
    border-left: 3px solid #667eea; border-radius: 6px; font-size: 14px; color: #2c3e50; display: inline-block;
}
.bexam-category-meta strong { color: #667eea; font-weight: 700; }
.bexam-category-meta .cat-name {
    display: inline-block; padding: 2px 8px; background: #667eea; color: #fff;
    border-radius: 4px; font-size: 12px; font-weight: 600; margin: 0 2px;
}
.bexam-end-time-note {
    margin-top: 12px; padding: 10px 15px; background: #fff8e1;
    border-left: 3px solid #f39c12; border-radius: 4px; font-size: 14px; color: #6b5500; display: inline-block;
}
.bexam-end-time-note strong { color: #c0392b; }

/* =========================================
   3. Timer & Questions
   ========================================= */
.bexam-timer {
    position: sticky; top: 80px; z-index: 99; background: #2c3e50; color: #fff;
    text-align: center; padding: 14px; font-size: 18px; font-weight: 700;
    border-radius: 8px; margin-bottom: 15px; box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.bexam-timer.low { background: #c0392b; animation: bexamPulse 1s infinite; }
@keyframes bexamPulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.bexam-q-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.bexam-q-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #333; }
.bexam-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bexam-opt {
    display: block; padding: 10px; border: 1px solid #eee;
    border-radius: 6px; cursor: pointer; transition: background 0.2s;
}
.bexam-opt:hover { background: #f0f0f0; }
.bexam-opt input { margin-right: 8px; }
.bexam-submit-btn, .bexam-load-more-btn {
    display: block; width: 100%; padding: 14px; background: #2c3e50; color: #fff;
    border: none; border-radius: 6px; cursor: pointer; font-size: 15px;
    font-weight: 700; margin-bottom: 20px; transition: background 0.3s;
}
.bexam-submit-btn { background: #27ae60; }
.bexam-submit-btn:hover { background: #219150; }
.bexam-load-more-btn:disabled { opacity: .6; cursor: default; }

/* =========================================
   4. Results & Score Cards
   ========================================= */
.bexam-result-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 30px; text-align: center; }
.bexam-score-cards { display: flex; justify-content: center; gap: 15px; margin: 20px 0; flex-wrap: wrap; }
.bexam-score-card { padding: 18px 14px; border-radius: 12px; min-width: 100px; }
.bexam-score-card.correct { background: #e8f5e9; border: 2px solid #4caf50; }
.bexam-score-card.wrong { background: #ffebee; border: 2px solid #f44336; }
.bexam-score-card.empty { background: #fff3e0; border: 2px solid #ff9800; }
.bexam-score-card.pct { background: #e3f2fd; border: 2px solid #2196f3; }
.bexam-score-card .num { font-size: 28px; font-weight: 700; }
.bexam-final-score-box {
    margin: 25px auto 20px; padding: 25px 20px; border-radius: 16px;
    text-align: center; max-width: 400px; position: relative; overflow: hidden;
}
.bexam-final-score-box.pass { background: linear-gradient(135deg, #a8edea, #fed6e3); border: 2px solid #4caf50; }
.bexam-final-score-box.fail { background: linear-gradient(135deg, #ffecd2, #fcb69f); border: 2px solid #f44336; }
.bexam-final-score-box::before {
    content: ""; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%); pointer-events: none;
}
.bexam-final-score-label { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: #666; margin-bottom: 8px; font-weight: 600; }
.bexam-final-score-value { font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 5px; position: relative; z-index: 1; }
.bexam-final-score-box.pass .bexam-final-score-value { color: #2e7d32; }
.bexam-final-score-box.fail .bexam-final-score-value { color: #c62828; }
.bexam-final-score-total { font-size: 18px; color: #666; font-weight: 600; margin-bottom: 10px; }
.bexam-final-score-neg { font-size: 12px; color: #888; margin-top: 8px; font-style: italic; }
.bexam-final-score-pass { font-size: 13px; color: #555; margin-top: 6px; font-weight: 600; }
.bexam-final-score-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px;
}
.bexam-final-score-box.pass .bexam-final-score-badge { background: #4caf50; color: #fff; }
.bexam-final-score-box.fail .bexam-final-score-badge { background: #f44336; color: #fff; }

/* =========================================
   5. Schedule & Attempted Notice
   ========================================= */
.bexam-schedule-box {
    max-width: 600px; margin: 0 auto; background: #fff; border: 1px solid #e0e0e0;
    border-radius: 12px; padding: 35px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.bexam-schedule-icon { font-size: 48px; margin-bottom: 12px; }
.bexam-schedule-box h3 { font-size: 22px; color: #2c3e50; margin: 0 0 12px; }
.bexam-schedule-box p { color: #555; font-size: 15px; margin: 6px 0; }
.bexam-schedule-box strong { color: #2271b1; }
.bexam-upcoming-box { border-top: 4px solid #f39c12; }
.bexam-ended-box { border-top: 4px solid #c0392b; }
.bexam-refresh-btn {
    display: inline-block; margin-top: 18px; padding: 10px 22px; background: #2271b1;
    color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.bexam-attempted-notice { background: #fff3e0; border: 2px solid #ff9800; border-radius: 8px; padding: 20px; text-align: center; color: #333; }

/* =========================================
   6. Restriction & Login Boxes (ENHANCED FOR GUESTS)
   ========================================= */
.bexam-login-required-box {
    max-width: 650px; margin: 30px auto; background: #ffffff;
    border: 1px solid #e2e8f0; border-top: 5px solid #2196f3;
    border-radius: 16px; padding: 40px 30px; text-align: center;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.08);
}
.bexam-login-header { margin-bottom: 25px; }
.bexam-lock-icon { font-size: 48px; display: block; margin-bottom: 10px; }
.bexam-login-header h3 { font-size: 24px; color: #1e293b; margin: 0 0 8px; font-weight: 800; }
.bexam-login-header p { color: #64748b; font-size: 15px; margin: 0; }

.bexam-login-exam-details { display: flex; justify-content: center; gap: 20px; margin: 30px 0; flex-wrap: wrap; }
.bexam-detail-item {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 18px 15px; text-align: center; min-width: 120px; flex: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bexam-detail-item:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(33, 150, 243, 0.1); border-color: #2196f3; }
.bexam-detail-icon { font-size: 24px; display: block; margin-bottom: 8px; }
.bexam-detail-value { font-size: 20px; font-weight: 800; color: #0f172a; display: block; line-height: 1.2; }
.bexam-detail-label {
    font-size: 11px; color: #64748b; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; display: block;
}

.login-btn {
    display: inline-block; margin-top: 10px; padding: 16px 40px;
    background: linear-gradient(135deg, #2196f3, #1976d2); color: #fff !important;
    border: none; border-radius: 50px; font-size: 17px; font-weight: 700;
    cursor: pointer; text-decoration: none; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}
.login-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4); }

.info-note {
    margin-top: 25px; padding: 16px; background: #eff6ff; border-radius: 8px;
    font-size: 14px; color: #1e40af; line-height: 1.6; border-left: 4px solid #3b82f6; text-align: left;
}

/* Guest Syllabus Box */
.bexam-syllabus-box.guest-syllabus {
    margin-top: 30px; text-align: left; background: #f8fafc;
    padding: 20px; border-radius: 10px; border: 1px dashed #94a3b8;
}
.bexam-syllabus-box.guest-syllabus h4 {
    margin: 0 0 12px 0; color: #334155; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.bexam-syllabus-content { font-size: 14px; line-height: 1.8; color: #475569; }
.bexam-syllabus-content a { color: #e74c3c; text-decoration: none; font-weight: 600; border-bottom: 1px dotted #e74c3c; transition: all .2s; }
.bexam-syllabus-content a:hover { color: #c0392b; border-bottom-style: solid; }
.bexam-syllabus-content ul, .bexam-syllabus-content ol { margin: 10px 0 10px 20px; padding: 0; }
.bexam-syllabus-content li { margin-bottom: 6px; }

/* =========================================
   7. Action Buttons & Modals
   ========================================= */
.bexam-action-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 25px; align-items: flex-start; }
.bexam-leaderboard-btn, .bexam-review-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px;
    color: #fff !important; border: none; border-radius: 50px; font-size: 16px;
    font-weight: 700; cursor: pointer; text-decoration: none; transition: all .3s ease; position: relative;
}
.bexam-leaderboard-btn { background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 4px 15px rgba(102,126,234,.4); }
.bexam-leaderboard-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(102,126,234,.5); }
.bexam-review-btn { background: linear-gradient(135deg, #27ae60, #2ecc71); box-shadow: 0 4px 15px rgba(39,174,96,.4); }
.bexam-review-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(39,174,96,.5); }
.bexam-review-btn:disabled { opacity: .7; cursor: not-allowed; transform: none !important; }
.bexam-premium-badge {
    position: absolute; top: -8px; right: -8px; background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px;
    letter-spacing: .5px; box-shadow: 0 2px 6px rgba(255,152,0,.4); text-transform: uppercase; line-height: 1.2;
}

.bexam-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6);
    z-index: 999999; display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: bexamModalFadeIn .25s ease; backdrop-filter: blur(4px);
}
@keyframes bexamModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.bexam-modal-box {
    background: #fff; border-radius: 16px; padding: 28px 24px 22px; max-width: 380px;
    width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.25); text-align: center;
    animation: bexamModalSlideIn .3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bexamModalSlideIn { from { transform: translateY(-30px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.bexam-modal-icon { font-size: 48px; margin-bottom: 12px; display: inline-block; }
.bexam-modal-title { font-size: 18px; font-weight: 700; color: #2c3e50; margin: 0 0 10px; }
.bexam-modal-message { font-size: 15px; color: #555; line-height: 1.55; margin: 0 0 22px; }
.bexam-modal-buttons { display: flex; gap: 10px; justify-content: center; flex-direction: column; }
.bexam-modal-btn { flex: 1; padding: 12px 20px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.bexam-modal-btn-cancel { background: #f5f5f5; color: #666; border: 1px solid #ddd; }
.bexam-package-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff !important; border: none; border-radius: 8px; font-size: 15px;
    font-weight: 700; cursor: pointer; text-decoration: none; transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(255,152,0,.4);
}
.bexam-package-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,152,0,.5); }

/* =========================================
   8. Toast Notifications
   ========================================= */
.bexam-toast {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-100px);
    background: #2c3e50; color: #fff; padding: 12px 22px; border-radius: 10px;
    font-size: 14px; font-weight: 600; z-index: 999998; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    max-width: 90%; text-align: center; opacity: 0; transition: all .3s ease; pointer-events: none;
}
.bexam-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bexam-toast.error { background: #c0392b; }
.bexam-toast.success { background: #27ae60; }
.bexam-toast.warning { background: #e67e22; }
.bexam-toast.info { background: #2271b1; }

/* =========================================
   9. Live Badge & Syllabus (Regular)
   ========================================= */
.bexam-live-badge {
    position: absolute; top: -12px; right: -12px; background: #e74c3c; color: #fff;
    font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 20px;
    display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(231,76,60,0.4);
    z-index: 10; text-transform: uppercase; letter-spacing: 0.5px; border: 2px solid #fff;
}
.bexam-live-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: bexamLivePulse 1.5s infinite; }
@keyframes bexamLivePulse { 0% { transform: scale(0.8); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.6; } 100% { transform: scale(0.8); opacity: 1; } }
.bexam-syllabus-box {
    margin-top: 20px; text-align: left; background: #f8f9fa;
    padding: 18px; border-radius: 8px; border: 1px dashed #2271b1;
}
.bexam-syllabus-box h4 { margin: 0 0 12px 0; color: #2271b1; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }

/* =========================================
   10. Review Page Styles
   ========================================= */
.bexam-review-wrap { max-width: 850px; margin: 0 auto; padding: 20px; }
.bexam-review-header { text-align: center; margin-bottom: 30px; }
.bexam-review-header h2 { font-size: 26px; color: #2c3e50; margin-bottom: 8px; font-weight: 800; }
.bexam-review-header p { color: #666; font-size: 15px; }
.bexam-review-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 22px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.bexam-review-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 10px; }
.bexam-review-card-header h4 { margin: 0; font-size: 16px; color: #333; font-weight: 700; }
.bexam-review-status { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.bexam-review-status.correct { background: #e8f5e9; color: #2e7d32; }
.bexam-review-status.wrong { background: #ffebee; color: #c62828; }
.bexam-review-status.empty { background: #fff3e0; color: #e65100; }
.bexam-review-question { font-size: 16px; font-weight: 600; color: #2c3e50; margin-bottom: 18px; line-height: 1.6; }
.bexam-review-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.bexam-review-option { padding: 12px; border: 2px solid #eee; background: #f9f9f9; border-radius: 8px; color: #333; font-size: 14px; display: flex; align-items: center; gap: 10px; transition: all .2s; }
.bexam-review-option.is-correct { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; font-weight: 600; }
.bexam-review-option.is-wrong-given { background: #ffebee; border-color: #f44336; color: #c62828; font-weight: 600; }
.bexam-review-option .opt-label { min-width: 25px; font-weight: 700; }
.bexam-review-option .opt-icon { margin-left: auto; font-size: 16px; }
.bexam-review-note { margin: 0; font-size: 13px; color: #666; font-style: italic; }
.bexam-review-note.correct-note { color: #2e7d32; font-style: normal; font-weight: 600; }
.bexam-review-no-access, .bexam-review-login-box { max-width: 500px; margin: 40px auto; text-align: center; padding: 35px 25px; border-radius: 14px; }
.bexam-review-no-access { background: #fff3e0; border: 2px solid #ff9800; }
.bexam-review-no-access .icon { font-size: 56px; margin-bottom: 15px; display: block; }
.bexam-review-no-access h3, .bexam-review-login-box h3 { color: #c0392b; margin: 0 0 12px; font-size: 22px; }
.bexam-review-no-access p, .bexam-review-login-box p { color: #555; margin-bottom: 20px; line-height: 1.6; }
.bexam-review-login-box { background: #fff; border: 2px solid #2196f3; }
.bexam-review-login-box h3 { color: #2c3e50; }
.bexam-review-empty { text-align: center; padding: 40px; background: #f9f9f9; border-radius: 12px; color: #666; }
.bexam-review-back-btn {
    display: inline-block; margin-top: 25px; padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2); color: #fff !important;
    border: none; border-radius: 50px; font-size: 15px; font-weight: 700;
    cursor: pointer; text-decoration: none; box-shadow: 0 4px 15px rgba(102,126,234,.4); transition: all 0.3s ease;
}
.bexam-review-back-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,126,234,.5); }

/* =========================================
   11. Admin Results Page Styles
   ========================================= */
.bexam-admin-wrap { max-width: 1100px; margin: 20px 20px 20px 0; }
.bexam-admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 10px; }
.bexam-admin-header h1 { margin: 0; font-size: 23px; color: #1d2327; }
.bexam-admin-stats { background: #f0f7ff; padding: 8px 16px; border-radius: 20px; font-size: 13px; color: #2271b1; font-weight: 600; }
.bexam-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-bottom: 25px; }
.bexam-exam-card {
    background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: all .2s ease; display: flex; flex-direction: column;
}
.bexam-exam-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); border-color: #2271b1; }
.bexam-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f1; }
.bexam-card-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.bexam-card-title { font-size: 15px; font-weight: 700; color: #1d2327; line-height: 1.4; margin: 0; flex: 1; word-break: break-word; }
.bexam-card-meta { display: flex; gap: 15px; margin-bottom: 14px; font-size: 13px; color: #646970; flex-wrap: wrap; }
.bexam-card-meta-item { display: flex; align-items: center; gap: 5px; }
.bexam-meta-value { font-weight: 600; color: #1d2327; }
.bexam-card-date { font-size: 11px; color: #8c8f94; margin-bottom: 12px; }
.bexam-card-date strong { color: #50575e; }
.bexam-card-actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.bexam-btn-edit { flex: 1; padding: 8px 12px; background: #f0f7ff; color: #2271b1; text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: 600; text-align: center; border: 1px solid #c3d4e8; min-width: 80px; }
.bexam-btn-edit:hover { background: #2271b1; color: #fff; }
.bexam-btn-delete { flex: 1; padding: 8px 12px; background: #fff5f5; color: #c0392b; border: 1px solid #f1b8b8; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; min-width: 80px; }
.bexam-btn-delete:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.bexam-btn-review-delete { flex: 1; padding: 8px 12px; background: #fff3e0; color: #e67e22; border: 1px solid #f1c40f; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; min-width: 80px; }
.bexam-btn-review-delete:hover { background: #e67e22; color: #fff; border-color: #e67e22; }
.bexam-empty-state { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 50px 20px; text-align: center; grid-column: 1 / -1; }
.bexam-empty-icon { font-size: 48px; margin-bottom: 10px; opacity: .5; }
.bexam-empty-text { font-size: 15px; color: #646970; margin-bottom: 15px; }
.bexam-empty-link { display: inline-block; padding: 10px 20px; background: #2271b1; color: #fff; text-decoration: none; border-radius: 4px; font-weight: 600; }
.bexam-pagination { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.bexam-page-link { display: inline-block; padding: 6px 12px; background: #fff; border: 1px solid #c3c4c7; color: #2271b1; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 13px; }
.bexam-page-link:hover { background: #f0f7ff; border-color: #2271b1; }
.bexam-page-link.current { background: #2271b1; color: #fff; border-color: #2271b1; cursor: default; }
.bexam-page-info { font-size: 13px; color: #646970; padding: 6px 12px; }
.bexam-info-bar { background: #fff3cd; border: 1px solid #ffc107; border-radius: 5px; padding: 12px 15px; font-size: 13px; color: #664d03; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bexam-info-bar code { background: #fff; border: 1px solid #ffc107; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.bexam-paid-badge { display: inline-block; padding: 2px 8px; background: linear-gradient(135deg, #ff9800, #f57c00); color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; margin-left: 6px; }
.bexam-pass-badge { display: inline-block; padding: 2px 8px; background: linear-gradient(135deg, #4caf50, #2e7d32); color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; margin-left: 6px; }

/* =========================================
   12. Responsive Adjustments
   ========================================= */
@media(max-width: 768px) {
    .bexam-timer { top: 60px; font-size: 16px; padding: 12px; }
    .bexam-options, .bexam-review-options { grid-template-columns: 1fr; }
    .bexam-schedule-box { padding: 25px 15px; }
    .bexam-final-score-value { font-size: 38px; }
    .bexam-leaderboard-btn, .bexam-review-btn { padding: 14px 30px; font-size: 15px; }
    .bexam-modal-box { padding: 24px 18px 20px; }
    .bexam-toast { top: 70px; font-size: 13px; padding: 10px 18px; }
    .bexam-action-btns { flex-direction: column; align-items: center; }
    .bexam-premium-badge { top: -6px; right: -6px; font-size: 9px; padding: 2px 6px; }
    .bexam-live-badge { top: -8px; right: -8px; font-size: 10px; padding: 4px 10px; }
    .bexam-login-required-box { padding: 30px 20px; margin: 20px 15px; }
    .bexam-login-exam-details { gap: 12px; }
    .bexam-detail-item { min-width: 90px; padding: 14px 10px; }
    .bexam-detail-value { font-size: 18px; }
}
@media(max-width: 600px) {
    .bexam-review-header h2 { font-size: 22px; }
    .bexam-review-card { padding: 16px; }
}
@media(max-width: 782px) {
    .bexam-card-grid { grid-template-columns: 1fr; }
}

/* =========================================
   13. Admin Exam Selection (Exam Name Autocomplete) [NEW]
   ========================================= */
.bexam-exam-autocomplete-wrapper {
    position: relative;
    width: 100%;
}
.bexam-exam-search-input.has-value {
    border-color: #4caf50 !important;
    background-color: #f9fff9;
}
.bexam-exam-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999; /* High z-index to float above WP admin elements */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
}
.bexam-exam-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
}
.bexam-exam-suggestion-item:last-child {
    border-bottom: none;
}
.bexam-exam-suggestion-item:hover,
.bexam-exam-suggestion-item.active {
    background-color: #f0f7ff;
    color: #2271b1;
}
.bexam-exam-suggestion-item .match-count {
    font-size: 11px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}
.bexam-exam-loading,
.bexam-exam-no-results {
    padding: 12px;
    color: #666;
    font-size: 13px;
    text-align: center;
    font-style: italic;
}
.bexam-exam-no-results {
    color: #c0392b;
    font-style: normal;
}
.bexam-selection-stats {
    transition: color 0.3s ease;
}

/* =========================================
   14. Minor Polish & Responsive Fixes (Recommended)
   ========================================= */

/* ১. প্রশ্নের নম্বরের জন্য সুন্দর ব্যাজ স্টাইল (JS থেকে জেনারেট হয়) */
.bexam-q-number {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ২. অ্যাডমিন প্যানেলে মোবাইল বা ছোট স্ক্রিনে সিলেকশন গ্রিড ভেঙে না যাওয়ার জন্য */
@media (max-width: 960px) {
    .mode-subject-topic, 
    .mode-exam-name {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .mode-subject-topic > div:last-child,
    .mode-exam-name > div:last-child {
        grid-column: 1 / -1;
        text-align: right;
    }
    .bexam-exam-autocomplete-wrapper {
        grid-column: 1 / -1;
    }
}

/* ৩. Review পেজে অপশন লেবেল (ক, খ, গ, ঘ) একটু হাইলাইট করার জন্য */
.bexam-review-option .opt-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    flex-shrink: 0;
}
.bexam-review-option.is-correct .opt-label {
    background: #4caf50;
    color: #fff;
}
.bexam-review-option.is-wrong-given .opt-label {
    background: #f44336;
    color: #fff;
}