/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --color-primary: #8A2BE2;
    --color-primary-hover: #9A3BF2;
    --color-secondary: #667eea;
    --color-success: #34C759;
    --color-warning: #FFA500;
    --color-error: #FF3B30;
    --color-gold: #FFD700;
    
    /* Background Colors */
    --color-bg-dark: #0A0E27;
    --color-bg-card: #1A1F38;
    --color-bg-light: #13182F;
    --color-bg-border: #2A2F45;
    
    /* Text Colors */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #B0B0C0;
    --color-text-muted: #6A6F85;
    
    /* 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; }

/* ===== ACCESSIBILITY - SKIP TO CONTENT ===== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #8A2BE2;
    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: #0A0E27;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.initial-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2A2F45;
    border-top-color: #8A2BE2;
    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: #0A0E27;
    color: #FFFFFF;
    min-height: 100vh;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 100%, #1a1a2e 0%, #0d0d15 100%);
}

/* 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(138, 43, 226, 0.6) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.ambient-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
}

.ambient-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(178, 75, 243, 0.4) 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(138, 43, 226, 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(138, 43, 226, 0.5);
    }
    100% {
        width: 800px;
        height: 800px;
        opacity: 0;
        border-color: rgba(138, 43, 226, 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(138, 43, 226, 0.25) 0%,
        rgba(99, 102, 241, 0.15) 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(138, 43, 226, 0.2) 0%,
        rgba(99, 102, 241, 0.1) 25%,
        rgba(178, 75, 243, 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(138, 43, 226, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(99, 102, 241, 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: #8A2BE2;
    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: #8A2BE2;
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
}

.login-input::placeholder {
    color: #6A6F85;
    font-weight: 400;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8A2BE2 0%, #9A3BF2 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(138, 43, 226, 0.4);
    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, #9A3BF2 0%, #AA4BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.5);
}

.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: #8A2BE2;
}

.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: #8A2BE2;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    font-weight: 600;
    transition: color 0.3s;
}

.login-link:hover {
    color: #9A3BF2;
    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: 10px;
    color: #C5D0DE;
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8A2BE2;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label a {
    color: #8A2BE2;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    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: 100;
}

.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: #8A2BE2;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: color 0.2s;
}

.logo-small:hover {
    color: #9A3BF2;
}

.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 0%, #FFA500 100%);
    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 4px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.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;
}

.profile-menu {
    position: relative;
}

.profile-pic {
    width: 40px;
    height: 40px;
    background: #8A2BE2;
    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: 1000;
    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: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* ===== HOME PAGE - CHAPITRES ===== */
.page-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 10px;
}

.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;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

.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;
}

.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: sticky;
    top: 70px;
    z-index: 90;
    border-bottom: 1px solid #2A2F45;
}

.chapter-back-btn {
    margin-bottom: 0;
}

.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;
}

.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, #667eea 0%, #764ba2 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%, #667eea 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-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(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 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: #8A2BE2;
}

.progress-bar.completed {
    background: #34C759;
}

.upgrade-btn-lesson {
    background: #FFFFFF;
    color: #8A2BE2;
    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(138, 43, 226, 0.4); /* Semi-transparent purple */
    border-radius: 10px; /* Rounded ends */
    transition: background 0.2s;
}

.lesson-content::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.7); /* More visible on hover */
}

.theory-content h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.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-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: #8A2BE2;
}

.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;
}

.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;
    transition: all 0.2s;
}

.code-block:hover {
    background: #1A1F38;
    border-color: #8A2BE2;
}

.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;
}

@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, #8A2BE2 0%, #9A3BF2 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(138, 43, 226, 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, #9A3BF2 0%, #AA4BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 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 #8A2BE2;
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    z-index: 99998;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 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(138, 43, 226, 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: #8A2BE2;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.faq-header {
    margin-bottom: 40px;
}

.faq-badge {
    background: #8A2BE2;
    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: #8A2BE2;
}

.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: #9A3BF2;
}

.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: #9A3BF2;
}

.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: #9A3BF2;
}

.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, #667eea 0%, #764ba2 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: #667eea;
    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, #B24BF3 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 ===== */
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-subtitle {
    color: #B0B0C0;
    font-size: 1.1em;
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
}

.pricing-toggle-btn {
    background: transparent;
    border: 2px solid #2A2F45;
    color: #B0B0C0;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, #8a2be2 0%, #9a3bf2 100%);
    border-color: #8a2be2;
    color: #FFFFFF;
}

.pricing-toggle-btn:hover:not(.active) {
    border-color: #8a2be2;
    color: #FFFFFF;
}

