/* Force PC profile menu to show on desktop */
@media (min-width: 769px) {
    .profile-menu {
        display: flex !important;
    }
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --color-primary: #D97706;
    /* Rich Orange */
    --color-primary-hover: #B45309;
    --color-secondary: #78350F;
    /* Deep Terracotta */
    --color-success: #166534;
    --color-warning: #F59E0B;
    --color-error: #991B1B;
    --color-gold: #FCD34D;

    /* Background Colors - Warm Stone/Beige Dark */
    --color-bg-dark: #1C1917;
    --color-bg-card: #292524;
    --color-bg-light: #332F2E;
    --color-bg-border: #44403C;

    /* Text Colors - Cream/Beige Based */
    --color-text-primary: #FAFAF9;
    --color-text-secondary: #D6D3D1;
    --color-text-muted: #A8A29E;

    /* Spacing */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* Transitions */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide mobile-only elements on desktop by default */
.mobile-bottom-bar {
    display: none !important;
}

/* Mobile popup elements - hidden by default, shown via JS */
@media (min-width: 769px) {
    .mobile-profile-popup,
    .mobile-profile-popup-overlay {
        display: none !important;
    }
}

/* ===== CUSTOM SCROLLBARS - Discrete style ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* ===== ACCESSIBILITY - SKIP TO CONTENT ===== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 100000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 20px;
}

/* ===== INITIAL LOADING SCREEN ===== */
.initial-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1C1917;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.initial-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #44403C;
    border-top-color: #D97706;
    border-radius: 50%;
    animation: initialSpin 0.8s linear infinite;
}

@keyframes initialSpin {
    to {
        transform: rotate(360deg);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1C1917;
    color: #FFFFFF;
    min-height: 100vh;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 100%, #1a1a2e 0%, #0d0d15 100%);
    z-index: 9999;
}

/* Close button for login screen */
.login-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.login-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.login-close-btn:active {
    transform: scale(0.95);
}

.login-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Ambient background container */
.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Floating orbs - JS controlled */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    transition: opacity 0.5s ease;
    will-change: transform, opacity;
}

.ambient-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.4) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.ambient-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.4) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
}

.ambient-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 162, 158, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
}

/* Pulsing rings - heartbeat effect */
.ambient-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(217, 119, 6, 0.3);
    transform: translate(-50%, -50%);
    animation: pulseRing 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.ambient-pulse-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.ambient-pulse-2 {
    width: 200px;
    height: 200px;
    animation-delay: 2s;
}

@keyframes pulseRing {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.6;
        border-color: rgba(217, 119, 6, 0.5);
    }

    100% {
        width: 800px;
        height: 800px;
        opacity: 0;
        border-color: rgba(217, 119, 6, 0);
    }
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

@keyframes breatheOrb {

    0%,
    100% {
        opacity: 0.4;
        filter: blur(80px);
    }

    50% {
        opacity: 0.7;
        filter: blur(60px);
    }
}

/* Central breathing light - JS controlled */
.ambient-breath {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(217, 119, 6, 0.2) 0%,
            rgba(168, 162, 158, 0.1) 30%,
            transparent 60%);
    filter: blur(50px);
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
}

/* Main reactive ambient glow */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(217, 119, 6, 0.15) 0%,
            rgba(168, 162, 158, 0.08) 25%,
            rgba(120, 53, 15, 0.05) 40%,
            transparent 60%);
    transition: background 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: var(--glow-intensity, 1);
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        filter: brightness(1) blur(0px);
    }

    50% {
        filter: brightness(1.2) blur(5px);
    }
}

/* Subtle vignette effect */
.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Shimmer effect on edges */
.login-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(120, 53, 15, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.login-container {
    position: relative;
    z-index: 2;
}

.mascotte-pupil {
    transition: none;
    /* Handled by JS animation */
}

.login-screen[style*="display: none"] {
    display: none !important;
}

.login-container {
    flex: 1;
    width: 100%;
    max-width: 400px;
}

.logo {
    font-size: 2.5em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #D97706;
    letter-spacing: -0.5px;
}

.welcome-text {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 0.95em;
    color: #B0B0C0;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    font-size: 1em;
    background: #1A1F38;
    color: #FFFFFF;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-weight: 500;
}

.login-input:focus {
    outline: none;
    border-color: #D97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.login-input::placeholder {
    color: #6A6F85;
    font-weight: 400;
}

/* Custom Input Error Messages */
.input-error {
    display: none;
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
    animation: errorSlideIn 0.3s ease-out;
}

.input-error.show {
    display: block;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-input.input-invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.login-input.input-invalid:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

/* Remember Me Checkbox */
.remember-me-group {
    display: flex;
    align-items: center;
    margin: 15px 0 5px 0;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #9CA3AF;
    font-size: 0.95em;
    user-select: none;
    position: relative;
    padding-left: 30px;
}

.remember-me-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.remember-me-checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.remember-me-label:hover .remember-me-checkmark {
    border-color: var(--color-primary);
    background: rgba(217, 119, 6, 0.1);
}

.remember-me-label input:checked ~ .remember-me-checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.remember-me-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-label input:checked ~ .remember-me-checkmark:after {
    display: block;
}

/* No Password Popup */
.no-password-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.no-password-popup-overlay.show {
    opacity: 1;
}

.no-password-popup {
    background: linear-gradient(145deg, #1a1c2e 0%, #12141f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.no-password-popup-overlay.show .no-password-popup {
    transform: scale(1);
}

.no-password-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.no-password-popup h3 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.no-password-popup p {
    color: #9CA3AF;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.no-password-popup p strong {
    color: var(--color-primary);
}

.no-password-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.no-password-btn {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.no-password-btn.google-btn {
    background: #fff;
    color: #333;
    border: 1px solid #dadce0;
}

.no-password-btn.google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-password-btn.forgot-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-warning) 100%);
    color: white;
    border: none;
}

.no-password-btn.forgot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.no-password-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #6B7280;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.no-password-close:hover {
    color: #fff;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-warning) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    letter-spacing: -0.3px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(217, 119, 6, 0.4);
}

.login-button:active {
    transform: translateY(0) scale(0.98);
}

.google-signin-btn {
    width: 100%;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #DADCE0;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1em;
    font-weight: 600;
    color: #1F1F1F;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
}

.google-signin-btn:hover {
    background: #F8F9FA;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.google-signin-btn:active {
    transform: translateY(0) scale(0.98);
}

.google-signin-btn svg {
    flex-shrink: 0;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #6A6F85;
    font-size: 0.9em;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #2A2F45;
    margin: 0 15px;
}

.google-button {
    width: 100%;
    padding: 16px;
    background: #1A1F38;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1em;
    font-weight: 600;
    color: #FFFFFF;
    transition: background 0.3s, border-color 0.3s;
}

.google-button:hover {
    background: #2A2F45;
    border-color: var(--color-primary);
}

.google-icon {
    width: 20px;
    height: 20px;
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc04 270deg) 73% 55%/150% 150% no-repeat;
    border-radius: 50%;
}

.login-links {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
}

.login-link {
    color: #D97706;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    font-weight: 600;
    transition: color 0.3s;
}

.login-link:hover {
    color: #B45309;
    text-decoration: underline;
}

.signup-subtitle {
    text-align: center;
    color: #8A96A6;
    font-size: 0.95em;
    margin-top: -10px;
    margin-bottom: 25px;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #C5D0DE;
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    border-color: #D97706;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label a {
    color: #F59E0B;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: #FBBF24;
    text-decoration: underline;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background: #2A2F45;
    transition: all 0.3s;
}

.password-strength.weak {
    width: 33%;
    background: #FF4444;
}

.password-strength.medium {
    width: 66%;
    background: #FFA500;
}

.password-strength.strong {
    width: 100%;
    background: #00C851;
}

/* ===== MAIN APP ===== */
.main-app {
    display: none;
    width: 100%;
}

.main-app[style*="display: block"] {
    display: block !important;
}

.header {
    background: #0A0E27;
    padding: 15px 20px;
    box-shadow: 0 1px 0 #2A2F45;
    position: sticky;
    top: 0;
    z-index: 500;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-small {
    font-size: 1.8em;
    font-weight: 800;
    color: #D97706;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: color 0.2s;
}

.logo-small:hover {
    color: #B45309;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.streak-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #FFFFFF;
}

.streak-icon {
    font-size: 1.2em;
}

.streak-value {
    font-size: 1.1em;
}

.upgrade-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00, #FFD700);
    background-size: 300% 300%;
    color: #0A0E27;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.35), 0 0 25px rgba(255, 165, 0, 0.2);
    animation: upgradeGradientFlow 8s ease infinite;
}

@keyframes upgradeGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 35px rgba(255, 165, 0, 0.35);
}

.upgrade-btn.premium {
    background: #34C759;
    color: white;
    animation: none;
    box-shadow: none;
}

.upgrade-btn.premium:hover {
    background: #30B350;
    box-shadow: 0 2px 10px rgba(52, 199, 89, 0.3);
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5865F2;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}


.discord-btn svg {
    width: 20px;
    height: 20px;
}

/* Login button in header (for guests) */
.login-header-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.login-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

/* Logged in elements container */
#loggedInElements {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-menu {
    position: relative;
}

.profile-pic {
    width: 40px;
    height: 40px;
    background: #D97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-pic:hover {
    transform: scale(1.1);
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #1A1F38;
    border: 1px solid #2A2F45;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 12px 15px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #2A2F45;
}

.dropdown-divider {
    height: 1px;
    background: #2A2F45;
    margin: 5px 0;
}

.main-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: #0A0E27;
}

/* Make main-container full width with centered content */
#homePage {
    background: #0A0E27;
    max-width: 100%;
    width: 100%;
}

#homePage > .ambient-bg,
#homePage > .page-header,
#homePage > .playground-tabs,
#homePage > .chapters-grid,
#homePage > .playground-mode-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== HOME PAGE - CHAPITRES ===== */
.page-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 10px;
    text-align: center;
}

.career-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFFFFF;
}

.page-subtitle {
    font-size: 1.1em;
    color: #B0B0C0;
    margin: 0;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #B0B0C0;
    font-size: 0.95em;
}

.cert-icon {
    font-size: 1.2em;
}

/* ===== COMPLETE GAMES SEARCH BAR ===== */
.complete-games-search-container {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.complete-games-search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.complete-games-search-input {
    width: 100%;
    padding: 14px 45px 14px 45px;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.complete-games-search-input::placeholder {
    color: #6A6F85;
}

.complete-games-search-input:focus {
    border-color: #8A2BE2;
    background: rgba(26, 31, 56, 1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

.complete-games-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6A6F85;
    pointer-events: none;
    transition: color 0.3s ease;
}

.complete-games-search-input:focus~.search-icon {
    color: #8A2BE2;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #B0B0C0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.search-results-count {
    color: #B0B0C0;
    font-size: 0.9rem;
    padding-left: 5px;
}

.search-results-count span {
    color: #8A2BE2;
    font-weight: 600;
}

/* Hide chapters that don't match search */
.chapter-card.search-hidden {
    display: none !important;
}

/* No results message */
.no-search-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6A6F85;
}

.no-search-results .no-results-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-search-results .no-results-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #B0B0C0;
}

.no-search-results .no-results-hint {
    font-size: 0.9rem;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

/* Level Filter */
.level-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.level-filter-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #9CA3AF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.level-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.level-filter-btn.active {
    color: #fff;
    border-color: transparent;
}

.level-filter-btn.active[data-level="all"] {
    background: linear-gradient(135deg, #6C5CE7 0%, #a855f7 100%);
}

.level-filter-btn.level-a1.active {
    background: linear-gradient(135deg, #06B6D4 0%, #22D3EE 100%);
}

.level-filter-btn.level-a2.active {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
}

.level-filter-btn.level-b1.active {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

.level-filter-btn.level-b2.active {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
}

/* Level-based Chapter Card Colors */
.chapter-card.level-a1 {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    --fill-color: #06B6D4;
}

.chapter-card.level-a2 {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    --fill-color: #3B82F6;
}

.chapter-card.level-b1 {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    --fill-color: #F59E0B;
}

.chapter-card.level-b2 {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    --fill-color: #EF4444;
}

.chapter-card.level-hidden {
    display: none !important;
}

.chapter-card {
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Liquid fill effect */
.chapter-liquid-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        color-mix(in srgb, var(--fill-color) 40%, transparent),
        color-mix(in srgb, var(--fill-color) 20%, transparent)
    );
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.liquid-wave {
    position: absolute;
    top: -10px;
    left: -10%;
    width: 120%;
    height: 20px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        color-mix(in srgb, var(--fill-color) 35%, transparent) 50%,
        color-mix(in srgb, var(--fill-color) 40%, transparent) 100%
    );
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='white'/%3E%3C/svg%3E");
    mask-size: 400px 20px;
    -webkit-mask-size: 400px 20px;
    mask-repeat: repeat-x;
    -webkit-mask-repeat: repeat-x;
    animation: wave 2.5s linear infinite;
}

@keyframes wave {
    0% { mask-position-x: 0; -webkit-mask-position-x: 0; }
    100% { mask-position-x: 400px; -webkit-mask-position-x: 400px; }
}

.chapter-card:hover .liquid-wave {
    animation-duration: 1.5s;
}

/* No progress - hide waves */
.chapter-liquid-fill.no-progress .liquid-wave {
    display: none;
}

/* Completed chapter - solid fill, no waves */
.chapter-card.chapter-completed .chapter-liquid-fill {
    background: var(--fill-color);
    opacity: 0.85;
}

.chapter-card.chapter-completed .liquid-wave {
    display: none;
}

.chapter-card.chapter-completed {
    box-shadow: 0 0 20px color-mix(in srgb, var(--fill-color) 30%, transparent);
}

/* Ensure content is above the liquid fill */
.chapter-badge,
.chapter-content,
.premium-badge {
    position: relative;
    z-index: 1;
}

.chapter-card:nth-child(1) {
    animation-delay: 0.05s;
}

.chapter-card:nth-child(2) {
    animation-delay: 0.1s;
}

.chapter-card:nth-child(3) {
    animation-delay: 0.15s;
}

.chapter-card:nth-child(4) {
    animation-delay: 0.2s;
}

.chapter-card:nth-child(5) {
    animation-delay: 0.25s;
}

.chapter-card:nth-child(6) {
    animation-delay: 0.3s;
}

.chapter-card:nth-child(7) {
    animation-delay: 0.35s;
}

.chapter-card:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: 2;
    pointer-events: none;
}

.chapter-card:hover::after {
    left: 100%;
}

.chapter-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.25);
}

.chapter-card:active {
    transform: translateY(-4px) scale(0.99);
}

.chapter-card.chapter-locked {
    cursor: not-allowed;
}

.chapter-card.chapter-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.3);
    backdrop-filter: grayscale(0.3) brightness(0.85);
    z-index: 1;
    pointer-events: none;
}

.chapter-card.chapter-locked .premium-badge {
    z-index: 20;
    background: #FFD700;
    color: #0A0E27;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.9),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 4px 20px rgba(255, 215, 0, 0.8);
    animation: premiumGlowIntense 1.5s ease-in-out infinite;
}

@keyframes premiumGlowIntense {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(255, 215, 0, 0.9),
            0 0 40px rgba(255, 215, 0, 0.6),
            0 4px 20px rgba(255, 215, 0, 0.8);
    }

    50% {
        box-shadow:
            0 0 30px rgba(255, 215, 0, 1),
            0 0 50px rgba(255, 215, 0, 0.8),
            0 4px 25px rgba(255, 215, 0, 1);
    }
}

.chapter-card.chapter-locked:hover {
    transform: translateY(-2px);
}

.premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FFD700;
    color: #0A0E27;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4),
        0 4px 15px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {

    0%,
    100% {
        box-shadow:
            0 0 10px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.4),
            0 4px 15px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow:
            0 0 15px rgba(255, 215, 0, 0.8),
            0 0 30px rgba(255, 215, 0, 0.6),
            0 4px 20px rgba(255, 215, 0, 0.7);
    }
}

.chapter-badge {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.badge-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.chapter-content {
    color: white;
}

.chapter-label {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

.chapter-title {
    font-size: 1.8em;
    font-weight: 800;
    margin: 10px 0;
}

.chapter-subtitle {
    font-size: 1.05em;
    opacity: 0.95;
    margin-bottom: 15px;
}

.chapter-description {
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 20px;
}

.chapter-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.beginner-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.chapter-progress-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
}

/* ===== CHAPTER DETAIL PAGE ===== */
.chapter-detail-page {
    display: none;
    min-height: 100vh;
    background: #0A0E27;
}

.chapter-header-bar {
    background: #13182F;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 90;
    border-bottom: 1px solid #2A2F45;
}

.chapter-back-btn {
    margin-bottom: 0;
    flex-shrink: 0;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.back-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #2A2F45;
}

.chapter-detail-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #FFFFFF;
    flex: 1;
    text-align: center;
}

.chapter-progress-header {
    background: #8A2BE2;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
}

.chapter-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.section-label {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8A8A9E;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.section-desc {
    color: #B0B0C0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.section-progress {
    margin-bottom: 30px;
}

.circular-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#8A2BE2 0% 0%, #2A2F45 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.3));
}

.circular-progress::before {
    content: '';
    width: 90px;
    height: 90px;
    background: #0A0E27;
    border-radius: 50%;
    position: absolute;
}

.progress-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
}

.project-label {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8A8A9E;
    margin-bottom: 15px;
}

.project-card {
    background: #13182F;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    overflow: hidden;
}

.project-header {
    background: linear-gradient(135deg, #D97706 0%, #78350F 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    font-weight: 700;
}

.project-content {
    padding: 20px;
}

.project-content h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.project-content p {
    color: #B0B0C0;
    line-height: 1.6;
}

.lessons-label {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8A8A9E;
    margin-bottom: 15px;
}

.lesson-card {
    background: #13182F;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8A2BE2 0%, #D97706 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.lesson-card:hover::before {
    transform: scaleY(1);
}

.lesson-card:hover {
    border-color: #8A2BE2;
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.15);
}

.lesson-card:active {
    transform: translateX(8px) scale(0.98);
}

.lesson-card.lesson-completed {
    border-color: #34C759;
}

.lesson-card.lesson-completed::before {
    background: linear-gradient(180deg, #34C759 0%, #30D158 100%);
    transform: scaleY(1);
}

.lesson-number {
    font-size: 1.2em;
    font-weight: 700;
    color: #8A8A9E;
    min-width: 30px;
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #FFFFFF;
}

.lesson-badge {
    background: #8A2BE2;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 700;
}

.lesson-badge-test {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.lesson-card.lesson-test {
    border-color: #e74c3c;
}

.lesson-card.lesson-test::before {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
}

.lesson-badge-dungeon {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.lesson-card.lesson-dungeon {
    border-color: #e67e22;
}

.lesson-card.lesson-dungeon::before {
    background: linear-gradient(180deg, #e67e22 0%, #d35400 100%);
}

/* Find the Imposter - Cyan */
.lesson-badge-imposter {
    background: linear-gradient(135deg, #00CEC9 0%, #00B5AD 100%);
}

.lesson-card.lesson-imposter {
    border-color: #00CEC9;
}

.lesson-card.lesson-imposter::before {
    background: linear-gradient(180deg, #00CEC9 0%, #00B5AD 100%);
}

/* Premium Lessons - Yellow/Gold */
.lesson-badge-premium {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.lesson-card.lesson-premium {
    border-color: #F59E0B;
}

.lesson-card.lesson-premium::before {
    background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
}

/* Section Headers */
.lessons-section-header {
    grid-column: 1 / -1;
    color: #9CA3AF;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 15px 0 10px 0;
    margin-top: 5px;
}

.lessons-section-header.premium-header {
    color: #F59E0B;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

/* Lesson Lock */
.lesson-lock {
    font-size: 1.3em;
    opacity: 0.8;
}

.lesson-check {
    color: #34C759;
    font-size: 1.5em;
    font-weight: 700;
}

/* ===== LESSON SCREEN ===== */
.lesson-screen {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #0A0E27;
    z-index: 50;
}

.lesson-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: #13182F;
    border-bottom: 1px solid #2A2F45;
    position: relative;
}

.lesson-back-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0;
    z-index: 10;
}

.close-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 1.5em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    position: absolute;
    right: 20px;
}

.close-btn:hover {
    background: #2A2F45;
}

/* Step Counter */
.step-counter {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #B0B0C0;
    font-size: 0.9em;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 600px;
    max-width: 600px;
}

.nav-arrow {
    background: transparent;
    border: 1px solid #2A2F45;
    color: #FFFFFF;
    font-size: 1.2em;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-arrow:hover:not(:disabled) {
    background: #2A2F45;
    border-color: #8A2BE2;
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.progress-bars {
    display: flex;
    gap: 5px;
    flex: 1;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #2A2F45;
    border-radius: 2px;
    transition: background 0.3s;
}

.progress-bar.active {
    background: var(--color-primary);
}

.progress-bar.completed {
    background: #34C759;
}

.upgrade-btn-lesson {
    background: #FFFFFF;
    color: var(--color-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: absolute;
    right: 20px;
}

.upgrade-btn-lesson:hover {
    background: #F0F0F0;
}

.lesson-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 150px 20px;
    /* Added bottom padding for space */
    min-height: calc(100vh - 200px);
    max-height: calc(100vh - 140px);
    /* Account for header + footer */
    overflow-y: auto;
    /* Enable scrolling */
    overflow-x: hidden;
}

/* Custom scrollbar styling - fine and elegant */
.lesson-content::-webkit-scrollbar {
    width: 6px;
    /* Thinner scrollbar */
}

.lesson-content::-webkit-scrollbar-track {
    background: transparent;
    /* Transparent track */
    margin: 50px 0 80px 0;
    /* Balanced margins: 50px top, 80px bottom */
}

.lesson-content::-webkit-scrollbar-thumb {
    background: rgba(217, 119, 6, 0.4);
    /* Semi-transparent orange */
    border-radius: 10px;
    /* Rounded ends */
    transition: background 0.2s;
}

.lesson-content::-webkit-scrollbar-thumb:hover {
    background: rgba(217, 119, 6, 0.7);
    /* More visible on hover */
}

.theory-content h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.theory-content h3 {
    font-size: 1.3em;
    margin: 25px 0 15px 0;
    color: #F59E0B;
}

.theory-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #D0D0D0;
}

.theory-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.theory-content li {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #D0D0D0;
}

/* Lesson theory styling */
.vocab-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 3px solid #F59E0B;
}

.vocab-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.vocab-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05em;
    color: #E0E0E0;
}

.vocab-item:last-child {
    border-bottom: none;
}

.vocab-item strong {
    color: #FFFFFF;
    font-weight: 600;
}

.tip-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 25px 0;
}

.tip-box strong {
    color: #F59E0B;
}

.example-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 25px 0;
    font-style: italic;
    line-height: 1.8;
}

.example-box strong {
    color: #818CF8;
    font-style: normal;
}

.vocab-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.vocab-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    text-align: left;
    color: #F59E0B;
    font-weight: 600;
}

.vocab-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #E0E0E0;
}

.vocab-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.reading-text {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 3px solid #6366F1;
}

.reading-text p {
    margin: 12px 0;
    line-height: 1.9;
}

/* Hard Level Translation Step */
.translation-step {
    text-align: center;
    padding: 20px;
}

.hard-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #EF4444;
    font-weight: 600;
    margin-bottom: 25px;
}

.hard-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.translation-prompt {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 30px;
    line-height: 1.5;
}

.translation-input-lesson {
    width: 100%;
    max-width: 500px;
    padding: 18px 20px;
    font-size: 1.2em;
    background: #13182F;
    border: 2px solid #2A2F45;
    border-radius: 12px;
    color: #FFFFFF;
    text-align: center;
    transition: all 0.3s ease;
}

.translation-input-lesson:focus {
    outline: none;
    border-color: #F59E0B;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.translation-input-lesson.correct {
    border-color: #34C759;
    background: rgba(52, 199, 89, 0.1);
}

