/* ============================================
   RAJINFOHUB QUIZ MAKER PRO - FRONTEND STYLES
   ============================================ */

/* === RESET & BASE === */
.rqm-quiz-container {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    line-height: 1.6;
}

.rqm-quiz-container * {
    box-sizing: border-box;
}

.rqm-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-size: 16px;
}

/* ================================================
   PAPER STYLE QUIZ
   ================================================ */

/* --- Start Screen --- */
.rqm-start-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.rqm-quiz-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.rqm-quiz-title {
    font-size: 32px;
    margin: 0 0 10px;
    font-weight: 700;
}

.rqm-quiz-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.rqm-quiz-info {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.rqm-info-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 20px;
    text-align: center;
    min-width: 120px;
}

.rqm-info-icon {
    font-size: 35px;
    display: block;
    margin-bottom: 10px;
}

.rqm-info-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.rqm-info-label {
    font-size: 13px;
    opacity: 0.85;
    display: block;
    margin-top: 5px;
}

.rqm-instructions {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    margin: 30px 0;
}

.rqm-instructions h4 {
    margin: 0 0 15px;
    font-size: 18px;
}

.rqm-instructions ul {
    margin: 0;
    padding-left: 5px;
    list-style: none;
}

.rqm-instructions li {
    margin: 8px 0;
    opacity: 0.95;
}

.rqm-start-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 18px 60px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.rqm-start-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* --- Timer Bar (Sticky) --- */
.rqm-timer-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: white;
    position: sticky;
    top: 32px;
    z-index: 1000;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    flex-wrap: wrap;
}

.rqm-timer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
}

.rqm-timer-progress {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    min-width: 100px;
}

.rqm-timer-fill {
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 1s linear;
    width: 100%;
}

.rqm-timer-right {
    font-size: 15px;
    font-weight: 600;
}

/* --- Question Cards --- */
.rqm-questions-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rqm-question-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-left: 6px solid #667eea;
    transition: all 0.3s ease;
}