.pricing-save-badge {
    position: absolute;
    right: calc(50% + 130px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 50%, #8B5CF6 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.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(135deg, #1A1F38 0%, #13182F 100%);
    border: 2px solid #2A2F45;
    border-radius: 16px;
    padding: 40px;
    max-width: 350px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #8A2BE2;
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
    transform: translateY(-5px);
}

.pricing-card-featured {
    border: 2px solid #8A2BE2;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.3);
    transform: scale(1.05);
}

.pricing-plan-name {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.pricing-plan-desc {
    color: #B0B0C0;
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.pricing-amount {
    font-size: 2.5em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0;
}

.pricing-period {
    color: #B0B0C0;
    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%, #9a3bf2 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.pricing-btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.5);
}

.pricing-btn-premium:active {
    transform: translateY(0) scale(0.98);
}

.pricing-btn-basic {
    background: transparent;
    border: 2px solid #2A2F45;
    color: #B0B0C0;
    cursor: not-allowed;
    opacity: 0.6;
}

.pricing-features {
    list-style: none;
    text-align: left;
}

.pricing-features li {
    color: #B0B0C0;
    padding: 10px 0;
    font-size: 0.95em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-info {
    text-align: center;
    color: #B0B0C0;
    font-size: 0.9em;
}

.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%, #B24BF3 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: #8A2BE2;
    background: linear-gradient(135deg, rgba(138, 43, 226, 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(138, 43, 226, 0.2);
    color: #B24BF3;
    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: #8A2BE2;
    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: #8A2BE2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.faq-answer a:hover {
    color: #B24BF3;
    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: #8A2BE2;
}

.faq-link-btn:hover {
    background: #9A3BF2;
}

/* ===== 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 #8A2BE2;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 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(138, 43, 226, 0.3);
}

.premium-popup-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.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: #8A2BE2;
    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: #9A3BF2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 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 0%, #FFA500 100%);
    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 4px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.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, #667eea 0%, #764ba2 100%);
    border-radius: 60px;
    cursor: pointer;
    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);
    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(102, 126, 234, 0.7));
}



.mascotte-face:active {
    transform: scale(0.95);
}

.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, #8A2BE2, #667eea);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 8px rgba(138, 43, 226, 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 #667eea;
    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: 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 BUBBLE ===== */
.profile-bubble {
    background: linear-gradient(135deg, #1F2A42 0%, #141B2E 100%);
    border: 2px solid #667eea;
    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, #667eea 0%, #764ba2 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, #667eea 0%, #764ba2 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, #667eea 0%, #764ba2 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: #667eea;
}

.option-icon {
    font-size: 1.2em;
}

.option-text {
    font-size: 1em;
}

/* 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;
    margin-bottom: 15px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.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: #667eea;
    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;
}

#editorCanvas {
    border-radius: 50%;
    cursor: grab;
}

#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, #667eea 0%, #667eea 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: #667eea;
    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: #667eea;
}

.editor-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    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: #667eea;
    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 #667eea;
    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, #667eea 0%, #764ba2 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, #667eea);
    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 #667eea;
    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 #667eea;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 15px;
    text-align: center;
}

.modules-number {
    font-size: 42px;
    font-weight: 800;
    color: #667eea;
    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, #667eea 0%, #764ba2 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;
}

/* --- 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%, #b24bf3 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%, #9a3bf2 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;
}

/* 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; }
}

/* ===== OLD CODE WINDOW (keeping for reference) ===== */
.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%, #9a3bf2 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 {
    background: #0A0E27;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
}

/* 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%, #667EEA 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;
    }
}

/* 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, #667EEA);
    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%, #9A3BF2 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%, #9a3bf2 100%);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    min-height: 250px;
    justify-content: center;
}

.playground-tab::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;
}

.playground-tab:not(.locked):hover::after {
    left: 100%;
}

.playground-tab:not(.locked):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
}

/* Luau Fundamentals - Purple Gradient */
.playground-tab:first-child {
    background: linear-gradient(135deg, #8a2be2 0%, #9a3bf2 100%);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.playground-tab:first-child:hover {
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
}

/* Game Systems - Blue/Indigo Gradient */
.playground-tab:nth-child(2):not(.locked) {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.playground-tab:nth-child(2):not(.locked):hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* 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;
}

/* 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 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #B0B0C0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1.5em;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.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: 9999;
    overflow-y: auto;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.legal-page .back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(42, 47, 69, 0.8);
    border: 1px solid #2A2F45;
    color: #B0B0C0;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.legal-page .back-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8A2BE2;
    color: #FFFFFF;
}

.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: #8A2BE2;
    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, #8A2BE2 0%, #9A3BF2 100%);
    color: #FFFFFF;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 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;
    }
}