/* TTS & LINKS */
.read_aloud, .read_aloud_french, .azure-tts, .azure-tts2, .french, .english, .german, .spanish, .slovenian {
    cursor: pointer !important; color: #4060bd; text-decoration: none; border-bottom: 1px dotted #4060bd;
    font-size: inherit; line-height: inherit; display: inline; position: relative; z-index: 10; pointer-events: auto !important;
}
.read_aloud:hover, .azure-tts:hover { opacity: 0.8; }

/* SLIDERS */
.azure-tts-slider-container { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 100%; margin: 0 auto; }
.azure-tts-slider-label { font-size: 10px; white-space: nowrap; margin-bottom: 5px; }
.azure-tts-slider-wrapper { display: flex; align-items: center; width: 100%; }
.azure-tts-slider { flex-grow: 1; }
.azure-tts-slider-percentage { font-size: 10px; margin: 0 5px; background-color: #f8f8f8; border-radius: 20px; padding: 4px 10px; }

.azure-tts-slider-container2 { position: fixed; bottom: 20px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; width: 60%; margin: 0 auto; z-index: 9999; }
.azure-tts-slider-container2 .azure-tts-slider-label { color: green; margin-bottom: 0; margin-top: 5px; background-color: #f8f8f8; border-radius: 20px; padding: 4px 10px; border: 1px solid #cccccc; }
.azure-tts-slider-container2 .azure-tts-slider-percentage { color: green; background-color: #f8f8f8; border-radius: 20px; padding: 4px 10px; border: 1px solid #cccccc; }

.azure-tts-slider-container3 { position: fixed; bottom: 20px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; flex-direction: row; width: 60%; margin: 0 auto; z-index: 9999; background-color: #f8f8f8; border: 1px solid #cccccc; border-radius: 5px; padding: 10px; box-sizing: border-box; }
.azure-tts-slider-container3 .azure-tts-slider-label { display: none; }
.azure-tts-slider-container3 .azure-tts-slider-wrapper { display: flex; align-items: center; width: 100%; }
.azure-tts-slider-container3 .azure-tts-slider-percentage { font-size: 10px; margin: 0 5px; background-color: transparent; padding: 0; border: none; color: green; }
.azure-tts-slider-container3:before { content: "Audio Speed"; margin-right: 10px; font-size: 10px; color: green; align-items: center; justify-content: center; white-space: nowrap; }
.hide-slider { display: none !important; }

@media (max-width: 767px) {
    .azure-tts-slider-container { width: 100%; }
    .azure-tts-slider-container2 { max-width: 30%; width: auto; }
    .azure-tts-slider-container3 { width: 90%; max-width: 400px; padding: 8px; }
    .azure-tts-slider-container3 .azure-tts-slider-wrapper { justify-content: space-between; }
    .azure-tts-slider-container3 .azure-tts-slider { flex-grow: 1; margin: 0 10px; }
    .azure-tts-slider-container3 .azure-tts-slider-percentage { font-size: 10px; white-space: nowrap; }
    .azure-tts-slider-container3:before { font-size: 10px; }
}

/* FLASHCARDS */
.vf-wrapper { max-width: 600px; margin: 20px auto; font-family: sans-serif; position: relative; }
.vf-status-bar { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9em; color: #666; }
.vf-text-btn { background: none; border: none; color: #999; text-decoration: underline; cursor: pointer; font-size: 0.8em; }

.vf-card-scene { width: 100%; height: 450px; perspective: 1000px; margin-bottom: 20px; }
.vf-card { width: 100%; height: 100%; position: relative; transition: transform 0.6s; transform-style: preserve-3d; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vf-card.is-flipped { transform: rotateY(180deg); }

.vf-card-face { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: translateZ(0); border-radius: 10px; background-color: #fff; border: 1px solid #ddd; display: flex; flex-direction: column; padding: 20px; box-sizing: border-box; overflow: hidden; }
.vf-card-front { z-index: 2; background: #f9f9f9; align-items: center; justify-content: space-between; pointer-events: auto; }
.vf-card-back { transform: rotateY(180deg); background: #fff; text-align: left; z-index: 1; pointer-events: none; }
.vf-card.is-flipped .vf-card-front { pointer-events: none; z-index: 1; }
.vf-card.is-flipped .vf-card-back { pointer-events: auto; z-index: 2; }

.vf-front-content, .vf-scroll-area { width: 100%; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; padding-right: 5px; }
.vf-front-content { text-align: center; }
.vf-scroll-area { justify-content: flex-start; }
#vf-front-main { margin: auto 0; width: 100%; }
#vf-back-main { width: 100%; height: 100%; display: flex; flex-direction: column; }

.vf-front-content::-webkit-scrollbar, .vf-scroll-area::-webkit-scrollbar { width: 6px; }
.vf-front-content::-webkit-scrollbar-track, .vf-scroll-area::-webkit-scrollbar-track { background: #f1f1f1; }
.vf-front-content::-webkit-scrollbar-thumb, .vf-scroll-area::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Elements */
.vf-main-term { font-size: 2.2em; margin: 0 0 5px 0; color: #333; font-weight: bold; line-height: 1.2; }
.vf-sub-term { font-size: 1.2em; color: #666; margin-bottom: 15px; display: block; }
.vf-context-block { margin: 15px auto; padding: 15px; background: #fff; border: 1px solid #eee; border-radius: 8px; width: 90%; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.vf-def-text { font-weight: bold; color: #2c3e50; margin-bottom: 8px; display: block; font-size: 1.1em; }
.vf-sent-text { font-size: 1.1em; color: #444; font-style: italic; line-height: 1.4; }
.vf-large-sent { font-size: 1.3em; color: #222; line-height: 1.5; text-align: center; }
.vf-hint-btn { background: #fff; border: 1px solid #4060bd; color: #4060bd; padding: 6px 12px; border-radius: 20px; cursor: pointer; margin-top: 10px; }
.vf-hint-text { font-size: 0.8em; color: #aaa; margin-top: 10px; flex-shrink: 0; }

.vf-start-btn { font-size: 1.2em; padding: 15px 30px; background-color: #4CAF50; color: white; border: none; border-radius: 50px; cursor: pointer; margin-top: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.1s; font-weight: bold; }
.vf-start-btn:active { transform: scale(0.95); }

/* Controls */
.vf-controls-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.vf-srs-btn { padding: 12px; border: none; border-radius: 5px; cursor: pointer; color: white; transition: opacity 0.2s; font-size: 14px; }
.vf-srs-btn:hover { opacity: 0.9; }
.vf-btn-learned { grid-column: 1 / 3; background-color: #4CAF50; font-weight: bold; }
.vf-btn-next { background-color: #607d8b; font-weight: bold; }
.vf-btn-time { background-color: #ff9800; }
.vf-btn { padding: 10px 20px; background: #0073aa; color: white; border: none; border-radius: 5px; cursor: pointer; }

/* Confetti */
#vf-confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99999; }
@keyframes vf-pulse-green { 0% { transform: scale(1); } 70% { transform: scale(1.05); } 100% { transform: scale(1); } }
.vf-btn-success-anim { animation: vf-pulse-green 0.5s ease-out; background-color: #45a049 !important; }

/* MODAL */
.vf-login-note { text-align: center; font-size: 0.85em; color: #666; margin-top: 15px; padding: 10px; background: #fdfdfd; border-top: 1px solid #eee; }
.vf-login-note a { color: #4060bd; text-decoration: underline; cursor: pointer; }

/* Force modal on top of EVERYTHING */
.vf-modal { 
    position: fixed; z-index: 2147483647; left: 0; top: 0; 
    width: 100%; height: 100%; overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    display: flex; align-items: center; justify-content: center; 
    display: none; 
}
.vf-modal-content { 
    background-color: #fefefe; margin: auto; padding: 25px; 
    border: 1px solid #888; width: 90%; max-width: 350px; 
    border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    position: relative; text-align: left; 
}
.vf-close-modal { color: #aaa; position: absolute; right: 15px; top: 10px; font-size: 28px; font-weight: bold; cursor: pointer; }
.vf-close-modal:hover { color: black; }

.vf-modal-content h3 { margin-top: 0; color: #333; font-size: 1.5em; text-align: center; margin-bottom: 20px; }
.vf-modal-content label { display: block; margin: 12px 0 5px; font-weight: bold; font-size: 0.9em; color: #555; }
.vf-modal-content input { width: 100%; padding: 12px; box-sizing: border-box; border: 1px solid #ddd; border-radius: 5px; font-size: 1em; background: #fafafa; }
.vf-login-btn { width: 100%; margin-top: 25px; padding: 12px; font-size: 1.1em; background-color: #4060bd; color: white; border: none; cursor: pointer; border-radius: 5px; font-weight: bold; transition: background 0.2s; }
.vf-login-btn:hover { background-color: #324c9e; }

.vf-auth-msg { margin-top: 15px; font-weight: bold; min-height: 20px; font-size: 0.9em; text-align: center; }
.vf-switch-auth { margin-top: 20px; font-size: 0.9em; text-align: center; color: #666; border-top: 1px solid #eee; padding-top: 15px; }
.vf-switch-auth a { color: #4060bd; text-decoration: none; font-weight: bold; }
.vf-switch-auth a:hover { text-decoration: underline; }

@media (max-width: 400px) {
    .vf-controls-grid { grid-template-columns: 1fr 1fr; }
    .vf-btn-learned { grid-column: 1 / -1; }
    .vf-btn-next { grid-column: 1 / -1; margin-bottom: 10px; }
}

/* ... [KEEP ALL PREVIOUS CSS UNCHANGED] ... */

/* ==========================================================================
   6. ANTI-BOT (Honeypot)
   ========================================================================== */
.vf-trap {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* ... [KEEP PREVIOUS CSS UNCHANGED] ... */

/* ==========================================================================
   7. FOCUS BUTTON
   ========================================================================== */
/* ... [KEEP PREVIOUS CSS] ... */

/* FOCUS BUTTON */
.vf-focus-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: none; border: none;
    font-size: 24px; line-height: 1;
    color: #ccc; 
    cursor: pointer; z-index: 20; padding: 5px;
    transition: transform 0.2s, color 0.2s;
}
.vf-focus-btn:hover { transform: scale(1.2); }
.vf-focus-btn.is-active { color: #ffb400; }

/* Remove Mode (X) */
.vf-focus-btn.remove-mode { color: #ff4d4d; opacity: 0.6; }
.vf-focus-btn.remove-mode:hover { opacity: 1; }

.vf-trap { opacity: 0; position: absolute; z-index: -1; }

/* ... [KEEP REST OF CSS] ... */