/**
 * We Quiz Maker — Shared Theme Overrides
 *
 * Cross-theme base resets, utility classes, and shared component
 * styling that applies regardless of which quiz theme is active.
 *
 * @package OnlineQuizMaker
 * @since   1.0.0
 */


/* ==========================================================================
   1. UTILITY CLASSES
   ========================================================================== */

.oqm-hidden {
    display: none !important;
}

.oqm-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}


/* ==========================================================================
   2. BASE THEME RESET
   Isolate quiz container from the surrounding WordPress theme so
   inherited styles don't bleed into our layouts.
   ========================================================================== */

.oqm-quiz.oqm-layout-theme {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--oqm-quiz-text, #1e293b);
    font-family: var(--oqm-quiz-font-family, 'Inter', 'Noto Sans', sans-serif);
    line-height: 1.6;
}

/* Nova: never inherit builder/WP white text — use theme tokens */
.oqm-quiz.oqm-layout-theme.oqm-base-nova {
    color: var(--nv-text, #0f172a) !important;
    -webkit-text-fill-color: currentColor;
    background: var(--nv-canvas);
    justify-content: center;
    max-width: 1260px;
    margin: 0 auto;
}

.oqm-quiz.oqm-layout-theme.oqm-base-nova h1,
.oqm-quiz.oqm-layout-theme.oqm-base-nova h2,
.oqm-quiz.oqm-layout-theme.oqm-base-nova h3,
.oqm-quiz.oqm-layout-theme.oqm-base-nova p,
.oqm-quiz.oqm-layout-theme.oqm-base-nova label,
.oqm-quiz.oqm-layout-theme.oqm-base-nova span:not(.oqm-nova-option-letter):not(.oqm-nova-progress-bar):not(.oqm-answer-dot) {
    -webkit-text-fill-color: unset;
}

.oqm-quiz.oqm-layout-theme *,
.oqm-quiz.oqm-layout-theme *::before,
.oqm-quiz.oqm-layout-theme *::after {
    box-sizing: border-box;
}

/* Labels */
.oqm-quiz.oqm-layout-theme label {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.oqm-quiz.oqm-layout-theme button {
    appearance: none;
    -webkit-appearance: none;
    text-transform: none;
    font-family: inherit;
    cursor: pointer;
}

/* Headings & paragraphs */
.oqm-quiz.oqm-layout-theme h1,
.oqm-quiz.oqm-layout-theme h2,
.oqm-quiz.oqm-layout-theme h3,
.oqm-quiz.oqm-layout-theme p {
    margin-block: 0;
}


/* ==========================================================================
   3. OPTIONS — cursor + readable answer text
   ========================================================================== */

.oqm-quiz.oqm-layout-theme .oqm-theme-option {
    cursor: pointer;
}

/* Nova: force readable option text regardless of builder CSS vars */
.oqm-base-nova .oqm-nova-option-text {
    color: var(--nv-option-text, #334155) !important;
    -webkit-text-fill-color: var(--nv-option-text, #334155) !important;
}

.oqm-base-nova .oqm-nova-option.oqm-nova-picked .oqm-nova-option-text {
    color: var(--nv-option-text, #334155) !important;
    -webkit-text-fill-color: var(--nv-option-text, #334155) !important;
}

.oqm-base-nova .oqm-nova-option-letter {
    color: var(--nv-option-letter-text, #475569) !important;
    -webkit-text-fill-color: var(--nv-option-letter-text, #475569) !important;
}

.oqm-base-nova .oqm-nova-counter,
.oqm-base-nova .oqm-nova-back {
    color: var(--nv-text-muted, #64748b) !important;
    -webkit-text-fill-color: var(--nv-text-muted, #64748b) !important;
}

/* Legacy Wini safeguards */
.oqm-base-wini .wpqms_wini_card_option_text {
    color: #334155;
    -webkit-text-fill-color: currentColor;
}

.oqm-base-wini .wpqms_wini_card_option.oqm-wini-picked .wpqms_wini_card_option_text,
.oqm-base-wini .wpqms_wini_card_option:hover .wpqms_wini_card_option_text {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

.oqm-base-wini .wpqms_wini_card_body h3.wpqms_wini_card_question_title_below {
    color: #1e293b !important;
}

/* ==========================================================================
   4. PROGRESS BARS (shared)
   ========================================================================== */

/* Webe progress fill */
.wpqms_webe_card_progressbar {
    display: block;
    height: 100%;
    background: var(--oqm-progress-fill, #3b82f6);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Amaze progress fill */
.wpqms_amaze_card_question_progressbar {
    display: block;
    height: 100%;
    background: var(--oqm-progress-fill, #14b8a6);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Amaze cover image */
.wpqms_amaze_card_cover {
    background-size: cover;
    background-position: center;
    min-height: 140px;
}

/* Amaze winning number colour */
.wpqms_amaze_card_quiz_result_numbers_winning {
    color: var(--oqm-answer-correct, #22c55e) !important;
}


/* ==========================================================================
   5. BLOCKED STATE
   ========================================================================== */

.oqm-theme-blocked {
    text-align: center;
    padding: 48px 24px;
}


/* ==========================================================================
   6. TEXT INPUTS & DROPDOWNS
   ========================================================================== */

.oqm-theme-text,
.oqm-theme-dropdown {
    padding: 0;
}

.oqm-theme-text label,
.oqm-theme-dropdown label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--nv-text, var(--oqm-quiz-text, #1e293b));
    margin-bottom: 8px;
}

.oqm-base-nova .oqm-theme-text input,
.oqm-base-nova .oqm-theme-dropdown select,
.oqm-theme-text input,
.oqm-theme-dropdown select {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--nv-input-border, #cbd5e1);
    background: var(--nv-input-bg, var(--oqm-answer-bg, #f8fafc));
    color: var(--nv-text, var(--oqm-answer-text, #334155));
    border-radius: var(--nv-radius-sm, var(--oqm-answer-radius, 12px));
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.oqm-theme-text input:focus,
.oqm-theme-dropdown select:focus {
    outline: none;
    border-color: var(--nv-accent, var(--oqm-accent, #3b82f6));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv-accent, #3b82f6) 18%, transparent);
}


/* ==========================================================================
   7. MULTIPAGE SUBMIT
   ========================================================================== */

.wpqms_wini_card_actions.oqm-multipage-submit {
    padding: 24px;
    text-align: center;
}


/* ==========================================================================
   8. RESULTS SCREENS
   ========================================================================== */

.oqm-theme-result-screen {
    display: none !important;
}

.oqm-theme-result-screen.is-visible:not(.oqm-hidden) {
    display: block !important;
}

.oqm-theme-result-screen.oqm-hidden {
    display: none !important;
}


/* ==========================================================================
   9. BRANDING
   ========================================================================== */

.oqm-theme-branding {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    opacity: 0.6;
}

.oqm-theme-branding a {
    color: #94a3b8;
    text-decoration: none;
}

.oqm-theme-branding a:hover {
    color: #64748b;
}


/* ==========================================================================
   10. TIMER TEXT (Wini header)
   ========================================================================== */

.oqm-wini-timer-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.oqm-wini-timer-text svg {
    width: 16px;
    height: 16px;
}


/* ==========================================================================
   11. FEATURED IMAGES
   ========================================================================== */

.wpqms_webe_card_quiz_ft_img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

.wpqms_amaze_card_quiz_featured_image {
    max-width: 100%;
    border-radius: 12px;
}


/* ==========================================================================
   12. NEBULA — OPTION HOVER
   ========================================================================== */

.wpqms_nebula_options > li:not(.wpqms_nebula_option_active):not(.oqm-nebula-picked):not(.wpqms_nebula_option_error) .wpqms_nebula_option:hover {
    border-color: #c4b5fd;
    box-shadow: 0 8px 22px rgb(124 58 237 / 12%);
}


/* ==========================================================================
   13. NEBULA — PROGRESS
   ========================================================================== */

.wpqms_nebula_progress_fill.oqm-progress-bar {
    transition: width 0.25s ease;
}


/* ==========================================================================
   14. NEBULA — MESSAGE
   ========================================================================== */

.oqm-base-nebula .oqm-message {
    margin: 12px 0 0;
}


/* ==========================================================================
   15. THEME MESSAGES
   ========================================================================== */

.oqm-layout-theme .oqm-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 24px 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
    animation: oqmMessageIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Icon-based alert marker */
.oqm-layout-theme .oqm-message::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #dc2626;
    -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 100 20 10 10 0 000-20zm0 15a1.25 1.25 0 110-2.5A1.25 1.25 0 0112 17zm1-5a1 1 0 01-2 0V7a1 1 0 012 0z'/%3E%3C/svg%3E");
    mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 100 20 10 10 0 000-20zm0 15a1.25 1.25 0 110-2.5A1.25 1.25 0 0112 17zm1-5a1 1 0 01-2 0V7a1 1 0 012 0z'/%3E%3C/svg%3E");
}

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

.oqm-layout-theme .oqm-message:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
}

.oqm-layout-theme .oqm-message:empty::before {
    display: none;
}


/* ==========================================================================
   16. SUBMIT MODAL
   ========================================================================== */

.oqm-layout-theme .oqm-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.oqm-layout-theme .oqm-modal.oqm-hidden {
    display: none !important;
}

.oqm-layout-theme .oqm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: oqmBackdropIn 0.25s ease both;
}

@keyframes oqmBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.oqm-layout-theme .oqm-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
    animation: oqmModalSpring 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes oqmModalSpring {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.oqm-layout-theme .oqm-modal-panel h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

/* Dark themes get a matching dark modal surface */
.oqm-theme-orbit.oqm-layout-theme .oqm-modal-panel {
    background: #1c1840;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.oqm-theme-orbit.oqm-layout-theme .oqm-modal-panel h3 {
    color: #f4f4fb;
}

.oqm-theme-orbit.oqm-layout-theme .oqm-modal-panel p {
    color: #a4a8d4;
}

.oqm-layout-theme .oqm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}


/* ==========================================================================
   17. TIMER PRE-MESSAGE
   ========================================================================== */

.oqm-timer-pre-message {
    font-size: 13px;
    color: #94a3b8;
    margin: 8px 0 16px;
}


/* ==========================================================================
   18. LIVE EXPLANATION
   ========================================================================== */

.oqm-live-explanation {
    margin: 16px 0 0;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--nv-text-muted, #475569);
    background: color-mix(in srgb, var(--nv-accent, #3b82f6) 7%, var(--nv-card-bg, #f8fafc));
    border-radius: 12px;
    border-left: 4px solid var(--nv-accent, #3b82f6);
    animation: oqmMessageIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}


/* ==========================================================================
   19. WINI RESULTS (JS-built)
   ========================================================================== */

.oqm-wini-result-body {
    text-align: center;
    padding: 32px 28px !important;
}

.oqm-wini-result-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    background: var(--oqm-btn-bg, #1e293b);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.2);
}

.oqm-wini-result.is-passed .oqm-wini-result-badge {
    background: var(--oqm-answer-correct, #22c55e);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.oqm-wini-result.is-failed .oqm-wini-result-badge {
    background: var(--oqm-answer-wrong, #ef4444);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.oqm-wini-result-score {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--oqm-quiz-text, #1e293b);
}

.oqm-wini-result-msg {
    margin: 0 0 10px;
    font-size: 16px;
    color: #475569;
}

.oqm-wini-result-meta {
    margin: 0 0 24px;
    font-size: 13px;
    color: #94a3b8;
}

.oqm-wini-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* ==========================================================================
   20. TIMER ANIMATION
   ========================================================================== */

.oqm-timer-animated {
    animation: oqm-timer-pulse 1s ease infinite;
}

@keyframes oqm-timer-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}


/* ==========================================================================
   21. RESPONSIVE — Small screens
   ========================================================================== */

@media (max-width: 480px) {

    .oqm-theme-blocked {
        padding: 32px 16px;
    }

    .oqm-theme-text,
    .oqm-theme-dropdown {
        padding: 16px 2px;
    }

    .oqm-theme-text label,
    .oqm-theme-dropdown label {
        font-size: 14px;
    }

    .oqm-theme-text input,
    .oqm-theme-dropdown select {
        padding: 12px;
        font-size: 14px;
    }

    .oqm-layout-theme .oqm-message {
        margin: 12px 12px 0;
        padding: 10px 14px;
        font-size: 13px;
    }

    .oqm-layout-theme .oqm-modal-panel {
        padding: 22px;
        border-radius: 16px;
    }

    .oqm-live-explanation {
        padding: 12px 14px;
        font-size: 13px;
    }

    .oqm-wini-result-body {
        padding: 24px 18px !important;
    }

    .oqm-wini-result-badge {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .oqm-wini-result-score {
        font-size: 22px;
    }

    .oqm-wini-result-msg {
        font-size: 14px;
    }

    .oqm-wini-result-actions {
        justify-content: center;
    }
}


/* ==========================================================================
   22. REDUCED MOTION (shared override animations)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .oqm-layout-theme .oqm-message,
    .oqm-layout-theme .oqm-modal-backdrop,
    .oqm-layout-theme .oqm-modal-panel,
    .oqm-live-explanation {
        animation: none !important;
    }
}

/* ==========================================================================
   BLOOM — beat shared overrides so UI matches bloom-preview.html
   ========================================================================== */

.oqm-theme-bloom .oqm-message {
    display: block !important;
    align-items: unset !important;
    gap: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #d46a84 !important;
    -webkit-text-fill-color: #d46a84 !important;
    min-height: 1.2em;
    animation: none !important;
}

.oqm-theme-bloom .oqm-message:empty {
    display: none !important;
}

.oqm-theme-bloom .oqm-message::before {
    display: none !important;
    content: none !important;
}

.oqm-theme-bloom .oqm-nova-option-letter {
    color: #66756b !important;
    -webkit-text-fill-color: #66756b !important;
    background: #fff !important;
}

.oqm-theme-bloom .oqm-nova-option.oqm-nova-picked .oqm-nova-option-letter {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #4f8a4a !important;
}

.oqm-theme-bloom .oqm-nova-option.oqm-nova-picked .oqm-nova-option-text {
    color: #1f2c24 !important;
    -webkit-text-fill-color: #1f2c24 !important;
}

.oqm-theme-bloom .oqm-bloom-leaf-badge .oqm-nova-counter {
    color: #3d6e39 !important;
    -webkit-text-fill-color: #3d6e39 !important;
}

.oqm-theme-bloom .oqm-nova-btn-secondary:hover {
    color: #1f2c24 !important;
    -webkit-text-fill-color: #1f2c24 !important;
}

.oqm-theme-bloom .oqm-nova-footer .oqm-nova-btn {
    min-width: 0 !important;
}

.oqm-theme-bloom .oqm-nova-score-ring-fill {
    animation: none !important;
    filter: none !important;
}

.oqm-theme-bloom .oqm-nova-card.oqm-nova-result {
    padding: 0 !important;
}

.oqm-theme-bloom .oqm-result-badge,
.oqm-theme-bloom .oqm-nova-result-icon {
    font-size: inherit !important;
    animation: none !important;
    background: none !important;
    box-shadow: none !important;
}

.oqm-theme-bloom .oqm-bloom-score-pct {
    font-size: 2.1rem !important;
}

.oqm-theme-bloom .oqm-nova-result.is-failed .oqm-bloom-score-pct {
    color: #d46a84 !important;
    -webkit-text-fill-color: #d46a84 !important;
}

.oqm-theme-bloom .oqm-nova-result-actions .oqm-nova-btn-secondary {
    box-shadow: none !important;
}

.oqm-theme-bloom .oqm-answer-dot {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    border: 1.5px solid #d4e0d1 !important;
    background: #f2f7f1 !important;
}

.oqm-theme-bloom .oqm-answer-dot.oqm-grid-correct {
    background: #4f8a4a !important;
    border-color: #4f8a4a !important;
    color: #fff !important;
    box-shadow: none !important;
}

.oqm-theme-bloom .oqm-answer-dot.oqm-grid-wrong {
    background: #d46a84 !important;
    border-color: #d46a84 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.oqm-theme-orbit .oqm-nova-score-ring-fill {
    animation: none !important;
    filter: none !important;
    stroke: url(#oqm-orbit-grad-result) !important;
}

.oqm-theme-orbit .oqm-nova-result.is-failed .oqm-nova-score-ring-fill {
    stroke: #f5c16c !important;
}

.oqm-theme-orbit .oqm-nova-card.oqm-nova-result {
    padding: 0 !important;
}

.oqm-theme-orbit .oqm-result-badge,
.oqm-theme-orbit .oqm-nova-result-icon {
    font-size: inherit !important;
    animation: none !important;
    background: none !important;
    box-shadow: none !important;
}

.oqm-theme-orbit .oqm-orbit-score-pct {
    color: #2ee6d6 !important;
    -webkit-text-fill-color: #2ee6d6 !important;
    font-size: 2rem !important;
}

.oqm-theme-orbit .oqm-nova-result.is-failed .oqm-orbit-score-pct {
    color: #f5c16c !important;
    -webkit-text-fill-color: #f5c16c !important;
}

.oqm-theme-orbit .oqm-nova-result .oqm-result-score-line,
.oqm-theme-orbit .oqm-nova-result .oqm-result-time-line {
    display: none !important;
}

/* Scroll orange modern — keep overrides after shared Nova chrome */
.oqm-theme-scroll .oqm-nova-option-letter {
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: #f3f4f6 !important;
	border: 1.5px solid #e5e7eb !important;
}

.oqm-theme-scroll .oqm-nova-option.oqm-nova-picked .oqm-nova-option-letter {
	background: #f97316 !important;
	border-color: #f97316 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.oqm-theme-scroll .oqm-nova-option.oqm-nova-picked .oqm-nova-option-icon {
	opacity: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

.oqm-theme-scroll .oqm-message:empty {
	display: none !important;
}

.oqm-theme-scroll .oqm-message::before {
	display: none !important;
	content: none !important;
}

.oqm-theme-scroll .oqm-nova-btn {
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 14px 22px !important;
	border-radius: 12px !important;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
	font-size: 0.94rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

.oqm-theme-scroll .oqm-nova-card.oqm-nova-result {
	padding: 0 !important;
}

.oqm-theme-scroll .oqm-result-badge,
.oqm-theme-scroll .oqm-nova-result-icon,
.oqm-theme-scroll .oqm-scroll-trophy {
	font-size: inherit !important;
	animation: none !important;
}

.oqm-theme-scroll .oqm-result-badge,
.oqm-theme-scroll .oqm-nova-result-icon {
	background: none !important;
	box-shadow: none !important;
	width: auto !important;
	height: auto !important;
}

.oqm-theme-scroll .oqm-scroll-result-hero .oqm-scroll-trophy {
	width: 56px !important;
	height: 56px !important;
	font-size: 1.6rem !important;
	background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
	box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35) !important;
	border-radius: 16px !important;
}

.oqm-theme-scroll .oqm-nova-result.is-failed .oqm-scroll-trophy {
	background: linear-gradient(135deg, #78716c, #57534e) !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
}

.oqm-theme-scroll .oqm-nova-score-ring::before,
.oqm-theme-scroll .oqm-nova-score-ring.oqm-scroll-grade::before,
.oqm-theme-scroll .oqm-nova-result.is-passed .oqm-nova-score-ring::before,
.oqm-theme-scroll .oqm-nova-result.is-failed .oqm-nova-score-ring::before {
	display: none !important;
	content: none !important;
}

.oqm-theme-scroll .oqm-nova-result-actions {
	flex-direction: column !important;
	margin-bottom: 0 !important;
}

.oqm-theme-scroll .oqm-nova-result-actions .oqm-nova-btn {
	width: 100% !important;
	max-width: none !important;
	min-height: 0 !important;
	flex: 0 0 auto !important;
	padding: 14px 22px !important;
	border-radius: 12px !important;
}

.oqm-theme-scroll .oqm-nova-result-actions .oqm-nova-btn-primary {
	background: linear-gradient(135deg, #fb923c, #f97316) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32) !important;
}

.oqm-theme-scroll .oqm-nova-result-actions .oqm-nova-btn-secondary {
	background: #fff !important;
	color: #f97316 !important;
	-webkit-text-fill-color: #f97316 !important;
	border: 1.5px solid #f97316 !important;
	box-shadow: none !important;
}

.oqm-theme-scroll .oqm-answer-dot,
.oqm-theme-scroll .oqm-answer-dot.oqm-grid-correct,
.oqm-theme-scroll .oqm-answer-dot.oqm-grid-wrong {
	box-shadow: none !important;
	border-radius: 10px !important;
}

.oqm-theme-scroll .oqm-answer-dot {
	background: #faf8f5 !important;
	border-color: #e5e7eb !important;
	color: #c2410c !important;
}

.oqm-theme-scroll .oqm-answer-dot.oqm-grid-correct {
	background: #16a34a !important;
	border-color: #16a34a !important;
	color: #fff !important;
}

.oqm-theme-scroll .oqm-answer-dot.oqm-grid-wrong {
	background: #ef4444 !important;
	border-color: #ef4444 !important;
	color: #fff !important;
}

/* ==========================================================================
   SHARE RESULT MODAL
   ========================================================================== */

.oqm-layout-theme .oqm-share-modal-panel {
	max-width: 460px;
	padding: 28px 28px 24px;
}

.oqm-layout-theme .oqm-share-modal-x {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.06);
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.oqm-layout-theme .oqm-share-modal-x:hover {
	background: rgba(15, 23, 42, 0.1);
	color: #0f172a;
	transform: scale(1.05);
}

.oqm-layout-theme .oqm-share-modal-head {
	text-align: center;
	padding: 4px 28px 0;
	margin-bottom: 18px;
}

.oqm-layout-theme .oqm-share-modal-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	margin-bottom: 12px;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

.oqm-layout-theme .oqm-share-modal-head h3 {
	margin: 0 0 6px !important;
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

.oqm-layout-theme .oqm-share-modal-sub {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #64748b;
}

.oqm-layout-theme .oqm-share-modal-preview {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #334155;
	font-size: 0.92rem;
	line-height: 1.45;
	text-align: center;
	word-break: break-word;
}

.oqm-layout-theme .oqm-share-network-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}

.oqm-layout-theme .oqm-share-network {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px 12px;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #0f172a;
	text-decoration: none !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.oqm-layout-theme .oqm-share-network:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
	border-color: transparent;
	color: #0f172a;
}

.oqm-layout-theme .oqm-share-network-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	color: #fff;
}

.oqm-layout-theme .oqm-share-network--wa .oqm-share-network-ico { background: #25d366; }
.oqm-layout-theme .oqm-share-network--fb .oqm-share-network-ico { background: #1877f2; }
.oqm-layout-theme .oqm-share-network--x .oqm-share-network-ico { background: #0f172a; }
.oqm-layout-theme .oqm-share-network--li .oqm-share-network-ico { background: #0a66c2; }
.oqm-layout-theme .oqm-share-network--tg .oqm-share-network-ico { background: #229ed9; }
.oqm-layout-theme .oqm-share-network--mail .oqm-share-network-ico { background: #64748b; }

.oqm-layout-theme .oqm-share-copy-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.oqm-layout-theme .oqm-share-copy-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #475569;
	font-size: 0.85rem;
	outline: none;
}

.oqm-layout-theme .oqm-share-copy-input:focus {
	border-color: #94a3b8;
	background: #fff;
}

.oqm-layout-theme .oqm-share-copy-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	min-height: 44px !important;
	padding: 0 16px !important;
	border-radius: 12px !important;
}

/* Theme accent: share icon */
.oqm-theme-aurora .oqm-share-modal-icon {
	background: linear-gradient(135deg, #8b5cf6, #a78bfa);
	box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}
.oqm-theme-strand .oqm-share-modal-icon {
	background: linear-gradient(135deg, #0f766e, #14b8a6);
	box-shadow: 0 10px 24px rgba(15, 118, 110, 0.3);
}
.oqm-theme-pulse .oqm-share-modal-icon {
	background: linear-gradient(135deg, #0d9488, #f59e0b);
	box-shadow: 0 10px 24px rgba(13, 148, 136, 0.3);
}
.oqm-theme-bloom .oqm-share-modal-icon {
	background: linear-gradient(135deg, #e11d48, #fb7185);
	box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}
.oqm-theme-scroll .oqm-share-modal-icon {
	background: linear-gradient(135deg, #fb923c, #f97316);
	box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}
.oqm-theme-orbit .oqm-share-modal-icon {
	background: linear-gradient(135deg, #7c3aed, #22d3ee);
	box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}

/* Orbit dark surface */
.oqm-theme-orbit.oqm-layout-theme .oqm-share-modal-x {
	background: rgba(255, 255, 255, 0.08);
	color: #c4c8f0;
}
.oqm-theme-orbit.oqm-layout-theme .oqm-share-modal-x:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}
.oqm-theme-orbit.oqm-layout-theme .oqm-share-modal-sub {
	color: #a4a8d4;
}
.oqm-theme-orbit.oqm-layout-theme .oqm-share-modal-preview {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
	color: #d4d7f5;
}
.oqm-theme-orbit.oqm-layout-theme .oqm-share-network {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
	color: #f4f4fb;
}
.oqm-theme-orbit.oqm-layout-theme .oqm-share-network:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.oqm-theme-orbit.oqm-layout-theme .oqm-share-copy-input {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.12);
	color: #c4c8f0;
}
.oqm-theme-orbit.oqm-layout-theme .oqm-share-copy-input:focus {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 520px) {
	.oqm-layout-theme .oqm-share-network-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.oqm-layout-theme .oqm-share-copy-row {
		flex-direction: column;
	}
	.oqm-layout-theme .oqm-share-copy-btn {
		width: 100%;
	}
}