.rqm-question-card:hover {
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.rqm-question-card.answered {
    border-left-color: #27ae60;
}

.rqm-question-card.result-correct {
    border-left-color: #27ae60;
    background: linear-gradient(to right, #d4edda, white);
}

.rqm-question-card.result-wrong {
    border-left-color: #e74c3c;
    background: linear-gradient(to right, #f8d7da, white);
}

.rqm-question-card.result-skipped {
    border-left-color: #f39c12;
    background: linear-gradient(to right, #fff3cd, white);
}

.rqm-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rqm-question-num {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.rqm-question-points {
    color: #888;
    font-size: 14px;
}

.rqm-question-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.7;
}

.rqm-question-image {
    margin: 20px 0;
    text-align: center;
}

.rqm-question-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- Options --- */
.rqm-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rqm-option {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rqm-option:hover {
    border-color: #667eea;
    background: #f0f3ff;
    transform: translateX(5px);
}

.rqm-option input[type="radio"] {
    display: none;
}

.rqm-option-letter {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #495057;
}

.rqm-option-content {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.rqm-option-img {
    max-width: 80px;
    max-height: 50px;
    border-radius: 8px;
    margin-left: 15px;
}

/* Selected Option */
.rqm-option.selected,
.rqm-option input:checked + .rqm-option-letter {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.rqm-option.selected {
    border-color: #667eea;
    background: #e8f0fe;
}

.rqm-option.selected .rqm-option-letter {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Correct/Wrong Options (After Submit) */
.rqm-option.correct-answer {
    border-color: #27ae60 !important;
    background: #d4edda !important;
}

.rqm-option.correct-answer .rqm-option-letter {
    background: #27ae60 !important;
    color: white !important;
}

.rqm-option.wrong-answer {
    border-color: #e74c3c !important;
    background: #f8d7da !important;
}

.rqm-option.wrong-answer .rqm-option-letter {
    background: #e74c3c !important;
    color: white !important;
}

/* --- Explanation Box --- */
.rqm-question-explanation {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 20px;
}

.rqm-explanation-content {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
}

/* --- Submit Button --- */
.rqm-submit-section {
    text-align: center;
    margin-top: 40px;
}

.rqm-submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 20px 70px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.rqm-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.4);
}

.rqm-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================================================
   RESULT SCREEN
   ================================================ */

.rqm-result-screen {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.1);
}

.rqm-result-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.rqm-result-icon {
    font-size: 90px;
    margin-bottom: 20px;
}

.rqm-result-title {
    font-size: 32px;
    margin: 0 0 15px;
}

.rqm-result-title.passed {
    color: #27ae60;
}

.rqm-result-title.failed {
    color: #e74c3c;
}

.rqm-result-percentage {
    font-size: 60px;
    font-weight: 800;
    color: #333;
    margin: 20px 0;
}

.rqm-result-score-text {
    font-size: 18px;
    color: #666;
}

/* Stats Grid */
.rqm-result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.rqm-result-stat {
    background: #f8f9fa;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
}

.rqm-result-stat-value {
    font-size: 36px;
    font-weight: 700;
    display: block;
    color: #333;
}

.rqm-result-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.rqm-result-stat.correct .rqm-result-stat-value { color: #27ae60; }
.rqm-result-stat.wrong .rqm-result-stat-value { color: #e74c3c; }
.rqm-result-stat.skipped .rqm-result-stat-value { color: #f39c12; }

/* Time & Passing Info */
.rqm-result-info {
    text-align: center;
    margin: 25px 0;
    color: #666;
    font-size: 16px;
}

/* Detailed Review Section */
.rqm-review-section {
    margin-top: 40px;
}

.rqm-review-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    color: #333;
}

.rqm-review-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.rqm-review-item.correct {
    border-left: 5px solid #27ae60;
}

.rqm-review-item.wrong {
    border-left: 5px solid #e74c3c;
}

.rqm-review-item.skipped {
    border-left: 5px solid #f39c12;
}

.rqm-review-status {
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.rqm-review-status.correct {
    background: #d4edda;
    color: #155724;
}

.rqm-review-status.wrong {
    background: #f8d7da;
    color: #721c24;
}

.rqm-review-status.skipped {
    background: #fff3cd;
    color: #856404;
}

.rqm-review-question {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-right: 100px;
}

.rqm-review-answers {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 15px;
}

.rqm-review-your-ans {
    color: #e74c3c;
}

.rqm-review-your-ans.correct {
    color: #27ae60;
}

.rqm-review-correct-ans {
    color: #27ae60;
    font-weight: 600;
}

.rqm-review-explanation {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.rqm-review-explanation-toggle {
    background: none;
    border: 1px solid #667eea;
    color: #667eea;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
}

/* Retry Button */
.rqm-result-actions {
    text-align: center;
    margin-top: 40px;
}

.rqm-retry-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.rqm-retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}


/* ================================================
   KBC STYLE QUIZ
   ================================================ */

.rqm-kbc-quiz {
    background: linear-gradient(180deg, #0a0a2e 0%, #1a1a4e 50%, #0a0a2e 100%);
    border-radius: 25px;
    padding: 35px;
    min-height: 650px;
    position: relative;
}

/* --- KBC Start Screen --- */
.rqm-kbc-start {
    text-align: center;
    padding: 60px 30px;
}

.rqm-kbc-logo {
    font-size: 100px;
    margin-bottom: 25px;
    animation: kbc-pulse 2s ease-in-out infinite;
}

@keyframes kbc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.rqm-kbc-title {
    color: #ffd700;
    font-size: 36px;
    margin: 0 0 10px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    font-weight: 700;
}

.rqm-kbc-tagline {
    color: #aaa;
    font-size: 18px;
    margin-bottom: 40px;
}

.rqm-kbc-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.rqm-kbc-feature {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 35px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.rqm-feature-icon {
    font-size: 22px;
}

.rqm-kbc-start-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #000;
    border: none;
    padding: 22px 60px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.rqm-kbc-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
}

/* --- KBC Top Bar --- */
.rqm-kbc-topbar {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.rqm-kbc-score-box {
    text-align: center;
}

.rqm-kbc-score-label {
    color: #aaa;
    font-size: 13px;
    display: block;
}

.rqm-kbc-score-value {
    color: #ffd700;
    font-size: 32px;
    font-weight: 700;
}

.rqm-kbc-stats-box {
    display: flex;
    gap: 20px;
}

.rqm-kbc-stat {
    font-size: 18px;
    font-weight: 600;
}

.rqm-kbc-stat.correct { color: #27ae60; }
.rqm-kbc-stat.wrong { color: #e74c3c; }

.rqm-kbc-qnum-box {
    color: white;
    font-size: 16px;
}

.rqm-kbc-quit-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.rqm-kbc-quit-btn:hover {
    background: #e74c3c;
    color: white;
}

/* --- KBC Timer Circle --- */
.rqm-kbc-timer-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.rqm-kbc-timer-circle {
    width: 110px;
    height: 110px;
    position: relative;
}

.rqm-kbc-timer-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rqm-timer-bg {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 8;
}

.rqm-timer-progress {
    fill: none;
    stroke: #ffd700;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.rqm-timer-progress.warning {
    stroke: #f39c12;
}

.rqm-timer-progress.danger {
    stroke: #e74c3c;
}

.rqm-timer-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    font-weight: 700;
    color: white;
}

/* --- KBC Question Box --- */
.rqm-kbc-question-box {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 3px solid #ffd700;
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

.rqm-kbc-question-text {
    color: white;
    font-size: 22px;
    line-height: 1.6;
    font-weight: 500;
}

.rqm-kbc-question-image {
    margin-top: 20px;
}

.rqm-kbc-question-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 15px;
}

/* --- KBC Options --- */
.rqm-kbc-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.rqm-kbc-option {
    background: linear-gradient(135deg, #1a1a4e 0%, #2a2a6e 100%);
    border: 2px solid #4a4a8e;
    border-radius: 50px;
    padding: 18px 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
}

.rqm-kbc-option:hover:not(.disabled) {
    border-color: #ffd700;
    transform: scale(1.02);
    background: linear-gradient(135deg, #2a2a6e 0%, #3a3a8e 100%);
}

.rqm-kbc-option.selected {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-color: #ffd700;
    animation: kbc-blink 0.5s ease 3;
}

@keyframes kbc-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.rqm-kbc-option.correct {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    border-color: #27ae60 !important;
}

.rqm-kbc-option.wrong {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border-color: #e74c3c !important;
}

.rqm-kbc-option.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.rqm-kbc-opt-letter {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.rqm-kbc-opt-text {
    flex: 1;
    line-height: 1.4;
}

/* --- KBC Feedback Box --- */
.rqm-kbc-feedback {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    margin-top: 25px;
}

.rqm-kbc-feedback-icon {
    font-size: 70px;
    margin-bottom: 15px;
}

.rqm-kbc-feedback-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rqm-kbc-feedback.correct .rqm-kbc-feedback-text {
    color: #27ae60;
}

.rqm-kbc-feedback.wrong .rqm-kbc-feedback-text {
    color: #e74c3c;
}

.rqm-kbc-feedback.timeout .rqm-kbc-feedback-text {
    color: #f39c12;
}

.rqm-kbc-feedback-correct {
    color: #27ae60;
    font-size: 18px;
    margin-bottom: 15px;
}

.rqm-kbc-explanation {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
    color: #ddd;
    font-size: 15px;
    text-align: left;
    line-height: 1.6;
}

.rqm-kbc-next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.rqm-kbc-next-btn:hover {
    transform: scale(1.05);
}

/* --- KBC End Screen --- */
.rqm-kbc-end {
    text-align: center;
    padding: 60px 30px;
}

.rqm-kbc-trophy {
    font-size: 100px;
    margin-bottom: 25px;
    animation: kbc-trophy-bounce 1s ease infinite;
}

@keyframes kbc-trophy-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.rqm-kbc-end-title {
    color: #ffd700;
    font-size: 38px;
    margin: 0 0 35px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.rqm-kbc-final-score {
    margin-bottom: 40px;
}

.rqm-final-label {
    color: #aaa;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

.rqm-final-value {
    color: #ffd700;
    font-size: 80px;
    font-weight: 800;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.rqm-kbc-final-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.rqm-final-stat {
    text-align: center;
}

.rqm-final-num {
    font-size: 44px;
    font-weight: 700;
    display: block;
    color: white;
}

.rqm-final-stat.correct .rqm-final-num { color: #27ae60; }
.rqm-final-stat.wrong .rqm-final-num { color: #e74c3c; }

.rqm-final-stat .rqm-final-label {
    color: #aaa;
    font-size: 14px;
}

.rqm-kbc-restart-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #000;
    border: none;
    padding: 20px 55px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rqm-kbc-restart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}


/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .rqm-quiz-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .rqm-start-screen,
    .rqm-kbc-quiz {
        padding: 25px 20px;
    }
    
    .rqm-quiz-title,
    .rqm-kbc-title {
        font-size: 24px;
    }
    
    .rqm-quiz-info,
    .rqm-kbc-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .rqm-info-box {
        padding: 20px;
    }
    
    .rqm-timer-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        top: 0;
    }
    
    .rqm-question-card {
        padding: 20px;
    }
    
    .rqm-question-text {
        font-size: 16px;
    }
    
    .rqm-option {
        padding: 15px;
    }
    
    .rqm-option-letter {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .rqm-result-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rqm-kbc-options {
        grid-template-columns: 1fr;
    }
    
    .rqm-kbc-topbar {
        justify-content: center;
        text-align: center;
    }
    
    .rqm-kbc-question-text {
        font-size: 18px;
    }
    
    .rqm-kbc-final-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .rqm-review-question {
        padding-right: 0;
    }
    
    .rqm-review-status {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
}


/* ================================================
   QUIZ LIST & CATEGORIES
   ================================================ */

.rqm-quiz-list,
.rqm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.rqm-quiz-card,
.rqm-category-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.rqm-quiz-card:hover,
.rqm-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.rqm-quiz-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.rqm-quiz-badge.paper { background: linear-gradient(135deg, #667eea, #764ba2); }
.rqm-quiz-badge.kbc { background: linear-gradient(135deg, #f39c12, #e67e22); }

.rqm-quiz-card h3,
.rqm-category-card h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #333;
}

.rqm-quiz-meta {
    color: #666;
    font-size: 14px;
    margin: 15px 0;
    display: flex;
    gap: 20px;
}

.rqm-quiz-btn,
.rqm-cat-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
}

.rqm-quiz-btn:hover,
.rqm-cat-btn:hover {
    transform: scale(1.05);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.rqm-category-card {
    text-align: center;
    border-top: 5px solid;
}

.rqm-cat-icon {
    font-size: 55px;
    display: block;
    margin-bottom: 15px;
}

.rqm-cat-count {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.rqm-subcats {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.rqm-subcat-link {
    background: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rqm-subcat-link:hover {
    background: #667eea;
    color: white;
}