/**
 * VNeST Exercise Widget Styles
 * Matches SFA Protocol aesthetic
 */

/* ==================== TOPIC EXPLORER LAYOUT COMPATIBILITY ==================== */

.exercise-layout-wrapper .vnest-root,
.exercise-layout-wrapper .vnest-exercise {
    max-width: 100%;
}

/* ==================== BASE STYLES ==================== */

.vnest-exercise {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 16px 16px;
    background: #ffffff;
    border-radius: 16px;

    /* Shared component (ex-*) variable mapping — direct values (no widget CSS vars) */
    --ex-primary: #3b82f6;
    --ex-primary-dark: #2563eb;
    --ex-primary-light: #dbeafe;
    --ex-primary-ring: #93bbfd;
    --ex-success: #10b981;
    --ex-success-dark: #059669;
    --ex-success-light: #d1fae5;
    --ex-error: #ef4444;
    --ex-error-dark: #dc2626;
    --ex-error-light: #fee2e2;
    --ex-warning: #f59e0b;
    --ex-warning-light: #fef3c7;
    --ex-neutral-50: #f9fafb;
    --ex-neutral-100: #f3f4f6;
    --ex-neutral-200: #e5e7eb;
    --ex-neutral-300: #d1d5db;
    --ex-neutral-500: #6b7280;
    --ex-neutral-700: #374151;
    --ex-neutral-800: #1f2937;
    --ex-radius-sm: 6px;
    --ex-radius-md: 8px;
    --ex-radius-lg: 12px;
    --ex-radius-full: 9999px;
    --ex-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ex-transition: 0.2s ease;
    --ex-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ==================== VERB PROGRESS PIPS (bottom of widget) ==================== */

.vnest-verb-pips-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 28px;
    margin: 8px 0 0;
}

.vnest-verb-pips {
    display: flex;
    gap: 4px;
    align-items: center;
}

.vnest-verb-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    display: inline-block;
    transition: background 0.2s ease;
}

.vnest-verb-pip.current {
    width: 10px;
    height: 10px;
    background: #3b82f6;
}

.vnest-verb-pip.completed {
    background: #22c55e;
}

.vnest-verb-pip-counter {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

/* Flag button removed — now lives in merged header identity section */

/* ==================== WORD AUTOPLAY TOGGLE ==================== */

.word-autoplay-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.toggle-label:hover {
    background: #ebebeb;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-label input:checked + .toggle-slider {
    background: #4CAF50;
}

.toggle-label input:checked + .toggle-slider::after {
    left: 18px;
}

.toggle-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* ==================== SENTENCE PLAY BUTTON ==================== */

.sentence-builder-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 16px 0;
}

.sentence-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #A5B4FC;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sentence-play-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
    border-color: #818CF8;
    transform: scale(1.1);
}

.sentence-play-btn:active:not(:disabled) {
    transform: scale(1);
}

.sentence-play-btn.playing {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #F59E0B;
    animation: pulse-audio 1s infinite;
}

@keyframes pulse-audio {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.sentence-play-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ==================== AUDIO INSTRUCTION BUTTON ==================== */

/* Audio instruction button removed — instruction now in merged header */

/* ==================== STEP INDICATOR ==================== */

.vnest-step-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.vnest-step-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 40px;
}

.vnest-step-indicator .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.vnest-step-indicator .step.current .step-number {
    background: #3b82f6;
    color: white;
}

.vnest-step-indicator .step.completed .step-number {
    background: #22c55e;
    color: white;
}

.vnest-step-indicator .step-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.vnest-step-indicator .step.current .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.vnest-step-indicator .step.completed .step-label {
    color: #22c55e;
}

/* ==================== VERB DISPLAY ==================== */

.current-verb-display {
    text-align: center;
    margin-bottom: 10px;
}

.verb-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vnest-exercise .verb-word {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: 2px;
}

/* ==================== STEP CONTENT ==================== */

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-instruction {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 12px;
    text-align: center;
}

/* ==================== SENTENCE CARD ==================== */

.sentence-card {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 12px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
    transition: all 0.2s ease;
    max-width: 500px;
    width: 100%;
}

.sentence-card.speaking {
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.4);
    transform: scale(1.02);
}

.sentence-card.repeat-mode {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
}

.sentence-text {
    font-size: 22px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.sentence-text.large {
    font-size: 26px;
    margin-bottom: 0;
}

/* ==================== BUTTONS ==================== */

.primary-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    border-color: #bbb;
    color: #333;
}