.translation-input-lesson.incorrect {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.translation-feedback {
    margin-top: 20px;
    font-size: 1.1em;
}

.feedback-correct {
    color: #34C759;
    font-weight: 600;
}

.feedback-incorrect {
    color: #EF4444;
    font-weight: 600;
}

.correction-answer {
    margin-top: 10px;
    color: #B0B0C0;
}

.correction-answer strong {
    color: #F59E0B;
}

.lesson-illustration {
    font-size: 4em;
    text-align: center;
    margin-bottom: 30px;
}

.code-example {
    background: #13182F;
    border: 1px solid #2A2F45;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.8;
    color: #F0F0F0;
}

.exercise-content h2 {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    background: #13182F;
    border: 1px solid #2A2F45;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #FFFFFF;
}

.quiz-option:hover {
    background: #1A1F38;
    border-color: var(--color-primary);
}

.quiz-option.correct {
    background: #0D2B1E;
    border-color: #34C759;
    color: #34C759;
}

.quiz-option.incorrect {
    background: #2B0D0D;
    border-color: #FF3B30;
    color: #FF3B30;
}

.feedback-correct {
    color: #34C759;
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.1em;
}

.feedback-incorrect {
    color: #FF3B30;
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.1em;
}

/* Comprehension Questions */
.comprehension-step {
    text-align: center;
    padding: 20px;
}

.comprehension-question {
    font-size: 1.4em;
    margin-bottom: 25px;
    color: #FFFFFF;
}

.comprehension-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.comprehension-option {
    text-align: left;
}

.comprehension-feedback {
    margin-top: 20px;
}

/* Spot the Mistake */
.spot-mistake-step {
    text-align: center;
    padding: 20px;
}

.spot-mistake-instruction {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.spot-translation {
    font-size: 1.1em;
    color: #A0AEC0;
    margin-bottom: 20px;
    font-style: italic;
}

.spot-mistake-sentence {
    font-size: 1.5em;
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.spot-word {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: #FFFFFF;
}

.spot-word:hover {
    background: rgba(108, 92, 231, 0.3);
    border-color: #6C5CE7;
    transform: translateY(-2px);
}

.spot-word.selected-mistake {
    background: rgba(255, 107, 107, 0.3);
    border-color: #FF6B6B;
    color: #FF6B6B;
    text-decoration: line-through;
    cursor: default;
}

.spot-word.wrong-selection {
    animation: shake 0.3s ease;
    background: rgba(255, 107, 107, 0.2);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.spot-correction-input {
    margin-top: 25px;
    padding: 20px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.correction-prompt {
    color: #B8A0FF;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.spot-correction-input .translation-input {
    width: 100%;
    margin-bottom: 15px;
}

.spot-correction-input .check-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6C5CE7, #8B7CF7);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s;
}

.spot-correction-input .check-btn:hover {
    transform: scale(1.02);
}

.spot-correction-input .translation-input.correct {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.spot-correction-input .translation-input.incorrect {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.spot-mistake-feedback {
    margin-top: 25px;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* No mistake button */
.no-mistake-btn {
    display: block;
    margin: 20px auto 0;
    padding: 12px 25px;
    background: rgba(108, 92, 231, 0.2);
    border: 2px solid #6C5CE7;
    border-radius: 10px;
    color: #B8A0FF;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.no-mistake-btn:hover {
    background: rgba(108, 92, 231, 0.3);
    transform: scale(1.02);
}

.no-mistake-btn.correct-choice {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    color: #4CAF50;
}

.no-mistake-btn.wrong-selection {
    animation: shake 0.3s ease;
    background: rgba(255, 107, 107, 0.2);
    border-color: #FF6B6B;
}

.spot-mistake-feedback .correction-text {
    color: #74B9FF;
    font-size: 1.1em;
    margin: 10px 0;
}

.spot-mistake-feedback .explanation-text {
    color: #A0A0B0;
    font-size: 1em;
}

/* Vocabulary Practice Prompt */
.vocabulary-prompt {
    text-align: center;
    padding: 30px 20px;
}

.vocab-prompt-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.vocabulary-prompt h2 {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.vocabulary-prompt p {
    color: #A0A0B0;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.vocab-prompt-tip {
    background: rgba(108, 92, 231, 0.2);
    padding: 12px 20px;
    border-radius: 10px;
    color: #B8A0FF !important;
    margin: 20px 0 !important;
}

.vocab-practice-btn {
    background: linear-gradient(135deg, #6C5CE7, #8B7CF7) !important;
    color: white !important;
    font-size: 1.2em !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.vocab-practice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.vocab-skip-text {
    color: #666 !important;
    font-size: 0.9em !important;
    margin-top: 15px !important;
}

.puzzle-content h2 {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.code-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.code-block {
    background: #13182F;
    border: 1px solid #2A2F45;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
    color: #FFFFFF !important;
    transition: all 0.2s;
}

.drop-zone .code-block {
    color: #FFFFFF !important;
    background: #6C5CE7;
    border-color: #8B7CF7;
}

.code-block:hover {
    background: #1A1F38;
    border-color: var(--color-primary);
}

.drop-zone {
    background: #13182F;
    border: 2px dashed #2A2F45;
    min-height: 80px;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: all 0.3s;
    color: #6A6F85;
    font-weight: 500;
}

.drop-zone.correct {
    border-color: #34C759;
    background: #0D2B1E;
}

.drop-zone.incorrect {
    border-color: #FF3B30;
    background: #2B0D0D;
    animation: shake 0.3s;
}

/* ===== NEW PUZZLE DESIGN V2 (Lesson Puzzles) ===== */
.puzzle-content-v2 {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.puzzle-prompt-v2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-align: center;
}

.puzzle-drop-area-v2 {
    background: rgba(15, 23, 42, 0.6);
    border: 2px dashed rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 20px;
    min-height: 80px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.puzzle-drop-area-v2.drag-over {
    border-color: #A855F7;
    border-style: solid;
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.4),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.puzzle-drop-area-v2.correct {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.15);
    border-style: solid;
}

.puzzle-drop-area-v2.validated {
    border-style: solid;
    border-color: rgba(168, 85, 247, 0.5);
}

.puzzle-drop-area-v2.incorrect {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
    animation: puzzleShake 0.4s ease-in-out;
}

@keyframes puzzleShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

.puzzle-drop-slots-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.puzzle-drop-placeholder-v2 {
    color: rgba(168, 85, 247, 0.5);
    font-style: italic;
    font-size: 1.1em;
}

.puzzle-selected-word-v2 {
    background: rgba(168, 85, 247, 0.15);
    color: white;
    border: 2px solid rgba(168, 85, 247, 0.5);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.2s ease,
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    touch-action: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.puzzle-selected-word-v2:hover {
    transform: scale(1.05);
    background: rgba(168, 85, 247, 0.25);
}

.puzzle-selected-word-v2.correct-flash {
    background: rgba(16, 185, 129, 0.4);
    border-color: #10B981;
    transition: all 0.15s ease;
}

.puzzle-selected-word-v2.incorrect-flash {
    background: rgba(239, 68, 68, 0.4);
    border-color: #EF4444;
    transition: all 0.15s ease;
}

.puzzle-selected-word-v2.fade-back {
    transition: all 0.5s ease;
}

.puzzle-selected-word-v2.appearing {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
}

.puzzle-selected-word-v2.appeared {
    opacity: 1;
    transform: scale(1) translateY(0);
    /* No animation - word already flew to position */
}

.puzzle-selected-word-v2.removing {
    opacity: 0;
    transform: scale(0.5) translateY(-20px);
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When word is picked up - hide it immediately (no duplicate) */
.puzzle-selected-word-v2.dragging-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
    transition: none !important;
}

/* When word has left its zone - collapse it to close gap */
.puzzle-selected-word-v2.dragging-out {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
    overflow: hidden;
    min-width: 0;
    border: none;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Spacing for insertion - Duolingo style gap */
.puzzle-selected-word-v2.space-left {
    margin-left: 40px;
    transition: margin 0.15s ease-out;
}

.puzzle-selected-word-v2.space-right {
    margin-right: 40px;
    transition: margin 0.15s ease-out;
}

@keyframes wordSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.puzzle-word-bank-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
    min-height: 60px;
    padding: 10px;
}

.puzzle-word-btn-v2 {
    background: rgba(168, 85, 247, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.4);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    user-select: none;
    touch-action: none;
}

.puzzle-word-btn-v2:hover:not(:disabled):not(.used):not(.dragging-out):not(.dragging-hidden):not(.collapsing) {
    background: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.3);
}

/* When word is picked up - hide it immediately (no duplicate) */
.puzzle-word-btn-v2.dragging-hidden {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

.puzzle-word-btn-v2.dragging-out {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
    overflow: hidden;
    min-width: 0;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.puzzle-word-btn-v2.collapsing {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
    overflow: hidden;
    min-width: 0;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.puzzle-word-btn-v2.expanding {
    animation: wordExpand 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wordExpand {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.puzzle-word-btn-v2.used {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
    overflow: hidden;
    min-width: 0;
    border: none;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Drag ghost element - the word that follows the cursor */
.puzzle-drag-ghost {
    position: fixed;
    z-index: 10000;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid #A855F7;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(168, 85, 247, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(1.08);
    animation: ghostAppear 0.12s ease-out;
    overflow: hidden;
    white-space: nowrap;
}

.puzzle-drag-ghost-selected {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    border: 2px solid #C084FC;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(168, 85, 247, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes ghostAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Flying word animation - for click-to-add smooth transition */
.puzzle-flying-word {
    position: fixed;
    z-index: 10000;
    background: linear-gradient(135deg, #9333EA, #7C3AED);
    border: 2px solid #A855F7;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(168, 85, 247, 0.4);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    transform: scale(1);
}

.puzzle-flying-word.flying {
    transform: scale(1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(168, 85, 247, 0.5);
}

/* Word waiting for flying animation to complete */
.puzzle-selected-word-v2.waiting-for-fly {
    opacity: 0;
    transform: scale(1);
}

/* Insertion indicator - starts as dot, expands to line */
.puzzle-insert-indicator {
    width: 4px;
    height: 4px;
    background: linear-gradient(180deg, #A855F7, #7C3AED);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
    margin: 0 2px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.puzzle-insert-indicator.expanded {
    height: 40px;
    border-radius: 2px;
    animation: insertPulse 0.8s ease-in-out infinite;
}

.puzzle-insert-indicator.collapsing {
    height: 4px;
    border-radius: 50%;
    opacity: 0;
}

@keyframes insertPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.7;
        transform: scaleY(0.9);
    }
}

.puzzle-actions-v2 {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.puzzle-reset-btn-v2 {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.puzzle-reset-btn-v2:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.puzzle-check-btn-v2 {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.5);
    color: #10B981;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.puzzle-check-btn-v2:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

.puzzle-correction-btn-v2 {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.5);
    color: #F59E0B;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.puzzle-correction-btn-v2:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.25);
    transform: translateY(-2px);
}

.puzzle-correction-btn-v2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .puzzle-word-btn-v2,
    .puzzle-selected-word-v2 {
        padding: 10px 16px;
        font-size: 1em;
    }
    
    .puzzle-prompt-v2 {
        font-size: 1.3em;
    }
    
    .puzzle-actions-v2 {
        flex-wrap: wrap;
    }
    
    .puzzle-reset-btn-v2,
    .puzzle-check-btn-v2,
    .puzzle-correction-btn-v2 {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.lesson-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: #13182F;
    border-top: 1px solid #2A2F45;
    display: flex;
    justify-content: center;
}

.continue-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-warning) 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    position: relative;
    overflow: hidden;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.continue-btn:hover:not(:disabled)::before {
    left: 100%;
}

.continue-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(217, 119, 6, 0.5);
}

.continue-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== CONFETTI CELEBRATION ===== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ===== XP POPUP ===== */
.xp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #1A1F38 0%, #2A2F45 100%);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    z-index: 99998;
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.4);
    animation: xp-popup-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.xp-popup.hide {
    animation: xp-popup-out 0.3s ease-in forwards;
}

@keyframes xp-popup-in {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes xp-popup-out {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.xp-popup-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce-in 0.6s ease-out 0.2s both;
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.xp-popup-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.xp-popup-xp {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LESSON CARD POLISH ===== */
.lesson-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-item:hover {
    transform: translateX(5px);
}

.lesson-item.completed .lesson-check {
    animation: checkmark-pop 0.4s ease-out;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== PROGRESS BAR ANIMATION ===== */
.progress-fill {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SUBTLE GLOW ON ACTIVE ELEMENTS ===== */
.chapter-card:not(.chapter-locked):hover {
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.3);
}

/* ===== PULSE EFFECT ON NEW CONTENT ===== */
@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
    }
}

.new-badge {
    animation: subtle-pulse 2s infinite;
}

/* ===== FLOATING ACTION ANIMATION ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-cta-btn {
    animation: float 3s ease-in-out infinite;
}

/* ===== SUCCESS MESSAGE STYLE ===== */
.success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(52, 199, 89, 0.4);
    z-index: 99999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.shortcut {
    font-size: 0.8em;
    opacity: 0.7;
}

/* ===== OTHER PAGES ===== */
.page-container {
    display: none;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 20px 30px;
    /* Add padding to all pages */
}

/* Fade in from bottom animation for page transitions */
@keyframes fadeInUpPage {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUpPage 0.5s ease-out forwards;
}

.pricing-page {
    position: relative;
    padding-top: 80px;
    /* Space for close button */
}

.pricing-close-btn {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 1.8em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.pricing-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.page-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.settings-section {
    background: #1A1F38;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    display: block !important;
    visibility: visible !important;
}

.section-title-settings {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #2A2F45;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-size: 1.05em;
    color: #FFFFFF;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2A2F45;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--color-primary);
}

input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.faq-header {
    margin-bottom: 40px;
}

.faq-badge {
    background: var(--color-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.faq-subtitle {
    font-size: 1.1em;
    color: #B0B0C0;
    margin-top: 15px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #1A1F38;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    font-size: 1.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
}

.faq-icon {
    font-size: 1.5em;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: #B0B0C0;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px;
}

.support-subtitle {
    font-size: 1.1em;
    color: #B0B0C0;
    margin-bottom: 40px;
    text-align: center;
}

.support-form {
    background: #1A1F38;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    /* Center the form */
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #2A2F45;
    border-radius: 10px;
    font-size: 1em;
    background: #0A0E27;
    color: #FFFFFF;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #8A2BE2;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #8A2BE2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #F59E0B;
}

.pricing-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #B0B0C0;
    margin-bottom: 40px;
}

.billing-toggle {
    text-align: center;
    margin-bottom: 40px;
}

.save-badge {
    display: inline-block;
    background: #34C759;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 15px;
}

.toggle-buttons {
    display: inline-flex;
    background: #1A1F38;
    border: 1px solid #2A2F45;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.toggle-btn {
    padding: 10px 30px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #B0B0C0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: #8A2BE2;
    color: white;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
    /* Space at the bottom */
}

.pricing-card {
    background: #1A1F38;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.2s;
}

.pricing-card:hover {
    border-color: #8A2BE2;
    transform: translateY(-4px);
}

.pricing-card-featured {
    border: 2px solid #8A2BE2;
    background: linear-gradient(135deg, #1A1F38 0%, #1E2440 100%);
}

.plan-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.plan-desc {
    color: #B0B0C0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.price {
    font-size: 2.5em;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.price-period {
    color: #B0B0C0;
    margin-bottom: 20px;
}

.plan-btn {
    width: 100%;
    padding: 14px;
    background: #8A2BE2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
}

.plan-btn:hover {
    background: #F59E0B;
}

.plan-btn-secondary {
    background: transparent;
    border: 1px solid #2A2F45;
    color: #FFFFFF;
}

.plan-btn-secondary:hover {
    background: #2A2F45;
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 10px 0;
    color: #D0D0D0;
    border-bottom: 1px solid #2A2F45;
}

.plan-features li:last-child {
    border-bottom: none;
}

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.payment-content {
    background: #1A1F38;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid #2A2F45;
}

.payment-content h2 {
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #FFFFFF;
}

.payment-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #2A2F45;
    border-radius: 8px;
    font-size: 1em;
    background: #0A0E27;
    color: #FFFFFF;
}

.btn {
    background: #8A2BE2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    margin: 5px;
    transition: background 0.2s;
}

.btn:hover {
    background: #F59E0B;
}

.success-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1A1F38;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1500;
    font-weight: 600;
    color: #FFFFFF;
    border: 1px solid #2A2F45;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* ===== SUCCESS PAGE (après paiement Stripe) ===== */
.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0A0E27;
    padding: 20px;
    z-index: 9999;
}

.success-box {
    background: linear-gradient(135deg, #D97706 0%, #78350F 100%);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-title {
    font-size: 2.5em;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-btn {
    background: white;
    color: #D97706;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.success-btn:hover {
    transform: scale(1.05);
}

/* ===== SUBSCRIPTION MANAGER ===== */
.subscription-info {
    margin-top: 20px;
}

.subscription-card {
    background: #1A1F38;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    padding-bottom: 80px;
    /* Space for button */
    min-height: 200px;
    overflow: visible;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.subscription-plan {
    font-size: 1.3em;
    font-weight: 700;
    color: #FFFFFF;
}

.subscription-status {
    background: #6B6B80;
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.subscription-status.active {
    background: #34c759;
}

.subscription-status.cancelled {
    background: #FF3B30;
}

.subscription-details {
    margin-bottom: 20px;
}

.subscription-renewal {
    color: #B0B0C0;
    margin-bottom: 10px;
}

.subscription-renewal strong {
    color: #FFFFFF;
}

.subscription-price {
    display: none !important;
    /* Cacher complètement le prix */
}

.cancel-subscription-btn {
    background: #FF3B30;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

.cancel-subscription-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Upgrade to Premium button (green) */
.cancel-subscription-btn.upgrade-btn {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

/* Reactivate Premium button (orange) */
.cancel-subscription-btn.reactivate-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Subscription status: Ending Soon (orange) */
.subscription-status.ending-soon {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Subscription status: Inactive (gray) */
.subscription-status.inactive {
    background: rgba(107, 114, 128, 0.15);
    color: #9CA3AF;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ===== ADMIN DASHBOARD ===== */
.admin-page {
    padding: 40px;
}

.admin-subtitle {
    color: #B0B0C0;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1A1F38 0%, #0F1220 100%);
    border: 1px solid #2A2F45;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
    border-color: #8A2BE2;
}

.stat-icon {
    font-size: 2.5em;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 12px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 5px 0;
}

.stat-label {
    color: #B0B0C0;
    font-size: 0.9em;
    margin: 0;
}

.stat-change {
    color: #4CAF50;
    font-size: 0.8em;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.stat-change.negative {
    color: #FF5252;
}

.stat-change.neutral {
    color: #B0B0C0;
}

/* ===== TIME FILTER ===== */
.time-filter {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.time-btn {
    padding: 10px 20px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid #2A2F45;
    border-radius: 8px;
    color: #B0B0C0;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.time-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8A2BE2;
    color: #FFFFFF;
}

.time-btn.active {
    background: linear-gradient(135deg, #FCD34D 0%, #8A2BE2 100%);
    border-color: #8A2BE2;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* ===== CHARTS CONTAINER ===== */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.chart-card {
    background: linear-gradient(135deg, #1A1F38 0%, #0F1220 100%);
    border: 1px solid #2A2F45;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
    border-color: #8A2BE2;
}

.chart-title {
    color: #FFFFFF;
    font-size: 1.2em;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.chart-card canvas {
    width: 100% !important;
    height: 250px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .chapters-grid {
        grid-template-columns: 1fr;
    }

    .chapter-detail-content {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .career-title {
        font-size: 2em;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* COPIE TON CSS ORIGINAL ICI ET AJOUTE À LA FIN : */

/* ===== SÉLECTEUR DE LANGUE ===== */
.language-selector {
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
}

.language-selector:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: scale(1.1);
}

/* ===== MASCOTTE LESSON ===== */
.lesson-mascot {
    position: fixed;
    bottom: 30px;
    left: 30px;
    font-size: 4em;
    z-index: 300;
    transition: all 0.3s ease;
    animation: mascotIdle 3s ease-in-out infinite;
}

@keyframes mascotIdle {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mascot-happy {
    animation: mascotBounce 0.5s ease;
    transform: scale(1.3);
}

@keyframes mascotBounce {

    0%,
    100% {
        transform: scale(1.3) translateY(0);
    }

    25% {
        transform: scale(1.4) translateY(-20px);
    }

    50% {
        transform: scale(1.3) translateY(0);
    }

    75% {
        transform: scale(1.4) translateY(-10px);
    }
}

.mascot-sad {
    animation: mascotShake 0.5s ease;
    filter: grayscale(50%);
}

@keyframes mascotShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FAQ & SUPPORT PAGES ===== */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== PRICING PAGE ===== */
#pricingPage {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

#pricingPage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 600px 600px at 15% 20%, rgba(138, 43, 226, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 30%, rgba(180, 60, 100, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 70% 60%, rgba(138, 43, 226, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#pricingPage > * {
    position: relative;
    z-index: 1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
    animation: pricingFadeInUp 0.8s ease-out;
}

.pricing-header .page-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

@keyframes pricingFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-subtitle {
    color: rgba(200, 200, 220, 0.9);
    font-size: 1.2em;
    margin-top: 15px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: pricingFadeInUp 0.8s ease-out 0.15s backwards;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    animation: pricingFadeInUp 0.8s ease-out 0.3s backwards;
}

.pricing-toggle-btn {
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #B0B0C0;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(5px);
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, #8A2BE2 0%, #9333EA 50%, #C53080 100%);
    background-size: 200% 200%;
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
    animation: premiumBtnGlow 3s ease infinite;
}

.pricing-toggle-btn:hover:not(.active) {
    border-color: rgba(138, 43, 226, 0.5);
    color: #FFFFFF;
    background: rgba(138, 43, 226, 0.15);
    transform: translateY(-2px);
}

.pricing-save-badge {
    position: absolute;
    right: calc(50% + 130px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #8A2BE2 0%, #7C3AED 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
    opacity: 0;
    animation: badgeFadeIn 0.6s ease-out 0.5s forwards;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.pricing-save-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2.5s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.pricing-cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.pricing-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95) 0%, rgba(19, 24, 47, 0.98) 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 45px 40px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: pricingCardIn 0.6s ease-out forwards;
}

.pricing-card:first-child {
    animation-delay: 0.1s;
}

.pricing-card:last-child {
    animation-delay: 0.25s;
}

@keyframes pricingCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card:hover {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 
        0 25px 60px rgba(138, 43, 226, 0.2),
        0 0 40px rgba(138, 43, 226, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.pricing-card-featured {
    border: 2px solid rgba(138, 43, 226, 0.6);
    box-shadow: 
        0 20px 60px rgba(138, 43, 226, 0.25),
        0 0 80px rgba(138, 43, 226, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(45, 30, 70, 0.98) 0%, rgba(30, 20, 55, 0.99) 100%);
}

.pricing-card-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), rgba(180, 60, 100, 0.15), transparent);
    transition: 0.8s;
    z-index: 2;
    pointer-events: none;
}

.pricing-card-featured:hover::after {
    left: 150%;
}

.pricing-card-featured:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(138, 43, 226, 0.35),
        0 0 100px rgba(138, 43, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(138, 43, 226, 0.8);
}

/* Premium glow pulse animation */
.pricing-card-featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8A2BE2, #C53080, #8A2BE2, #9333EA);
    background-size: 400% 400%;
    border-radius: 26px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    animation: premiumGradientFlow 4s ease infinite;
}

@keyframes premiumGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pricing-card-featured:hover::before {
    opacity: 0.6;
    filter: blur(15px);
}

.pricing-plan-name {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 12px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.pricing-card-featured .pricing-plan-name {
    background: linear-gradient(135deg, #FFFFFF 0%, #E8D5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-plan-desc {
    color: rgba(180, 180, 200, 0.9);
    font-size: 1em;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pricing-amount {
    font-size: 3.5em;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0;
    letter-spacing: -1px;
}

.pricing-card-featured .pricing-amount {
    background: linear-gradient(135deg, #FFFFFF 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pricing price animation */
.price-change-animate {
    animation: priceFlip 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes priceFlip {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    40% { opacity: 0; transform: translateY(-15px) scale(0.9); }
    60% { opacity: 0; transform: translateY(15px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.pricing-period {
    color: rgba(180, 180, 200, 0.8);
    font-size: 0.95em;
    margin-bottom: 25px;
}

.pricing-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.pricing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.pricing-btn:hover::before {
    left: 100%;
}

.pricing-btn-premium {
    background: linear-gradient(135deg, #8A2BE2 0%, #9333EA 50%, #C53080 100%);
    background-size: 200% 200%;
    color: #FFFFFF;
    box-shadow: 
        0 8px 25px rgba(138, 43, 226, 0.4),
        0 0 20px rgba(138, 43, 226, 0.2);
    animation: premiumBtnGlow 3s ease infinite;
}

@keyframes premiumBtnGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pricing-btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(138, 43, 226, 0.5),
        0 0 40px rgba(197, 48, 128, 0.3);
}

.pricing-btn-premium:active {
    transform: translateY(0) scale(0.98);
}

.pricing-btn-basic {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(180, 180, 200, 0.9);
    cursor: pointer;
    transition: all 0.4s ease;
}

.pricing-btn-basic:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.pricing-features {
    list-style: none;
    text-align: left;
    padding: 0;
}

.pricing-features li {
    color: rgba(200, 200, 220, 0.9);
    padding: 12px 0;
    font-size: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card-featured .pricing-features li {
    color: rgba(220, 220, 240, 0.95);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-info {
    text-align: center;
    color: rgba(160, 160, 180, 0.8);
    font-size: 0.95em;
    animation: pricingFadeInUp 0.8s ease-out 0.6s backwards;
}

.pricing-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-info em {
    font-style: normal;
    opacity: 0.9;
}

.faq-subtitle {
    color: #B0B0C0;
    font-size: 1.1em;
    margin-top: 8px;
}

.faq-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.faq-category-btn {
    background: #1A1F38;
    border: 2px solid #2A2F45;
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-category-btn:hover {
    border-color: #8A2BE2;
    background: rgba(138, 43, 226, 0.1);
}

.faq-category-btn.active {
    background: linear-gradient(135deg, #8A2BE2 0%, #FCD34D 100%);
    border-color: #8A2BE2;
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #1A1F38;
    border: 2px solid #2A2F45;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #8A2BE2;
    transform: translateX(4px);
}

.faq-item.active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.05) 0%, rgba(26, 31, 56, 1) 100%);
}

.faq-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    gap: 20px;
}

.faq-q-wrapper {
    flex: 1;
}

.faq-category-tag {
    display: inline-block;
    background: rgba(217, 119, 6, 0.2);
    color: var(--color-warning);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.faq-category-tag.subscription {
    background: rgba(52, 199, 89, 0.2);
    color: #34C759;
}

.faq-category-tag.technical {
    background: rgba(255, 149, 0, 0.2);
    color: #FF9500;
}

.faq-question {
    color: #FFFFFF;
    font-size: 1.15em;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.faq-arrow {
    color: var(--color-primary);
    font-size: 1.8em;
    font-weight: 300;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-arrow {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 24px 24px;
}

.faq-answer p {
    color: #D0D0D5;
    line-height: 1.7;
    font-size: 1em;
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #FFFFFF;
    font-weight: 600;
}

.faq-answer ul,
.faq-answer ol {
    margin: 12px 0;
    padding-left: 24px;
    color: #D0D0D5;
    line-height: 1.7;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.faq-answer a:hover {
    color: #FCD34D;
    text-decoration: underline;
}

.faq-answer em {
    color: #9090A0;
    font-style: italic;
}



.discord-join-btn,
.faq-link-btn {
    display: inline-block;
    text-decoration: none;
    background: #5865F2;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s;
}

.discord-join-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.faq-link-btn {
    background: var(--color-primary);
}

.faq-link-btn:hover {
    background: #F59E0B;
}

/* ===== PREMIUM POPUP ===== */
.premium-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.premium-popup {
    background: linear-gradient(135deg, #1A1F38 0%, #2A2F45 100%);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #B0B0C0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    font-size: 2.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    overflow: hidden;
    z-index: 10;
}

.popup-close-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    pointer-events: none;
    z-index: -1;
}

.popup-close-btn:hover::after {
    left: 100%;
}

.popup-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.premium-popup-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.premium-popup-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #8A2BE2, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-popup-subtitle {
    color: #B0B0C0;
    font-size: 1.1em;
    margin-bottom: 32px;
}

.premium-popup-info {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.premium-renewal-text {
    color: #B0B0C0;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.premium-renewal-date {
    color: #FFFFFF;
    font-size: 1.3em;
    font-weight: 700;
}

.premium-manage-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.premium-manage-btn:hover {
    background: #F59E0B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

/* Coming Soon Popup */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 39, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.coming-soon-popup {
    background: linear-gradient(135deg, #1A1F38 0%, #2A2F45 100%);
    border: 2px solid #FF8C00;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 140, 0, 0.3);
}

.coming-soon-popup .popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
}

.coming-soon-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.coming-soon-title {
    font-size: 2em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.coming-soon-subtitle {
    font-size: 1em;
    color: #B0B0C0;
    line-height: 1.6;
}

.upgrade-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00, #FFD700);
    background-size: 300% 300%;
    color: #0A0E27;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.35), 0 0 25px rgba(255, 165, 0, 0.2);
    animation: upgradeGradientFlow 8s ease infinite;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 35px rgba(255, 165, 0, 0.35);
}

.upgrade-btn.premium {
    background: #34C759;
    color: white;
    animation: none;
    box-shadow: none;
}

.upgrade-btn.premium:hover {
    background: #30B350;
    box-shadow: 0 2px 10px rgba(52, 199, 89, 0.3);
}

/* ===== RESPONSIVE MASCOTTE ===== */
@media (max-width: 768px) {
    .lesson-mascot {
        font-size: 3em;
        bottom: 100px;
        left: 20px;
    }
}

/* ===== MASCOTTE LOGIN SCREEN - FACE WITH TRACKING EYES ===== */
.mascotte-corner {
    position: fixed;
    bottom: 80px;
    left: 80px;
    z-index: 50;
}

.mascotte-face {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(251, 146, 60, 0.9),
        0 0 60px rgba(249, 115, 22, 0.6),
        0 0 90px rgba(249, 115, 22, 0.4),
        0 8px 20px rgba(194, 65, 12, 0.8);
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: idleFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(251, 146, 60, 0.7));
}



.mascotte-face:active {
    transform: scale(0.95);
}

/* Mascotte click animations */
.mascotte-face.mascotte-clicked {
    animation: mascotteBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes mascotteBounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.85); }
    50% { transform: scale(1.15); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.mascotte-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 50, 0.6) 0%, rgba(255, 100, 0, 0) 70%);
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: mascotteRipple 0.6s ease-out forwards;
    pointer-events: none;
    z-index: -1;
}

@keyframes mascotteRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Enhanced bubble pop animation */
.speech-bubble.bubble-pop {
    animation: bubblePopEnhanced 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bubblePopEnhanced {
    0% { 
        transform: scale(0) translateY(10px);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
    100% { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.mascotte-face.angry {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.95),
        0 0 60px rgba(255, 51, 51, 0.7),
        0 0 90px rgba(255, 51, 51, 0.5),
        0 8px 20px rgba(255, 51, 51, 0.9);
    animation: none;
    filter: drop-shadow(0 0 20px rgba(255, 51, 51, 0.8));
}

@keyframes enterFromTop {
    0% {
        transform: translateY(-800px);
        opacity: 0;
    }

    70% {
        transform: translateY(20px);
        opacity: 1;
    }

    85% {
        transform: translateY(-5px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes idleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* IDLE VFX - FLOATING PARTICLES */
.mascotte-vfx {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #FDBA74, #FB923C);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.8);
    animation: vfxFloat 2s ease-in-out infinite;
}

.mascotte-vfx:nth-child(1) {
    bottom: -10px;
    left: 20px;
    animation-delay: 0s;
}

.mascotte-vfx:nth-child(2) {
    bottom: -10px;
    right: 20px;
    animation-delay: 0.4s;
}

.mascotte-vfx:nth-child(3) {
    top: -10px;
    left: 30px;
    animation-delay: 0.8s;
}

.mascotte-vfx:nth-child(4) {
    top: -10px;
    right: 30px;
    animation-delay: 1.2s;
}

.mascotte-vfx:nth-child(5),
.mascotte-vfx:nth-child(6),
.mascotte-vfx:nth-child(7),
.mascotte-vfx:nth-child(8) {
    display: none;
}

.mascotte-face.angry .mascotte-vfx:nth-child(5),
.mascotte-face.angry .mascotte-vfx:nth-child(6),
.mascotte-face.angry .mascotte-vfx:nth-child(7),
.mascotte-face.angry .mascotte-vfx:nth-child(8) {
    display: block;
}

.mascotte-face.angry .mascotte-vfx:nth-child(5) {
    bottom: 30px;
    left: 0px;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
    animation-delay: 0.2s;
}

.mascotte-face.angry .mascotte-vfx:nth-child(6) {
    bottom: 30px;
    right: 0px;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
    animation-delay: 0.4s;
}

.mascotte-face.angry .mascotte-vfx:nth-child(7) {
    top: 30px;
    left: 10px;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
    animation-delay: 0.1s;
}

.mascotte-face.angry .mascotte-vfx:nth-child(8) {
    top: 30px;
    right: 10px;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
    animation-delay: 0.3s;
}

.mascotte-face.angry .mascotte-vfx {
    background: radial-gradient(circle, #ff6666, #ff3333);
    box-shadow: 0 0 12px rgba(255, 51, 51, 0.9);
    opacity: 0.8;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
}

@keyframes vfxFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-30px) scale(0.5);
        opacity: 0;
    }
}

@keyframes vfxFloatIntense {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    40% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-50px) scale(0.3);
        opacity: 0;
    }
}

/* EYES - MOVED UP */
.mascotte-eye {
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 25px;
}

.mascotte-eye-left {
    left: 25px;
}

.mascotte-eye-right {
    right: 25px;
}

.mascotte-pupil {
    width: 14px;
    height: 14px;
    background: #333;
    border-radius: 50%;
    position: absolute;
}

/* EYEBROWS */
.mascotte-eyebrow {
    position: absolute;
    width: 35px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    top: 12px;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.mascotte-eyebrow-left {
    left: 15px;
    transform: rotate(-5deg) translateY(0);
}

.mascotte-eyebrow-right {
    right: 15px;
    transform: rotate(5deg) translateY(0);
}

.mascotte-face.angry .mascotte-eyebrow {
    opacity: 1;
}

.mascotte-face.angry .mascotte-eyebrow-left {
    transform: rotate(25deg) translateY(-3px);
}

.mascotte-face.angry .mascotte-eyebrow-right {
    transform: rotate(-25deg) translateY(-3px);
}

/* SMILE */
.mascotte-smile {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 25px;
    border: 3px solid #333;
    border-top: none;
    border-radius: 0 0 50px 50px;
    opacity: 1;
}

.mascotte-face.angry .mascotte-smile {
    display: none;
}

/* GRIMACE - UPSIDE DOWN SMILE */
.mascotte-grimace {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 25px;
    border: 3px solid #333;
    border-bottom: none;
    border-radius: 50px 50px 0 0;
    opacity: 0;
    display: none;
}

.mascotte-face.angry .mascotte-grimace {
    display: block;
    opacity: 1;
}

/* ANGRY TEXT ANIMATIONS - Super Paper Mario style */
.mascotte-bubble.text-shake .mascotte-bubble-content {
    animation: paperMarioShake 0.05s steps(1) infinite;
    display: inline-block;
}

.mascotte-bubble.intense-shake .mascotte-bubble-content {
    animation: paperMarioShakeIntense 0.04s steps(1) infinite;
    color: #ff4444;
    font-weight: 700;
    display: inline-block;
}

.mascotte-bubble.intense-shake {
    border-color: #ff4444;
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
}

/* Super Paper Mario style shake - chaotic random movement */
@keyframes paperMarioShake {
    0% {
        transform: translate(1px, -1px) rotate(-0.5deg);
    }

    10% {
        transform: translate(-1px, 1px) rotate(0.5deg);
    }

    20% {
        transform: translate(0px, -1px) rotate(0deg);
    }

    30% {
        transform: translate(-1px, 0px) rotate(-0.5deg);
    }

    40% {
        transform: translate(1px, 1px) rotate(0.5deg);
    }

    50% {
        transform: translate(-1px, -1px) rotate(0deg);
    }

    60% {
        transform: translate(1px, 0px) rotate(-0.5deg);
    }

    70% {
        transform: translate(0px, 1px) rotate(0.5deg);
    }

    80% {
        transform: translate(-1px, 1px) rotate(0deg);
    }

    90% {
        transform: translate(1px, -1px) rotate(-0.5deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

/* Intense Super Paper Mario shake - more chaotic */
@keyframes paperMarioShakeIntense {
    0% {
        transform: translate(2px, -2px) rotate(-1deg);
    }

    10% {
        transform: translate(-2px, 1px) rotate(1deg);
    }

    20% {
        transform: translate(1px, -2px) rotate(-0.5deg);
    }

    30% {
        transform: translate(-1px, 2px) rotate(0.5deg);
    }

    40% {
        transform: translate(2px, 1px) rotate(-1deg);
    }

    50% {
        transform: translate(-2px, -1px) rotate(1deg);
    }

    60% {
        transform: translate(1px, 2px) rotate(-0.5deg);
    }

    70% {
        transform: translate(-1px, -2px) rotate(0.5deg);
    }

    80% {
        transform: translate(2px, -1px) rotate(-1deg);
    }

    90% {
        transform: translate(-2px, 2px) rotate(1deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

/* MASCOTTE MESSAGE BUBBLE */
.mascotte-bubble {
    position: absolute;
    top: -80px;
    left: 50%;
    background: white;
    border: 2px solid #FB923C;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
    opacity: 1;
    pointer-events: none;
    z-index: 51;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.mascotte-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.mascotte-bubble-content {
    opacity: 1;
}

@keyframes none {}

/* LAUGH EYES - CLOSED EYES WHEN LAUGHING */
.mascotte-laugh-eyes {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 3px solid #333;
    border-radius: 50%;
}

.mascotte-laugh-eyes-left {
    top: 25px;
    left: 28px;
    opacity: 0;
    animation: laughEyesClosed 0.3s ease-out forwards;
}

.mascotte-laugh-eyes-right {
    top: 25px;
    right: 28px;
    opacity: 0;
    animation: laughEyesClosed 0.3s ease-out forwards;
}

@keyframes laughEyesClosed {
    0% {
        opacity: 0;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: scaleY(0.2);
        border-bottom-color: transparent;
    }
}

/* LAUGH SMILE - BIGGER SMILE */
.mascotte-laugh-smile {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    border: 3px solid #333;
    border-top: none;
    border-radius: 0 0 60px 60px;
    opacity: 0;
    animation: laughSmile 0.4s ease-out forwards;
}

@keyframes laughSmile {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.5);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
}

/* TEAR DROPS FROM LAUGHING */
.mascotte-tear {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(135, 206, 235, 0.8);
    border-radius: 50%;
    opacity: 0;
}

.mascotte-tear-left {
    top: 40px;
    left: 30px;
    animation: tearDrop 0.6s ease-in forwards;
    animation-delay: 0.2s;
}

.mascotte-tear-right {
    top: 40px;
    right: 30px;
    animation: tearDrop 0.6s ease-in forwards;
    animation-delay: 0.25s;
}

@keyframes tearDrop {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 768px) {
    .mascotte-corner {
        display: none;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajouter animation au login-container existant */
.login-container {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive: adjust mascotte on smaller screens */
@media (max-width: 1024px) {
    .mascotte-corner {
        bottom: 15px;
        left: 40px;
    }

    .mascotte-face {
        width: 100px;
        height: 100px;
    }

    .mascotte-eye {
        width: 25px;
        height: 25px;
        top: 30px;
    }

    .mascotte-eye-left {
        left: 20px;
    }

    .mascotte-eye-right {
        right: 20px;
    }

    .mascotte-pupil {
        width: 12px;
        height: 12px;
    }

    .mascotte-smile {
        bottom: 18px;
        width: 40px;
        height: 20px;
        border-width: 2px;
    }
}

/* ===== PROFILE TABS ===== */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(26, 31, 56, 0.5);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.profile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #B0B0C0;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-tab:hover {
    background: rgba(217, 119, 6, 0.1);
    color: #FFFFFF;
}

.profile-tab.active {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.profile-tab-icon {
    font-size: 1.2em;
}

.profile-tab-text {
    font-weight: 600;
}

/* ===== TROPHIES PAGE ===== */
.trophies-page {
    padding-top: 40px;
}

.trophies-page .page-title {
    margin-bottom: 20px;
}

.trophies-counter-bar {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 30px;
    background: rgba(26, 31, 56, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.trophies-earned-count {
    font-size: 1.5em;
    font-weight: 700;
    color: #D97706;
    text-shadow: 0 0 15px rgba(217, 119, 6, 0.5);
}

.trophies-total-count {
    font-size: 1.1em;
    color: #888;
    margin-left: 5px;
}

.trophies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Trophy Item - Emoji in dashed circle */
.trophy-item {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    border-radius: 50%;
    border: 3px dashed #555;
    background: rgba(26, 31, 56, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.trophy-item:hover {
    transform: scale(1.1);
    border-color: #888;
}

.trophy-item.owned {
    border-style: solid;
    border-color: #D97706;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.4), 0 0 40px rgba(217, 119, 6, 0.2);
    background: rgba(217, 119, 6, 0.1);
}

.trophy-item.owned:hover {
    border-color: #F59E0B;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), 0 0 50px rgba(245, 158, 11, 0.3);
}

/* Trophy Popup */
.trophy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    gap: 20px;
}

.trophy-nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-nav-arrow:hover {
    background: rgba(217, 119, 6, 0.3);
    border-color: #D97706;
    transform: scale(1.1);
}

.trophy-popup {
    background: linear-gradient(145deg, #1a1f38 0%, #0f1123 100%);
    border: 2px solid rgba(217, 119, 6, 0.4);
    border-radius: 24px;
    padding: 35px;
    min-width: 400px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(217, 119, 6, 0.15);
}

.trophy-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #B0B0C0;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-popup-close:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6666;
}

.trophy-popup-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.trophy-popup-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trophy-popup-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5em;
    background: rgba(217, 119, 6, 0.15);
    border-radius: 50%;
    border: 3px solid rgba(217, 119, 6, 0.3);
}

.trophy-popup-status {
    font-size: 0.85em;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trophy-popup-status.owned {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
}

.trophy-popup-status.not-owned {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trophy-popup-right {
    flex: 1;
    padding-top: 10px;
}

.trophy-popup-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.trophy-popup-how {
    color: #B0B0C0;
    font-size: 1em;
    line-height: 1.6;
}

.trophy-popup-how strong {
    color: #D97706;
}

@media (max-width: 600px) {
    .trophies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .trophy-item {
        width: 75px;
        height: 75px;
        font-size: 2em;
    }
    
    .trophy-popup {
        min-width: auto;
        width: 90%;
        padding: 25px;
    }
    
    .trophy-popup-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .trophy-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
}

/* ===== TROPHY NOTIFICATION ===== */
.trophy-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #1a1f38 0%, #0f1123 100%);
    border: 2px solid #D97706;
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(217, 119, 6, 0.4), 0 0 30px rgba(217, 119, 6, 0.2);
}

.trophy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.trophy-notif-icon {
    font-size: 2.5em;
    animation: trophyBounce 0.5s ease;
}

@keyframes trophyBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.trophy-notif-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trophy-notif-title {
    font-size: 0.85em;
    color: #D97706;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trophy-notif-name {
    font-size: 1.2em;
    color: #FFFFFF;
    font-weight: 700;
}

/* ===== PROFILE BUBBLE ===== */
.profile-bubble {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #D97706;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.profile-bubble-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.profile-bubble-pic {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #D97706 0%, #78350F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5em;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
}

.edit-profile-pic-btn {
    background: linear-gradient(135deg, #D97706 0%, #78350F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.edit-profile-pic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.profile-bubble-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(26, 31, 56, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.profile-info-label {
    color: #B0B0C0;
    font-weight: 600;
    font-size: 0.95em;
    min-width: 120px;
}

.profile-info-value {
    color: #FFFFFF;
    font-weight: 500;
    text-align: right;
    flex: 1;
    word-break: break-all;
}

.profile-progress-bar {
    width: 280px;
    height: 16px;
    background: #0F1123;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2A2F45;
    margin: 0 15px;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.profile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D97706 0%, #78350F 100%);
    transition: width 0.3s ease;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.profile-progress-text {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.1em;
    min-width: 50px;
    text-align: right;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.profile-info-divider {
    height: 1px;
    background: rgba(102, 126, 234, 0.2);
    margin: 15px 0;
}

/* ===== PROFILE PICTURE MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #1a1f38 0%, #0f1123 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 24px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(102, 126, 234, 0.1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #B0B0C0;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close::before {
    content: '✕';
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.modal-title {
    color: #FFFFFF;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.profile-pic-options-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(15, 17, 35, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95em;
}

.option-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.option-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #D97706;
}

.option-icon {
    font-size: 1.2em;
}

.option-text {
    font-size: 1em;
}

.premium-badge-mini {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #8A2BE2, #F59E0B);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.5);
    white-space: nowrap;
}

/* Profile Picture Layout */
.profile-pic-modal {
    max-width: 550px !important;
}

.profile-pic-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.import-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 140px;
    align-items: center;
}

.import-section .import-btn {
    position: relative;
    height: 100%;
    min-height: 180px;
    flex-direction: column;
    gap: 10px;
}

.import-warning-link {
    margin-top: 10px;
    font-size: 0.75em;
    color: #F59E0B;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    opacity: 0.8;
}

.import-warning-link:hover {
    color: #FBBF24;
    opacity: 1;
    text-decoration: underline;
}

.upload-icon {
    font-size: 3em;
}

/* EMOJI GALLERY */
.emoji-gallery {
    background: rgba(15, 17, 35, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 15px;
    flex: 1;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: rgba(15, 17, 35, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    font-size: 1.6em;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #D97706;
    transform: scale(1.1);
}

/* IMAGE EDITOR - Discord style */
.image-editor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.editor-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 350px;
    background: #0a0d1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas shows the full image */
#editorCanvas {
    cursor: grab;
    max-width: 100%;
    max-height: 100%;
}

#editorCanvas:active {
    cursor: grabbing;
}

.editor-preview-circle {
    display: none;
}

.editor-controls {
    background: rgba(15, 17, 35, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
}

.slider-label {
    display: block;
    color: #B0B0C0;
    font-weight: 500;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.editor-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #D97706 0%, #D97706 var(--value, 0%), #2A2F45 var(--value, 0%), #2A2F45 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.editor-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #2A2F45;
}

.editor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #D97706;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
    margin-top: -6px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.editor-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.7);
}

.editor-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #2A2F45;
}

.editor-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: #D97706;
}

.editor-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #D97706;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.editor-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cancel-btn,
.apply-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #B0B0C0;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.apply-btn {
    background: #D97706;
    border: none;
    color: #FFFFFF;
}

.apply-btn:hover {
    background: #5a6fd6;
    transform: translateY(-1px);
}

/* ===== CANCEL SUBSCRIPTION MODAL ===== */
.modal-content-subscription {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #D97706;
    border-radius: 20px;
    padding: 45px 35px 35px 35px;
    width: 90%;
    max-width: 800px;
    position: relative;
    z-index: 2001;
    overflow: visible;
}

.cancel-sub-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* ===== SAD MASCOTTE (LEFT SIDE) ===== */
.cancel-sub-mascotte {
    flex: 0 0 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Sad mascotte face - same structure as login mascotte */
.sad-mascotte-face {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #D97706 0%, #78350F 100%);
    border-radius: 60px;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.9),
        0 0 60px rgba(102, 126, 234, 0.6),
        0 0 90px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.7));
}

/* VFX Particles for sad mascotte */
.sad-mascotte-face .mascotte-vfx {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #8A2BE2, #D97706);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.8);
    animation: vfxFloat 2s ease-in-out infinite;
}

.sad-mascotte-face .mascotte-vfx:nth-child(1) {
    bottom: -10px;
    left: 20px;
    animation-delay: 0s;
}

.sad-mascotte-face .mascotte-vfx:nth-child(2) {
    bottom: -10px;
    right: 20px;
    animation-delay: 0.4s;
}

.sad-mascotte-face .mascotte-vfx:nth-child(3) {
    top: -10px;
    left: 30px;
    animation-delay: 0.8s;
}

.sad-mascotte-face .mascotte-vfx:nth-child(4) {
    top: -10px;
    right: 30px;
    animation-delay: 1.2s;
}

.sad-mascotte-face .mascotte-vfx:nth-child(5) {
    bottom: 30px;
    left: 0px;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
    animation-delay: 0.2s;
}

.sad-mascotte-face .mascotte-vfx:nth-child(6) {
    bottom: 30px;
    right: 0px;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
    animation-delay: 0.4s;
}

.sad-mascotte-face .mascotte-vfx:nth-child(7) {
    top: 30px;
    left: 10px;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
    animation-delay: 0.1s;
}

.sad-mascotte-face .mascotte-vfx:nth-child(8) {
    top: 30px;
    right: 10px;
    animation: vfxFloatIntense 1.2s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* Eyebrows - same positioning as login mascotte */
.sad-mascotte-face .mascotte-eyebrow {
    position: absolute;
    width: 35px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    top: 12px;
    transition: all 0.3s ease-out;
    opacity: 1;
}

.sad-mascotte-face .mascotte-eyebrow-left {
    left: 15px;
    transform: rotate(-5deg) translateY(0);
}

.sad-mascotte-face .mascotte-eyebrow-right {
    right: 15px;
    transform: rotate(5deg) translateY(0);
}

/* Eyes - same as login */
.sad-mascotte-face .mascotte-eye {
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sad-mascotte-face .mascotte-eye-left {
    left: 25px;
}

.sad-mascotte-face .mascotte-eye-right {
    right: 25px;
}

.sad-mascotte-face .mascotte-pupil {
    width: 14px;
    height: 14px;
    background: #333;
    border-radius: 50%;
    animation: gentleEyeMove 3s ease-in-out infinite;
}

/* Gentle eye movement animation for sad mascotte */
@keyframes gentleEyeMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(3px, 2px);
    }

    50% {
        transform: translate(0, 4px);
    }

    75% {
        transform: translate(-3px, 2px);
    }
}

/* Sad mouth - inverted U shape (frown) */
.mascotte-sad-mouth {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 25px;
    border: 3px solid #333;
    border-bottom: none;
    border-radius: 50px 50px 0 0;
    opacity: 1;
}

/* Message bubble - positioned above mascotte */
.sad-mascotte-face .sad-bubble {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 2px solid #D97706;
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    opacity: 1;
    pointer-events: auto;
    z-index: 100;
}

.sad-mascotte-face .sad-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.sad-mascotte-face .sad-bubble .mascotte-bubble-content {
    color: #333;
}

/* Hide smile and show grimace for sad mascotte */
.sad-mascotte-face .mascotte-smile {
    display: none;
}

.sad-mascotte-face .mascotte-sad-mouth {
    display: block;
}

/* ===== INFO SECTION (RIGHT SIDE) ===== */
.cancel-sub-info {
    flex: 1;
}

.cancel-sub-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.modules-counter {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid #D97706;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 15px;
    text-align: center;
}

.modules-number {
    font-size: 42px;
    font-weight: 800;
    color: #D97706;
    margin-bottom: 6px;
}

.modules-text {
    font-size: 13px;
    color: #B0B0C0;
    line-height: 1.4;
}

.cancel-sub-message {
    color: #B0B0C0;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cancel-sub-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.keep-sub-btn {
    background: linear-gradient(135deg, #D97706 0%, #78350F 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.keep-sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cancel-sub-link {
    background: #FF3B30;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
}

.cancel-sub-link:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.3);
}

@media (max-width: 768px) {
    .mascotte-corner {
        display: none;
    }

    .cancel-sub-container {
        flex-direction: column;
        gap: 30px;
    }

    .cancel-sub-mascotte {
        flex: 1;
        margin-bottom: 20px;
    }

    .cancel-sub-actions {
        flex-direction: column;
    }

    .keep-sub-btn,
    .cancel-sub-link {
        width: 100%;
    }
}

/* ===== HEADER NAVIGATION ===== */
.header-left {
    display: flex;
    align-items: center;
    gap: 60px;
}

.main-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: #B0B0C0;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.2s ease;
    position: relative;
    cursor: pointer;
    padding: 12px 0;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link.active {
    color: #FFFFFF;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #8A2BE2;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 10px rgba(138, 43, 226, 0.4);
}

/* ===== HOME PAGE LANDING ===== */
#homePageContent {
    background: #0A0E27;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Force hide when class is applied */
#homePageContent.force-hidden {
    display: none !important;
}

/* --- HOME PAGE HERO --- */
.home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem;
    /* Reduced padding */
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    overflow: visible;
    perspective: 1000px;
    /* For 3D effects */
    min-height: calc(100vh - 80px);
    /* Full height minus header */
}

/* Background Glow Effect */
.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    /* Smooth follow */
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

/* Removed hero-badge styles */

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.text-gradient {
    background: linear-gradient(135deg, #8a2be2 0%, #FCD34D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #B0B0C0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-cta-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #F59E0B 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite, glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    }

    100% {
        box-shadow: 0 4px 25px rgba(138, 43, 226, 0.6);
    }
}

.hero-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.hero-cta-btn:hover::after {
    left: 100%;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.hero-secondary-btn {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #2A2F45;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-secondary-btn:hover {
    border-color: #8a2be2;
    color: #8a2be2;
    background: rgba(138, 43, 226, 0.05);
}

/* Removed hero-stats styles */

/* Hero Illustration */
.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ===== HERO FRENCH MASCOT ===== */
.hero-mascot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mascot-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(ellipse at center,
            rgba(245, 158, 11, 0.35) 0%,
            rgba(217, 119, 6, 0.15) 40%,
            transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: mascotGlowPulse 3s ease-in-out infinite;
}

@keyframes mascotGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.french-mascot {
    position: relative;
    z-index: 1;
    animation: mascotFloat 4s ease-in-out infinite;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Béret */
.mascot-beret {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 60px 60px 30px 30px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.beret-pom {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Face */
.mascot-face-hero {
    width: 160px;
    height: 160px;
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 0 40px rgba(245, 158, 11, 0.6),
        0 0 80px rgba(245, 158, 11, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 -10px 30px rgba(0, 0, 0, 0.2);
}

/* Eyebrows */
.mascot-eyebrow {
    position: absolute;
    width: 30px;
    height: 8px;
    background: #78350f;
    border-radius: 10px;
    top: 40px;
}

.mascot-eyebrow-left {
    left: 30px;
    transform: rotate(-10deg);
}

.mascot-eyebrow-right {
    right: 30px;
    transform: rotate(10deg);
}

/* Eyes */
.mascot-eye {
    position: absolute;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    top: 50px;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mascot-eye-left {
    left: 28px;
}

.mascot-eye-right {
    right: 28px;
}

.mascot-pupil {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #4a3728, #1a1a2e);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mascot-pupil::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

/* Blush */
.mascot-blush {
    position: absolute;
    width: 25px;
    height: 12px;
    background: rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    top: 95px;
    filter: blur(3px);
}

.mascot-blush-left {
    left: 15px;
}

.mascot-blush-right {
    right: 15px;
}

/* Smile */
.mascot-smile-hero {
    position: absolute;
    width: 50px;
    height: 25px;
    border: 5px solid #78350f;
    border-top: none;
    border-radius: 0 0 50px 50px;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
}

/* Body */
.mascot-body {
    position: relative;
    margin-top: -20px;
}

/* Arms */
.mascot-arm {
    position: absolute;
    width: 25px;
    height: 80px;
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    border-radius: 20px;
    top: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mascot-arm-left {
    left: -40px;
    transform: rotate(25deg);
    transform-origin: top center;
    animation: waveArm 2s ease-in-out infinite;
}

.mascot-arm-right {
    right: -40px;
    transform: rotate(-15deg);
}

@keyframes waveArm {
    0%, 100% { transform: rotate(25deg); }
    50% { transform: rotate(45deg); }
}

/* French Flag */
.mascot-flag {
    position: absolute;
    left: -70px;
    top: -30px;
}

.flag-pole {
    width: 6px;
    height: 100px;
    background: linear-gradient(to bottom, #a1a1aa, #71717a);
    border-radius: 3px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.flag-fabric {
    position: absolute;
    top: 5px;
    left: 6px;
    display: flex;
    width: 60px;
    height: 40px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    animation: flagWave 2s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% { transform: skewY(0deg); }
    25% { transform: skewY(2deg); }
    75% { transform: skewY(-2deg); }
}

.flag-blue {
    flex: 1;
    background: #002654;
}

.flag-white {
    flex: 1;
    background: #ffffff;
}

.flag-red {
    flex: 1;
    background: #ce1126;
}

/* Baguette */
.mascot-baguette {
    position: absolute;
    right: -30px;
    top: -20px;
    width: 100px;
    height: 20px;
    background: linear-gradient(135deg, #d4a574 0%, #c4956a 50%, #b8865c 100%);
    border-radius: 30px 30px 10px 10px;
    transform: rotate(-45deg);
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.mascot-baguette::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: rgba(139, 69, 19, 0.4);
    border-radius: 2px;
}

.mascot-baguette::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 2px;
}

/* Speech Bubble */
.mascot-speech {
    position: absolute;
    top: -60px;
    right: -80px;
    background: #fff;
    color: #1a1a2e;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: speechBounce 3s ease-in-out infinite;
}

.mascot-speech::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fff;
}

@keyframes speechBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

/* Floating particles */
.mascot-particle {
    position: absolute;
    font-size: 1.8rem;
    animation: particleFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.mascot-particle-1 {
    top: -40px;
    left: -50px;
    animation-delay: 0s;
}

.mascot-particle-2 {
    top: 80px;
    right: -90px;
    animation-delay: 1s;
}

.mascot-particle-3 {
    bottom: 20px;
    left: -70px;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
    50% { transform: translateY(-15px) rotate(10deg); opacity: 1; }
}

/* ===== HOME PAGE SECTIONS ===== */

/* Section Common Styles */
.section-header,
.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50px;
    color: #A78BFA;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #9CA3AF;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== WHAT IS OPUSFRENCH - SLIDESHOW SECTION ===== */
.home-about-section {
    padding: 60px 40px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-slideshow {
    position: relative;
}

.slideshow-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.slide-content {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.9), rgba(20, 24, 45, 0.95));
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 25px;
}

.slide-intro {
    font-size: 1.1rem;
    color: #9CA3AF;
    margin-bottom: 30px;
}

.slide-intro strong {
    color: #A78BFA;
}

.playground-bubble {
    display: inline-block;
    background: linear-gradient(135deg, #8A2BE2, #7C3AED);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.playground-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

/* Slide 1: How It Works - 3 Cards */
.how-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

a.how-card.clickable {
    text-decoration: none;
    cursor: pointer;
}

a.how-card.clickable:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.how-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.how-card:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateY(-5px);
}

.how-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.how-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.how-card-desc {
    font-size: 0.9rem;
    color: #9CA3AF;
    line-height: 1.5;
}

/* Slide 2: Testimonials */
.testimonials-slide {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonial-mini {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    font-size: 2.5rem;
    line-height: 50px;
}

.testimonial-avatar-letter {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #8A2BE2, #7C3AED);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-mini .testimonial-stars {
    color: #F59E0B;
    font-size: 1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-mini p {
    font-size: 0.9rem;
    color: #D1D5DB;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 12px;
}

.testimonial-author-mini {
    font-size: 0.85rem;
    color: #A78BFA;
    font-weight: 600;
}

/* Slide 3: Stats */
.stats-grid-slide {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-num-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-num {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8A2BE2, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-sym {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
}

.stat-lbl {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: #9CA3AF;
    font-weight: 500;
}

/* Slideshow Navigation */
.slideshow-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(138, 43, 226, 0.5);
}

.slide-dot.active {
    background: #8A2BE2;
    transform: scale(1.2);
}

.slideshow-arrows {
    position: absolute;
    top: 50%;
    left: -25px;
    right: -25px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slide-arrow {
    width: 50px;
    height: 50px;
    background: rgba(26, 31, 56, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 4px;
}

.slide-arrow:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
    transform: scale(1.1);
}

/* ===== TESTIMONIALS SECTION ===== */
.home-testimonials-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, transparent, rgba(138, 43, 226, 0.03), transparent);
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.9), rgba(20, 24, 45, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.3);
}

.testimonial-card.featured {
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.15);
    transform: scale(1.03);
}

.testimonial-card.featured:hover {
    transform: scale(1.05);
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.testimonial-text {
    font-size: 1rem;
    color: #D1D5DB;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8A2BE2, #FF6B35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.author-level {
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* ===== FINAL CTA SECTION ===== */
.home-cta-section {
    padding: 100px 40px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cta-title-mobile.mobile-only {
    display: none; /* Hidden on desktop */
}

.upgrade-now-btn {
    display: none; /* Hidden on desktop */
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #9CA3AF;
    margin-bottom: 50px;
}

/* Plans Comparison */
.cta-plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-plan {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.9), rgba(20, 24, 45, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 35px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cta-plan:hover {
    transform: translateY(-5px);
}

.free-plan:hover {
    border-color: rgba(107, 114, 128, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.premium-plan {
    border-color: rgba(138, 43, 226, 0.5);
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.15), rgba(20, 24, 45, 0.95));
    position: relative;
    overflow: visible;
    transition: all 0.4s ease;
}

/* Animated gradient glow effect - same as pricing-card-featured */
.premium-plan::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8A2BE2, #C53080, #8A2BE2, #9333EA);
    background-size: 400% 400%;
    border-radius: 26px;
    opacity: 0.4;
    z-index: -1;
    animation: premiumGradientFlow 4s ease infinite;
    filter: blur(12px);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Sweep shine effect - hidden to avoid overflow issues */
/*
.premium-plan::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), rgba(180, 60, 100, 0.15), transparent);
    transition: 0.8s;
    z-index: 2;
    pointer-events: none;
}

.premium-plan:hover::after {
    left: 150%;
}
*/

.premium-plan:hover {
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.25);
    transform: translateY(-8px) scale(1.02);
}

.premium-plan:hover::before {
    opacity: 0.6;
    filter: blur(15px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    background: linear-gradient(135deg, #8A2BE2, #FF6B35);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 25px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: #9CA3AF;
}

.premium-plan .plan-price {
    background: linear-gradient(135deg, #8A2BE2, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    color: #D1D5DB;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-btn {
    width: 100%;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.free-plan .plan-btn {
    background: transparent;
    border: 2px solid rgba(107, 114, 128, 0.5);
    color: #9CA3AF;
}

.free-plan .plan-btn:hover {
    background: rgba(107, 114, 128, 0.2);
    border-color: rgba(107, 114, 128, 0.8);
    color: #FFFFFF;
}

.plan-btn.premium {
    background: linear-gradient(135deg, #8A2BE2, #9333EA, #C53080, #8A2BE2);
    background-size: 300% 300%;
    border: none;
    color: #FFFFFF;
    animation: premiumBtnGradientFlow 4s ease infinite;
}

@keyframes premiumBtnGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.plan-btn.premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}

/* ===== HOME FOOTER ===== */
.home-footer {
    padding: 60px 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 14, 39, 0.5);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: #6B7280;
    margin-top: 8px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-copyright {
    color: #4B5563;
    font-size: 0.85rem;
}

/* ===== HOME SECTIONS RESPONSIVE ===== */
@media (max-width: 900px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-plan {
        max-width: 100%;
    }
    
    .how-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .how-card {
        max-width: 100%;
    }
    
    .testimonials-slide {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-mini {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .home-about-section,
    .home-cta-section {
        padding: 60px 20px;
    }
    
    .slide-content {
        padding: 30px 20px;
        min-height: 380px;
    }
    
    .slide-intro {
        font-size: 1rem;
    }
    
    .stats-grid-slide {
        gap: 30px;
        padding: 20px 0;
    }
    
    .stat-num {
        font-size: 3rem;
    }
    
    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slideshow-arrows {
        left: -10px;
        right: -10px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-plan {
        padding: 30px 25px;
    }
    
    .how-card-desc {
        font-size: 0.85rem;
    }
}

/* Glow VFX behind editor */
.editor-glow {
    position: absolute;
    width: 400px;
    height: 350px;
    background: radial-gradient(ellipse at center,
            rgba(138, 43, 226, 0.3) 0%,
            rgba(124, 58, 237, 0.15) 40%,
            transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ===== CODE EDITOR PREVIEW ===== */
.code-editor {
    width: 100%;
    max-width: 480px;
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid #313244;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes editorFloat {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-8px) rotateX(0deg) rotateY(0deg);
    }
}

.editor-header {
    background: #181825;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #313244;
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #f38ba8;
}

.dot.yellow {
    background: #f9e2af;
}

.dot.green {
    background: #a6e3a1;
}

.editor-title {
    color: #6c7086;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.editor-content {
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.7;
}

.code-line {
    display: flex;
    align-items: center;
}

.line-num {
    color: #45475a;
    width: 30px;
    text-align: right;
    margin-right: 20px;
    user-select: none;
}

/* Syntax Highlighting */
.keyword {
    color: #cba6f7;
}

.var {
    color: #f5c2e7;
}

.obj {
    color: #89dceb;
}

.prop {
    color: #94e2d5;
}

.func {
    color: #89b4fa;
}

.str {
    color: #a6e3a1;
}

.event {
    color: #fab387;
}

.comment {
    color: #6c7086;
    font-style: italic;
}

.num {
    color: #fab387;
}

.cursor {
    color: #cdd6f4;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ===== LEARNING CARD ILLUSTRATION STYLES ===== */
.learning-card-illustration {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.main-learning-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 0;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    overflow: hidden;
    position: relative;
    animation: cardFloat 5s ease-in-out infinite;
    transform-style: preserve-3d;
}

.main-learning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.lesson-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-dots {
    display: flex;
    gap: 8px;
}

.progress-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.progress-dots .dot.filled {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.card-content {
    padding: 40px 24px;
    text-align: center;
}

.french-word {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(245, 158, 11, 0.3);
}

.phonetic {
    font-size: 1.1rem;
    color: #a78bfa;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 12px;
    opacity: 0.9;
}

.english-meaning {
    font-size: 1.2rem;
    color: #9ca3af;
    font-weight: 500;
}

.audio-wave {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    margin-top: 24px;
}

.audio-wave span {
    width: 4px;
    background: linear-gradient(to top, #f59e0b, #fbbf24);
    border-radius: 2px;
    animation: audioWave 1s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { height: 30px; animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes audioWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.example-sentence {
    padding: 20px 24px;
    background: rgba(139, 92, 246, 0.1);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
}

.example-sentence .quote {
    color: #8b5cf6;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.5;
}

.french-example {
    color: #e9d5ff;
    font-size: 1rem;
    font-style: italic;
    font-weight: 500;
}

/* Floating badges */
.floating-badge {
    position: absolute;
    font-size: 2rem;
    animation: badgeFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.floating-badge.badge-1 {
    top: -15px;
    right: -15px;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    top: 50%;
    left: -25px;
    animation-delay: 0.5s;
}

.floating-badge.badge-3 {
    bottom: 20%;
    right: -20px;
    animation-delay: 1s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Streak badge */
.streak-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #f59e0b;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    animation: streakPulse 2s ease-in-out infinite;
}

.streak-fire {
    font-size: 1.3rem;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.streak-count {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes streakPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 10px 40px rgba(245, 158, 11, 0.5); }
}

/* Responsive for Learning Card */
@media (max-width: 768px) {
    .learning-card-illustration {
        max-width: 320px;
    }
    
    .french-word {
        font-size: 2.2rem;
    }
    
    .card-content {
        padding: 30px 20px;
    }
    
    .floating-badge {
        font-size: 1.5rem;
    }
    
    .floating-badge.badge-2 {
        display: none;
    }
    
    .streak-badge {
        padding: 8px 16px;
    }
}

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 1px solid #333;
    transform: rotateY(-5deg) rotateX(2deg);
    /* Initial tilt */
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    /* Fast transform for mouse follow */
}

.code-window:hover {
    box-shadow: 0 30px 60px rgba(138, 43, 226, 0.2);
}

.code-header {
    background: #252526;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.window-title {
    color: #999;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

.code-content {
    padding: 20px;
    font-family: 'Consolas', 'Monaco', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #d4d4d4;
    background: #1e1e1e;
    overflow-x: auto;
}

.code-block {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    white-space: pre;
    tab-size: 4;
}

.code-line {
    white-space: pre;
}

.indent-1 {
    padding-left: 20px;
}

/* Syntax Highlighting */
.kwd {
    color: #c586c0;
}

/* Keyword: pink */
.var {
    color: #9cdcfe;
}

/* Variable: light blue */
.obj {
    color: #4ec9b0;
}

/* Object/Class: teal */
.prop {
    color: #9cdcfe;
}

/* Property: light blue */
.func {
    color: #dcdcaa;
}

/* Function: yellow */
.str {
    color: #ce9178;
}

/* String: orange */
.num {
    color: #b5cea8;
}

/* Number: light green */
.cmt {
    color: #6a9955;
}

/* Comment: green */

/* Removed float-card styles */

/* SCROLL REVEAL ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.features-grid .feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.features-grid .feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

.features-grid .feature-card:nth-child(5) {
    transition-delay: 0.5s;
}

.features-grid .feature-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* IMMERSIVE MENU STYLES */
.main-nav {
    position: relative;
}

.nav-link {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Glow effect behind nav items */
.nav-glow {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: width 0.2s, height 0.2s;
}

.header:hover .nav-glow {
    width: 150px;
    height: 150px;
}

/* Responsive Adjustments */
@media (max-width: 968px) {
    .home-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .code-window {
        transform: none !important;
        /* Disable tilt on mobile */
        margin-top: 2rem;
    }

    .code-window:hover {
        transform: none;
    }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 40px;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0) 0%, rgba(138, 43, 226, 0.05) 100%);
}

.section-heading {
    font-size: 2.5em;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #8A2BE2;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.2);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.feature-card p {
    color: #B0B0C0;
    line-height: 1.6;
    font-size: 0.95em;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    text-align: center;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.cta-section h2 {
    font-size: 2.2em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1em;
    color: #B0B0C0;
    margin-bottom: 30px;
}

.cta-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #F59E0B 100%);
    color: white;
    border: none;
    padding: 16px 45px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.4);
}

/* ===== ABOUT PAGE ===== */
/* ===== ABOUT PAGE - NEW DESIGN ===== */
#aboutPageContent,
#contactPageContent {
    background: #0A0E27;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    z-index: 50;
}

/* Settings and FAQ pages need higher z-index */
#settingsPage,
#faqPage {
    position: relative;
    z-index: 200;
    background: #0A0E27;
    min-height: 100vh;
}

/* ===== Q&A PAGE - LUXURY ROSE/RED DESIGN ===== */

.faq-page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.faq-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.faq-orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #C41E3A, #8B0000);
    top: -250px;
    left: -150px;
    animation: faqFloatOrb1 10s ease-in-out infinite;
}

.faq-orb-2 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #E8B4B8, #D4A5A5);
    top: -100px;
    right: -100px;
    animation: faqFloatOrb2 12s ease-in-out infinite;
}

.faq-orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #722F37, #4A0E0E);
    bottom: 10%;
    left: 40%;
    animation: faqFloatOrb3 14s ease-in-out infinite;
}

@keyframes faqFloatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.05); }
}

@keyframes faqFloatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.03); }
}

@keyframes faqFloatOrb3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

/* FAQ Hero Section */
.faq-hero-section {
    position: relative;
    padding: 100px 40px 60px;
    text-align: center;
    z-index: 1;
}

.faq-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.faq-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(232, 180, 184, 0.1));
    border: 1px solid rgba(232, 180, 184, 0.3);
    border-radius: 50px;
    color: #E8B4B8;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.faq-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.faq-gradient-text {
    background: linear-gradient(135deg, #E8B4B8, #C41E3A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-main-subtitle {
    font-size: 1.2rem;
    color: #9CA3AF;
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto;
}

/* FAQ Content */
.faq-content-pro {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 60px;
    position: relative;
    z-index: 1;
}

/* FAQ Category */
.faq-category {
    margin-bottom: 50px;
}

.faq-category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #E8B4B8;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid #C41E3A;
}

/* FAQ Items */
.faq-item-pro {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.9), rgba(20, 24, 45, 0.95));
    border: 1px solid rgba(232, 180, 184, 0.1);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item-pro:hover {
    border-color: rgba(232, 180, 184, 0.3);
    box-shadow: 0 8px 32px rgba(196, 30, 58, 0.1);
    transform: translateY(-2px);
}

.faq-question-pro {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
}

.faq-q-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(232, 180, 184, 0.1));
    border-radius: 10px;
    color: #E8B4B8;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faq-q-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.faq-arrow-pro {
    font-size: 1.5rem;
    color: #6B7280;
    transition: all 0.3s ease;
    font-weight: 300;
}

.faq-item-pro.active .faq-arrow-pro {
    transform: rotate(45deg);
    color: #E8B4B8;
}

.faq-answer-pro {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #B0B0C0;
    line-height: 1.7;
    padding: 0 24px;
    border-top: 0px solid rgba(232, 180, 184, 0.1);
}

.faq-item-pro.active .faq-answer-pro {
    max-height: 600px;
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(232, 180, 184, 0.1);
}

.faq-answer-pro p {
    margin-bottom: 10px;
}

.faq-answer-pro p:last-child {
    margin-bottom: 0;
}

/* Discord Link in FAQ */
.faq-discord-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #FFFFFF !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-discord-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* Contact Link Button in FAQ */
.faq-contact-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #C41E3A, #8B0000);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

/* FAQ Footer */
.faq-footer {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.faq-footer-text {
    color: #9CA3AF;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #C41E3A, #8B0000);
    border: none;
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.3);
}

.faq-contact-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.faq-contact-btn:hover .faq-contact-arrow {
    transform: translateX(5px);
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-main-title {
        font-size: 2.2rem;
    }
    
    .faq-hero-section {
        padding: 80px 20px 40px;
    }
    
    .faq-content-pro {
        padding: 0 20px 40px;
    }
    
    .faq-question-pro {
        padding: 18px 18px;
        gap: 12px;
    }
    
    .faq-q-text {
        font-size: 1rem;
    }
    
    .faq-q-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .faq-category-title {
        font-size: 1.2rem;
    }
}

/* ===== CONTACT PAGE - PRO DESIGN ===== */

/* Contact Hero Section */
.contact-hero-section {
    position: relative;
    padding: 120px 40px 80px;
    text-align: center;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.contact-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
}

.contact-orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #8A2BE2, #5B4FCF);
    top: -200px;
    left: -100px;
    animation: floatOrb1 8s ease-in-out infinite;
}

.contact-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF6B35, #FF8C00);
    top: -100px;
    right: -100px;
    animation: floatOrb2 10s ease-in-out infinite;
}

.contact-orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00D4AA, #00B894);
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    animation: floatOrb3 12s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 30px); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.contact-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50px;
    color: #A78BFA;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-gradient-text {
    background: linear-gradient(135deg, #8A2BE2, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-main-subtitle {
    font-size: 1.2rem;
    color: #9CA3AF;
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto;
}

/* Contact Page Background */
.contact-page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Contact Buttons Section */
.contact-buttons-section {
    padding: 20px 40px 60px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px 28px;
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.9), rgba(20, 24, 45, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.contact-btn:hover {
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-btn-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-btn:hover .contact-btn-icon {
    transform: scale(1.1);
}

.contact-btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-btn-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
}

.contact-btn-desc {
    font-size: 0.9rem;
    color: #9CA3AF;
}

.contact-btn-arrow {
    font-size: 1.5rem;
    color: #6B7280;
    transition: all 0.3s ease;
}

.contact-btn:hover .contact-btn-arrow {
    color: #FFFFFF;
    transform: translateX(5px);
}

/* Discord Button */
.discord-btn-contact .contact-btn-icon {
    color: #5865F2;
}

.discord-btn-contact:hover {
    background: linear-gradient(145deg, rgba(88, 101, 242, 0.15), rgba(20, 24, 45, 0.95));
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.15);
}

/* Instagram Button */
.instagram-btn-contact .contact-btn-icon {
    color: #E1306C;
}

.instagram-btn-contact:hover {
    background: linear-gradient(145deg, rgba(225, 48, 108, 0.15), rgba(20, 24, 45, 0.95));
    border-color: rgba(225, 48, 108, 0.3);
    box-shadow: 0 10px 40px rgba(225, 48, 108, 0.15);
}

/* Email Button */
.email-btn-contact .contact-btn-icon {
    color: #FF6B35;
}

.email-btn-contact:hover {
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.15), rgba(20, 24, 45, 0.95));
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.15);
}

/* FAQ Button */
.faq-btn-contact .contact-btn-icon {
    background: rgba(138, 43, 226, 0.15);
}

.faq-btn-contact:hover {
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.15), rgba(20, 24, 45, 0.95));
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.15);
}

/* Email Popup Modal */
.email-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.email-popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.email-popup-content {
    background: linear-gradient(145deg, #1A1F38, #14182D);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.email-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #9CA3AF;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.email-popup-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.email-popup-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-popup-info {
    flex: 1;
}

.email-popup-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.email-address {
    font-size: 1.1rem;
    color: #FF6B35;
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-all;
}

.email-response {
    font-size: 0.9rem;
    color: #9CA3AF;
    margin-bottom: 24px;
}

.email-popup-actions {
    display: flex;
    gap: 12px;
}

.email-copy-btn,
.email-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
    min-width: 140px;
}

.email-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.email-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.email-send-btn {
    background: linear-gradient(135deg, #FF6B35, #FF8C00);
    border: none;
    color: #FFFFFF;
}

.email-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-buttons-section {
        padding: 20px 20px 50px;
    }
    
    .contact-btn {
        padding: 16px 20px;
    }
    
    .contact-btn-icon {
        width: 48px;
        height: 48px;
    }
    
    .email-popup-body {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .email-popup-actions {
        flex-direction: row;
    }
    
    .email-copy-btn,
    .email-send-btn {
        flex: 1;
    }
}

/* Contact Cards Section */
.contact-cards-section {
    padding: 40px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.contact-card-pro {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.8), rgba(20, 24, 45, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.contact-card-pro:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card-pro:hover .contact-card-glow {
    opacity: 1;
}

/* Discord Card Styles */
.discord-card .contact-card-icon {
    color: #5865F2;
}

.discord-card .contact-card-glow {
    background: linear-gradient(90deg, transparent, #5865F2, transparent);
}

.discord-card:hover {
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.2);
}

/* Instagram Card Styles */
.instagram-card .contact-card-icon {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-card .contact-card-icon svg {
    fill: url(#instagram-gradient);
}

.instagram-card .contact-card-glow {
    background: linear-gradient(90deg, transparent, #DD2A7B, transparent);
}

.instagram-card:hover {
    box-shadow: 0 20px 60px rgba(221, 42, 123, 0.2);
}

/* Email Card Styles */
.email-card .contact-card-icon {
    color: #FF6B35;
}

.email-card .contact-card-glow {
    background: linear-gradient(90deg, transparent, #FF6B35, transparent);
}

.email-card:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.contact-card-pro:hover .contact-card-icon {
    transform: scale(1.1);
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.contact-card-desc {
    font-size: 1rem;
    color: #9CA3AF;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #A78BFA;
    transition: all 0.3s ease;
}

.contact-card-action .arrow {
    transition: transform 0.3s ease;
}

.contact-card-pro:hover .contact-card-action .arrow {
    transform: translateX(5px);
}

/* FAQ Section */
.contact-faq-section {
    padding: 0 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-faq-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.6), rgba(20, 24, 45, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-faq-card:hover {
    background: linear-gradient(145deg, rgba(30, 35, 65, 0.8), rgba(25, 29, 55, 0.9));
    border-color: rgba(138, 43, 226, 0.3);
    transform: translateX(5px);
}

.faq-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.faq-content {
    flex: 1;
}

.faq-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.faq-content p {
    font-size: 0.95rem;
    color: #9CA3AF;
    line-height: 1.5;
}

.faq-arrow {
    font-size: 1.5rem;
    color: #8A2BE2;
    transition: transform 0.3s ease;
}

.contact-faq-card:hover .faq-arrow {
    transform: translateX(5px);
}

/* Feature Request Section */
.contact-feature-section {
    padding: 40px 40px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-request-card {
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.1), rgba(255, 107, 53, 0.05));
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-request-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.feature-request-card p {
    font-size: 1.05rem;
    color: #9CA3AF;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #8A2BE2, #6B21A8);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.3);
}

.feature-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.4);
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-hero-section {
        padding: 100px 20px 60px;
    }
    
    .contact-main-title {
        font-size: 2.5rem;
    }
    
    .contact-main-subtitle {
        font-size: 1rem;
    }
    
    .contact-cards-section {
        padding: 30px 20px 50px;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-faq-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .faq-arrow {
        display: none;
    }
    
    .contact-feature-section {
        padding: 30px 20px 60px;
    }
    
    .feature-request-card {
        padding: 35px 25px;
    }
}

/* Contact card link style */
.contact-card-link {
    color: #8A2BE2;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

/* Hero Section */
.about-hero-section {
    position: relative;
    padding: 100px 40px 80px;
    text-align: center;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: float-slow 18s ease-in-out infinite reverse;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.about-badge {
    display: inline-block;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #B388FF;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.about-main-title {
    font-size: 3.5em;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #8A2BE2 0%, #D97706 50%, #B388FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-main-subtitle {
    font-size: 1.25em;
    color: #B0B0C0;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 50px;
}

.about-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.stat-label {
    font-size: 0.95em;
    color: #8A8AA3;
    margin-top: 5px;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(138, 43, 226, 0.5), transparent);
}

/* Team Section */
.about-team-section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-team-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.8) 0%, rgba(19, 24, 47, 0.9) 100%);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.1);
}

.team-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.team-card h3 {
    font-size: 1.3em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-card p {
    font-size: 0.95em;
    color: #9A9AB0;
    line-height: 1.7;
}

/* Contact Section */
.about-contact-section {
    padding: 60px 40px 100px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.1) 0%, rgba(102, 126, 234, 0.08) 100%);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
}

.contact-card h2 {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-card p {
    font-size: 1em;
    color: #9A9AB0;
    margin-bottom: 25px;
}

.contact-link {
    display: inline-block;
    color: #B388FF;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: #8A2BE2;
    transform: translateY(-2px);
}

/* Responsive for Team Section */
@media (max-width: 900px) {
    .about-team-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        padding: 30px 25px;
    }

    .about-team-section {
        padding: 60px 20px;
    }

    .about-contact-section {
        padding: 40px 20px 80px;
    }

    .contact-card {
        padding: 40px 25px;
    }
}

/* ===== HOME PAGE - ABOUT SECTION ===== */
.home-about-section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-section-header {
    margin-bottom: 50px;
}

.about-section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.about-section-title {
    font-size: 2.5em;
    color: var(--color-text-primary);
    font-weight: 800;
    margin-bottom: 15px;
}

.about-section-subtitle {
    font-size: 1.1em;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.about-stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.about-stat-item {
    text-align: center;
}

.about-stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.about-stat-label {
    font-size: 0.9em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.about-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-bg-border);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.1);
}

.about-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 1.2em;
    color: var(--color-text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.about-card p {
    font-size: 0.95em;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Contact Card Link Style */
.contact-card-link {
    display: block;
    margin-top: 15px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9em;
}

@media (max-width: 900px) {
    .home-about-section {
        padding: 60px 20px;
    }
    
    .about-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-stats-row {
        gap: 30px;
    }
    
    .about-section-title {
        font-size: 2em;
    }
}

/* ===== HOME PAGE - FAQ SECTION ===== */
.home-faq-section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-bg-border);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.1);
}

.faq-question {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-question::before {
    content: "❓";
    font-size: 0.9em;
    flex-shrink: 0;
}

.faq-answer {
    font-size: 0.95em;
    color: var(--color-text-muted);
    line-height: 1.6;
    padding-left: 28px;
}

@media (max-width: 900px) {
    .home-faq-section {
        padding: 60px 20px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.about-features-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: #8A2BE2;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-title-main {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.8) 0%, rgba(19, 24, 47, 0.9) 100%);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.15);
}

.feature-card-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.feature-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon-wrap.small {
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 2em;
}

.feature-icon-wrap.small .feature-icon {
    font-size: 1.5em;
}

.feature-card h3 {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1em;
    color: #9A9AB0;
    line-height: 1.7;
}

.feature-highlight {
    margin-top: auto;
    padding-top: 30px;
}

.feature-highlight code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 20px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 1.1em;
    color: #B388FF;
}

/* Path Section */
.about-path-section {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.path-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.path-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.6) 0%, rgba(19, 24, 47, 0.8) 100%);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.path-item:hover {
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateX(10px);
}

.path-item-premium {
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    border-color: rgba(138, 43, 226, 0.3);
}

.path-number {
    font-size: 2em;
    font-weight: 800;
    color: #8A2BE2;
    min-width: 60px;
    line-height: 1;
}

.path-content h4 {
    font-size: 1.3em;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 600;
}

.path-content p {
    font-size: 0.95em;
    color: #9A9AB0;
    line-height: 1.6;
}

.premium-tag {
    display: inline-block;
    background: linear-gradient(135deg, #8A2BE2, #D97706);
    color: white;
    font-size: 0.6em;
    padding: 4px 10px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 10px;
}

.path-connector {
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, #8A2BE2, rgba(138, 43, 226, 0.2));
    margin-left: 58px;
}

/* CTA Section */
.about-cta-section {
    padding: 60px 40px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 24px;
    padding: 60px;
    overflow: hidden;
    position: relative;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 2.2em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1em;
    color: #B0B0C0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(135deg, #8A2BE2 0%, #F59E0B 100%);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.45);
}

.cta-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 35px;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: #8A2BE2;
    background: rgba(138, 43, 226, 0.1);
}

.cta-decoration {
    flex-shrink: 0;
}

.cta-code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 25px 30px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.95em;
    line-height: 1.8;
}

.code-line {
    display: block;
}

.code-keyword {
    color: #C792EA;
}

.code-string {
    color: #C3E88D;
}

.code-number {
    color: #F78C6C;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 80px 20px 60px;
    }

    .about-main-title {
        font-size: 2.2em;
    }

    .about-main-subtitle {
        font-size: 1.05em;
    }

    .about-hero-stats {
        gap: 25px;
    }

    .stat-number {
        font-size: 2em;
    }

    .hero-stat-divider {
        height: 40px;
    }

    .about-features-section,
    .about-path-section,
    .about-cta-section {
        padding: 60px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-large {
        grid-column: span 1;
    }

    .section-title-main {
        font-size: 1.8em;
    }

    .path-item {
        flex-direction: column;
        gap: 15px;
        padding: 25px;
    }

    .path-connector {
        margin-left: 30px;
    }

    .cta-card {
        flex-direction: column;
        padding: 40px 25px;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-decoration {
        display: none;
    }
}

/* ===== PAGE CONTAINER ===== */
.page-container {
    display: block;
}

@media (max-width: 768px) {
    .top-navbar {
        padding: 0 20px;
        height: 70px;
    }

    .navbar-logo {
        font-size: 1.5em;
    }

    .navbar-nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.9em;
    }

    #mainApp {
        padding-top: 70px;
    }

    .home-hero {
        flex-direction: column;
        padding: 50px 20px;
        gap: 40px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-illustration {
        grid-template-columns: 1fr;
    }

    .hero-card-1,
    .hero-card-2,
    .hero-card-3 {
        grid-column: 1;
        grid-row: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        margin-bottom: 40px;
    }

    .about-title {
        font-size: 2em;
    }
}

/* ===== PLAYGROUND TABS ===== */
.playground-tabs {
    display: flex;
    gap: 25px;
    margin: 40px 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.playground-tab {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 400px;
    padding: 40px 30px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #8a2be2 0%, #F59E0B 100%);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-height: 250px;
    justify-content: center;
}

/* Animated shimmer effect for tabs without custom animations - only on hover */
.playground-tab.tab-blue::before,
.playground-tab.tab-cyan::before,
.playground-tab.tab-red::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    transform: translateX(-100%) rotate(45deg);
    pointer-events: none;
}

.playground-tab.tab-blue:hover::before,
.playground-tab.tab-cyan:hover::before,
.playground-tab.tab-red:hover::before {
    animation: tabShimmer 4s ease-in-out infinite;
}

@keyframes tabShimmer {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

/* Remove default shimmer - we'll use custom animations per tab */
.playground-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== FRENCH LESSONS - Falling Rectangles Rain ===== */
.playground-tab.tab-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect x='15' y='10' width='8' height='12' rx='2' fill='rgba(255,255,255,0.15)'/%3E%3Crect x='55' y='50' width='6' height='10' rx='1' fill='rgba(255,255,255,0.12)'/%3E%3Crect x='95' y='25' width='10' height='14' rx='2' fill='rgba(255,255,255,0.18)'/%3E%3Crect x='135' y='70' width='7' height='11' rx='2' fill='rgba(255,255,255,0.14)'/%3E%3Crect x='175' y='40' width='9' height='13' rx='2' fill='rgba(255,255,255,0.16)'/%3E%3Crect x='35' y='90' width='6' height='9' rx='1' fill='rgba(255,255,255,0.13)'/%3E%3Crect x='75' y='120' width='8' height='12' rx='2' fill='rgba(255,255,255,0.15)'/%3E%3Crect x='115' y='150' width='7' height='10' rx='1' fill='rgba(255,255,255,0.12)'/%3E%3Crect x='155' y='110' width='9' height='14' rx='2' fill='rgba(255,255,255,0.17)'/%3E%3Crect x='5' y='160' width='8' height='11' rx='2' fill='rgba(255,255,255,0.14)'/%3E%3Crect x='45' y='180' width='6' height='10' rx='1' fill='rgba(255,255,255,0.11)'/%3E%3Crect x='185' y='130' width='10' height='15' rx='2' fill='rgba(255,255,255,0.16)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playground-tab.tab-purple:hover::before {
    opacity: 1;
    animation: rectFall 8s linear infinite;
}

@keyframes rectFall {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* ===== QUICK TRAINING - Energy Pulse ===== */
.playground-tab.tab-orange::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,200,50,0.4) 0%, rgba(255,150,0,0.2) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}

.playground-tab.tab-orange:hover::before {
    opacity: 1;
    animation: energyPulse 1.5s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { width: 50px; height: 50px; opacity: 0.8; }
    50% { width: 350px; height: 350px; opacity: 0; }
}

/* ===== EXTRA - Rising Potion Bubbles ===== */
.playground-tab.tab-pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='15' cy='20' r='4' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='45' cy='60' r='3' fill='rgba(255,255,255,0.14)'/%3E%3Ccircle cx='75' cy='35' r='5' fill='rgba(255,255,255,0.2)'/%3E%3Ccircle cx='105' cy='80' r='3' fill='rgba(255,255,255,0.16)'/%3E%3Ccircle cx='30' cy='95' r='4' fill='rgba(255,255,255,0.15)'/%3E%3Ccircle cx='60' cy='110' r='3' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='90' cy='50' r='4' fill='rgba(255,255,255,0.17)'/%3E%3Ccircle cx='10' cy='70' r='2' fill='rgba(255,255,255,0.13)'/%3E%3Ccircle cx='110' cy='15' r='3' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playground-tab.tab-pink:hover::before {
    opacity: 1;
    animation: bubblesRise 6s linear infinite;
}

@keyframes bubblesRise {
    0% { background-position: 0 0; }
    100% { background-position: 0 -120px; }
}

/* ===== MINI GAMES - White Floating Squares ===== */
.playground-tab.tab-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Crect x='10' y='20' width='6' height='6' fill='rgba(255,255,255,0.2)'/%3E%3Crect x='40' y='60' width='4' height='4' fill='rgba(255,255,255,0.15)'/%3E%3Crect x='80' y='30' width='5' height='5' fill='rgba(255,255,255,0.18)'/%3E%3Crect x='120' y='80' width='6' height='6' fill='rgba(255,255,255,0.16)'/%3E%3Crect x='25' y='100' width='4' height='4' fill='rgba(255,255,255,0.14)'/%3E%3Crect x='70' y='120' width='5' height='5' fill='rgba(255,255,255,0.17)'/%3E%3Crect x='110' y='40' width='4' height='4' fill='rgba(255,255,255,0.19)'/%3E%3Crect x='140' y='110' width='6' height='6' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playground-tab.tab-green::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect x='15' y='15' width='5' height='5' fill='rgba(255,255,255,0.16)'/%3E%3Crect x='55' y='45' width='4' height='4' fill='rgba(255,255,255,0.2)'/%3E%3Crect x='95' y='25' width='6' height='6' fill='rgba(255,255,255,0.14)'/%3E%3Crect x='35' y='85' width='5' height='5' fill='rgba(255,255,255,0.18)'/%3E%3Crect x='75' y='95' width='4' height='4' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playground-tab.tab-green:hover::before {
    opacity: 1;
    animation: pixelFloat1 3s ease-in-out infinite;
}

.playground-tab.tab-green:hover::after {
    opacity: 1;
    animation: pixelFloat2 4s ease-in-out infinite reverse;
}

@keyframes pixelFloat1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-8px) translateX(5px); }
    50% { transform: translateY(-3px) translateX(-5px); }
    75% { transform: translateY(-10px) translateX(3px); }
}

@keyframes pixelFloat2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(6px) translateX(-4px); }
    50% { transform: translateY(-5px) translateX(6px); }
    75% { transform: translateY(4px) translateX(-3px); }
}

.playground-tab:not(.locked):hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(138, 43, 226, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Smooth opacity transition for hover effect - only background changes */
.playground-tab.tab-purple:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.75) 0%, rgba(109, 40, 217, 0.75) 100%);
    box-shadow: 
        0 15px 40px rgba(124, 58, 237, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(124, 58, 237, 0.4);
}

.playground-tab.tab-blue:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.75) 0%, rgba(2, 132, 199, 0.75) 100%);
    box-shadow: 
        0 15px 40px rgba(14, 165, 233, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(14, 165, 233, 0.4);
}

.playground-tab.tab-orange:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.75) 0%, rgba(217, 119, 6, 0.75) 100%);
    box-shadow: 
        0 15px 40px rgba(245, 158, 11, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(245, 158, 11, 0.4);
}

.playground-tab.tab-red:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.75) 0%, rgba(220, 38, 38, 0.75) 100%);
    box-shadow: 
        0 15px 40px rgba(239, 68, 68, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(239, 68, 68, 0.4);
}

.playground-tab.tab-cyan:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.75) 0%, rgba(8, 145, 178, 0.75) 100%);
    box-shadow: 
        0 15px 40px rgba(6, 182, 212, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(6, 182, 212, 0.4);
}

.playground-tab.tab-pink:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.75) 0%, rgba(219, 39, 119, 0.75) 100%);
    box-shadow: 
        0 15px 40px rgba(236, 72, 153, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(236, 72, 153, 0.4);
}

.playground-tab.tab-green:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.75) 0%, rgba(5, 150, 105, 0.75) 100%);
    box-shadow: 
        0 15px 40px rgba(16, 185, 129, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(16, 185, 129, 0.4);
}

/* Premium sticker for playground tabs */
.premium-sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: #0A0E27;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: premiumGlowIntense 1.5s ease-in-out infinite;
}

/* Premium locked state for tabs */
.playground-tab.premium-locked {
    position: relative;
}

.playground-tab.premium-locked::after {
    content: '🔒';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    z-index: 15;
    opacity: 0.9;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.6);
}

.playground-tab.premium-locked > *:not(.premium-sticker) {
    opacity: 0.5;
}

/* Guest locked state for tabs (not logged in) */
.playground-tab.guest-locked {
    position: relative;
}

.playground-tab.guest-locked::after {
    content: '🔒';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    z-index: 15;
    opacity: 0.9;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.6);
}

.playground-tab.guest-locked > *:not(.login-sticker) {
    opacity: 0.5;
}

/* Login sticker for guest-locked modules */
.login-sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 15px rgba(59, 130, 246, 0.6),
        0 2px 8px rgba(59, 130, 246, 0.4);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: loginGlow 1.5s ease-in-out infinite;
}

@keyframes loginGlow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(59, 130, 246, 0.6),
            0 2px 8px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(59, 130, 246, 0.9),
            0 0 40px rgba(59, 130, 246, 0.6),
            0 2px 12px rgba(59, 130, 246, 0.5);
    }
}

/* Hide premium sticker when guest-locked */
.playground-tab.guest-locked .premium-sticker {
    display: none;
}

/* Premium locked state for mini-games */
.mini-game-card.premium-locked {
    position: relative;
}

.mini-game-card.premium-locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    z-index: 5;
    opacity: 0.9;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.mini-game-card.premium-locked > *:not(.mini-game-premium-badge) {
    opacity: 0.5;
}

/* Keep badge bright */
.mini-game-premium-badge {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background: #FFD700;
    color: #0A0E27;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: premiumGlowIntense 1.5s ease-in-out infinite;
}

/* Multiplayer Mode - Orange Gradient */
.playground-tab.locked {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    opacity: 0.6;
    cursor: pointer;
}

.playground-tab.locked:hover {
    opacity: 0.8;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.tab-icon {
    font-size: 5em;
    display: block;
}

.tab-title {
    font-size: 1.8em;
    font-weight: 600;
}

.tab-desc {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.5;
    max-width: 240px;
}

.playground-mode-content {
    animation: fadeInUp 0.5s ease;
    position: relative;
}

/* Multiplayer Locked State */
.multiplayer-locked {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    min-height: 400px;
    text-align: center;
}

.lock-icon {
    font-size: 5em;
    opacity: 0.6;
}

.multiplayer-locked p {
    font-size: 1.5em;
    color: #B0B0C0;
    font-weight: 500;
}

/* Coming Soon Popup */
.coming-soon-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coming-soon-popup.show {
    opacity: 1;
}

.coming-soon-popup .popup-content {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 2px solid #8A2BE2;
    border-radius: 20px;
    padding: 50px 40px 40px 40px;
    max-width: 500px;
    min-height: 450px;
    text-align: center;
    position: relative;
    animation: popupBounce 0.5s ease;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

@keyframes popupBounce {
    0% {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #B0B0C0;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #8A2BE2;
}

.popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.popup-icon {
    font-size: 5em;
    margin-bottom: 20px;
    display: block;
}

.coming-soon-popup h2 {
    font-size: 2.5em;
    color: #8A2BE2;
    margin-bottom: 20px;
    font-weight: 700;
}

.coming-soon-popup p {
    font-size: 1.1em;
    color: #B0B0C0;
    margin-bottom: 15px;
    line-height: 1.6;
}



/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #B0B0C0;
    padding: 0;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    z-index: 100;
}

.back-button:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8A2BE2;
    color: #8A2BE2;
    transform: translateX(-5px);
}

.lesson-back-btn:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8A2BE2;
    color: #8A2BE2;
    transform: translateY(-50%);
}

/* ===== CHECKOUT LOADING POPUP ===== */
#checkout-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.checkout-loading-popup {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 1px solid #2A2F45;
    border-radius: 16px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.checkout-loading-popup h3 {
    color: #FFFFFF;
    font-size: 1.4em;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.checkout-loading-popup p {
    color: #B0B0C0;
    font-size: 0.95em;
    margin: 0;
}

.checkout-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #2A2F45;
    border-top-color: #8A2BE2;
    border-radius: 50%;
    margin: 0 auto;
    animation: checkoutSpin 1s linear infinite;
}

@keyframes checkoutSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== MINI POPUP (FADE OUT) ===== */
.mini-popup {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.mini-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mini-popup-success {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF;
}

.mini-popup-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
}

.mini-popup-info {
    background: linear-gradient(135deg, #8A2BE2 0%, #7C3AED 100%);
    color: #FFFFFF;
}

/* ===== LEGAL PAGES (Privacy Policy, Terms of Service) ===== */
.legal-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0E27;
    z-index: 200000;
    overflow-y: auto;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.legal-page .back-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s ease;
    z-index: 200001;
    backdrop-filter: blur(10px);
}

.legal-page .back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.legal-page .back-btn:active {
    transform: scale(0.95);
}

.legal-title {
    font-size: 2.2em;
    color: #FFFFFF;
    margin-bottom: 10px;
    text-align: center;
}

.legal-updated {
    text-align: center;
    color: #6A6F85;
    margin-bottom: 40px;
    font-size: 0.9em;
}

.legal-content {
    color: #B0B0C0;
    line-height: 1.8;
}

.legal-content section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #2A2F45;
}

.legal-content section:last-child {
    border-bottom: none;
}

.legal-content h2 {
    color: #FFFFFF;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.legal-content h3 {
    color: #8A2BE2;
    font-size: 1.1em;
    margin: 20px 0 10px;
}

.legal-content p {
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 10px 0 15px 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: #8A2BE2;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border-top: 1px solid #2A2F45;
    padding: 20px;
    z-index: 10002;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    color: #B0B0C0;
    font-size: 0.95em;
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    color: #FFFFFF;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(217, 119, 6, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid #2A2F45;
    color: #B0B0C0;
}

.cookie-btn-decline:hover {
    border-color: #8A2BE2;
    color: #FFFFFF;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PLAYGROUND TABS COLORS ===== */
.playground-tab.tab-purple {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(147, 51, 234, 0.95) 0%, rgba(126, 34, 206, 0.95) 50%, rgba(107, 33, 168, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.playground-tab.tab-blue {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(45, 160, 220, 0.95) 0%, rgba(12, 140, 200, 0.95) 50%, rgba(2, 110, 170, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.playground-tab.tab-orange {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, rgba(234, 88, 12, 0.95) 0%, rgba(220, 70, 10, 0.95) 50%, rgba(180, 50, 5, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

.playground-tab.tab-red {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(220, 85, 85, 0.95) 0%, rgba(200, 55, 55, 0.95) 50%, rgba(170, 30, 30, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.playground-tab.tab-cyan {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(28, 185, 210, 0.95) 0%, rgba(5, 160, 185, 0.95) 50%, rgba(6, 125, 155, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.4);
}

.playground-tab.tab-pink {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(215, 95, 160, 0.95) 0%, rgba(200, 60, 130, 0.95) 50%, rgba(165, 35, 105, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(219, 39, 119, 0.4);
}

.playground-tab.tab-green {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(22, 163, 74, 0.95) 0%, rgba(21, 128, 61, 0.95) 50%, rgba(20, 83, 45, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.playground-tab.tab-gray {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(120, 120, 135, 0.95) 0%, rgba(90, 90, 105, 0.95) 50%, rgba(65, 65, 80, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(100, 100, 120, 0.4);
}

/* ===== PRIVATE LESSONS - Elegant Shine ===== */
.playground-tab.tab-gray::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    pointer-events: none;
}

.playground-tab.tab-gray:hover::before {
    animation: elegantShimmer 2s ease-in-out infinite;
}

@keyframes elegantShimmer {
    0% { left: -50%; }
    100% { left: 150%; }
}

.playground-tab.tab-gray:hover {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(120, 120, 135, 0.7) 0%, rgba(90, 90, 105, 0.7) 50%, rgba(65, 65, 80, 0.7) 100%);
    box-shadow: 
        0 15px 40px rgba(120, 120, 140, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(120, 120, 140, 0.3);
    transform: translateY(-5px);
}

/* ===== PRIVATE LESSONS STYLES ===== */
.private-lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 30px 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 900px) {
    .private-lessons-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
}

.private-lesson-card {
    background: linear-gradient(145deg, rgba(30, 35, 60, 0.9) 0%, rgba(20, 25, 45, 0.95) 100%);
    border: 2px solid rgba(100, 100, 120, 0.3);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
    cursor: pointer;
}

/* ===== ESSENTIAL PACK - Silver Shimmer Animation ===== */
.private-lesson-card.private-lesson-essential {
    border-color: rgba(180, 180, 200, 0.3);
    box-shadow: 0 0 20px rgba(180, 180, 200, 0.1);
}

.private-lesson-card.private-lesson-essential::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, transparent, rgba(200, 200, 220, 0.25), transparent, rgba(200, 200, 220, 0.25));
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.private-lesson-card.private-lesson-essential:hover::before {
    opacity: 1;
    animation: essentialShimmer 3s ease infinite;
}

@keyframes essentialShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.private-lesson-card.private-lesson-essential:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 200, 220, 0.6);
    box-shadow: 
        0 0 35px rgba(180, 180, 200, 0.25),
        0 0 60px rgba(180, 180, 200, 0.1),
        0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ===== INTENSIVE PACK - Gold Shimmer Animation ===== */
.private-lesson-card.private-lesson-popular {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
    overflow: visible;
}

.private-lesson-card.private-lesson-popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent, rgba(255, 180, 0, 0.3));
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.private-lesson-card.private-lesson-popular:hover::before {
    opacity: 1;
    animation: intensiveShimmer 3s ease infinite;
}

@keyframes intensiveShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.private-lesson-card.private-lesson-popular:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(255, 215, 0, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.3);
}

.private-lesson-popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0A0E27;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
}

/* ===== PREMIUM PACK - Cyan Luxurious Animation ===== */
.private-lesson-card.private-lesson-premium {
    border-color: rgba(0, 200, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.15);
    overflow: visible;
}

.private-lesson-card.private-lesson-premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, transparent, rgba(0, 200, 255, 0.3), transparent, rgba(0, 200, 255, 0.3));
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.private-lesson-card.private-lesson-premium:hover::before {
    opacity: 1;
    animation: premiumShimmer 3s ease infinite;
}

.private-lesson-card.private-lesson-premium:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 200, 255, 0.7);
    box-shadow: 
        0 0 40px rgba(0, 200, 255, 0.3),
        0 0 80px rgba(0, 200, 255, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.3);
}

@keyframes premiumShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.private-lesson-lifetime-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: #0A0E27;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
}

.private-lesson-btn.btn-premium {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: #0A0E27;
    transition: all 0.3s ease;
}

.private-lesson-card.private-lesson-premium:hover .private-lesson-btn.btn-premium {
    background: linear-gradient(135deg, #33E0FF 0%, #00BBEE 100%);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.5);
}

/* Lifetime bonus text under buttons */
.private-lesson-lifetime-bonus {
    margin-top: 10px;
    font-size: 0.85em;
    font-weight: 600;
    color: #FFD700;
}

.private-lesson-lifetime-bonus.lifetime-cyan {
    color: #00D4FF;
}

.private-lesson-badge {
    display: inline-block;
    background: rgba(100, 100, 120, 0.3);
    color: #B0B0C0;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.private-lesson-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.private-lesson-title {
    color: #FFFFFF;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.private-lesson-details {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.private-lesson-duration,
.private-lesson-sessions {
    color: #B0B0C0;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 8px;
}

.private-lesson-desc {
    color: #8A8A9A;
    font-size: 0.9em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.private-lesson-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.price-crossed {
    text-decoration: line-through;
    color: #888;
    font-size: 0.6em;
    font-weight: 500;
    margin-right: 8px;
}

.price-crossed-below {
    text-decoration: line-through;
    color: #666;
    font-size: 0.4em;
    font-weight: 400;
    margin-top: 5px;
}

.private-lesson-savings {
    color: #10B981;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
}

.private-lesson-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.private-lesson-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 100, 120, 0.4);
}

.private-lesson-btn.btn-popular {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0A0E27;
}

.private-lesson-btn.btn-popular:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.private-lessons-info {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    background: rgba(30, 35, 60, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(100, 100, 120, 0.2);
}

.private-lessons-info h3 {
    color: #FFFFFF;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.private-lessons-info ul {
    list-style: none;
    padding: 0;
}

.private-lessons-info li {
    color: #B0B0C0;
    padding: 8px 0;
    font-size: 0.95em;
}

/* ===== PRIVATE LESSON POPUP ===== */
.private-lesson-popup-content {
    background: linear-gradient(145deg, rgba(30, 35, 60, 0.98) 0%, rgba(15, 20, 40, 0.98) 100%);
    border: 2px solid rgba(100, 100, 120, 0.4);
    border-radius: 24px;
    padding: 35px 40px;
    max-width: 700px;
    width: 90%;
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
    overflow: hidden;
}

/* Animated background particles */
.private-lesson-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(100, 100, 120, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 100, 120, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.private-lesson-popup-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(100, 100, 120, 0.03), transparent 60%);
    animation: popupRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes popupRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Essential Popup - Silver Theme */
.private-lesson-popup-content.popup-essential {
    border-color: rgba(180, 180, 200, 0.5);
    box-shadow: 
        0 0 60px rgba(180, 180, 200, 0.15),
        0 25px 80px rgba(0, 0, 0, 0.4);
}

.private-lesson-popup-content.popup-essential::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(180, 180, 200, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(180, 180, 200, 0.1) 0%, transparent 50%);
}

.private-lesson-popup-content.popup-essential::after {
    background: conic-gradient(from 0deg, transparent, rgba(180, 180, 200, 0.05), transparent 60%);
}

.private-lesson-popup-content.popup-essential .private-lesson-popup-btn {
    background: linear-gradient(135deg, #8B8BA0 0%, #6B6B80 100%);
}

.private-lesson-popup-content.popup-essential .private-lesson-popup-btn:hover {
    background: linear-gradient(135deg, #A0A0B8 0%, #8080A0 100%);
    box-shadow: 0 10px 40px rgba(180, 180, 200, 0.4);
}

/* Intensive Popup - Gold Theme */
.private-lesson-popup-content.popup-intensive {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.2),
        0 25px 80px rgba(0, 0, 0, 0.4);
}

.private-lesson-popup-content.popup-intensive::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 180, 0, 0.1) 0%, transparent 50%);
}

.private-lesson-popup-content.popup-intensive::after {
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.06), transparent 60%);
}

.private-lesson-popup-content.popup-intensive .private-lesson-popup-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0A0E27;
}

.private-lesson-popup-content.popup-intensive .private-lesson-popup-btn:hover {
    background: linear-gradient(135deg, #FFE44D 0%, #FFB833 100%);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
}

/* Premium Popup - Cyan Luxurious Theme */
.private-lesson-popup-content.popup-premium {
    border-color: rgba(0, 200, 255, 0.5);
    box-shadow: 
        0 0 80px rgba(0, 200, 255, 0.2),
        0 0 120px rgba(0, 200, 255, 0.1),
        0 25px 80px rgba(0, 0, 0, 0.4);
}

.private-lesson-popup-content.popup-premium::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.05) 0%, transparent 70%);
}

.private-lesson-popup-content.popup-premium::after {
    background: conic-gradient(from 0deg, transparent, rgba(0, 200, 255, 0.08), transparent 30%, rgba(0, 150, 255, 0.06), transparent 60%);
    animation: popupRotate 15s linear infinite;
}

.private-lesson-popup-content.popup-premium .private-lesson-popup-btn {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: #0A0E27;
    font-weight: 700;
}

.private-lesson-popup-content.popup-premium .private-lesson-popup-btn:hover {
    background: linear-gradient(135deg, #33E0FF 0%, #00BBEE 100%);
    box-shadow: 
        0 10px 40px rgba(0, 200, 255, 0.5),
        0 0 60px rgba(0, 200, 255, 0.3);
}

.private-lesson-popup-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.private-lesson-popup-left {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.private-lesson-popup-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.private-lesson-popup-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.private-lesson-popup-right h4 {
    color: #FFFFFF;
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 600;
}

.popup-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1;
}

.popup-features-list li {
    color: #B0B0C0;
    padding: 8px 0;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popup-features-list li:last-child {
    border-bottom: none;
}

.private-lesson-popup-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.private-lesson-popup-title {
    color: #FFFFFF;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 12px;
}

.private-lesson-popup-price {
    font-size: 3.5em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.private-lesson-popup-details {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.private-lesson-popup-details span {
    color: #B0B0C0;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
}

.private-lesson-popup-desc {
    color: #9A9AAA;
    font-size: 0.9em;
    line-height: 1.5;
}

.private-lesson-popup-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.private-lesson-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 100, 120, 0.5);
}

/* ===== HOW TO CLAIM SECTION ===== */
.how-to-claim-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.how-to-claim-btn {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: #9CA3AF;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.how-to-claim-btn:hover {
    border-color: #8A2BE2;
    color: #FFFFFF;
    background: rgba(138, 43, 226, 0.1);
}

/* How to Claim Popup */
.how-to-claim-popup-content {
    background: linear-gradient(145deg, #1a1f35, #0d1020);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 550px;
    width: 90%;
    position: relative;
    animation: popupSlideIn 0.3s ease;
}

/* Desktop: show desktop content, hide mobile slideshow */
.claim-desktop-content {
    display: block;
}

.claim-mobile-slideshow {
    display: none;
}

.how-to-claim-title {
    color: #FFFFFF;
    font-size: 1.6em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.how-to-claim-subtitle {
    color: #9CA3AF;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1em;
}

.claim-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.claim-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.claim-step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8A2BE2, #C53080);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    color: #FFFFFF;
    flex-shrink: 0;
}

.claim-step-content h4 {
    color: #FFFFFF;
    font-size: 1em;
    margin-bottom: 5px;
    font-weight: 600;
}

.claim-step-content p {
    color: #9CA3AF;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.claim-step-content strong {
    color: #C084FC;
}

.claim-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 25px;
}

.claim-info-icon {
    font-size: 1.5em;
}

.claim-info-box p {
    color: #D8B4FE;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

.claim-info-box strong {
    color: #FFFFFF;
}

.how-to-claim-close-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8A2BE2, #9333EA);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.how-to-claim-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

/* Mobile responsive for popup */
@media (max-width: 600px) {
    .private-lesson-popup-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .private-lesson-popup-divider {
        width: 100%;
        height: 1px;
    }
    
    .private-lesson-popup-content {
        padding: 25px;
    }
}

/* ===== CODE CHALLENGES STYLES ===== */
.challenges-container {
    padding: 0 20px;
}

.challenges-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.challenge-filter-btn {
    padding: 10px 20px;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    color: #B0B0C0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.challenge-filter-btn:hover {
    border-color: #8A2BE2;
    color: #FFFFFF;
}

.challenge-filter-btn.active {
    background: linear-gradient(135deg, #8A2BE2 0%, #6D28D9 100%);
    border-color: #8A2BE2;
    color: #FFFFFF;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.challenge-card {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 2px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.challenge-card:hover {
    transform: translateY(-5px);
    border-color: #8A2BE2;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.challenge-card.completed {
    border-color: #10B981;
}

.challenge-card.completed::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.challenge-difficulty {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.challenge-difficulty.easy {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.challenge-difficulty.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.challenge-difficulty.hard {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.challenge-points {
    margin-left: auto;
    color: #8A2BE2;
    font-weight: 600;
    font-size: 0.9rem;
}

.challenge-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.challenge-desc {
    color: #B0B0C0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.challenge-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.challenge-tag {
    padding: 4px 10px;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 6px;
    color: #A78BFA;
    font-size: 0.8rem;
}

/* ===== CHALLENGE PLAY SCREEN ===== */
.challenge-play-container {
    display: flex;
    gap: 25px;
    height: calc(100vh - 180px);
    padding: 0 20px 20px;
}

.challenge-play-left {
    width: 40%;
    min-width: 350px;
    max-width: 500px;
}

.challenge-info-panel {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 25px;
    height: 100%;
    overflow-y: auto;
}

.challenge-play-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.challenge-play-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.challenge-play-desc {
    color: #B0B0C0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-section {
    margin-bottom: 20px;
}

.challenge-section h3 {
    color: #06B6D4;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-instructions {
    color: #B0B0C0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.challenge-instructions ul {
    margin: 10px 0;
    padding-left: 20px;
}

.challenge-instructions li {
    margin-bottom: 8px;
}

.challenge-examples {
    background: #0D1117;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.example-item {
    margin-bottom: 15px;
}

.example-item:last-child {
    margin-bottom: 0;
}

.example-label {
    color: #8B949E;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.example-input,
.example-output {
    color: #E6EDF3;
    padding: 5px 0;
}

.example-input span,
.example-output span {
    color: #7EE787;
}

.hint-btn {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #06B6D4;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.hint-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06B6D4;
}

.hint-btn.revealed {
    background: rgba(6, 182, 212, 0.3);
    cursor: default;
}

.hint-content {
    background: rgba(6, 182, 212, 0.1);
    border-left: 3px solid #06B6D4;
    padding: 12px 15px;
    margin-top: 10px;
    border-radius: 0 8px 8px 0;
    color: #B0B0C0;
    font-size: 0.9rem;
}

.challenge-play-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.code-editor-panel {
    flex: 1;
    background: #0D1117;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #161B22;
    border-bottom: 1px solid #30363D;
}

.editor-filename {
    color: #8B949E;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.editor-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #30363D;
    color: #B0B0C0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.editor-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.editor-btn.run-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.editor-btn.run-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.code-editor-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.line-numbers {
    width: 45px;
    background: #0D1117;
    border-right: 1px solid #21262D;
    padding: 15px 10px;
    text-align: right;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #484F58;
    line-height: 1.5;
    user-select: none;
    overflow: hidden;
}

.code-editor-textarea {
    flex: 1;
    background: #0D1117;
    border: none;
    color: #E6EDF3;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 15px;
    resize: none;
    outline: none;
    tab-size: 4;
}

.code-editor-textarea::placeholder {
    color: #484F58;
}

.output-panel {
    background: #0D1117;
    border-radius: 12px;
    overflow: hidden;
    max-height: 150px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #161B22;
    border-bottom: 1px solid #30363D;
    color: #8B949E;
    font-size: 0.9rem;
}

.clear-output-btn {
    background: transparent;
    border: none;
    color: #8B949E;
    cursor: pointer;
    font-size: 0.8rem;
}

.clear-output-btn:hover {
    color: #FFFFFF;
}

.output-content {
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #E6EDF3;
    max-height: 100px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.output-placeholder {
    color: #484F58;
    font-style: italic;
}

.output-error {
    color: #F85149;
}

.output-success {
    color: #7EE787;
}

.test-results-panel {
    background: #0D1117;
    border-radius: 12px;
    overflow: hidden;
}

.test-results-header {
    padding: 10px 15px;
    background: #161B22;
    border-bottom: 1px solid #30363D;
    color: #8B949E;
    font-size: 0.9rem;
}

.test-results-content {
    padding: 15px;
    max-height: 150px;
    overflow-y: auto;
}

.test-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.test-result-item:last-child {
    margin-bottom: 0;
}

.test-result-item.passed {
    border-left: 3px solid #10B981;
}

.test-result-item.failed {
    border-left: 3px solid #EF4444;
}

.test-result-icon {
    font-size: 1.1rem;
}

.test-result-text {
    flex: 1;
    font-size: 0.9rem;
    color: #B0B0C0;
}

.test-result-text strong {
    color: #FFFFFF;
}

.submit-challenge-btn {
    padding: 16px 30px;
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-challenge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.submit-challenge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Challenge Success Modal */
.challenge-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.challenge-success-content {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 2px solid #10B981;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon-big {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 10px;
}

.success-points {
    font-size: 1.2rem;
    color: #F59E0B;
    margin-bottom: 25px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.success-btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn.primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: white;
}

.success-btn.secondary {
    background: transparent;
    border: 2px solid #8A2BE2;
    color: #8A2BE2;
}

.success-btn:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .challenge-play-container {
        flex-direction: column;
        height: auto;
    }

    .challenge-play-left {
        width: 100%;
        max-width: none;
    }

    .challenge-info-panel {
        height: auto;
        max-height: 400px;
    }

    .code-editor-panel {
        min-height: 350px;
    }
}

/* ===== SCRIPT LIBRARY STYLES ===== */
.library-search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.library-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
}

.library-cat-btn {
    padding: 10px 18px;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid rgba(236, 72, 153, 0.3);
    border-radius: 10px;
    color: #B0B0C0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.library-cat-btn:hover {
    border-color: #EC4899;
    color: #FFFFFF;
}

.library-cat-btn.active {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    border-color: #EC4899;
    color: #FFFFFF;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.script-card {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 2px solid rgba(236, 72, 153, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.script-card:hover {
    transform: translateY(-5px);
    border-color: #EC4899;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

.script-card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.script-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.script-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.script-info {
    flex: 1;
}

.script-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.script-category {
    color: #EC4899;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

.script-desc {
    color: #B0B0C0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.script-code-preview {
    background: #0D1117;
    padding: 15px;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.script-code-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #0D1117);
}

.script-code-preview code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    color: #E6EDF3;
    white-space: pre;
    display: block;
}

.script-card-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.script-copy-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.script-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

.script-lines {
    color: #6A6F85;
    font-size: 0.8rem;
}

/* ===== SCRIPT LIBRARY STYLES ===== */

#script-view-screen {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0A0E27;
    z-index: 100;
    overflow-y: auto;
}

#script-view-screen .chapter-header-bar {
    position: sticky;
    top: 0;
    z-index: 10;
}

#script-view-screen .script-tabs {
    position: sticky;
    top: 61px;
    z-index: 9;
    background: #13182F;
}

.script-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #0A0E27;
    border-bottom: 1px solid #2A2F45;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 15px;
}

.script-header .back-button {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
}

.script-view-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
    margin-left: 20px;
}

.copy-script-btn {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-script-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
}

.script-view-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px;
}

.script-description {
    background: #13182F;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    color: #B8BCC8;
    font-size: 1.1rem;
    line-height: 1.6;
}

.script-code-container {
    background: #0D1117;
    border: 1px solid #30363D;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.script-code-header {
    background: #161B22;
    padding: 12px 20px;
    border-bottom: 1px solid #30363D;
    color: #8B949E;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.script-code-block {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #C9D1D9;
    background: transparent;
}

.script-code-block code {
    white-space: pre;
}

.script-usage {
    background: #13182F;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    padding: 25px;
}

.script-usage h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.script-usage p {
    color: #B8BCC8;
    line-height: 1.7;
    font-size: 1rem;
}

/* Script Tabs */
.script-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background: #13182F;
    border-bottom: 1px solid #2A2F45;
    padding: 0 30px;
}

.script-tab {
    background: transparent;
    border: none;
    color: #8A8A9E;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.script-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

.script-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.script-tab.active {
    color: #EC4899;
}

.script-tab.active::after {
    background: linear-gradient(90deg, #EC4899, #DB2777);
}

.script-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Guide Content Styles */
/* Script Only Content */
.script-only-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.script-code-container.full-width {
    width: 100%;
}

/* Guide Container */
.guide-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Guide Hero - Description */
.guide-hero {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 1px solid #2A2F45;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.guide-hero-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-hero-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.guide-hero-content p {
    color: #B8BCC8;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Guide Steps Grid - 2x2 */
.guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.guide-card {
    background: #13182F;
    border: 1px solid #2A2F45;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-card:hover {
    border-color: #EC4899;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.15);
}

.guide-card-header {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(219, 39, 119, 0.05) 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #2A2F45;
}

.guide-card-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.guide-card-header h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.guide-card-body {
    padding: 20px;
    color: #B8BCC8;
    line-height: 1.7;
    font-size: 0.95rem;
}

.guide-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-card-body li {
    padding: 8px 0;
    padding-left: 22px;
    position: relative;
}

.guide-card-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #EC4899;
    font-weight: 600;
}

/* Guide Steps List (for Where to Place section) */
.guide-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-mini-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.guide-mini-step .step-num {
    color: #EC4899;
    font-weight: 700;
    min-width: 20px;
}

@media (max-width: 768px) {
    .guide-steps-grid {
        grid-template-columns: 1fr;
    }

    .guide-hero {
        flex-direction: column;
        text-align: center;
    }
}

.guide-step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.guide-step-content {
    flex: 1;
}

.guide-step-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-step-content p {
    color: #B8BCC8;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.guide-step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-step-content li {
    color: #B8BCC8;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.guide-step-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #EC4899;
}

.guide-code-inline {
    background: #1E2340;
    color: #F472B6;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.guide-path {
    background: #1E293B;
    color: #38BDF8;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

/* ===== SPEED TRAINING STYLES ===== */
#speed-training-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0A0E27 !important;
    z-index: 999 !important;
    overflow-y: auto;
}

#speed-training-content .back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

/* ===== TRANSLATION CHALLENGE STYLES ===== */

/* Lobby */
.translation-lobby {
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 20px;
}

.translation-lobby-card {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #F59E0B;
    border-radius: 24px;
    padding: 45px 50px;
    text-align: center;
    max-width: 450px;
    width: 95%;
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.2);
}

.translation-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.translation-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

/* Quick Training Title - Clickable */
.quick-training-title {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid transparent;
}

.quick-training-title:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #F59E0B;
    transform: scale(1.02);
}

.quick-training-title .title-text {
    color: #FFFFFF;
}

.quick-training-title .title-switch-icon {
    font-size: 0.7em;
    color: #F59E0B;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.quick-training-title:hover .title-switch-icon {
    opacity: 1;
    transform: scale(1.2);
}

/* Mode Transition Flash Effect - Contained in card */
.translation-lobby-card {
    position: relative;
    overflow: hidden;
}

.mode-transition-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 158, 11, 0.95);
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    border-radius: inherit;
}

.mode-transition-flash.active {
    animation: flashFillIn 0.5s ease-out forwards;
}

.mode-transition-flash.active.fade-out {
    animation: flashFadeOut 1.3s ease-out forwards;
}

@keyframes flashFillIn {
    0% { 
        opacity: 0;
    }
    100% { 
        opacity: 1;
    }
}

@keyframes flashFadeOut {
    0% { 
        opacity: 1;
    }
    100% { 
        opacity: 0;
    }
}

/* Quick Training Mode Options */
.quick-training-mode-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.quick-mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid #3A3F55;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-mode-option:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.quick-mode-option.active {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.quick-mode-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.quick-mode-name {
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 4px;
}

.quick-mode-desc {
    color: #B0B0C0;
    font-size: 0.85em;
}

.translation-desc {
    color: #B0B0C0;
    font-size: 1em;
    margin-bottom: 25px;
}

/* Settings Row */
.settings-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.setting-dropdown {
    position: relative;
}

.dropdown-btn {
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid #3A3F55;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 120px;
}

.dropdown-btn:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.dropdown-icon {
    font-size: 1em;
    flex-shrink: 0;
}

.dropdown-text {
    color: #FFFFFF;
    font-size: 0.85em;
    font-weight: 600;
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    color: #8A8A9E;
    font-size: 0.6em;
    transition: transform 0.2s;
    flex-shrink: 0;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #F59E0B;
    border-radius: 20px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.popup-content.popup-small {
    max-width: 320px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-header h3 {
    color: #FFFFFF;
    font-size: 1.3em;
    margin: 0;
}

.popup-close {
    background: transparent;
    border: 1px solid #3A3F55;
    color: #8A8A9E;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-close:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* Popup Grid (Categories) */
.popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Verb List Grid (Multi-select) */
.verb-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.verb-list-option {
    background: rgba(26, 31, 56, 0.6);
    border: 2px solid #2A2F45;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verb-list-option:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.verb-list-option.selected {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
}

.verb-list-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #4A5568;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.verb-list-option.selected .verb-list-checkbox {
    background: #F59E0B;
    border-color: #F59E0B;
}

.verb-list-option.selected .verb-list-checkbox::after {
    content: '✓';
    color: #0F1419;
    font-size: 14px;
    font-weight: bold;
}

.verb-list-info {
    flex: 1;
    min-width: 0;
}

.verb-list-name {
    color: #FFFFFF;
    font-size: 0.95em;
    font-weight: 600;
    display: block;
}

.verb-list-option.selected .verb-list-name {
    color: #F59E0B;
}

.verb-list-preview {
    color: #9CA3AF;
    font-size: 0.75em;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.popup-action-btn {
    flex: 1;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid #4A5568;
    border-radius: 8px;
    padding: 10px;
    color: #9CA3AF;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-action-btn:hover {
    border-color: #F59E0B;
    color: #F59E0B;
}

/* Wide popup for selection */
.popup-content.popup-wide {
    max-width: 450px;
    width: 95%;
}

.popup-option {
    background: rgba(26, 31, 56, 0.6);
    border: 2px solid #2A2F45;
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-option:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.popup-option.selected {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
}

.opt-icon {
    font-size: 1.3em;
}

.opt-name {
    color: #FFFFFF;
    font-size: 0.9em;
    font-weight: 600;
}

.popup-option.selected .opt-name {
    color: #F59E0B;
}

/* ========== Vocabulary Search Bar ========== */
.vocab-search-container {
    margin-bottom: 12px;
}

.vocab-search-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid #2A2F45;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.vocab-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.vocab-search-input:focus {
    border-color: #F59E0B;
}

/* ========== Vocabulary Category Selection ========== */
.vocab-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.vocab-category-option {
    background: rgba(26, 31, 56, 0.6);
    border: 2px solid #2A2F45;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.vocab-category-option:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.vocab-category-option.selected {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
}

.vocab-category-option .opt-icon {
    font-size: 1.1em;
}

.vocab-category-option .opt-name {
    color: #FFFFFF;
    font-size: 0.8em;
    font-weight: 600;
    flex: 1;
}

.vocab-category-option .opt-count {
    color: rgba(255,255,255,0.5);
    font-size: 0.7em;
}

.vocab-category-option.selected .opt-name {
    color: #F59E0B;
}

.vocab-category-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.popup-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
}

.popup-confirm-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-confirm-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* ===== WORD PREVIEW POPUP ===== */
.word-preview-overlay {
    z-index: 2100;
}

.word-preview-overlay.fade-in {
    animation: overlayFadeIn 0.3s ease-out forwards;
}

.word-preview-overlay.fade-in .word-preview-content {
    animation: popupSlideUp 0.4s ease-out forwards;
}

.word-preview-overlay.fade-in .word-preview-item {
    opacity: 0;
    animation: wordItemFadeIn 0.3s ease-out forwards;
}

@keyframes overlayFadeIn {
    from {
        background: rgba(0, 0, 0, 0);
    }
    to {
        background: rgba(0, 0, 0, 0.7);
    }
}

@keyframes popupSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wordItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.word-preview-content {
    max-height: 80vh;
}

.word-preview-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 15px;
    background: rgba(15, 17, 35, 0.5);
    border-radius: 12px;
    margin-bottom: 15px;
}

.word-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(30, 35, 60, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(100, 100, 120, 0.2);
}

.word-preview-en {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9em;
}

.word-preview-fr {
    color: #F59E0B;
    font-weight: 500;
    font-size: 0.9em;
}

.show-words-btn {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
}

.show-words-btn:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
}

@media (max-width: 550px) {
    .word-preview-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    .vocab-selection-container {
        flex-direction: column;
    }
    
    .vocab-category-grid {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
    
    .vocab-preview-column {
        max-height: 150px;
    }
    
    .vocab-preview-content {
        max-height: 100px;
    }
}

/* Timer Options */
.timer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timer-option {
    background: rgba(26, 31, 56, 0.6);
    border: 2px solid #2A2F45;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-option:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.timer-option.selected {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
}

.timer-icon {
    font-size: 1.2em;
}

.timer-text {
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 600;
}

.timer-option.selected .timer-text {
    color: #F59E0B;
}

/* Game Timer Display */
.game-timer {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #EF4444;
    border-radius: 12px;
    padding: 8px 16px;
    min-width: 60px;
    text-align: center;
}

.timer-num {
    font-size: 1.4em;
    font-weight: 800;
    color: #EF4444;
}

.game-timer.warning {
    animation: timerPulse 0.5s ease infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.translation-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: #F59E0B;
}

.stat-label {
    color: #8A8A9E;
    font-size: 0.85em;
}

.translation-start-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    border-radius: 14px;
    padding: 16px 50px;
    font-size: 1.1em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.translation-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

/* Game Screen */
.translation-game {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.translation-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.streak-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1A1F38;
    padding: 10px 20px;
    border-radius: 30px;
}

.streak-fire {
    font-size: 1.3em;
}

.streak-num {
    font-size: 1.5em;
    font-weight: 800;
    color: #F59E0B;
}

.quit-btn {
    background: transparent;
    border: 1px solid #3A3F55;
    color: #8A8A9E;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s;
}

.quit-btn:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* Translation Card */
.translation-card {
    background: linear-gradient(135deg, #1A1F38 0%, #13182F 100%);
    border: 2px solid #2A2F45;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.word-label {
    color: #8A8A9E;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.english-word {
    font-size: 2.5em;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 35px;
}

.translation-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.2em;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid #3A3F55;
    border-radius: 14px;
    color: #FFFFFF;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 20px;
}

.translation-input:focus {
    border-color: #F59E0B;
}

.translation-input::placeholder {
    color: #6A6A8E;
}

.feedback-message {
    font-size: 1.1em;
    font-weight: 600;
    min-height: 30px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.feedback-message.correct {
    color: #34C759;
    animation: pulseIn 0.4s ease-out;
}

.feedback-message.incorrect {
    color: #EF4444;
    animation: shakeIn 0.5s ease-out;
}

@keyframes pulseIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shakeIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    20% {
        transform: translateX(10px);
    }
    40% {
        transform: translateX(-8px);
    }
    60% {
        transform: translateX(5px);
    }
    80% {
        transform: translateX(-3px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.check-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 40px;
    font-size: 1em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.check-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Correction Display */
.correction-display {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #EF4444;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideInFade 0.4s ease-out;
}

.correction-label {
    color: #EF4444;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.correction-word {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
}

/* Restart/Continue Container */
.restart-continue-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    animation: slideUpFade 0.4s ease-out 0.15s both;
}

/* Animation keyframes for wrong answer UI */
@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Speed Training Restart Button */
.speed-restart-btn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    flex: 1;
}

.speed-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

/* Speed Training Continue Button */
.speed-continue-btn {
    background: linear-gradient(135deg, #34C759 0%, #2DA44E 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speed-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 199, 89, 0.4);
}

/* Training Complete Popup */
.training-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.training-complete-popup {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #34C759;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: popIn 0.3s ease;
}

.training-complete-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.training-complete-popup h2 {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.training-complete-popup p {
    color: #A0AEC0;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.training-complete-btn {
    background: linear-gradient(135deg, #34C759 0%, #2DA44E 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 40px;
    font-size: 1.1em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
}

.training-complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 199, 89, 0.4);
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Presentation Mode Toggle */
.presentation-mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
}

.presentation-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #8A8A9E;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.presentation-mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.presentation-mode-btn.active {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.presentation-mode-btn .mode-icon {
    font-size: 1.1em;
}

.presentation-mode-btn .mode-label {
    font-weight: 600;
}

/* Flashcards Game Screen */
.flashcards-game {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.flashcards-game.fade-in .flashcards-header {
    animation: flashcardFadeSlideDown 0.4s ease-out forwards;
}

.flashcards-game.fade-in .flashcard-container {
    animation: flashcardFadeSlideUp 0.5s ease-out 0.1s forwards;
    opacity: 0;
}

.flashcards-game.fade-in .flashcard-actions {
    animation: flashcardFadeSlideUp 0.5s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes flashcardFadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flashcardFadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flashcards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.flashcards-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flashcards-progress {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: #FFFFFF;
    font-weight: 600;
}

.flashcard-live-stats {
    display: flex;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
}

.flashcard-live-stats .live-correct {
    color: #34C759;
}

.flashcard-live-stats .live-wrong {
    color: #EF4444;
}

/* Flashcard Container */
.flashcard-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 30px;
    position: relative;
}

/* Stack cards (background cards for pile effect) */
.flashcard-stack-card {
    position: absolute;
    width: 100%;
    max-width: 350px;
    height: 250px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #3B4D71;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.flashcard-stack-card.stack-2 {
    transform: translateY(8px) scale(0.96);
    z-index: 1;
    opacity: 0.7;
}

.flashcard-stack-card.stack-3 {
    transform: translateY(12px) scale(0.94);
    z-index: 0;
    opacity: 0.4;
}

.flashcard-stack-card.hidden {
    display: none;
}

/* Next card (real card behind current) */
.flashcard.next-card {
    position: absolute;
    transform: translateY(6px) scale(0.97);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.3s ease-out, opacity 0.15s ease;
    opacity: 0;
}

.flashcard.next-card .flashcard-inner {
    transition: none !important;
    transform: none !important;
}

.flashcard.next-card .flashcard-back {
    display: none !important;
}

.flashcard.next-card.hidden {
    display: none;
}

/* When main card is swiping, next card moves up and becomes visible */
.flashcard.next-card.promoting {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.flashcard {
    width: 100%;
    max-width: 350px;
    height: 250px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.flashcard-front {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #3B4D71;
}

.flashcard-back {
    background: linear-gradient(135deg, #2D3A5C 0%, #1A2540 100%);
    border: 2px solid #6366F1;
    transform: rotateY(180deg);
}

.flashcard-content {
    font-size: 2em;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    word-break: break-word;
}

.flashcard-prompt {
    font-size: 0.9em;
    color: #6366F1;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flashcard-hint {
    position: absolute;
    bottom: 20px;
    color: #6B7280;
    font-size: 0.85em;
}

.flashcard.flipped .flashcard-hint {
    display: none;
}

/* Flashcard Action Buttons */
.flashcard-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-bottom: 20px;
}

.flashcard-btn {
    flex: 1;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flashcard-btn.wrong {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.flashcard-btn.wrong:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.flashcard-btn.correct {
    background: linear-gradient(135deg, #34C759 0%, #2DA44E 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.3);
}

.flashcard-btn.correct:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(52, 199, 89, 0.4);
}

.flashcard-btn .btn-icon {
    font-size: 1.5em;
}

.flashcard-btn .btn-text {
    font-size: 0.9em;
}

/* Flashcard Animations */
.flashcard.swipe-right {
    animation: swipeRight 0.5s ease-out forwards;
}

.flashcard.swipe-right .flashcard-front,
.flashcard.swipe-right .flashcard-back {
    border-color: #34C759 !important;
    box-shadow: 0 0 30px rgba(52, 199, 89, 0.5);
}

.flashcard.swipe-left {
    animation: swipeLeft 0.4s ease-out forwards;
}

.flashcard.swipe-left .flashcard-front,
.flashcard.swipe-left .flashcard-back {
    border-color: #EF4444 !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

@keyframes swipeRight {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(150%) rotate(20deg);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-150%) rotate(-20deg);
        opacity: 0;
    }
}

/* Flashcards Results Dashboard */
.flashcards-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    min-height: 100%;
}

.flashcards-results-header h2 {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-align: center;
}

.flashcards-charts {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.flashcard-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flashcard-chart {
    position: relative;
    width: 140px;
    height: 140px;
}

.flashcard-chart .progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.flashcard-chart .progress-ring-bg {
    fill: none;
    stroke: #DC2626;
    stroke-width: 10;
}

.flashcard-chart .progress-ring-correct {
    fill: none;
    stroke: #34C759;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.8s ease-out;
}

.flashcard-chart .progress-ring-wrong {
    fill: none;
    stroke: #EF4444;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.8s ease-out;
}

.chart-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    font-weight: 700;
    color: #FFFFFF;
}

.chart-label {
    font-size: 1em;
    color: #A0AEC0;
    font-weight: 600;
}

.chart-stats {
    display: flex;
    gap: 20px;
    font-size: 1.1em;
    font-weight: 600;
}

.chart-stats .stat-correct {
    color: #34C759;
}

.chart-stats .stat-wrong {
    color: #EF4444;
}

.flashcards-results-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 350px;
}

.flashcard-restart-btn,
.flashcard-continue-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flashcard-restart-btn {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: white;
}

.flashcard-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.flashcard-continue-btn {
    background: linear-gradient(135deg, #34C759, #22C55E);
    color: white;
}

.flashcard-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4);
}

.flashcard-continue-btn:disabled {
    background: #4A5568;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Premium lock for flashcards */
.presentation-mode-btn.premium-locked {
    position: relative;
}

.presentation-mode-btn.premium-locked::after {
    content: '👑';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.9em;
    z-index: 5;
}

.progress-info {
    text-align: center;
    color: #8A8A9E;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Results Screen */
.translation-results {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-card {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #F59E0B;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    width: 100%;
}

.results-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.results-card h2 {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.result-item {
    text-align: center;
}

.result-num {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: #F59E0B;
}

.result-label {
    color: #8A8A9E;
    font-size: 0.9em;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.play-again-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 40px;
    font-size: 1em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-again-btn:hover {
    transform: translateY(-2px);
}

.back-btn {
    background: transparent;
    border: 2px solid #3A3F55;
    border-radius: 12px;
    padding: 12px 40px;
    font-size: 1em;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: #8A8A9E;
}

/* Responsive */
@media (max-width: 600px) {
    .translation-lobby-card {
        padding: 30px 20px;
    }
    
    .settings-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .dropdown-btn {
        width: 100%;
        justify-content: center;
    }
    
    .popup-grid {
        grid-template-columns: 1fr;
    }
    
    .english-word {
        font-size: 2em;
    }
    
    .translation-card {
        padding: 30px 20px;
    }
}

/* ===== USERNAME SETUP MODAL ===== */
.username-setup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.username-setup-modal {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #D97706;
    border-radius: 24px;
    padding: 50px 60px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.username-setup-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.username-setup-title {
    color: #FFFFFF;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.username-setup-subtitle {
    color: #B0B0C0;
    font-size: 1em;
    margin-bottom: 30px;
}

.username-input-container {
    margin-bottom: 30px;
}

.username-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1em;
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid #2A2F45;
    border-radius: 12px;
    color: #FFFFFF;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.username-input:focus {
    border-color: #D97706;
}

.username-input::placeholder {
    color: #6A6A8E;
}

.username-hint {
    color: #8A8A9E;
    font-size: 0.85em;
    margin-top: 10px;
}

.username-error {
    color: #EF4444;
    font-size: 0.9em;
    margin-top: 10px;
}

.username-submit-btn {
    background: linear-gradient(135deg, #D97706 0%, #78350F 100%);
    border: none;
    border-radius: 14px;
    padding: 16px 50px;
    font-size: 1.1em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.username-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.username-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== MINI GAMES STYLES ===== */
.mini-games-selection {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.mini-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mini-game-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.3) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Premium mini-game cards - yellow style */
.mini-game-card.mini-game-premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.3) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.mini-game-card.mini-game-premium:hover:not(.locked) {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Bubble effect on all mini-game cards */
.mini-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='15' cy='20' r='4' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='45' cy='60' r='3' fill='rgba(255,255,255,0.14)'/%3E%3Ccircle cx='75' cy='35' r='5' fill='rgba(255,255,255,0.2)'/%3E%3Ccircle cx='105' cy='80' r='3' fill='rgba(255,255,255,0.16)'/%3E%3Ccircle cx='30' cy='95' r='4' fill='rgba(255,255,255,0.15)'/%3E%3Ccircle cx='60' cy='110' r='3' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='90' cy='50' r='4' fill='rgba(255,255,255,0.17)'/%3E%3Ccircle cx='10' cy='70' r='2' fill='rgba(255,255,255,0.13)'/%3E%3Ccircle cx='110' cy='15' r='3' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.mini-game-card:hover::before {
    opacity: 1;
    animation: bubblesRise 6s linear infinite;
}

.mini-game-card > * {
    position: relative;
    z-index: 1;
}

.mini-game-card:hover:not(.locked) {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.mini-game-card.locked {
    opacity: 0.6;
    cursor: default;
}

.mini-game-icon {
    font-size: 3em;
}

.mini-game-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #FFFFFF;
}

.mini-game-desc {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.mini-game-soon {
    font-size: 0.7em;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    margin-top: 5px;
}

.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(245, 158, 11, 0.8);
    color: #000;
    font-size: 0.7em;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
}

/* ===== MEMORY GAME STYLES ===== */
.memory-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
    width: 100%;
}

.memory-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(16, 185, 129, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Yellow flash for premium mini game lobbies */
.hangman-lobby-card .mode-transition-flash,
.wordrace-lobby-card .mode-transition-flash,
.wordbomb-lobby-card .mode-transition-flash,
.slam-lobby-card .mode-transition-flash {
    background: rgba(245, 158, 11, 0.95);
}

/* Green flash for free mini game lobby */
.memory-lobby-card .mode-transition-flash {
    background: rgba(16, 185, 129, 0.95);
}

.memory-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.memory-title {
    font-size: 2em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.memory-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.memory-settings {
    margin-bottom: 25px;
}

.memory-setting-group {
    margin-bottom: 20px;
}

.memory-setting-group label {
    display: block;
    color: #F59E0B;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.memory-category-buttons,
.memory-difficulty-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.memory-category-btn,
.memory-difficulty-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 14px;
    color: #FFFFFF;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-category-btn:hover,
.memory-difficulty-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.memory-category-btn.active,
.memory-difficulty-btn.active {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10B981;
    color: #10B981;
}

.memory-best-score {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.best-label {
    color: #F59E0B;
    font-weight: 600;
}

#memoryBestScore {
    color: #FFFFFF;
}

.memory-start-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    border-radius: 14px;
    padding: 16px 60px;
    font-size: 1.2em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    margin-bottom: 15px;
    width: 100%;
}

.memory-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.memory-back-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-back-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

/* Memory Game Play Area */
.memory-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(26, 31, 56, 0.8);
    border-radius: 16px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.memory-quit-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    padding: 8px 16px;
    color: #EF4444;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-quit-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.memory-stats {
    display: flex;
    gap: 25px;
}

.memory-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.2em;
}

/* Memory Cards Grid */
.memory-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card.matched {
    animation: matchPulse 0.5s ease;
}

/* Correct match - green border */
.memory-card.correct .memory-card-back {
    border-color: #10B981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

/* Wrong match - red border */
.memory-card.wrong .memory-card-back {
    border-color: #EF4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

@keyframes matchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.memory-card-front {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(5, 150, 105, 0.4) 100%);
    border: 2px solid rgba(16, 185, 129, 0.5);
}

.memory-card-icon {
    font-size: 2.5em;
}

.memory-card-back {
    transform: rotateY(180deg);
    border: 2px solid;
}

.memory-card-back.french {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(37, 99, 235, 0.5) 100%);
    border-color: rgba(59, 130, 246, 0.6);
}

.memory-card-back.emoji {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.5) 0%, rgba(217, 119, 6, 0.5) 100%);
    border-color: rgba(245, 158, 11, 0.6);
}

.memory-card-text.emoji-text {
    font-size: 2.5em;
}

.memory-card-text {
    font-size: 1em;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    word-break: break-word;
}

.memory-card-lang {
    font-size: 1.2em;
    margin-top: 5px;
}

.memory-card.matched .memory-card-front,
.memory-card.matched .memory-card-back {
    opacity: 0.5;
}

/* Memory Win Popup */
.memory-win-popup {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.win-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.memory-win-popup h2 {
    color: #10B981;
    font-size: 2em;
    margin-bottom: 10px;
}

.memory-win-popup p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.win-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.win-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.win-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.win-stat-value {
    color: #F59E0B;
    font-size: 2em;
    font-weight: 700;
}

.new-best-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: inline-block;
    animation: bestPulse 1s ease infinite;
}

@keyframes bestPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.win-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.win-btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.win-btn.play-again {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: #FFFFFF;
}

.win-btn.play-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.win-btn.back-lobby {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.win-btn.back-lobby:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

/* Responsive for Memory Game */
@media (max-width: 600px) {
    .memory-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .memory-card-text {
        font-size: 0.8em;
    }
    
    .memory-stats {
        gap: 15px;
    }
    
    .memory-stat {
        font-size: 0.9em;
    }
    
    .memory-lobby-card {
        padding: 25px;
    }
    
    .memory-category-btn,
    .memory-difficulty-btn {
        padding: 6px 10px;
        font-size: 0.75em;
    }
}

/* ===== HANGMAN GAME STYLES ===== */
.hangman-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
    width: 100%;
}

.hangman-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(245, 158, 11, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hangman-back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hangman-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.hangman-lobby-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.hangman-lobby-title {
    color: #FFFFFF;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hangman-lobby-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    margin-bottom: 25px;
}

.hangman-stats-display {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.hangman-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hangman-stat-value {
    color: #F59E0B;
    font-size: 1.8em;
    font-weight: 700;
}

.hangman-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

.hangman-start-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 40px;
    border-radius: 16px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.hangman-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.hangman-marathon-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin-top: 12px;
    font-style: italic;
}

/* Marathon mode styles */
.hangman-marathon-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.marathon-level {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.marathon-score {
    color: #F59E0B;
    font-weight: 700;
    font-size: 1em;
}

.marathon-difficulty {
    font-weight: 600;
    font-size: 0.85em;
}

.marathon-score-display {
    margin: 20px 0;
    text-align: center;
}

.score-big {
    font-size: 3.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.score-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
    margin-top: 5px;
}

.new-record {
    color: #10B981;
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 10px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hangman Game Area */
.hangman-game {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.hangman-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hangman-streak {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
}

.hangman-hint {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    text-align: center;
}

.hint-label {
    color: #10B981;
    font-weight: 600;
}

.hangman-figure-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.hangman-svg {
    width: 180px;
    height: 220px;
}

.hangman-part {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hangman-word {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.word-letter {
    font-size: 2em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    min-width: 35px;
    text-align: center;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.word-letter.revealed {
    color: #10B981;
    border-bottom-color: #10B981;
    animation: letterReveal 0.4s ease;
}

@keyframes letterReveal {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.hangman-keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.keyboard-key {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    width: 36px;
    height: 42px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyboard-key:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.keyboard-key.correct {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-color: #10B981;
    color: #FFFFFF;
}

.keyboard-key.wrong {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: rgba(255, 255, 255, 0.4);
}

.keyboard-key.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.hangman-remaining {
    text-align: center;
    margin-top: 15px;
}

.remaining-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin-right: 10px;
}

.remaining-hearts {
    font-size: 1.3em;
    letter-spacing: 3px;
}

/* Hangman Result Screen */
.hangman-result {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

/* Hangman Toast Notification */
.hangman-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.98), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(16, 185, 129, 0.6);
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.2);
}

.hangman-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-title {
    font-size: 2.5em;
    font-weight: 800;
    color: #10B981;
    margin-bottom: 5px;
}

.toast-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

.hangman-result-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(16, 185, 129, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hangman-result-card.lose {
    border-color: rgba(239, 68, 68, 0.4);
}

.result-emoji {
    font-size: 4em;
    margin-bottom: 15px;
}

.result-title {
    color: #FFFFFF;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.result-word {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.result-word strong {
    color: #10B981;
}

.result-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
    margin-bottom: 25px;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.result-stat-value {
    color: #10B981;
    font-size: 2em;
    font-weight: 700;
}

.result-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hangman-btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hangman-btn.primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: #FFFFFF;
}

.hangman-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.hangman-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.hangman-btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

/* Responsive for Hangman */
@media (max-width: 500px) {
    .hangman-word {
        gap: 6px;
    }
    
    .word-letter {
        font-size: 1.5em;
        min-width: 28px;
    }
    
    .keyboard-key {
        width: 30px;
        height: 38px;
        font-size: 0.9em;
    }
    
    .keyboard-row {
        gap: 4px;
    }
    
    .hangman-svg {
        width: 150px;
        height: 185px;
    }
    
    .hangman-lobby-card,
    .hangman-result-card {
        padding: 25px;
    }
}

/* ===== WORD RACE GAME STYLES - VS BOT MODE ===== */
.wordrace-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
    width: 100%;
}

.wordrace-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(245, 158, 11, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.wordrace-lobby-card .mode-transition-flash {
    background: rgba(245, 158, 11, 0.95);
}

.wordrace-lobby-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.wordrace-lobby-title {
    color: #FFFFFF;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.wordrace-lobby-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.wordrace-stats-display {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.wordrace-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wordrace-stat-value {
    color: #F59E0B;
    font-size: 1.8em;
    font-weight: 700;
}

.wordrace-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

/* Level Bubble Button */
.wordrace-level-bubble {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.wordrace-level-bubble:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.level-bubble-emoji {
    font-size: 2.5em;
}

.level-bubble-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.level-bubble-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
}

.level-bubble-name {
    color: #FFFFFF;
    font-size: 1.3em;
    font-weight: 600;
}

.level-bubble-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
}

/* Level Popup */
.wordrace-level-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wordrace-level-popup.visible {
    opacity: 1;
}

.level-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.level-popup-content {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.98), rgba(15, 23, 42, 0.99));
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.wordrace-level-popup.visible .level-popup-content {
    transform: scale(1);
}

.level-popup-title {
    color: #FFFFFF;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.level-popup-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-popup-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.level-popup-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.level-popup-btn.selected {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
}

.level-popup-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(50, 50, 60, 0.3);
    border-color: rgba(100, 100, 100, 0.3);
}

.level-popup-btn.locked:hover {
    background: rgba(50, 50, 60, 0.3);
    border-color: rgba(100, 100, 100, 0.3);
    transform: none;
}

.level-locked-hint {
    font-size: 0.7em;
    color: #888;
    margin-left: auto;
}

.level-unlocked-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border: 2px solid #10B981;
    border-radius: 12px;
    padding: 12px 20px;
    margin: 15px 0;
    animation: unlockPulse 1s ease-in-out infinite alternate;
}

.unlock-icon {
    font-size: 1.5em;
}

.unlock-text {
    color: #10B981;
    font-weight: 600;
    font-size: 1.1em;
}

@keyframes unlockPulse {
    0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
    100% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.6); }
}

.level-popup-emoji {
    font-size: 1.8em;
}

.level-popup-name {
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: 500;
}

.level-popup-btn.selected .level-popup-name {
    color: #10B981;
}

.wordrace-start-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 40px;
    border-radius: 16px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.wordrace-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* VS Bot Game Area */
.wordrace-game-vs {
    max-width: 700px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wordrace-header-vs {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordrace-quit-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    padding: 8px 16px;
    color: #EF4444;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wordrace-quit-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.wordrace-vs-badge {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    padding: 8px 16px;
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 0.9em;
    font-weight: 600;
}

.wordrace-streak {
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid rgba(245, 158, 11, 0.4);
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wordrace-streak.pulse {
    transform: scale(1.1);
    background: rgba(245, 158, 11, 0.3);
}

.streak-icon {
    font-size: 1.2em;
}

#streak-count {
    color: #F59E0B;
    font-size: 1.2em;
    font-weight: 700;
}

/* Question Area - Top */
.wordrace-question-area-top {
    background: rgba(26, 31, 56, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
}

.wordrace-question-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.question-emoji-large {
    font-size: 3em;
}

.question-word-large {
    font-size: 2em;
    font-weight: 700;
    color: #FFFFFF;
}

.wordrace-answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wordrace-answer-btn-vs {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wordrace-answer-btn-vs:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.wordrace-answer-btn-vs.correct {
    background: rgba(16, 185, 129, 0.4);
    border-color: #10B981;
    animation: correctPulseVS 0.4s ease;
}

.wordrace-answer-btn-vs.wrong {
    background: rgba(239, 68, 68, 0.4);
    border-color: #EF4444;
    animation: wrongShakeVS 0.4s ease;
}

@keyframes correctPulseVS {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes wrongShakeVS {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Speed Display */
.wordrace-speed-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(26, 31, 56, 0.6);
    border-radius: 12px;
}

.speed-bar-container {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.speed-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6B7280, #9CA3AF);
    border-radius: 6px;
    transition: width 0.1s linear, background 0.3s ease;
}

.speed-bar-fill.smoke {
    background: linear-gradient(90deg, #6B7280, #9CA3AF);
}

.speed-bar-fill.flame {
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.speed-bar-fill.turbo {
    background: linear-gradient(90deg, #06B6D4, #3B82F6);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    animation: turboGlow 0.3s ease infinite alternate;
}

@keyframes turboGlow {
    from { box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }
    to { box-shadow: 0 0 25px rgba(6, 182, 212, 0.8); }
}

.speed-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* Race Track Container */
.wordrace-track-container {
    background: rgba(26, 31, 56, 0.6);
    border-radius: 16px;
    padding: 20px;
}

.race-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-lane {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lane-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75em;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

.player-lane .lane-label {
    color: #10B981;
}

.bot-lane .lane-label {
    color: #EF4444;
}

.race-track-inner {
    flex: 1;
    height: 50px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.race-track-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0px, 
        rgba(255, 255, 255, 0.1) 20px, 
        transparent 20px, 
        transparent 40px);
    transform: translateY(-50%);
}

.track-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2px 45px;
}

.finish-line {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: repeating-linear-gradient(
        0deg,
        #FFFFFF 0px,
        #FFFFFF 5px,
        #1f2937 5px,
        #1f2937 10px
    );
    opacity: 0.8;
}

/* Car Container */
.car-container {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 30px;
    transition: left 0.05s linear;
    z-index: 10;
}

.car-container.bot {
    z-index: 5;
}

.race-car {
    width: 45px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Epic Car Exhaust Effects */
.car-exhaust-container {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 30px;
    pointer-events: none;
    z-index: -1;
}

.exhaust-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}

.exhaust-laser {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    opacity: 0;
}

/* SMOKE EFFECT - Gray bubbles with spread */
.car-exhaust-container.smoke .exhaust-particle {
    background: radial-gradient(circle, rgba(156, 163, 175, 0.8) 0%, rgba(107, 114, 128, 0.4) 100%);
    opacity: 1;
    right: 0;
    left: auto;
}

.car-exhaust-container.smoke .exhaust-particle.p1 {
    width: 10px;
    height: 10px;
    animation: smokeBubble1 0.6s ease-out infinite;
}

.car-exhaust-container.smoke .exhaust-particle.p2 {
    width: 8px;
    height: 8px;
    animation: smokeBubble2 0.6s ease-out 0.1s infinite;
}

.car-exhaust-container.smoke .exhaust-particle.p3 {
    width: 12px;
    height: 12px;
    animation: smokeBubble3 0.6s ease-out 0.2s infinite;
}

.car-exhaust-container.smoke .exhaust-particle.p4 {
    width: 7px;
    height: 7px;
    animation: smokeBubble4 0.6s ease-out 0.3s infinite;
}

.car-exhaust-container.smoke .exhaust-particle.p5 {
    width: 9px;
    height: 9px;
    animation: smokeBubble5 0.6s ease-out 0.15s infinite;
}

.car-exhaust-container.smoke .exhaust-particle.p6 {
    width: 6px;
    height: 6px;
    animation: smokeBubble6 0.6s ease-out 0.25s infinite;
}

@keyframes smokeBubble1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(-50px, -12px) scale(0.2); opacity: 0; }
}

@keyframes smokeBubble2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-45px, 8px) scale(0.3); opacity: 0; }
}

@keyframes smokeBubble3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-55px, -5px) scale(0.2); opacity: 0; }
}

@keyframes smokeBubble4 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(-40px, 15px) scale(0.3); opacity: 0; }
}

@keyframes smokeBubble5 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-48px, -18px) scale(0.2); opacity: 0; }
}

@keyframes smokeBubble6 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-42px, 10px) scale(0.4); opacity: 0; }
}

/* FLAME EFFECT - Particle emitter style flames */
.car-exhaust-container.flame .exhaust-particle {
    opacity: 1;
    right: 20px;
    left: auto;
    top: 3px;
    border-radius: 50%;
}

.car-exhaust-container.flame .exhaust-particle.p1 {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #FBBF24 0%, #EF4444 70%, transparent 100%);
    animation: flameShoot1 0.4s ease-out infinite;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.car-exhaust-container.flame .exhaust-particle.p2 {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #FCD34D 0%, #F59E0B 70%, transparent 100%);
    animation: flameShoot2 0.4s ease-out 0.1s infinite;
}

.car-exhaust-container.flame .exhaust-particle.p3 {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #FBBF24 0%, #DC2626 70%, transparent 100%);
    animation: flameShoot3 0.4s ease-out 0.2s infinite;
}

.car-exhaust-container.flame .exhaust-particle.p4 {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #FEF3C7 0%, #F59E0B 100%);
    animation: flameShoot4 0.35s ease-out 0.05s infinite;
}

.car-exhaust-container.flame .exhaust-particle.p5 {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #FBBF24 0%, #EF4444 100%);
    animation: flameShoot5 0.45s ease-out 0.15s infinite;
}

.car-exhaust-container.flame .exhaust-particle.p6 {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #FCD34D 0%, #DC2626 100%);
    animation: flameShoot6 0.38s ease-out 0.25s infinite;
}

@keyframes flameShoot1 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: translate(-55px, -8px) scale(0.2); opacity: 0; }
}

@keyframes flameShoot2 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { opacity: 0.7; }
    100% { transform: translate(-50px, 10px) scale(0.15); opacity: 0; }
}

@keyframes flameShoot3 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: translate(-60px, 2px) scale(0.1); opacity: 0; }
}

@keyframes flameShoot4 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { opacity: 0.9; }
    100% { transform: translate(-45px, -12px) scale(0.2); opacity: 0; }
}

@keyframes flameShoot5 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { opacity: 0.7; }
    100% { transform: translate(-52px, 8px) scale(0.15); opacity: 0; }
}

@keyframes flameShoot6 {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: translate(-48px, -5px) scale(0.1); opacity: 0; }
}

/* TURBO EFFECT - Blue laser beam */
.car-exhaust-container.turbo .exhaust-particle {
    opacity: 0;
}

.car-exhaust-container.turbo .exhaust-laser {
    width: 70px;
    height: 8px;
    left: 0;
    right: auto;
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0) 0%,
        rgba(139, 92, 246, 0.6) 40%,
        rgba(59, 130, 246, 0.9) 70%, 
        rgba(6, 182, 212, 1) 100%);
    border-radius: 0 50% 50% 0;
    opacity: 1;
    animation: laserPulse 0.1s ease-in-out infinite alternate;
    box-shadow: 
        0 0 10px rgba(6, 182, 212, 0.9),
        0 0 20px rgba(59, 130, 246, 0.7),
        0 0 30px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
    transform: translateY(-50%);
}

.car-exhaust-container.turbo .exhaust-laser::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #FFFFFF 0%, #06B6D4 50%, transparent 100%);
    border-radius: 50%;
    animation: laserCore 0.08s ease-in-out infinite alternate;
}

.car-exhaust-container.turbo .exhaust-laser::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.car-exhaust-container.turbo .exhaust-particle.p1,
.car-exhaust-container.turbo .exhaust-particle.p2,
.car-exhaust-container.turbo .exhaust-particle.p3 {
    opacity: 1;
    background: rgba(6, 182, 212, 0.6);
    animation: turboSparkle 0.2s ease-out infinite;
}

.car-exhaust-container.turbo .exhaust-particle.p1 {
    width: 4px;
    height: 4px;
    left: -60px;
    top: -10px;
    animation-delay: 0s;
}

.car-exhaust-container.turbo .exhaust-particle.p2 {
    width: 3px;
    height: 3px;
    left: -45px;
    top: 12px;
    animation-delay: 0.1s;
}

.car-exhaust-container.turbo .exhaust-particle.p3 {
    width: 5px;
    height: 5px;
    left: -30px;
    top: -8px;
    animation-delay: 0.15s;
}

@keyframes laserPulse {
    0% { 
        height: 6px; 
        opacity: 0.9;
    }
    100% { 
        height: 10px; 
        opacity: 1;
    }
}

@keyframes laserCore {
    0% { transform: translateY(-50%) scale(0.9); }
    100% { transform: translateY(-50%) scale(1.2); }
}

@keyframes turboSparkle {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { opacity: 1; }
    100% { transform: translate(-20px, 0) scale(0); opacity: 0; }
}

/* Boost Effect */
.boost-effect {
    position: absolute;
    right: -10px;
    top: -20px;
    font-size: 1.2em;
    animation: boostFloat 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes boostFloat {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(1.5); }
}

/* Word Race Result Screen */
.wordrace-result {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.wordrace-result-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(16, 185, 129, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wordrace-result-card.lose {
    border-color: rgba(239, 68, 68, 0.4);
}

.wordrace-result-card .result-emoji {
    font-size: 4em;
    margin-bottom: 15px;
}

.wordrace-result-card .result-title {
    color: #FFFFFF;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 8px;
}

.wordrace-result-card .result-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    margin-bottom: 25px;
}

.wordrace-result-card .result-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.wordrace-result-card .result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wordrace-result-card .result-stat-value {
    color: #10B981;
    font-size: 1.8em;
    font-weight: 700;
}

.wordrace-result-card .result-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

.wordrace-result-card .result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.wordrace-btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wordrace-btn.primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: #FFFFFF;
}

.wordrace-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.wordrace-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.wordrace-btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

/* Responsive for Word Race */
@media (max-width: 600px) {
    .wordrace-game-vs {
        padding: 10px;
        gap: 12px;
    }
    
    .wordrace-question-card {
        flex-direction: column;
        gap: 10px;
    }
    
    .question-emoji-large {
        font-size: 2.5em;
    }
    
    .question-word-large {
        font-size: 1.6em;
    }
    
    .wordrace-answers-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .wordrace-answer-btn-vs {
        padding: 12px 14px;
        font-size: 0.95em;
    }
    
    .race-track-inner {
        height: 40px;
    }
    
    .car-container {
        width: 35px;
        height: 24px;
    }
    
    .race-car {
        width: 35px;
        height: 24px;
    }
    
    .level-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .level-btn {
        padding: 8px 3px;
    }
    
    .level-number {
        font-size: 1em;
    }
    
    .wordrace-lobby-card {
        padding: 25px;
    }
}

/* ===== WORD BOMB GAME STYLES ===== */
.wordbomb-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 20px;
}

.wordbomb-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95) 0%, rgba(15, 18, 35, 0.98) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.wordbomb-lobby-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    animation: bombGlow 3s ease-in-out infinite;
}

@keyframes bombGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.wordbomb-lobby-icon {
    font-size: 5em;
    margin-bottom: 15px;
    animation: bombBounce 1s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes bombBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wordbomb-lobby-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.wordbomb-lobby-subtitle {
    color: #B0B0C0;
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.wordbomb-difficulty-selector {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.difficulty-label {
    color: #888;
    font-size: 0.9em;
    display: block;
    margin-bottom: 12px;
}

.difficulty-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #B0B0C0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.difficulty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.difficulty-btn.selected {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #FFFFFF;
}

.difficulty-btn span:first-child {
    font-size: 1.5em;
}

.wordbomb-start-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 40px;
    border-radius: 16px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 1;
}

.wordbomb-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* Game Area */
.wordbomb-game {
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.wordbomb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wordbomb-quit-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wordbomb-quit-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.wordbomb-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3em;
    font-weight: 600;
    color: #FBBF24;
}

.wordbomb-lives {
    font-size: 1.3em;
    letter-spacing: 3px;
}

/* Bomb Area */
.wordbomb-bomb-area {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.bomb-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bomb-body {
    font-size: 6em;
    transition: transform 0.2s ease;
}

.bomb-container.warning .bomb-body {
    animation: bombShake 0.1s ease-in-out infinite;
}

@keyframes bombShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-3px) rotate(-2deg); }
    75% { transform: translateX(3px) rotate(2deg); }
}

.bomb-container.exploding .bomb-body {
    animation: bombExplode 0.5s ease-out forwards;
}

@keyframes bombExplode {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(0); opacity: 0; }
}

.bomb-fuse {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #22C55E 0%, #22C55E 100%);
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    transform-origin: left center;
}

.bomb-timer {
    position: absolute;
    bottom: -30px;
    font-size: 1.8em;
    font-weight: 700;
    color: #FFFFFF;
}

.bomb-container.warning .bomb-timer {
    color: #EF4444;
    animation: timerPulse 0.3s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Prompt Area */
.wordbomb-prompt-area {
    text-align: center;
    margin: 40px 0 20px;
}

.prompt-text {
    color: #888;
    font-size: 1em;
    margin-bottom: 10px;
}

.letter-prompt {
    font-size: 4em;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Word to Translate (New Translation Mode) */
.word-to-translate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.word-emoji {
    font-size: 4em;
    animation: emojiFloat 2s ease-in-out infinite;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.word-english {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.wordbomb-hint {
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: #FBBF24;
    font-size: 1.1em;
    font-weight: 500;
    animation: hintAppear 0.3s ease-out;
}

@keyframes hintAppear {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Input Area */
.wordbomb-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wordbomb-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1.2em;
    outline: none;
    transition: all 0.2s ease;
}

.wordbomb-input:focus {
    border-color: #EF4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.wordbomb-input.shake {
    animation: inputShake 0.5s ease;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

.wordbomb-submit-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wordbomb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}

/* Feedback */
.wordbomb-feedback {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    min-height: 30px;
    transition: all 0.2s ease;
}

.wordbomb-feedback.success {
    color: #22C55E;
}

.wordbomb-feedback.error {
    color: #EF4444;
}

.wordbomb-feedback.explode {
    color: #FBBF24;
    font-size: 2em;
    animation: explodeText 0.5s ease-out;
}

@keyframes explodeText {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

/* Result Screen */
.wordbomb-result {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 20px;
}

.wordbomb-result-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95) 0%, rgba(15, 18, 35, 0.98) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.wordbomb-result-card .result-emoji {
    font-size: 4em;
    margin-bottom: 15px;
}

.wordbomb-result-card .result-title {
    font-size: 2em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.wordbomb-result-card .result-subtitle {
    color: #B0B0C0;
    margin-bottom: 25px;
}

.wordbomb-result-card .result-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.wordbomb-result-card .result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wordbomb-result-card .result-stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #FBBF24;
}

.wordbomb-result-card .result-stat-label {
    color: #888;
    font-size: 0.9em;
}

.wordbomb-btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.wordbomb-btn.primary {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
}

.wordbomb-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #B0B0C0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.wordbomb-btn:hover {
    transform: translateY(-2px);
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===== SLAM GAME STYLES - TV SHOW EDITION ===== */

/* ==================== LOBBY ==================== */
.slam-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 20px;
}

.slam-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95) 0%, rgba(15, 18, 35, 0.98) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 550px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slam-lobby-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: lobbyGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.slam-tv-logo {
    font-size: 3em;
    font-weight: 900;
    color: #F59E0B;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 4px 0 #B45309;
    letter-spacing: 6px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.slam-lobby-subtitle {
    color: #B0B0C0;
    font-size: 1.1em;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Difficulty Selector */
.slam-difficulty-selector {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.slam-difficulty-selector .difficulty-label {
    display: block;
    color: #9CA3AF;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.slam-difficulty-selector .difficulty-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.slam-diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 15px 25px;
    border-radius: 14px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    color: #B0B0C0;
    position: relative;
    z-index: 2;
    min-width: 120px;
}

.slam-diff-btn .diff-icon {
    font-size: 1.2em;
}

.slam-diff-btn .diff-name {
    font-weight: 600;
    color: inherit;
}

.slam-diff-btn .diff-info {
    font-size: 0.75em;
    opacity: 0.8;
}

.slam-diff-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #FFFFFF;
    border-color: rgba(59, 130, 246, 0.3);
}

.slam-diff-btn.selected {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Stats Preview */
.slam-stats-preview {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.slam-stats-preview .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slam-stats-preview .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #F59E0B;
}

.slam-stats-preview .stat-label {
    font-size: 0.8em;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Play Button */
.slam-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    border: none;
    padding: 18px 50px;
    border-radius: 16px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    position: relative;
    z-index: 2;
}

.slam-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
}

.slam-play-btn .play-icon {
    font-size: 1.1em;
}

/* ==================== GAME CONTAINER ==================== */
.slam-game-container {
    padding: 15px;
    max-width: 950px;
    margin: 0 auto;
}

/* Header */
.slam-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    flex-wrap: wrap;
}

.slam-quit {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slam-quit:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.slam-theme-badge {
    font-size: 1.1em;
    font-weight: 600;
    color: #F59E0B;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.slam-score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2em;
    font-weight: 700;
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.15);
    padding: 8px 15px;
    border-radius: 10px;
}

.slam-score-display .score-icon {
    font-size: 1em;
}

.slam-progress-badge {
    background: rgba(59, 130, 246, 0.2);
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 600;
    color: #3B82F6;
}

/* Timer */
.slam-timer-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.timer-bar-bg {
    flex: 1;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    overflow: hidden;
}

.timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22C55E, #16A34A);
    border-radius: 7px;
    transition: width 0.5s linear;
}

.timer-bar-fill.warning {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.timer-bar-fill.critical {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

.slam-timer {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    min-width: 60px;
    text-align: center;
}

.slam-timer.warning {
    color: #F59E0B;
    animation: pulse 1s infinite;
}

.slam-timer.critical {
    color: #EF4444;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Game Layout */
.slam-game-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .slam-game-layout {
        grid-template-columns: 1fr;
    }
}

/* Grid Area */
.slam-grid-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.slam-grid {
    display: grid;
    gap: 4px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 16px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.slam-cell {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    position: relative;
}

.slam-cell.empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

.slam-cell.has-letter.clickable {
    cursor: pointer;
}

.slam-cell.has-letter.clickable:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: #3B82F6;
    transform: scale(1.05);
}

.slam-cell.selected {
    background: rgba(245, 158, 11, 0.3) !important;
    border-color: #F59E0B !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.slam-cell.revealed {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-color: #22C55E;
    animation: cellReveal 0.4s ease;
    cursor: default;
}

.slam-cell .cell-number {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.4em;
    font-weight: 700;
    color: #F59E0B;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.slam-cell .cell-letter {
    font-size: 1em;
}

@keyframes cellReveal {
    0% { transform: scale(0.5) rotateY(90deg); opacity: 0; }
    50% { transform: scale(1.1) rotateY(0deg); }
    100% { transform: scale(1); opacity: 1; }
}

/* Sidebar */
.slam-sidebar {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 380px;
    overflow-y: auto;
}

.slam-sidebar .sidebar-title {
    color: #9CA3AF;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.slam-word-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slam-word-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.slam-word-row:hover:not(.solved) {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.slam-word-row.selected {
    background: rgba(245, 158, 11, 0.2);
    border-color: #F59E0B;
}

.slam-word-row.solved {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    cursor: default;
}

.slam-word-row .word-num {
    width: 26px;
    height: 26px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
    color: #3B82F6;
    flex-shrink: 0;
}

.slam-word-row.solved .word-num {
    background: rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

.slam-word-row .word-dir {
    font-size: 1.1em;
    color: #9CA3AF;
    width: 20px;
}

.slam-word-row .word-len {
    color: #B0B0C0;
    font-size: 0.85em;
    flex: 1;
}

.slam-word-row .word-answer {
    font-weight: 700;
    color: #22C55E;
    letter-spacing: 1px;
    font-size: 0.85em;
    text-transform: uppercase;
}

/* Bottom Area */
.slam-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
}

/* Hint Panel */
.slam-hint-panel {
    text-align: center;
    padding: 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 15px;
}

.slam-hint-panel.empty {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.slam-hint-panel .hint-instruction {
    color: #9CA3AF;
    font-size: 1.1em;
}

.slam-hint-panel .hint-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.slam-hint-panel .hint-num {
    color: #F59E0B;
    font-size: 0.9em;
    font-weight: 600;
}

.slam-hint-panel .hint-dir {
    color: #3B82F6;
    font-size: 0.85em;
}

.slam-hint-panel .hint-definition {
    font-size: 1.4em;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 8px;
}

.slam-hint-panel .hint-length {
    color: #9CA3AF;
    font-size: 0.9em;
}

/* Input Section */
.slam-input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.slam-letter-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.slam-letter-boxes.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.letter-box-input {
    width: 48px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    font-size: 1.6em;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.2s ease;
}

.letter-box-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.15);
}

.letter-box.revealed {
    width: 48px;
    height: 56px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border: 3px solid #22C55E;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
}

.slam-input-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.slam-skip-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 25px;
    font-size: 1em;
    font-weight: 600;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slam-skip-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.slam-validate-btn {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 35px;
    font-size: 1.1em;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slam-validate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

/* Word Selection Popup */
.word-selection-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.word-selection-content {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.98) 0%, rgba(15, 18, 35, 0.99) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.word-selection-content p {
    color: #FFFFFF;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.word-choice-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.word-choice-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
    transform: translateX(5px);
}

.word-choice-btn .choice-num {
    width: 32px;
    height: 32px;
    background: rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #F59E0B;
}

.word-choice-btn .choice-dir {
    flex: 1;
    color: #FFFFFF;
    font-size: 1em;
}

.word-choice-btn .choice-len {
    color: #9CA3AF;
    font-size: 0.85em;
}

/* ==================== END SCREEN ==================== */
.slam-end-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 20px;
}

.slam-end-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95) 0%, rgba(15, 18, 35, 0.98) 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.slam-end-card.win {
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.slam-end-card.lose {
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.slam-end-card .end-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.slam-end-card .end-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.slam-end-card.win .end-title {
    color: #22C55E;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.slam-end-card.lose .end-title {
    color: #EF4444;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.slam-end-card .end-subtitle {
    color: #B0B0C0;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.slam-end-card .end-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
}

.slam-end-card .end-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.slam-end-card .stat-val {
    font-size: 2.2em;
    font-weight: 700;
    color: #F59E0B;
}

.slam-end-card .stat-lbl {
    color: #9CA3AF;
    font-size: 0.85em;
}

.slam-end-card .end-words-recap {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    max-height: 180px;
    overflow-y: auto;
    text-align: left;
}

.slam-end-card .end-words-recap h4 {
    color: #9CA3AF;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.slam-end-card .recap-word {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 6px;
}

.slam-end-card .recap-word.found {
    border-left: 3px solid #22C55E;
}

.slam-end-card .recap-word.missed {
    border-left: 3px solid #EF4444;
}

.slam-end-card .recap-answer {
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95em;
}

.slam-end-card .recap-def {
    color: #9CA3AF;
    font-size: 0.8em;
    text-align: right;
    max-width: 60%;
}

.slam-end-card .end-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.slam-btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.slam-btn.primary {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF;
}

.slam-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #B0B0C0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.slam-btn:hover {
    transform: translateY(-2px);
}

/* ===== WORDLE GAME STYLES ===== */

/* Lobby */
.wordle-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 20px;
}

.wordle-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95) 0%, rgba(15, 18, 35, 0.98) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wordle-logo {
    font-size: 4em;
    margin-bottom: 10px;
}

.wordle-title {
    font-size: 2.5em;
    font-weight: 900;
    color: #22C55E;
    letter-spacing: 6px;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.wordle-subtitle {
    color: #B0B0C0;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.wordle-rules {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #B0B0C0;
    font-size: 0.95em;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    border-radius: 6px;
    color: #FFFFFF;
}

.rule-box.correct {
    background: #22C55E;
}

.rule-box.present {
    background: #EAB308;
}

.rule-box.absent {
    background: #6B7280;
}

.wordle-stats-preview {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.wordle-stats-preview .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.wordle-stats-preview .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #22C55E;
}

.wordle-stats-preview .stat-label {
    font-size: 0.8em;
    color: #9CA3AF;
    margin-top: 4px;
}

.wordle-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF;
    border: none;
    padding: 18px 50px;
    border-radius: 16px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.wordle-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.5);
}

/* Game Screen */
.wordle-game-screen {
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
}

.wordle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.wordle-back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wordle-back-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.wordle-game-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #22C55E;
    letter-spacing: 4px;
}

.wordle-attempts {
    background: rgba(34, 197, 94, 0.2);
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 600;
    color: #22C55E;
}

/* Hint Box */
.wordle-hint-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.wordle-hint-box .hint-label {
    color: #F59E0B;
    font-weight: 600;
    margin-right: 8px;
}

.wordle-hint-box .hint-text {
    color: #FFFFFF;
    font-size: 1.1em;
}

/* Grid */
.wordle-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.wordle-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wordle-row.shake {
    animation: rowShake 0.5s ease;
}

@keyframes rowShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.wordle-cell {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.wordle-cell.empty {
    border-color: rgba(255, 255, 255, 0.1);
}

.wordle-cell.current {
    border-color: rgba(59, 130, 246, 0.5);
}

.wordle-cell.current.filled {
    border-color: rgba(59, 130, 246, 0.8);
}

.wordle-cell.current.active {
    border-color: #3B82F6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

@keyframes cellPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.wordle-cell.correct {
    background: #22C55E;
    border-color: #22C55E;
    animation: cellFlip 0.5s ease forwards;
}

.wordle-cell.present {
    background: #EAB308;
    border-color: #EAB308;
    animation: cellFlip 0.5s ease forwards;
}

.wordle-cell.absent {
    background: #6B7280;
    border-color: #6B7280;
    animation: cellFlip 0.5s ease forwards;
}

@keyframes cellFlip {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

/* Message */
.wordle-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
}

.wordle-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22C55E;
}

.wordle-message.failure {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
}

.wordle-message .message-icon {
    font-size: 1.3em;
}

.wordle-message strong {
    color: #FFFFFF;
    letter-spacing: 2px;
}

/* Keyboard */
.wordle-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.keyboard-row {
    display: flex;
    gap: 5px;
}

.keyboard-key {
    min-width: 32px;
    height: 50px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
}

.keyboard-key:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
}

.keyboard-key:active:not(:disabled) {
    transform: scale(0.95);
}

.keyboard-key.special {
    min-width: 55px;
    font-size: 1.2em;
    background: rgba(59, 130, 246, 0.3);
}

.keyboard-key.correct {
    background: #22C55E;
}

.keyboard-key.present {
    background: #EAB308;
}

.keyboard-key.absent {
    background: #4B5563;
    color: #9CA3AF;
}

.keyboard-key:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Hidden Input */
.wordle-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Difficulty Selection */
.wordle-difficulty-section {
    margin: 25px 0;
}

.difficulty-label {
    color: #B0B0C0;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.wordle-difficulty-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.wordle-difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 90px;
}

.wordle-difficulty-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

.wordle-difficulty-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.wordle-difficulty-btn .diff-icon {
    font-size: 1.5em;
}

.wordle-difficulty-btn .diff-name {
    font-weight: 700;
    font-size: 0.95em;
}

.wordle-difficulty-btn .diff-letters {
    font-size: 0.75em;
    color: #9CA3AF;
}

/* Difficulty badge in header */
.wordle-diff-badge {
    font-size: 0.5em;
    background: rgba(59, 130, 246, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 8px;
}

/* Replay buttons */
.wordle-replay-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Translation box at end of game */
.wordle-translation {
    text-align: center;
    padding: 12px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #B0B0C0;
    font-size: 1em;
}

.wordle-translation strong {
    color: #FFFFFF;
    letter-spacing: 1px;
}

.wordle-replay-btn,
.wordle-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wordle-replay-btn {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.wordle-replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.wordle-menu-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.wordle-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* No animation class for already revealed cells */
.wordle-cell.no-anim {
    animation: none !important;
}

/* Confirm button */
.wordle-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    margin: 20px auto;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.wordle-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.wordle-confirm-btn:active {
    transform: translateY(0);
}

.wordle-shortcut {
    font-size: 0.7em;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 480px) {
    .wordle-cell {
        width: 44px;
        height: 44px;
        font-size: 1.4em;
    }
    
    .keyboard-key {
        min-width: 26px;
        height: 44px;
        font-size: 0.85em;
    }
    
    .keyboard-key.special {
        min-width: 45px;
    }
}

/* ===== PREMIUM LESSON POPUP ===== */
.premium-lesson-popup {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.98) 0%, rgba(15, 18, 35, 0.99) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: popupSlideIn 0.3s ease;
    position: relative;
}

.premium-popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #9CA3AF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-popup-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.premium-popup-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.premium-popup-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #F59E0B;
    margin-bottom: 15px;
}

.premium-popup-text {
    color: #B0B0C0;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.premium-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.premium-popup-upgrade {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF !important;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.premium-popup-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF !important;
}

/* ===== GENDER SWIPE GAME STYLES ===== */

.gender-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.gender-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gender-logo {
    font-size: 4em;
    margin-bottom: 10px;
}

.gender-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.gender-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.gender-stats-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.gender-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gender-stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #8B5CF6;
}

.gender-stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.gender-rules {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.gender-rules p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.gender-play-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.gender-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* Game Screen */
.gender-game {
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.gender-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.gender-quit-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s;
}

.gender-quit-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.gender-score {
    font-size: 1.2em;
    font-weight: 700;
    color: #8B5CF6;
}

.gender-streak {
    font-size: 1.2em;
    font-weight: 700;
    color: #f59e0b;
    min-width: 60px;
}

.gender-lives {
    display: flex;
    gap: 5px;
}

.gender-heart {
    font-size: 1.3em;
    transition: all 0.3s;
}

.gender-heart.lost {
    opacity: 0.3;
    filter: grayscale(1);
}

.gender-timer-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.gender-timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 4px;
    transition: width 0.05s linear, background 0.3s;
}

.gender-word-area {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    min-height: 180px;
    align-items: center;
}

.gender-word-card {
    background: linear-gradient(145deg, rgba(30, 35, 60, 0.95), rgba(20, 25, 45, 0.98));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 250px;
}

.gender-word-card.correct {
    border-color: #10B981;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    animation: correctPulse 0.5s ease;
}

.gender-word-card.wrong {
    border-color: #ef4444;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    animation: wrongShake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.gender-result-article {
    font-size: 1.5em;
    font-weight: 800;
    color: #10B981;
    margin-bottom: 5px;
}

.gender-result-article.wrong {
    color: #ef4444;
}

.gender-word {
    font-size: 2.5em;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.gender-english {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.6);
}

.gender-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.gender-btn {
    flex: 1;
    max-width: 180px;
    padding: 20px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.gender-btn.masculine {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.gender-btn.masculine:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.gender-btn.feminine {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.gender-btn.feminine:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

.gender-btn-article {
    font-size: 2em;
    font-weight: 800;
    color: white;
}

.gender-btn-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.gender-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85em;
}

.hint-key {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.hint-separator {
    margin: 0 15px;
}

/* Game Over */
.gender-game-over {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.gender-game-over-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.gender-game-over-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.gender-game-over-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 20px 0;
}

.gender-final-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.gender-final-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gender-final-stat .stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #8B5CF6;
}

.gender-final-stat .stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.gender-replay-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.gender-replay-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.gender-replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.gender-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.gender-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Timer Option Selector */
.gender-timer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gender-timer-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.gender-timer-selector:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
}

.gender-timer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

.gender-timer-label strong {
    color: #A78BFA;
}

.gender-timer-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.gender-timer-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.gender-timer-btn {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gender-timer-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.gender-timer-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border-color: #8B5CF6;
    color: white;
}

.gender-timer-btn .multiplier {
    font-size: 0.75em;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
}

/* ===== CONJUGAISON NINJA GAME STYLES ===== */

.ninja-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.ninja-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(239, 68, 68, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ninja-logo {
    font-size: 4em;
    margin-bottom: 10px;
}

.ninja-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.ninja-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.ninja-stats-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.ninja-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ninja-stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #EF4444;
}

.ninja-stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.ninja-rules {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.ninja-rules p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.ninja-play-btn {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.ninja-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

/* Game Screen */
.ninja-game {
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

.ninja-game.wrong-flash {
    animation: wrongFlash 0.3s ease;
}

@keyframes wrongFlash {
    0%, 100% { background: transparent; }
    50% { background: rgba(239, 68, 68, 0.3); }
}

.ninja-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ninja-quit-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s;
}

.ninja-quit-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.ninja-score {
    font-size: 1.2em;
    font-weight: 700;
    color: #EF4444;
}

.ninja-level {
    font-size: 1em;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.ninja-lives {
    display: flex;
    gap: 5px;
}

.ninja-heart {
    font-size: 1.3em;
    transition: all 0.3s;
}

.ninja-heart.lost {
    opacity: 0.3;
    filter: grayscale(1);
}

/* Challenge Display - now inside game area */
.ninja-english-display {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5em;
    font-weight: 800;
    color: #f59e0b;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 5;
    background: rgba(15, 23, 42, 0.8);
    padding: 10px 30px;
    border-radius: 12px;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.ninja-english-display.word-change {
    animation: wordPop 0.3s ease;
}

@keyframes wordPop {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); color: #10B981; }
    100% { transform: translateX(-50%) scale(1); }
}

/* Game Area */
.ninja-game-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 20, 40, 0.95) 100%);
    border-radius: 16px;
    min-height: 550px;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.ninja-falling-word {
    position: absolute;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    user-select: none;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Platform Catcher */
.ninja-catcher {
    position: absolute;
    bottom: 5%;
    transform: translateX(-50%);
    transition: left 0.08s linear;
    z-index: 10;
}

.ninja-platform {
    width: 120px;
    height: 20px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
    border-radius: 10px;
    box-shadow: 
        0 4px 0 #991B1B,
        0 6px 20px rgba(239, 68, 68, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.ninja-platform::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 10px;
    right: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Feedback */
.ninja-feedback {
    position: absolute;
    font-size: 1.5em;
    font-weight: 800;
    transform: translateX(-50%);
    animation: feedbackFloat 0.8s ease forwards;
    pointer-events: none;
    z-index: 20;
}

.ninja-feedback.correct {
    color: #10B981;
}

.ninja-feedback.wrong {
    color: #EF4444;
}

@keyframes feedbackFloat {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-50px); }
}

/* Controls Hint */
.ninja-controls-hint {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

/* Level Up Animation */
.ninja-level.level-up {
    animation: levelPulse 0.5s ease;
}

@keyframes levelPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background: rgba(16, 185, 129, 0.3); color: #10B981; }
    100% { transform: scale(1); }
}

/* Game Over */
.ninja-game-over {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.ninja-game-over-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(239, 68, 68, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.ninja-game-over-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.ninja-game-over-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 20px 0;
}

.ninja-final-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.ninja-final-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ninja-final-stat .stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #EF4444;
}

.ninja-final-stat .stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.ninja-replay-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.ninja-replay-btn {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ninja-replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.ninja-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.ninja-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== OPPOSITES GAME STYLES ===== */

.opposites-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.opposites-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(59, 130, 246, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.opposites-logo {
    font-size: 4em;
    margin-bottom: 10px;
}

.opposites-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.opposites-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.opposites-stats-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.opposites-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opposites-stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #3B82F6;
}

.opposites-stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.opposites-rules {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.opposites-rules p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.opposites-timer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.opposites-timer-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.opposites-timer-selector:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.opposites-timer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

.opposites-timer-label strong {
    color: #60A5FA;
}

.opposites-timer-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.opposites-timer-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.opposites-timer-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.opposites-timer-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.opposites-timer-btn.active {
    background: #3B82F6;
    border-color: #3B82F6;
}

.opposites-play-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.opposites-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* Game Screen */
.opposites-game {
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.opposites-game.wrong-flash {
    animation: wrongFlash 0.3s ease;
}

.opposites-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.opposites-quit-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #3B82F6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.2s;
}

.opposites-quit-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.opposites-score {
    font-size: 1.2em;
    font-weight: 700;
    color: #3B82F6;
}

.opposites-streak {
    font-size: 1.2em;
    font-weight: 700;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.opposites-lives {
    display: flex;
    gap: 5px;
}

.opposites-heart {
    font-size: 1.3em;
    transition: all 0.3s;
}

.opposites-heart.lost {
    opacity: 0.3;
    filter: grayscale(1);
}

/* Timer Bar */
.opposites-timer-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.opposites-timer-fill {
    height: 100%;
    background: #10B981;
    border-radius: 4px;
    transition: width 0.1s linear, background 0.3s;
}

/* Word Display */
.opposites-word-display {
    background: linear-gradient(145deg, rgba(30, 35, 60, 0.95), rgba(20, 25, 45, 0.98));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.opposites-instruction {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 15px;
}

.opposites-word {
    font-size: 3em;
    font-weight: 800;
    color: #3B82F6;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.opposites-english {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Feedback */
.opposites-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: 800;
    animation: feedbackPop 0.8s ease forwards;
    pointer-events: none;
    z-index: 10;
}

.opposites-feedback.correct {
    color: #10B981;
}

.opposites-feedback.wrong {
    color: #EF4444;
}

@keyframes feedbackPop {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(1); }
}

/* Options */
.opposites-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.opposites-option-btn {
    background: linear-gradient(145deg, rgba(40, 45, 70, 0.95), rgba(30, 35, 55, 0.98));
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 25px 20px;
    border-radius: 16px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.opposites-option-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, rgba(50, 55, 80, 0.95), rgba(40, 45, 65, 0.98));
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.opposites-option-btn.correct {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-color: #10B981;
    animation: correctPulse 0.5s ease;
}

.opposites-option-btn.wrong {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border-color: #EF4444;
    animation: wrongShake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Game Over */
.opposites-game-over {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.opposites-game-over-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(59, 130, 246, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.opposites-game-over-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.opposites-game-over-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 20px 0;
}

.opposites-final-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.opposites-final-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opposites-final-stat .stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #3B82F6;
}

.opposites-final-stat .stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.opposites-replay-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.opposites-replay-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.opposites-replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.opposites-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.opposites-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile responsive */
@media (max-width: 500px) {
    .opposites-options {
        grid-template-columns: 1fr;
    }
    
    .opposites-word {
        font-size: 2em;
    }
    
    .opposites-option-btn {
        padding: 20px 15px;
        font-size: 1.1em;
    }
}

/* ===== PHRASE PUZZLE GAME STYLES ===== */

.puzzle-lobby {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.puzzle-lobby-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.puzzle-logo {
    font-size: 4em;
    margin-bottom: 10px;
}

.puzzle-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.puzzle-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.puzzle-stats-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.puzzle-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.puzzle-stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #A855F7;
}

.puzzle-stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.puzzle-rules {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.puzzle-rules p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.puzzle-timer-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.puzzle-timer-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.puzzle-timer-buttons {
    display: flex;
    gap: 8px;
}

.puzzle-timer-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.puzzle-timer-btn:hover {
    background: rgba(168, 85, 247, 0.3);
}

.puzzle-timer-btn.active {
    background: #A855F7;
    border-color: #A855F7;
}

.puzzle-play-btn {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    margin-bottom: 15px;
}

.puzzle-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.puzzle-back-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.puzzle-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Game Screen */
.puzzle-game {
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.puzzle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.puzzle-lives {
    font-size: 1.5em;
    letter-spacing: 5px;
}

.puzzle-score-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.puzzle-score {
    font-size: 1.8em;
    font-weight: 800;
    color: #A855F7;
}

.puzzle-streak {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 700;
    color: white;
}

.puzzle-quit-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s;
}

.puzzle-quit-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.puzzle-timer-bar {
    height: 6px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.puzzle-timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #A855F7, #7C3AED);
    border-radius: 3px;
    transition: width 0.05s linear, background 0.3s;
}

.puzzle-english-sentence {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(124, 58, 237, 0.1));
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.puzzle-english-label {
    display: block;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.puzzle-english-text {
    font-size: 1.4em;
    font-weight: 600;
    color: #FFFFFF;
    font-style: italic;
}

.puzzle-answer-area {
    background: rgba(15, 23, 42, 0.6);
    border: 2px dashed rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 20px;
    min-height: 80px;
    margin-bottom: 25px;
    position: relative;
}

.puzzle-answer-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.puzzle-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.puzzle-selected-word {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    animation: wordPop 0.2s ease-out;
}

@keyframes wordPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.puzzle-selected-word:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.puzzle-word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.puzzle-word-btn {
    background: rgba(168, 85, 247, 0.15);
    border: 2px solid rgba(168, 85, 247, 0.4);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
}

.puzzle-word-btn:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.puzzle-word-btn.used {
    background: transparent;
    border-color: rgba(100, 100, 120, 0.2);
    visibility: hidden;
}

.puzzle-skip-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.8);
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 0 auto;
    display: block;
    transition: all 0.2s;
}

.puzzle-skip-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.puzzle-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: 800;
    animation: puzzleFeedbackPop 0.8s ease-out forwards;
    z-index: 10;
}

.puzzle-feedback.correct {
    color: #10B981;
}

.puzzle-feedback.wrong {
    color: #EF4444;
}

@keyframes puzzleFeedbackPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Game Over */
.puzzle-game-over {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.puzzle-game-over-card {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.95), rgba(15, 23, 42, 0.98));
    border: 3px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.puzzle-game-over-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.puzzle-game-over-title {
    font-size: 2em;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 25px 0;
}

.puzzle-final-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.puzzle-final-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.puzzle-final-value {
    font-size: 2.2em;
    font-weight: 800;
    color: #A855F7;
}

.puzzle-final-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.puzzle-game-over-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.puzzle-play-again-btn {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.puzzle-play-again-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.puzzle-menu-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.puzzle-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .puzzle-lobby-card,
    .puzzle-game-over-card {
        padding: 25px 20px;
    }
    
    .puzzle-title,
    .puzzle-game-over-title {
        font-size: 1.6em;
    }
    
    .puzzle-english-text {
        font-size: 1.2em;
    }
    
    .puzzle-word-btn {
        padding: 10px 15px;
        font-size: 1em;
    }
    
    .puzzle-selected-word {
        padding: 8px 14px;
        font-size: 1em;
    }
    
    .puzzle-stats-display,
    .puzzle-final-stats {
        gap: 20px;
    }
    
    .puzzle-stat-value,
    .puzzle-final-value {
        font-size: 1.6em;
    }
}

/* ===== FIX: Hide game containers when parent is hidden ===== */
#genderSwipeGameContent[style*="display: none"],
#conjugaisonNinjaGameContent[style*="display: none"],
#oppositesGameContent[style*="display: none"],
#phrasePuzzleGameContent[style*="display: none"],
#hangmanGameContent[style*="display: none"],
#wordRaceGameContent[style*="display: none"],
#wordBombGameContent[style*="display: none"],
#wordleGameContent[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* ===== Mini Game Back Button ===== */
.mini-game-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.mini-game-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Position the lobby containers to allow absolute positioning of back button */
.ninja-lobby,
.gender-lobby,
.opposites-lobby,
.puzzle-lobby {
    position: relative;
}

/* ============================================================
   MULTIPLAYER LAUNCH PROGRESS STYLES
   ============================================================ */

.multiplayer-launch-card {
    max-width: 450px;
    margin: 40px auto;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.15);
}

.launch-header {
    margin-bottom: 30px;
}

.launch-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.launch-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #A855F7;
    margin: 0 0 8px 0;
}

.launch-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    margin: 0;
}

.launch-progress-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(168, 85, 247, 0.2);
    stroke-width: 10;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1.5s ease-out;
}

.progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    font-size: 2em;
    font-weight: 700;
    color: #A855F7;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.launch-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 16px;
}

.launch-stat {
    text-align: center;
}

.launch-stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #A855F7;
}

.launch-stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.launch-stat-divider {
    font-size: 2em;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.launch-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    margin: 20px 0 0 0;
}

/* ============================================================
   ADMIN DASHBOARD STYLES
   ============================================================ */

.admin-page {
    position: relative;
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-page .page-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
    color: white;
}

.admin-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.admin-live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #22C55E;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.last-updated {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85em;
}

.admin-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-page .stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.admin-page .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card-users {
    border-left: 4px solid #3B82F6 !important;
}

.stat-card-online {
    border-left: 4px solid #22C55E !important;
}

.stat-card-premium {
    border-left: 4px solid #F59E0B !important;
}

.stat-card-revenue {
    border-left: 4px solid #A855F7 !important;
}

.admin-page .stat-icon {
    font-size: 2.5em;
}

.admin-page .stat-content {
    flex: 1;
}

.admin-page .stat-value {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin: 0;
}

.admin-page .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin: 5px 0 0 0;
}

.admin-stats-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.admin-detail-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.admin-detail-card h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.detail-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #A855F7;
    margin: 0;
}

.detail-desc {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
    margin: 5px 0 0 0;
}

.admin-recent-section {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.admin-recent-section h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 1.1em;
}

.recent-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background 0.2s;
}

