     * { font-family: 'Lexend', sans-serif; scroll-behavior: smooth; }
    body { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
    img { pointer-events: none; -webkit-user-drag: none; }
    .reader-img { width: 100%; max-width: 900px; margin: 0 auto; display: block; height: auto; }
    .title-font { font-family: 'Space Grotesk', sans-serif; }
    .gradient-bg { background: linear-gradient(135deg, #fdfcfd 0%, #f7f3ff 100%); }
    .dark .gradient-bg { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
    
    header, #reader-header, #noodles-sidebar { padding-top: max(env(safe-area-inset-top), 12px) !important; }

    @keyframes ramen-pulse {
        0% { transform: scale(1); opacity: 0.8; }
        50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 10px #9b59b6); }
        100% { transform: scale(1); opacity: 0.8; }
    }
    .animate-ramen { animation: ramen-pulse 1.5s infinite ease-in-out; }
    
    @keyframes pulse-ring { 0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(236, 72, 153, 0); } 100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); } }
    .ping-dot { animation: pulse-ring 2s infinite; }
    
    #noodles-sidebar { transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
    #sidebar-overlay { transition: opacity 0.3s ease; }

    .card-shadow { transition: all 0.3s ease; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.15); }
    .card-shadow:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.25); }
    
    .hide-scroll::-webkit-scrollbar { display: none; }
    .hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

    @keyframes skeleton-pulse { 0% { background-color: rgba(168, 85, 247, 0.1); } 50% { background-color: rgba(168, 85, 247, 0.2); } 100% { background-color: rgba(168, 85, 247, 0.1); } }
    .skeleton-bg { animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

    @keyframes page-flip {
        0% { opacity: 0.4; transform: perspective(2000px) rotateY(45deg) translateX(40px); }
        100% { opacity: 1; transform: perspective(2000px) rotateY(0) translateX(0); }
    }
    .page-flip-anim { animation: page-flip 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; transform-origin: right center; }

    .netflix-hover { transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    @media (hover: hover) and (pointer: fine) { .group:hover .netflix-hover { transform: translateY(0); } }
    @media (max-width: 768px) { .netflix-hover { display: none !important; } }

    .ribbon { position: absolute; top: 15px; left: -35px; width: 140px; transform: rotate(-45deg); text-align: center; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; padding: 6px 0; color: white; z-index: 30; }
    .ribbon-hot { background: #ef4444; } .ribbon-new { background: #ec4899; } .ribbon-soon { background: #64748b; } .ribbon-ongoing { background: #7c3aed; } .ribbon-completed { background: #10b981; } .ribbon-update { background: #f59e0b; }
    
    .custom-scroll::-webkit-scrollbar { width: 6px; }
    .custom-scroll::-webkit-scrollbar-thumb { background: #d8b4f8; border-radius: 10px; }
    .glass-modal { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); }
    .dark .glass-modal { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); }
    .glow-purple { filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.5)); }
    #reader-header { transition: transform 0.3s ease-in-out, opacity 0.3s; }
    .header-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

    .featured-glass { background: rgba(0,0,0,0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    .dash-tab { border-bottom: 2px solid transparent; transition: all 0.2s ease; }
    .dash-tab.active { border-bottom: 2px solid #9333ea; color: #9333ea; font-weight: 900; }
    .dark .dash-tab.active { color: #c084fc; border-bottom: 2px solid #c084fc; }
    
    /* --- 💅 ASK WANDA (FRONT OF HOUSE) --- */
        #wanda-fab { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--accent)); color: white; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; cursor: pointer; box-shadow: 0 10px 20px rgba(147,51,234,0.4); z-index: 9999; transition: 0.3s; }
        #wanda-fab:hover { transform: scale(1.1) rotate(10deg); }
        
       /* --- 💅 WANDA CHAT WINDOW (PREMIUM FROSTED GLASS) --- */
        #wanda-chat-window {
            position: fixed; 
            bottom: 90px; 
            right: 20px; 
            width: 380px; /* 📏 BIGGER BOX: Increased width */
            max-width: calc(100vw - 30px);
            height: 600px; /* 📏 TALLER BOX: Increased height */
            max-height: 85vh;
            border-radius: 20px; 
            box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
            display: none; 
            flex-direction: column; 
            z-index: 9998; 
            overflow: hidden; 
            transform-origin: bottom right; 
            transition: 0.3s;
            background: rgba(255, 255, 255, 0.85); 
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px); 
            border: 1px solid rgba(255, 255, 255, 0.3);
            opacity: 1; 
        }

        [data-theme="dark"] #wanda-chat-window {
            background: rgba(30, 41, 59, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
       /* 🎩 THE HEADER (FIXED VISIBILITY) */
        .wanda-header { 
            background: rgba(147, 51, 234, 0.08) !important; /* Soft purple tint */
            color: #9333ea !important; /* 🚨 BOLD PURPLE TEXT */
            padding: 16px 20px; 
            font-weight: 900 !important; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            font-size: 1.1rem; 
            letter-spacing: 1px; 
            border-bottom: 1px solid rgba(147, 51, 234, 0.15);
        }
        
        .wanda-header button { 
            background: transparent !important; 
            border: none !important; 
            color: #9333ea !important; /* 🚨 PURPLE 'X' CLOSE BUTTON */
            font-size: 1.8rem; 
            cursor: pointer; 
            line-height: 1; 
            padding: 0; 
            font-weight: bold;
            transition: 0.2s;
        }

        .wanda-header button:hover {
            transform: scale(1.2);
            color: #ec4899 !important; /* Turns pink when hovered */
        }
        
        .wanda-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 0.8rem; /* 📉 SMALLER TEXT: Better reading */ }
        .wanda-msg { padding: 10px 14px; border-radius: 15px; max-width: 85%; line-height: 1.4; color: var(--text); }
        .wanda-msg.bot { background: rgba(147,51,234,0.1); border-bottom-left-radius: 2px; border: 1px solid var(--border); }
        .wanda-msg.user { background: var(--purple); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
        .wanda-msg a { color: var(--accent); font-weight: bold; text-decoration: underline; }

       /* 💅 WANDA NAME VISIBILITY FIX */
.wanda-msg strong {
    color: #9333ea !important; /* Forces vibrant purple on any background */
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0px 1px 1px rgba(147, 51, 234, 0.1); /* Adds depth */
}
        
    /* 🍱 THE 10-BUTTON MENU GRID (COMPACT DIET) */
.wanda-suggestions {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 5px; /* 📉 Tighter gap between buttons */
    padding: 8px; /* 📉 Less padding around the grid */
    background: rgba(147, 51, 234, 0.03);
    border-top: 1px dashed var(--border);
}

.wanda-suggestions button {
    width: 100% !important;
    height: 32px !important; /* 📉 SHRUNK FROM 48px: Frees up massive chat space! */
    background: white !important;
    border: 1px solid rgba(147, 51, 234, 0.15) !important; 
    border-radius: 8px !important; /* Sharper corners for a compact look */
    font-size: 0.7rem !important; /* Crisper, slightly smaller text */
    font-weight: 700 !important;
    color: var(--purple) !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    text-align: center !important;
    padding: 0 4px !important;
    transition: 0.2s;
}

.wanda-suggestions button:hover {
    background: var(--purple) !important;
    color: white !important;
}
        
        .wanda-input-area { display: flex; padding: 10px; gap: 8px; border-top: 1px solid var(--border); background: var(--card); }
        .wanda-input-area input { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 8px 12px; background: rgba(255,255,255,0.5); color: var(--text); outline: none; font-family: 'Lexend'; font-size: 16px !important; /* 🚨 PREVENTS IPHONE ZOOM */ }
        .dark .wanda-input-area input { background: rgba(0,0,0,0.3); }
        .wanda-input-area button { background: var(--purple); color: white; border: none; border-radius: 50%; width: 35px; height: 35px; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(147,51,234,0.3); }
        
        /* 🌙 WANDA DARK MODE OVERRIDES */
        .dark #wanda-chat-window { background: rgba(30, 41, 59, 0.95); border-color: rgba(147, 51, 234, 0.3); }
        .dark .wanda-header { background: rgba(147, 51, 234, 0.15) !important; color: #d8b4fe !important; border-bottom-color: rgba(147, 51, 234, 0.2); }
        .dark .wanda-msg { color: #f1f5f9 !important; }
        .dark .wanda-msg.bot { background: rgba(147, 51, 234, 0.1) !important; border: 1px solid rgba(255, 255, 255, 0.05); }
        .dark .wanda-suggestions { background: rgba(0, 0, 0, 0.2); border-top-color: rgba(255, 255, 255, 0.1); }
        .dark .wanda-suggestions button { background: rgba(30, 41, 59, 0.8) !important; color: #d8b4fe !important; border-color: rgba(147, 51, 234, 0.3) !important; }
        .dark .wanda-suggestions button:hover { background: #9333ea !important; color: white !important; }
        .dark .wanda-input-area { background: #0f172a; border-top-color: rgba(255, 255, 255, 0.1); }
        .dark .wanda-input-area input { background: rgba(0, 0, 0, 0.3); color: white; }
        /* --- ✨ KAOMOJI PANTRY (UPDATED 4-COL) --- */
.kaomoji-container { 
    position: relative; 
    display: inline-block; 
}

#kaomoji-picker { 
    position: absolute; 
    bottom: 50px; 
    left: 0; 
    width: 300px; 
    max-height: 250px; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--purple); 
    border-radius: 18px; 
    padding: 12px;
    display: none; 
    grid-template-columns: repeat(4, 1fr); /* Clean 4-column grid */
    gap: 8px;
    overflow-y: auto; 
    z-index: 1000; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

/* 🌙 Dark Mode Support */
[data-theme="dark"] #kaomoji-picker { 
    background: rgba(30, 41, 59, 0.95); 
    border-color: var(--accent); 
}

.kao-btn { 
    background: rgba(147, 51, 234, 0.05); 
    border: 1px solid rgba(147, 51, 234, 0.1); 
    border-radius: 8px;
    padding: 8px 4px; 
    cursor: pointer; 
    font-size: 0.75rem; 
    transition: 0.2s;
    color: var(--text); 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.kao-btn:hover { 
    background: var(--purple); 
    color: white; 
    transform: scale(1.08); 
    z-index: 10;
}

#kao-trigger { 
    cursor: pointer; 
    font-size: 1.4rem; 
    filter: grayscale(1); 
    transition: 0.3s; 
    padding: 5px;
}

#kao-trigger:hover { 
    filter: grayscale(0); 
    transform: rotate(15deg) scale(1.1); 
}