.play-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.play-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.play-btn.playing {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.play-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==================== ACTION BUTTONS GROUP ==================== */

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ==================== PULSE ANIMATION ==================== */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* Green pulse for success buttons */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.pulse-green {
    animation: pulse-green 1.5s infinite;
}

/* ==================== SENTENCE COUNTER ==================== */

.sentence-counter {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
}

/* ==================== SELF ASSESSMENT ==================== */

.assist-self-assess-step {
    width: 100%;
    max-width: 500px;
}

.verb-summary {
    text-align: center;
    margin-bottom: 30px;
}

.verb-summary p {
    color: #666;
    margin-bottom: 10px;
}

.verb-highlight {
    font-size: 28px;
    color: #FF9800;
    font-weight: 700;
    text-transform: uppercase;
}

.assessment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assessment-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.assessment-btn:hover:not(:disabled) {
    border-color: #FF9800;
    background: #FFF8E1;
}

.assessment-btn.selected {
    border-color: #4CAF50;
    background: #E8F5E9;
}

.assessment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.assessment-icon {
    font-size: 24px;
}

.assessment-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* ==================== INLINE FEEDBACK ==================== */

.vnest-feedback-inline {
    text-align: center;
    padding: 8px 16px;
    margin: 6px 0;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
    animation: vnestFeedbackIn 0.2s ease-out;
}

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

/* ==================== SESSION SUMMARY ==================== */

.session-summary {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.summary-header {
    text-align: center;
    margin-bottom: 30px;
}

.summary-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.summary-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 8px 0;
}

.summary-subtitle {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* Stats grid */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.stat-card.flagged {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    grid-column: span 3;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recall summary */
.recall-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.recall-summary h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 16px 0;
}

.recall-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recall-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recall-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
}

.recall-count {
    font-weight: 600;
    color: #333;
}

.recall-bar-track {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.recall-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.recall-bar-fill.success {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.recall-bar-fill.hints {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.recall-bar-fill.incorrect {
    background: linear-gradient(90deg, #2196F3, #64B5F6);
}

/* Verbs practiced */
.verbs-practiced {
    margin-bottom: 24px;
}

.verbs-practiced h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px 0;
}

.verb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.verb-chip {
    background: #e8e8e8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.verb-chip.flagged {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #E65100;
}

/* Action buttons */
.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.summary-btn.primary {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.summary-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.summary-btn.secondary {
    background: white;
    color: #E65100;
    border: 2px solid #FFE0B2;
}

.summary-btn.secondary:hover {
    background: #FFF8E1;
    border-color: #FF9800;
}

/* ==================== LOADING & ERROR STATES ==================== */

.vnest-loading,
.vnest-error,
.vnest-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #FF9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.vnest-error {
    color: #d32f2f;
}

.vnest-error button {
    margin-top: 20px;
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
}

/* ==================== MODE SELECTOR ==================== */

.vnest-root .vnest-mode-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.vnest-root .mode-toggle-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 540px;
    background: transparent;
    padding: 0;
}

.vnest-root .mode-toggle-btn {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 12px 10px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vnest-root .mode-toggle-btn:hover:not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: inherit;
}

.vnest-root .mode-toggle-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
}

.vnest-root .mode-toggle-icon {
    font-size: 22px;
    line-height: 1;
}

.vnest-root .mode-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

.vnest-root .mode-toggle-btn.active .mode-toggle-label {
    color: #1e293b;
}

.vnest-root .mode-toggle-desc {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.2;
}

.vnest-root .mode-toggle-btn.active .mode-toggle-desc {
    color: #6b7280;
}

.vnest-root .mode-help-btn {
    display: none;
}

/* ==================== OPTION BUTTONS ==================== */

.vnest-root .options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 12px 0;
}

.vnest-root .option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-align: center;
    min-height: 48px;
}

.vnest-root .option-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e293b;
}

.vnest-root .option-btn:active {
    background: #dbeafe;
}

.vnest-root .option-btn.selected {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

/* ==================== SENTENCE BUILDER SLOTS ==================== */

/* Container */
.vnest-exercise .sentence-builder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 16px 0;
    flex-wrap: wrap;
}

/* Base slot styles */
.vnest-exercise .sentence-builder .slot {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
}

/* Active slot - needs attention */
.vnest-exercise .sentence-builder .slot.active,
.vnest-exercise .sentence-builder .slot.agent-slot.active {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
}