.recent-user-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.recent-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recent-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.recent-user-name {
    color: white;
    font-weight: 500;
}

.recent-user-email {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

.recent-user-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85em;
}

.recent-user-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.badge-premium {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.badge-free {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.loading-text {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px;
}

.admin-refresh-btn {
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.admin-dashboard-item {
    color: #A855F7 !important;
    font-weight: 600;
}

@media (max-width: 900px) {
    .admin-page .stats-grid,
    .admin-stats-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .admin-page .stats-grid,
    .admin-stats-details {
        grid-template-columns: 1fr;
    }
}

/* ==================== HOW TO PLAY BUTTON & POPUP ==================== */

/* How to Play Button - used in all mini game lobbies (outside the card) */
.how-to-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    padding: 12px 24px;
    margin-top: 20px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #9CA3AF;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.how-to-play-btn:hover {
    border-color: #8A2BE2;
    color: #FFFFFF;
    background: rgba(138, 43, 226, 0.1);
}

/* Lobby containers need flex-direction column to stack button below card */
.memory-lobby,
.hangman-lobby,
.wordrace-lobby,
.wordbomb-lobby,
.wordle-lobby,
.gender-lobby,
.ninja-lobby,
.opposites-lobby {
    flex-direction: column;
    align-items: center;
}

/* Memory lobby wrapper to group card and button together */
.memory-lobby-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.how-to-play-btn .htp-icon {
    font-size: 1.1em;
}

/* How to Play Popup Overlay */
.htp-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.htp-popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* How to Play Popup Content */
.htp-popup-content {
    background: linear-gradient(145deg, rgba(26, 31, 56, 0.98), rgba(15, 23, 42, 0.99));
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    animation: htpSlideUp 0.4s ease forwards;
}

@keyframes htpSlideUp {
    to {
        transform: translateY(0);
    }
}

.htp-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.htp-popup-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
}

.htp-popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.htp-popup-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.htp-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.htp-popup-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* Slideshow navigation (for multi-slide rules) */
.htp-slideshow {
    position: relative;
    overflow: hidden;
}

.htp-slide {
    display: none;
    animation: htpFadeIn 0.3s ease;
}

.htp-slide.active {
    display: block;
}

@keyframes htpFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.htp-slide-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.htp-slide-content {
    text-align: center;
}

.htp-slide-emoji {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

.htp-slide-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.htp-slide-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.6;
}

/* Slideshow navigation buttons */
.htp-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.htp-nav-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.htp-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.htp-nav-btn.primary {
    background: linear-gradient(135deg, #10B981, #059669);
    border-color: transparent;
    color: #FFFFFF;
}

.htp-nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Dots navigation */
.htp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.htp-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.htp-dot.active {
    background: #10B981;
    width: 24px;
    border-radius: 4px;
}

.htp-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
}

/* Simple single-slide rules list */
.htp-rules-list {
    text-align: left;
    padding: 0;
    margin: 0;
    list-style: none;
}

.htp-rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.htp-rules-list li:last-child {
    border-bottom: none;
}

.htp-rules-list .rule-emoji {
    font-size: 1.3em;
    flex-shrink: 0;
}

/* Got it button at the bottom */
.htp-got-it-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.htp-got-it-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ===== HOW TO USE SLIDESHOW ===== */
.htu-popup-content {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.98), rgba(20, 20, 35, 0.98));
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 420px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: htpPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.htu-slideshow {
    min-height: 180px;
    position: relative;
}

