/* ============================================================
   FCQ Template: MODERN  (dark navy + electric teal)
   ============================================================ */
.fcq-quiz-wrap.fcq-tpl-modern {
    --fcq-bg:           linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --fcq-card-bg:      #1e293b;
    --fcq-surface:      #334155;
    --fcq-surface-alt:  #0f4c5c;
    --fcq-surface-soft: #1a3a4a;
    --fcq-border:       #334155;
    --fcq-text:         #e2e8f0;
    --fcq-subtle:       #94a3b8;
    --fcq-accent:       #22d3ee;
    --fcq-accent-strong:#06b6d4;
    --fcq-knew:         #34d399;
    --fcq-learning:     #fb923c;
    --fcq-radius:       18px;
    --fcq-shadow:       0 18px 48px rgba(0,0,0,.45);
}

/* Card faces */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-card-face {
    background: #1e293b;
    border-color: #334155;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-card-back {
    background: linear-gradient(135deg, #1e293b 0%, #0f4c5c 60%, #1a3a4a 100%);
    border-color: #0f4c5c;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-card-front::before,
.fcq-quiz-wrap.fcq-tpl-modern .fcq-card-back::before {
    background: linear-gradient(90deg, #06b6d4, #34d399, #22d3ee);
}

/* Face label */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-face-label {
    background: rgba(6,182,212,.18);
    color: #22d3ee;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-card-back .fcq-face-label {
    background: rgba(52,211,153,.18);
    color: #34d399;
}

/* Start screen */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-start-screen {
    background: rgba(30,41,59,.82);
    border-color: #334155;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-start-icon {
    background: linear-gradient(135deg, rgba(6,182,212,.25), rgba(52,211,153,.2));
    color: #22d3ee;
    border-color: rgba(6,182,212,.3);
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-start-title,
.fcq-quiz-wrap.fcq-tpl-modern .fcq-results-title,
.fcq-quiz-wrap.fcq-tpl-modern .fcq-card-text {
    color: #e2e8f0;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-start-meta span {
    background: rgba(6,182,212,.12);
    border-color: rgba(6,182,212,.25);
    color: #cbd5e1;
}

/* Buttons */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-btn-start,
.fcq-quiz-wrap.fcq-tpl-modern .fcq-btn-show,
.fcq-quiz-wrap.fcq-tpl-modern .fcq-btn-restart {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 10px 26px rgba(6,182,212,.3);
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-btn-knew {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 10px 24px rgba(52,211,153,.28);
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-btn-learning {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 10px 24px rgba(251,146,60,.28);
}

/* Stats */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-stat {
    background: rgba(30,41,59,.9);
    border-color: #334155;
}

/* Progress */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-progress-fill {
    background: linear-gradient(90deg, #06b6d4, #34d399);
}

/* Score badge */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-score-badge {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

/* TTS button */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-tts-outside {
    background: linear-gradient(135deg, #1e293b, #0f4c5c);
    border-color: #334155;
    color: #22d3ee;
}

/* Lang bar */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-lang-bar {
    background: linear-gradient(135deg, rgba(30,41,59,.9), rgba(15,76,92,.7));
    border-color: #334155;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-lang-title { color: #e2e8f0; }
.fcq-quiz-wrap.fcq-tpl-modern .fcq-lang-help  { color: #94a3b8; }
.fcq-quiz-wrap.fcq-tpl-modern .fcq-lang-field {
    background: rgba(30,41,59,.88);
    border-color: #334155;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-lang-select { color: #e2e8f0; }
.fcq-quiz-wrap.fcq-tpl-modern .fcq-lang-icon {
    background: linear-gradient(135deg, rgba(6,182,212,.25), rgba(52,211,153,.2));
    color: #22d3ee;
}

/* Result items */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-result-item {
    background: rgba(30,41,59,.85);
    border-color: #334155;
}

/* Mode buttons secondary */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-pt-mode-btn-secondary {
    background: rgba(30,41,59,.85) !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-pt-mode-btn-secondary:hover {
    background: rgba(6,182,212,.15) !important;
    color: #22d3ee !important;
}

/* Review items */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-review-correct {
    background: linear-gradient(135deg, #052e16, #064e3b);
    border-color: #065f46;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-review-wrong {
    background: linear-gradient(135deg, #1c0a0a, #2d1515);
    border-color: #7f1d1d;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-review-q { color: #e2e8f0; }
.fcq-quiz-wrap.fcq-tpl-modern .fcq-review-your { color: #94a3b8; }
.fcq-quiz-wrap.fcq-tpl-modern .fcq-review-correct-ans { color: #34d399; }
.fcq-quiz-wrap.fcq-tpl-modern .fcq-pt-review-title { color: #e2e8f0; }

/* ============================================================
   MODERN – Split Panel Layout Styles
   ============================================================ */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-left,
.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-right {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-left {
    border-top: 4px solid #06b6d4;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-right {
    border-top: 4px solid #34d399;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-qnum {
    font-size: 13px;
    font-weight: 700;
    color: #22d3ee;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-qtext {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.55;
    flex: 1;
}

/* Answer blur/reveal */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-answer-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-answer-blur {
    flex: 1;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-atext {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.55;
    filter: blur(8px);
    transition: filter .4s ease;
    user-select: none;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-answer-blur.fcq-modern-revealed .fcq-modern-atext {
    filter: blur(0);
    user-select: text;
}

.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-reveal-btn {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

/* Slide animations for left panel */
@keyframes fcqModernSlideOut {
    to { opacity: 0; transform: translateY(-20px); }
}
@keyframes fcqModernSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-slide-out {
    animation: fcqModernSlideOut .3s ease forwards;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-slide-in {
    animation: fcqModernSlideIn .35s ease forwards;
}

/* TTS inside left panel */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-left .fcq-tts-outside {
    align-self: flex-start;
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin-top: auto;
}

/* Response buttons inside right panel */
.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-right .fcq-pt-response-btns {
    display: flex;
    gap: 10px;
}
.fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-right .fcq-pt-response-btns .fcq-btn {
    flex: 1;
    font-size: 14px;
    padding: 12px 16px;
}

@media (max-width: 600px) {
    .fcq-quiz-wrap.fcq-tpl-modern .fcq-modern-split {
        grid-template-columns: 1fr;
    }
}