/* Patient slot active */
.vnest-exercise .sentence-builder .slot.patient-slot.active {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
}

/* Verb slot - amber */
.vnest-exercise .sentence-builder .slot.verb-slot,
.vnest-exercise .sentence-builder .slot.verb-slot.filled {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    color: #92400e;
}

/* Dimmed/waiting slots */
.vnest-exercise .sentence-builder .slot.dimmed {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    color: #9ca3af;
    opacity: 0.7;
}

/* Filled slots */
.vnest-exercise .sentence-builder .slot.filled {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #166534;
}

/* Agent slot when filled */
.vnest-exercise .sentence-builder .slot.agent-slot.filled {
    background: #eff6ff;
    border: 2px solid #93c5fd;
    color: #1e40af;
}

/* ==================== MODE INFO MODAL ==================== */

.mode-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

.mode-info-modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

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

.mode-info-modal h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 20px;
}

.mode-info-modal p {
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.mode-steps-preview {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
}

.mode-steps-preview strong {
    color: #333;
}

.modal-close-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* ==================== EXPAND MODE ==================== */

.expand-step {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sentence-in-progress {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
    border: 2px solid #2196F3;
}

.sentence-so-far {
    font-size: 18px;
    color: #1565C0;
    margin: 0 0 10px 0;
    font-weight: 500;
    line-height: 1.4;
}

.expansion-slot {
    display: inline-block;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #E65100;
    border: 2px solid #FF9800;
    animation: pulse 1.5s infinite;
}

/* ==================== READ EXPANDED STEP ==================== */

.read-expanded-step {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expanded-sentence-card {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
    border: 2px solid #4CAF50;
}

.expanded-sentence-text {
    font-size: 20px;
    color: #2E7D32;
    margin: 0 0 16px 0;
    font-weight: 500;
    line-height: 1.5;
}

.sentence-breakdown {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.breakdown-value {
    color: #333;
    font-size: 14px;
}

/* ==================== PLACEHOLDER STEPS ==================== */

.placeholder-step {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #999;
    font-style: italic;
}

/* ==================== BUILD MODE - SENTENCE BUILDER ==================== */

.build-select-step {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sentence-builder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
}

.sentence-builder .slot {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Active slot - the one user needs to fill */
.sentence-builder .slot.active {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 3px solid #FF9800;
    color: #E65100;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Dimmed slot - not yet active */
.sentence-builder .slot.dimmed {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    color: #bbb;
    opacity: 0.6;
}

/* Filled slot */
.sentence-builder .slot.filled {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px solid #4CAF50;
    color: #2E7D32;
}

.sentence-builder .slot.verb-slot.filled {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 2px solid #FF9800;
    color: #E65100;
}

/* ==================== OPTIONS GRID ==================== */

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
}

.option-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: #FF9800;
    background: #FFF8E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.option-btn:active {
    transform: translateY(0);
}

.option-btn.selected {
    border-color: #4CAF50;
    background: #E8F5E9;
    color: #2E7D32;
}

/* ==================== BUILD MODE - READ BACK ==================== */

.build-readback-step {
    width: 100%;
    max-width: 500px;
}

.sentences-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.sentence-card.small {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sentence-card.small.current {
    border-color: #FF9800;
    background: #FFF8E1;
}

.sentence-card.small.read {
    border-color: #4CAF50;
    background: #E8F5E9;
}

.sentence-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sentence-card.small.read .sentence-number {
    background: #4CAF50;
    color: white;
}

.sentence-card.small .sentence-text {
    flex: 1;
    margin: 0;
    font-size: 16px;
}

.play-btn.small {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.continue-btn {
    margin-top: 20px;
}

/* ==================== RECALL STEP ==================== */

.recall-step {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recall-header {
    text-align: center;
    margin-bottom: 20px;
}

.recall-header .step-instruction {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.recall-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Sentences card */
.recall-sentences-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.recall-sentence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    color: #333;
    padding: 12px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #dee2e6;
}

.recall-sentence:last-child {
    border-bottom: none;
}

.recall-agent {
    font-weight: 500;
}

.recall-patient {
    font-weight: 400;
}

.recall-verb-blank {
    background: linear-gradient(135deg, #FFE0B2 0%, #FFCC80 100%);
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: #E65100;
    min-width: 70px;
    text-align: center;
    transition: all 0.5s ease;
    border: 2px solid #FF9800;
}

.recall-verb-blank.revealed {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    color: #2E7D32;
    border-color: #4CAF50;
    transform: scale(1.05);
}

/* Verb reveal */
.verb-reveal {
    margin: 20px 0;
    text-align: center;
    animation: popIn 0.5s ease;
}

.reveal-label {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

.revealed-verb {
    font-size: 42px;
    color: #4CAF50;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== RECALL BUTTONS ==================== */

.recall-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.recall-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
    max-width: 140px;
}

.recall-btn-label {
    font-size: 13px;
}

.recall-btn.yes {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.recall-btn.yes:hover {
    background: #C8E6C9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.recall-btn.hint {
    background: #FFF8E1;
    border-color: #FFC107;
    color: #F57F17;
}

.recall-btn.hint:hover:not(:disabled) {
    background: #FFECB3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.recall-btn.no {
    background: #E3F2FD;
    border-color: #2196F3;
    color: #1565C0;
}

.recall-btn.no:hover {
    background: #BBDEFB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.recall-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recall-icon {
    font-size: 28px;
}

/* Hint feedback */
.hint-feedback {
    margin-top: 20px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: 12px;
    border: 1px solid #FFE082;
    color: #F57F17;
    font-weight: 500;
    text-align: center;
    animation: slideUp 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.hint-icon {
    font-size: 20px;
}

/* ==================== EXPLORE STEP ==================== */

.explore-step {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.explore-sentence-card {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #4CAF50;
}

.explore-sentence-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.explore-sentence-card:active {
    transform: scale(0.98);
}

.explore-full-sentence {
    font-size: 20px;
    color: #2E7D32;
    margin: 0 0 10px 0;
    font-weight: 500;
    line-height: 1.5;
}

.tap-hint {
    font-size: 14px;
    color: #66BB6A;
}

.explore-words-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.explore-word-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.explore-word-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.explore-word-btn:active {
    transform: translateY(0);
}

.explore-word-btn .word-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #888;
}

.explore-word-btn .word-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

/* Color coding for each word type */
.explore-word-btn.who {
    border-color: #2196F3;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}
.explore-word-btn.who .word-label { color: #1565C0; }

.explore-word-btn.action {
    border-color: #FF9800;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
}
.explore-word-btn.action .word-label { color: #E65100; }

.explore-word-btn.what {
    border-color: #9C27B0;
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
}
.explore-word-btn.what .word-label { color: #7B1FA2; }

.explore-word-btn.where {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}
.explore-word-btn.where .word-label { color: #2E7D32; }

.explore-word-btn.when {
    border-color: #00BCD4;
    background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 100%);
}
.explore-word-btn.when .word-label { color: #00838F; }

.explore-word-btn.why {
    border-color: #F44336;
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
}
.explore-word-btn.why .word-label { color: #C62828; }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 600px) {
    .vnest-exercise {
        padding: 8px 10px 12px;
        border-radius: 12px;
    }
    
    .vnest-exercise .verb-word {
        font-size: 20px;
    }
    
    .sentence-card {
        padding: 20px 25px;
    }
    
    .sentence-text {
        font-size: 18px;
    }
    
    .sentence-text.large {
        font-size: 22px;
    }
    
    .vnest-step-indicator {
        gap: 4px;
    }
    
    .vnest-step-indicator .step {
        min-width: 50px;
    }
    
    .vnest-step-indicator .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .vnest-step-indicator .step-label {
        font-size: 9px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .vnest-mode-selector {
        flex-wrap: wrap;
    }
    
    .mode-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    /* Build Mode responsive */
    .sentence-builder {
        gap: 4px;
        flex-wrap: nowrap;
    }

    .sentence-builder .slot {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 0;
        flex: 1 1 0;
        word-break: break-word;
    }

    .sentence-builder-row {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .sentence-play-btn {
        flex-shrink: 0;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .option-btn {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    /* Read back responsive */
    .sentence-card.small {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .sentence-card.small .sentence-text {
        font-size: 14px;
    }
    
    .sentence-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .play-btn.small {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* Recall responsive */
    .recall-sentence {
        font-size: 15px;
        padding: 12px;
        gap: 6px;
    }
    
    .verb-blank {
        padding: 6px 14px;
        font-size: 14px;
    }
    
    .verb-reveal h2 {
        font-size: 28px;
    }
    
    .recall-buttons {
        width: 100%;
    }
    
    .recall-btn {
        flex: 1;
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .recall-icon {
        font-size: 20px;
    }
    
    /* Word autoplay toggle responsive */
    .word-autoplay-toggle {
        margin-bottom: 12px;
    }
    
    .toggle-label {
        padding: 6px 12px;
    }
    
    .toggle-text {
        font-size: 12px;
    }
    
    .sentence-play-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    /* Explore responsive */
    .explore-words-grid {
        grid-template-columns: 1fr;
    }
    
    .explore-full-sentence {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .vnest-root .mode-toggle-group {
        gap: 6px;
    }

    .vnest-root .mode-toggle-btn {
        padding: 10px 6px;
    }

    .vnest-root .mode-toggle-icon {
        font-size: 18px;
    }

    .vnest-root .mode-toggle-label {
        font-size: 12px;
    }

    .vnest-root .mode-toggle-desc {
        display: none;
    }

    .vnest-root .options-grid {
        gap: 8px;
    }

    .vnest-root .option-btn {
        padding: 12px 10px;
        font-size: 14px;
        min-height: 44px;
    }

    .vnest-exercise .sentence-builder .slot {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 50px;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card.flagged {
        grid-column: span 2;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* ==================== TENSE SELECTOR ==================== */
/* Add to vnest.css */

.vnest-exercise .tense-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 20px 0;
    padding: 10px 16px;
    background-color: #FAFAF9;
    border-radius: 8px;
    border: 1px solid #E7E5E4;
}

.vnest-exercise .tense-label {
    font-size: 14px;
    font-weight: 500;
    color: #57534E;
    margin: 0;
}

.vnest-exercise .tense-dropdown {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1C1917;
    background-color: white;
    border: 2px solid #D6D3D1;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716C' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 180px;
}

.vnest-exercise .tense-dropdown:hover {
    border-color: #F59E0B;
}

.vnest-exercise .tense-dropdown:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Mobile: stack vertically */
@media (max-width: 480px) {
    .vnest-exercise .tense-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .vnest-exercise .tense-dropdown {
        width: 100%;
        max-width: 200px;
    }
}

/* VNeST Navigation and Action Button Styles */

.sentence-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Navigation Section */
.verb-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.nav-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 80px;
}

.nav-button:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.nav-button:active:not(:disabled) {
    transform: translateY(0);
}

.nav-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.verb-position {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

/* Action Controls Section */
.sentence-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reset-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.random-verb-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.random-verb-button:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.random-verb-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
    .sentence-actions {
        gap: 12px;
        padding: 12px;
    }
    
    .verb-navigation {
        gap: 10px;
        padding: 8px;
    }
    
    .nav-button {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .verb-position {
        font-size: 13px;
        padding: 4px 8px;
        min-width: 50px;
    }
    
    .sentence-controls {
        gap: 8px;
    }
    
    .reset-button, 
    .random-verb-button {
        padding: 8px 16px;
        font-size: 13px;
        flex: 1;
        max-width: 120px;
    }
}

/* Focus states for accessibility */
.nav-button:focus,
.reset-button:focus,
.random-verb-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state for buttons */
.nav-button.loading,
.reset-button.loading,
.random-verb-button.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

/* ==================== MERGED HEADER SETTINGS PANEL ==================== */

.vnest-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
}

.vnest-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vnest-setting-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 60px;
}

.vnest-setting-select {
    flex: 1;
    max-width: 220px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    cursor: pointer;
    appearance: auto;
}

.vnest-setting-select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

/* Bottom utils + flag removed — flag now in merged header identity section */

/* ==================== ACCESSIBILITY ==================== */

@media (prefers-reduced-motion: reduce) {
    .vnest-exercise .sentence-card.speaking,
    .vnest-exercise .sentence-play-btn.playing,
    .vnest-exercise .recall-verb-blank.revealed,
    .vnest-exercise .expansion-slot,
    .vnest-exercise .pulse,
    .vnest-exercise .pulse-green,
    .vnest-exercise .summary-icon {
        animation: none;
    }

    .vnest-exercise .option-btn:hover,
    .vnest-exercise .recall-btn:hover,
    .vnest-exercise .primary-btn:hover,
    .vnest-exercise .explore-sentence-card:hover,
    .vnest-exercise .explore-word-btn:hover {
        transform: none;
    }

    .vnest-feedback-inline {
        animation: none;
    }
}