.htu-slide {
    display: none;
    text-align: center;
    animation: htpFadeIn 0.3s ease;
}

.htu-slide.active {
    display: block;
}

.htu-slide-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.htu-slide-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.htu-slide-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.htu-slide-text strong {
    color: #10B981;
}

.htu-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 20px;
}

.htu-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.htu-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.htu-dot.active {
    background: #10B981;
    transform: scale(1.2);
}

.htu-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.htu-nav-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.htu-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.htu-nav-btn.htu-next {
    background: linear-gradient(135deg, #10B981, #059669);
    border-color: transparent;
    color: #FFFFFF;
}

.htu-nav-btn.htu-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .htp-popup-content {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .htp-popup-icon,
    .htp-slide-emoji {
        font-size: 2.5rem;
    }
    
    .htp-popup-title {
        font-size: 1.3rem;
    }
    
    .htp-slide-title {
        font-size: 1.1rem;
    }
    
    .htu-popup-content {
        padding: 24px 20px;
    }
    
    .htu-slide-icon {
        font-size: 2.5rem;
    }
    
    .htu-slide-title {
        font-size: 1.1rem;
    }
}
/* ============================================
   MOBILE ELEMENTS - Hidden by default on desktop
   These are shown only via mobile.css
   ============================================ */
.mobile-menu-btn {
    display: none !important;
    pointer-events: none;
}

.mobile-menu-overlay {
    display: none !important;
    pointer-events: none;
}

.mobile-nav {
    display: none !important;
    pointer-events: none;
}

.mobile-menu-close {
    display: none !important;
    pointer-events: none;
}