/* =========================================
           ELITE VARIABLES & COLORS
           ========================================= */
        :root {
            --bg-void: #030303;
            --bg-hub: #050408; 
            --bg-surface: rgba(15, 15, 18, 0.95);
            --bg-glass: rgba(20, 20, 24, 0.4);
            
            --tier1-color: #C5FF4A; /* Neon Lime */
            --tier2-color: #00F0FF; /* Cyan */
            --tier3-color: #B026FF; /* Purple */
            --architect-color: #FF2A5F; /* Crimson */
            --terminal-green: #00ff41; /* Pipo AI Color */
            
            --locked-color: #444;
            --error-color: #FF2A5F;

            --current-theme: var(--tier1-color); 
            
            --text-main: #F4F4F5;
            --text-dim: #A1A1AA;
            
            --font-display: 'VT323', monospace;
            --font-mono: 'Share Tech Mono', monospace;
            
            --spring: cubic-bezier(0.175, 0.885, 0.32, 1.15);
            --ease-cinematic: cubic-bezier(0.25, 1, 0.25, 1);
            
            --topbar-height: 75px;
            --sidebar-min-width: 80px;
            --sidebar-max-width: 250px;
        }

        /* =========================================
           RESET & CORE
           ========================================= */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        html, body {
            background-color: var(--bg-hub); 
            color: var(--text-main);
            font-family: var(--font-mono); 
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        a, button, input, select { cursor: pointer; position: relative; z-index: 50; }
        input[type="text"], input[type="search"] { cursor: text; }
        a { text-decoration: none; color: inherit; }

        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-void); }
        ::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--current-theme); }

        /* =========================================
           OVERLAYS & WAVY GRID BACKGROUND
           ========================================= */
        .crt-scanlines { position: fixed; inset: 0; pointer-events: none !important; z-index: 9999; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02)); background-size: 100% 3px, 3px 100%; opacity: 0.5; }
        .crt-vignette { position: fixed; inset: 0; pointer-events: none !important; z-index: 9998; background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.95) 100%); }
        .noise { position: fixed; inset: 0; pointer-events: none !important; z-index: 9997; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }
        
        .wavy-grid { 
            position: fixed; inset: -20%; z-index: 0; pointer-events: none !important; opacity: 0.15; 
            background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); 
            background-size: 50px 50px; filter: url(#soft-wave); 
            mask-image: radial-gradient(ellipse at top center, black 0%, transparent 80%);
            -webkit-mask-image: radial-gradient(ellipse at top center, black 0%, transparent 80%);
        }
        #void-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none !important; opacity: 0.7; }

        /* GLITCH LOADER */
        #fastGlitch { position: fixed; inset: 0; background: var(--bg-void); z-index: 100000; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: fastBoot 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
        #fastGlitch::before, #fastGlitch::after { content: ''; position: absolute; inset: 0; background: var(--bg-void); }
        #fastGlitch::before { background: rgba(197, 255, 74, 0.2); mix-blend-mode: overlay; animation: splitLeft 0.5s steps(2) forwards; }
        #fastGlitch::after { background: rgba(255, 42, 95, 0.2); mix-blend-mode: overlay; animation: splitRight 0.5s steps(3) forwards; }
        @keyframes fastBoot { 0% { opacity: 1; filter: invert(1) contrast(200%); clip-path: inset(10% 0 20% 0); } 30% { opacity: 0.8; filter: invert(0) contrast(150%) hue-rotate(90deg); clip-path: inset(40% 0 40% 0); transform: translateX(-20px); } 60% { opacity: 0.9; filter: invert(1); clip-path: inset(0 0 80% 0); transform: translateX(20px); } 100% { opacity: 0; display: none; } }
        @keyframes splitLeft { 0% { transform: translateX(-30px); } 100% { transform: translateX(0); opacity: 0; } }
        @keyframes splitRight { 0% { transform: translateX(30px); } 100% { transform: translateX(0); opacity: 0; } }

        /* =========================================
           LAYOUT ARCHITECTURE (SIDEBAR + MAIN)
           ========================================= */
        .app-wrapper { display: flex; width: 100%; min-height: 100vh; position: relative; z-index: 10; }

        /* 1. LEFT SIDEBAR */
        .sidebar {
            position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-min-width);
            background: rgba(4, 4, 5, 0.95); backdrop-filter: blur(20px); border-right: 1px solid rgba(255,255,255,0.05);
            display: flex; flex-direction: column; transition: width 0.3s var(--ease-cinematic);
            z-index: 1000; overflow: hidden;
        }
        body.sidebar-open .sidebar { width: var(--sidebar-max-width); }

        .sidebar-header {
            height: var(--topbar-height); display: flex; align-items: center; justify-content: center;
            border-bottom: 1px solid rgba(255,255,255,0.05); position: sticky; top: 0; background: inherit; z-index: 10;
        }
        
        .sidebar-logo { display: flex; align-items: center; justify-content: center; width: 100%; flex-shrink: 0; text-decoration: none;}
        .sidebar-logo img { height: 28px; width: auto; filter: drop-shadow(0 0 8px var(--current-theme)); transition: all 0.3s; }
        body.sidebar-open .sidebar-logo { justify-content: flex-start; padding-left: 1.5rem; }
        body.sidebar-open .sidebar-logo img { height: 35px; }

        /* Toggle Arrow Below Logo */
        .sidebar-toggle-wrap { display: flex; justify-content: center; width: 100%; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); transition: padding 0.4s; flex-shrink: 0;}
        body.sidebar-open .sidebar-toggle-wrap { justify-content: flex-end; padding-right: 1rem; }
        
        .btn-toggle-arrow {
            background: transparent; border: none; color: var(--text-dim); height: 30px; border-radius: 4px;
            display: flex; align-items: center; justify-content: center; gap: 0; transition: all 0.4s var(--spring); cursor: pointer;
            overflow: hidden; width: 30px; padding: 0; /* Base width just for icon */
        }
        body.sidebar-open .btn-toggle-arrow {
            width: auto; padding: 0 0.8rem; gap: 0.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
        }
        .btn-toggle-arrow:hover { background: rgba(255,255,255,0.08); color: var(--current-theme); }
        
        /* The SVG target is important here for Lucide Icons */
        .btn-toggle-arrow svg { transition: transform 0.4s var(--spring); width: 18px; flex-shrink: 0;}
        body.sidebar-open .btn-toggle-arrow svg { transform: rotate(180deg); }

        .toggle-text {
            font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; font-weight: 700;
            opacity: 0; width: 0; overflow: hidden; white-space: nowrap; pointer-events: none; transition: opacity 0.3s, width 0.3s;
        }
        body.sidebar-open .toggle-text { opacity: 1; width: 65px; }

        .sidebar-menu { padding: clamp(0.5rem, 1.5vh, 1rem) 0.5rem; display: flex; flex-direction: column; gap: clamp(0.1rem, 0.8vh, 0.2rem); flex-grow: 1; overflow: hidden; justify-content: center;}
        
        .nav-item {
            display: flex; align-items: center; padding: clamp(0.4rem, 1.2vh, 0.8rem); color: var(--text-dim);
            text-decoration: none; font-size: clamp(0.7rem, 1.5vh, 0.85rem); text-transform: uppercase; font-weight: 700;
            border-radius: 8px; transition: all 0.2s; width: 100%; overflow: hidden; white-space: nowrap; flex-shrink: 0;
        }
        .nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
        .nav-item.active { background: rgba(255,255,255,0.08); color: var(--current-theme); }
        
        .nav-icon { min-width: 45px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;}
        .nav-icon i { width: clamp(18px, 2.5vh, 22px); }
        
        .nav-text { opacity: 0; display: none; transition: opacity 0.2s; font-family: var(--font-mono); margin-left: 0.5rem; pointer-events: none;}
        body.sidebar-open .nav-text { opacity: 1; display: block; }
        
        .sidebar-divider { height: 1px; background: rgba(255,255,255,0.05); margin: clamp(0.2rem, 1vh, 0.5rem) 0; width: 100%; flex-shrink: 0;}
        
        .sidebar-heading { 
            font-family: var(--font-mono); font-size: clamp(0.55rem, 1.2vh, 0.65rem); color: #666; text-transform: uppercase; 
            letter-spacing: 0.1em; padding: 0 1rem; margin-top: clamp(0.2rem, 1vh, 0.5rem); margin-bottom: clamp(0.2rem, 1vh, 0.5rem); opacity: 0; display: none; white-space: nowrap; flex-shrink: 0;
        }
        body.sidebar-open .sidebar-heading { opacity: 1; display: block; }

        .sidebar-bottom { margin-top: auto; padding-bottom: clamp(0.5rem, 2vh, 1rem); display: flex; flex-direction: column; gap: clamp(0.2rem, 1vh, 0.5rem); flex-shrink: 0;}
        
        .btn-pipo-toggle { display: flex; align-items: center; padding: clamp(0.5rem, 1.5vh, 0.8rem); border: 1px solid rgba(0,255,65,0.2); border-radius: 8px; background: rgba(0,255,65,0.05); color: var(--terminal-green); font-size: clamp(0.7rem, 1.5vh, 0.85rem); text-transform: uppercase; font-weight: 700; transition: all 0.3s; width: 100%; cursor: pointer; overflow: hidden; white-space: nowrap; flex-shrink: 0;}
        .btn-pipo-toggle:hover { background: var(--terminal-green); color: #000; box-shadow: 0 0 15px rgba(0,255,65,0.4); }
        .btn-pipo-toggle .nav-text { color: inherit; }

        /* 2. MAIN COLUMN */
        .main-col {
            flex-grow: 1; margin-left: var(--sidebar-min-width); display: flex; flex-direction: column;
            min-height: 100vh; transition: margin-left 0.4s var(--spring), width 0.4s var(--spring); 
            width: calc(100% - var(--sidebar-min-width));
        }
        body.sidebar-open .main-col { margin-left: var(--sidebar-max-width); width: calc(100% - var(--sidebar-max-width)); }

        /* TOP NAVBAR */
        .topbar {
            position: fixed; top: 0; left: var(--sidebar-min-width); width: calc(100% - var(--sidebar-min-width)); height: var(--topbar-height);
            background: rgba(4, 4, 5, 0.95); backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 900;
            display: flex; align-items: center; justify-content: space-between; padding: 0 2rem;
            transition: all 0.4s var(--spring);
        }
        body.sidebar-open .topbar { left: var(--sidebar-max-width); width: calc(100% - var(--sidebar-max-width)); }

        .tb-left { display: flex; align-items: center; }
        .nav-logo-top { display: none; align-items: center; text-decoration: none; position: relative; z-index: 50;}
        .nav-logo-top img { height: 30px; width: auto; filter: drop-shadow(0 0 8px var(--current-theme)); }

        .search-wrapper { flex: 0 1 600px; display: flex; align-items: center; justify-content: center; position: relative; margin: 0 2rem;}
        .search-box { display: flex; width: 100%; height: 42px; border-radius: 40px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.6); transition: border-color 0.3s;}
        .search-box:focus-within { border-color: var(--current-theme); box-shadow: 0 0 15px rgba(255,255,255,0.02); }
        .search-input { flex: 1; background: transparent; border: none; color: #fff; font-family: var(--font-mono); font-size: 0.9rem; padding: 0 1.5rem; outline: none; }
        .search-btn { width: 65px; background: rgba(255,255,255,0.05); border: none; border-left: 1px solid rgba(255,255,255,0.1); color: var(--text-dim); display: flex; align-items: center; justify-content: center; transition: all 0.2s;}
        .search-btn:hover { background: rgba(255,255,255,0.1); color: var(--current-theme); }

        .tb-right { display: flex; align-items: center; gap: 0.5rem; }
        
        .action-icon {
            background: transparent; border: 1px solid transparent; color: var(--text-dim);
            width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            transition: all 0.3s var(--spring); position: relative; cursor: pointer;
        }
        .action-icon:hover { background: rgba(255,255,255,0.05); color: var(--current-theme); border-color: var(--current-theme); transform: translateY(-2px);}
        .action-icon.has-notif::after { content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; background: var(--current-theme); border-radius: 50%; box-shadow: 0 0 8px var(--current-theme); }

        .desktop-create-wrapper { position: relative; display: none; margin-right: 0.5rem;}
        .btn-create {
            background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: #fff;
            font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
            padding: 0 1.2rem; height: 42px; border-radius: 20px; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s var(--spring); cursor: pointer;
        }
        .btn-create:hover, .btn-create.active { border-color: var(--current-theme); color: var(--current-theme); box-shadow: 0 0 15px rgba(197, 255, 74, 0.1); background: rgba(255,255,255,0.05); transform: translateY(-2px);}
        
        .create-dropdown {
            position: absolute; top: 100%; right: 0; margin-top: 15px; width: 200px;
            background: rgba(12, 12, 15, 0.98); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.9); backdrop-filter: blur(20px);
            display: flex; flex-direction: column; padding: 0.5rem;
            opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all 0.2s var(--spring); z-index: 1005;
        }
        .create-dropdown.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
        .c-opt-btn { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; color: #fff; font-size: 0.85rem; text-transform: uppercase; border-radius: 4px; transition: all 0.2s; background: transparent; border: none; font-family: var(--font-mono); text-align: left; cursor: pointer; }
        .c-opt-btn:hover { background: rgba(255,255,255,0.05); color: var(--current-theme); padding-left: 1.2rem;}

        .user-nav-profile { position: relative; cursor: pointer; padding: 0.2rem; border-radius: 50%; transition: opacity 0.2s; margin-left: 0.5rem;}
        .mini-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--current-theme); background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: all 0.3s;}
        .user-nav-profile:hover .mini-avatar { transform: scale(1.05); }
        .mini-avatar img { width: 100%; height: 100%; object-fit: cover; display: none; }
        .mini-initials { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 900; }

        .profile-dropdown { 
            position: absolute; top: 100%; right: 0; margin-top: 15px; width: 280px; 
            background: rgba(12, 12, 15, 0.98); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; 
            box-shadow: 0 20px 50px rgba(0,0,0,0.9); backdrop-filter: blur(20px); 
            display: flex; flex-direction: column; opacity: 0; pointer-events: none; 
            transform: translateY(-10px); transition: all 0.3s var(--spring); z-index: 1005;
        }
        .user-nav-profile.active .profile-dropdown { opacity: 0.6; pointer-events: auto; transform: translateY(0); }
        .profile-dropdown:hover { opacity: 1 !important; background: rgba(8, 8, 10, 1); }
        
        .pd-header { padding: 2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;}
        .pd-avatar-large { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--current-theme); margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; box-shadow: 0 10px 20px rgba(0,0,0,0.5);}
        .pd-avatar-large img { width: 100%; height: 100%; object-fit: cover; display: none;}
        .pd-initials-large { font-family: var(--font-display); font-size: 2.5rem; color: #fff; font-weight: 900; }
        
        .pd-codename { font-family: var(--font-display); font-size: 1.6rem; color: #fff; line-height: 1; font-weight: 900; text-transform: uppercase; margin-bottom: 0.5rem;}
        .pd-role { font-size: 0.65rem; color: #000; background: var(--current-theme); padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 900; }

        .pd-body { padding: 0.5rem; display: flex; flex-direction: column;}
        .pd-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; color: var(--text-dim); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 4px; transition: all 0.2s; cursor: pointer; border: none; background: transparent; font-family: var(--font-mono); text-align: left;}
        .pd-item:hover { background: rgba(255,255,255,0.05); color: #fff; padding-left: 1.5rem;}
        .pd-item i { color: var(--current-theme); width: 18px;}
        .pd-item.logout { color: var(--error-color); margin-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.05); border-radius: 0 0 4px 4px;}
        .pd-item.logout i { color: var(--error-color); }
        .pd-item.logout:hover { background: rgba(255, 42, 95, 0.1); color: var(--error-color); }

        /* =========================================
           MAIN SCROLLABLE CONTENT AREA
           ========================================= */
        .content-main { padding: var(--topbar-height) 2rem 0 2rem; position: relative; z-index: 10; display: flex; flex-direction: column; gap: 2rem; max-width: 1800px; margin: 0 auto; width: 100%;}
        
        /* CHIPS (Magnetic Drag Scroll) */
        .chips-wrapper { position: sticky; top: var(--topbar-height); background: rgba(4, 4, 5, 0.95); backdrop-filter: blur(10px); z-index: 800; padding: 1rem 0; margin: 0 -2rem; padding-inline: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s;}
        .chips-wrapper.hidden-by-scroll { transform: translateY(-100%); }

        .category-chips { display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; cursor: grab; }
        .category-chips::-webkit-scrollbar { display: none; }
        .chip { padding: 0.5rem 1.2rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; font-size: 0.8rem; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; transition: all 0.2s; font-weight: 700; user-select: none;}
        .chip:hover { background: rgba(255,255,255,0.1); }
        .chip.active { background: #fff; color: #000; border-color: #fff; }

        .section-title { font-family: var(--font-display); font-size: 2rem; color: #fff; text-transform: uppercase; margin-top: 1rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem;}
        .section-title span { color: var(--current-theme); }
        .section-title::after { content: ''; flex-grow: 1; height: 1px; background: linear-gradient(to right, rgba(255,255,255,0.1), transparent); }

        .hero-feature { width: 100%; height: 450px; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 40px rgba(0,0,0,0.6); display: flex; align-items: flex-end; padding: 3rem; text-decoration: none; transition: transform 0.4s var(--spring), border-color 0.4s; margin-bottom: 1rem; cursor: pointer; display: block; z-index: 50;}
        .hero-feature:hover { transform: scale(1.01); border-color: var(--current-theme); }
        .hf-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) brightness(0.5); transition: all 0.8s; z-index: 0; pointer-events: none;}
        .hero-feature:hover .hf-bg { filter: grayscale(0%) brightness(0.7); transform: scale(1.03); }
        .hero-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 70%); z-index: 1; pointer-events: none;}
        
        .hf-content { position: relative; z-index: 2; max-width: 800px; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; height: 100%;}
        .hf-tag { display: inline-block; font-size: 0.7rem; color: #000; background: var(--current-theme); padding: 4px 12px; border-radius: 4px; text-transform: uppercase; font-weight: 900; letter-spacing: 0.1em; margin-bottom: 1rem; box-shadow: 0 0 15px var(--current-theme); width: fit-content;}
        .hf-title { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 900; color: #fff; line-height: 1; text-transform: uppercase; margin-bottom: 1rem; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
        .hf-desc { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; text-shadow: 0 2px 5px rgba(0,0,0,0.8); margin-bottom: 1.5rem;}
        .btn-play { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; background: #fff; color: #000; padding: 0.8rem 1.5rem; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); font-size: 0.9rem; transition: all 0.3s; pointer-events: auto; width: fit-content;}
        .hero-feature:hover .btn-play { background: var(--current-theme); box-shadow: 0 0 20px rgba(197,255,74,0.4); }

        /* CONTENT GRID */
        .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; contain: layout style; }

        .video-card { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.2s ease; will-change: transform; transform: translateZ(0); }
        .video-card:hover { transform: translateY(-5px); }

        .v-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); background: #111; pointer-events: none;}
        .v-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-cinematic), filter 0.4s; pointer-events: none;}
        .video-card:hover .v-thumb { transform: scale(1.05); filter: brightness(1.1); }
        .v-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: #fff; padding: 3px 8px; font-size: 0.75rem; border-radius: 4px; font-weight: 700; z-index: 2; pointer-events: none;}

        .v-info { display: flex; gap: 1rem; align-items: flex-start; margin-top: 0.5rem;}
        .feed-author-link { display: flex; align-items: center; gap: 0.5rem; transition: all 0.2s; position: relative; z-index: 60; text-decoration: none;}
        .v-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: #fff; font-size: 1.2rem; transition: transform 0.2s;}
        .feed-author-link:hover .v-avatar { transform: scale(1.1); border-color: var(--current-theme) !important; }
        
        .v-text { display: flex; flex-direction: column; gap: 0.3rem; pointer-events: none;}
        .v-title { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; pointer-events: auto; text-decoration: none; transition: color 0.2s;}
        .video-card:hover .v-title { color: var(--current-theme); }
        .v-meta { font-size: 0.85rem; color: var(--text-dim); display: flex; flex-direction: column; gap: 0.2rem;}
        .v-channel { font-weight: 700; transition: color 0.2s; pointer-events: auto; color: inherit;}
        .feed-author-link:hover .v-channel { color: var(--current-theme) !important; }

        /* SHORTS / NOTES SHELF */
        .notes-shelf { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1.5rem; scrollbar-width: none; margin-bottom: 2rem; cursor: grab; contain: layout style; }
        .notes-shelf::-webkit-scrollbar { display: none; }
        .note-card {
            flex: 0 0 340px; background: rgba(15, 15, 18, 0.8); border: 1px solid rgba(255,255,255,0.05);
            border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
            transition: transform 0.2s ease, border-color 0.2s; box-shadow: 0 10px 20px rgba(0,0,0,0.3); text-decoration: none; color: inherit; user-select: none;
            will-change: transform; transform: translateZ(0);
        }
        .note-card:hover { transform: translateY(-5px); border-color: var(--current-theme); }
        .n-header { display: flex; justify-content: space-between; align-items: center; pointer-events: none;}
        .n-text { font-size: 0.95rem; color: #fff; line-height: 1.6; font-style: italic; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; pointer-events: none;}
        .n-text::before { content: '>'; color: var(--current-theme); margin-right: 8px; font-weight: 900;}

        /* PAGINATION */
        .pagination-container { display: flex; justify-content: center; margin: 2rem 0 4rem 0; z-index: 20; position: relative;}
        .pagination { display: flex; gap: 0.5rem; align-items: center; background: rgba(10,10,12,0.8); padding: 0.5rem 1rem; border-radius: 40px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px);}
        .page-btn { background: transparent; border: none; color: var(--text-dim); font-family: var(--font-mono); font-size: 0.95rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s; cursor: pointer;}
        .page-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
        .page-btn.active { background: var(--current-theme); color: #000; font-weight: 700; box-shadow: 0 0 15px var(--current-theme);}
        .page-dots { color: var(--text-dim); letter-spacing: 2px; }

        /* SYSTEM NODES (Services) */
        .nodes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; position: relative; z-index: 20; margin-bottom: 4rem;}
        .sys-node {
            position: relative; height: 280px; border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
            overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem;
            text-decoration: none; color: inherit; transition: all 0.4s var(--spring); box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 50; cursor: pointer;
        }
        .node-bg { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; filter: grayscale(100%) brightness(0.3); transition: all 0.6s var(--ease-cinematic); z-index: 0; pointer-events: none;}
        .sys-node::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 100%); transition: background 0.4s; pointer-events: none;}

        .sys-node:hover { transform: translateY(-8px); border-color: var(--current-theme); box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(197,255,74,0.1); }
        .sys-node:hover .node-bg { filter: grayscale(0%) brightness(0.6); transform: scale(1.05); }
        .sys-node:hover::after { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%); }

        .n-content { position: relative; z-index: 2; transform: translateY(10px); transition: transform 0.4s var(--spring); pointer-events: none;}
        .sys-node:hover .n-content { transform: translateY(0); }

        .n-icon { width: 45px; height: 45px; border-radius: 8px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: #fff; transition: all 0.3s; backdrop-filter: blur(5px);}
        .sys-node:hover .n-icon { background: var(--current-theme); color: #000; border-color: var(--current-theme); box-shadow: 0 0 15px var(--current-theme); }
        
        .n-title { font-family: var(--font-display); font-size: 2.2rem; color: #fff; margin-bottom: 0.5rem; text-transform: uppercase; line-height: 1;}
        .n-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 1rem; }
        .n-status { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--current-theme); background: rgba(0,0,0,0.6); padding: 4px 8px; border-radius: 4px; width: fit-content; border: 1px solid var(--current-theme);}
        
        .sys-node.locked { opacity: 0.6; cursor: not-allowed; }
        .sys-node.locked:hover { transform: none; border-color: rgba(255,255,255,0.05); box-shadow: none; }
        .sys-node.locked:hover .node-bg { filter: grayscale(100%) brightness(0.2); transform: none; }
        .sys-node.locked .n-icon { color: #555; border-color: rgba(255,255,255,0.05); background: rgba(0,0,0,0.8);}
        .sys-node.locked .n-status { color: var(--locked-color); border-color: var(--locked-color); }
        .sys-node.locked::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.4) 10px, rgba(0,0,0,0.4) 20px); z-index: 3; pointer-events: none;}

        /* LIVE COMMS */
        .comms-ticker-wrapper { width: 100%; overflow: hidden; position: relative; padding: 1rem 0; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); z-index: 20;}
        .comms-track { display: flex; gap: 1.5rem; width: max-content; animation: scrollTicker 60s linear infinite; will-change: transform;}
        .comms-track:hover { animation-play-state: paused; }
        @keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

        .comm-card {
            width: 420px; background: rgba(15,15,18,0.8); border: 1px solid rgba(255,255,255,0.05);
            padding: 1.5rem; border-radius: 8px; display: flex; flex-direction: column; gap: 1rem; transition: all 0.3s;
            box-shadow: 0 10px 20px rgba(0,0,0,0.3); backdrop-filter: blur(10px); z-index: 50; cursor: pointer; text-decoration: none; color: inherit; position: relative; overflow: hidden;
        }
        .comm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: grayscale(80%) brightness(0.2); transition: all 0.5s; pointer-events: none;}
        .comm-card:hover .comm-bg { filter: grayscale(40%) brightness(0.4); transform: scale(1.05); }
        .comm-content-wrap { position: relative; z-index: 2; pointer-events: none;}

        .comm-card:hover { border-color: var(--current-theme); transform: translateY(-3px); }
        .c-news-tag { font-family: var(--font-mono); font-size: 0.65rem; color: #FF2A5F; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; border: 1px solid #FF2A5F; padding: 2px 6px; border-radius: 2px; width: fit-content; pointer-events: none;}
        .c-news-title { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.4; pointer-events: none; margin-bottom: 0.5rem;}
        .c-comment { border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;}
        .c-head { display: flex; align-items: center; gap: 0.8rem; pointer-events: none;}
        .c-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1rem; color: #fff; border: 1px solid var(--current-theme);}
        .c-author { font-size: 0.8rem; font-weight: 700; color: #fff; }
        .c-time { font-size: 0.65rem; color: #aaa; margin-left: auto; }
        .c-text { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; font-style: italic; pointer-events: none;}

        /* FOOTER */
        .footer { padding: 4rem 2rem 2rem 2rem; background: var(--bg-void); position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 4rem;}
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: clamp(2rem, 4vw, 3rem); margin-bottom: 2.5rem; max-width: 1600px; margin-inline: auto;}
        .f-brand h4 { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 0.8rem; }
        .f-brand p { font-size: 0.85rem; color: #777; max-width: 300px; line-height: 1.6; }
        .f-nav h5 { font-size: 0.75rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem; }
        .f-links { display: flex; flex-direction: column; gap: 0.8rem; }
        .f-links a { font-size: 0.85rem; color: #777; text-decoration: none; transition: color 0.3s; cursor: pointer;}
        .f-links a:hover { color: var(--current-theme); padding-left: 5px;}
        .f-social { display: flex; gap: 1rem; flex-wrap: wrap; }
        .social-btn { width: 48px; height: 48px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #aaa; text-decoration: none; background: rgba(255,255,255,0.02); transition: all 0.5s var(--spring); position: relative; cursor: pointer; z-index: 50;}
        .social-btn:hover { transform: translateY(-8px) scale(1.1); color: #fff; }
        .social-discord:hover { border-color: #5865F2; background: #5865F2; box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4); rotate: 5deg;}
        .social-twitter:hover { border-color: #1DA1F2; background: #1DA1F2; box-shadow: 0 10px 20px rgba(29, 161, 242, 0.4); rotate: -5deg;}
        .social-youtube:hover { border-color: #FF0000; background: #FF0000; box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4); rotate: 8deg;}
        .social-github:hover { border-color: #fff; background: #fff; color: #000; box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3); rotate: -8deg;}
        .social-instagram:hover { border-color: transparent; color: #fff; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 10px 20px rgba(220, 39, 67, 0.4); rotate: 5deg;}
        .social-tiktok:hover { border-color: #fff; background: #000; color: #fff; box-shadow: -4px 4px 0 #fe0979, 4px -4px 0 #00f2fe, 0 10px 20px rgba(255, 255, 255, 0.2); rotate: -5deg;}
        .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; max-width: 1600px; margin: 0 auto;}
        .copyright { font-size: 0.75rem; color: #555; text-transform: uppercase; letter-spacing: 0.1em; }
        .legal { display: flex; gap: 2rem; }
        .legal a { font-size: 0.75rem; color: #555; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.3s; cursor: pointer; z-index: 50;}
        .legal a:hover { color: #fff; }

        /* =========================================
           PIPO (IA TERMINAL - DRAGGABLE PNG) & TOAST
           ========================================= */
        .pipo-toast {
            position: fixed; bottom: 30px; left: 100px; width: 300px; background: rgba(5,5,7,0.95);
            border: 1px solid var(--terminal-green); border-radius: 8px; padding: 1.2rem;
            box-shadow: 0 10px 30px rgba(0,255,65,0.2); backdrop-filter: blur(10px); z-index: 100001;
            transition: all 0.5s var(--spring); font-family: var(--font-mono);
            opacity: 0; pointer-events: none; transform: translateY(20px);
        }
        .pipo-toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
        .pt-header { display: flex; align-items: center; gap: 0.8rem; color: var(--terminal-green); font-weight: 700; margin-bottom: 0.8rem; text-transform: uppercase;}
        .pt-text { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.2rem; line-height: 1.5;}
        .pt-actions { display: flex; gap: 0.5rem; }
        .pt-btn { flex: 1; padding: 0.5rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.3s;}
        .pt-btn-yes { background: var(--terminal-green); color: #000; border: none; }
        .pt-btn-yes:hover { background: #fff; box-shadow: 0 0 15px var(--terminal-green); }
        .pt-btn-no { background: transparent; color: var(--text-dim); border: 1px solid rgba(255,255,255,0.2); }
        .pt-btn-no:hover { border-color: var(--text-dim); color: #fff; }

        .pipo-wrapper { position: fixed; bottom: 2rem; right: 2rem; z-index: 100000; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; display: none; }
        
        .pipo-window { width: 350px; background: rgba(2, 8, 4, 0.95); border: 1px solid var(--terminal-green); border-radius: 4px; padding: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(0,255,65,0.15); backdrop-filter: blur(20px); transform-origin: bottom right; transform: scale(0.9) translateY(20px); opacity: 0; transition: all 0.3s var(--spring); pointer-events: none; font-family: 'VT323', monospace; }
        .pipo-wrapper.chat-open .pipo-window { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
        
        .p-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--terminal-green);}
        .p-title { display: flex; align-items: center; gap: 0.8rem; font-size: 1.8rem; color: var(--terminal-green); text-transform: uppercase; text-shadow: 0 0 8px rgba(0,255,65,0.5);}
        .p-status { font-size: 0.8rem; color: #000; background: var(--terminal-green); padding: 2px 6px; border-radius: 2px; letter-spacing: 0.1em; font-weight: 900; animation: blink 2s infinite; font-family: var(--font-mono);}
        .p-msg { font-size: 1.1rem; color: var(--terminal-green); line-height: 1.4; margin-bottom: 1.5rem; text-shadow: 0 0 5px rgba(0,255,65,0.4); }
        .p-input { width: 100%; background: rgba(0,255,65,0.05); border: 1px solid rgba(0,255,65,0.4); padding: 0.8rem; border-radius: 2px; display: flex; justify-content: space-between; align-items: center; cursor: text;}
        .p-input input { background: transparent; border: none; color: var(--terminal-green); outline: none; width: 100%; font-family: 'VT323', monospace; font-size: 1.1rem; text-shadow: 0 0 5px rgba(0,255,65,0.4);}
        .p-input input::placeholder { color: rgba(0,255,65,0.4); }

        .pipo-trigger { width: 100px; height: 100px; position: relative; cursor: grab; z-index: 50; pointer-events: auto; transition: filter 0.3s; animation: pipoFloat 4s ease-in-out infinite; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8)) drop-shadow(0 0 5px rgba(0,255,65,0.3)); }
        .pipo-trigger:active { cursor: grabbing; }
        @keyframes pipoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
        .pipo-trigger:hover { animation-play-state: paused; filter: drop-shadow(0 15px 20px rgba(0,0,0,0.9)) drop-shadow(0 0 15px rgba(0,255,65,0.6)); }
        .pipo-idle-img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; pointer-events: none !important;}
        .pipo-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; color: var(--terminal-green); pointer-events: none !important;}
        @keyframes blink { 50% { opacity: 0; } }

        /* SVG Filter Component */
        .svg-filters { position: absolute; width: 0; height: 0; pointer-events: none; }

        /* =========================================
           RESPONSIVE REVOLUTION (TABLET & MOBILE)
           ========================================= */
        .mobile-bottom-nav { display: none; }
        .search-mobile-overlay { display: none; }
        .mobile-only-btn { display: none; }

        /* TABLET & SMALL MONITORS (1024px to 769px) */
        @media (max-width: 1024px) {
            .content-main { padding: var(--topbar-height) 1.5rem 0 1.5rem; }
            .search-wrapper { flex: 0 1 350px; }
            
            .video-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
            
            .profile-dropdown { width: 220px; }
            .pd-header { padding: 1.5rem 1rem 1rem 1rem; }
            .pd-avatar-large { width: 50px; height: 50px; margin-bottom: 0.5rem; }
            .pd-initials-large { font-size: 1.5rem; }
            .pd-codename { font-size: 1.2rem; }
            .pd-role { font-size: 0.55rem; padding: 2px 6px; }
            .pd-item { padding: 0.6rem 1rem; font-size: 0.75rem; gap: 0.6rem;}
            .pd-item i { width: 14px; }
        }
        
        /* MOBILE PHONES (< 768px) - YOUTUBE LAYOUT STYLE */
        @media (max-width: 768px) {
            /* Hide the Sidebar entirely */
            .sidebar { display: none !important; }
            .main-col { margin-left: 0 !important; width: 100% !important;}
            
            /* Adjust Topbar */
            .topbar { left: 0 !important; width: 100% !important; height: 56px; padding: 0 1rem; }
            .search-wrapper { display: none; } 
            .mobile-only-btn { display: flex; } 
            .user-nav-profile, .desktop-create-wrapper { display: none !important; } 
            .nav-logo-top { display: flex; }
            
            /* Clean App Layout - Full width items */
            .content-main { padding: 0 0 5rem 0 !important; gap: 0; margin-top: 56px;}
            
            .chips-wrapper { margin: 0; padding: 0.5rem 1rem; background: var(--bg-hub); border-bottom: 1px solid rgba(255,255,255,0.05); top: 56px;}
            
            /* Video Grid mobile friendly (1 col, full width cards) */
            .video-grid { display: flex; flex-direction: column; gap: 0; }
            
            /* Hero Banner */
            .hero-feature { 
                height: auto; 
                aspect-ratio: auto;
                min-height: 240px;
                border-radius: 0; 
                padding: 1.5rem 1rem; 
                margin-bottom: 0; 
                border: none; 
                border-bottom: 4px solid var(--bg-void); /* Separador ao estilo YT */
            }
            .hf-title { font-size: 1.4rem; margin-bottom: 0.5rem; line-height: 1.2;}
            .hf-desc { font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem;}

            .video-card { 
                padding-bottom: 0; 
                margin-bottom: 0; 
                border-bottom: 1px solid rgba(255,255,255,0.05); 
                border-radius: 0;
            }
            .video-card:hover { transform: none; } 
            .video-card:last-child { border-bottom: none; }
            
            .v-thumb-wrap { border-radius: 0; border: none; width: 100%; aspect-ratio: 16/9; margin: 0;}
            .v-info { padding: 12px 16px 20px 16px; margin-top: 0; gap: 12px;}
            .v-avatar { width: 36px; height: 36px; font-size: 1rem; border-width: 1px;}
            .v-text { gap: 4px; }
            .v-title { font-size: 0.95rem; line-height: 1.35; font-weight: 600;}
            .v-meta { flex-direction: row; flex-wrap: wrap; gap: 4px; font-size: 0.75rem; align-items: center;}
            .v-meta span { display: inline-block; }

            .section-title { font-size: 1.2rem; padding: 0 1rem; margin-top: 1.5rem; margin-bottom: 1rem;}

            /* Fix notes & comms cut-off */
            .notes-shelf { padding-left: 1rem; padding-right: 1rem; gap: 1rem; margin-bottom: 1rem; border-bottom: 4px solid var(--bg-void); padding-bottom: 2rem;}
            .note-card { flex: 0 0 85vw; max-width: 320px; padding: 1.2rem; }
            
            .comms-track { gap: 1rem; }
            .comm-card { width: 85vw; max-width: 320px; padding: 1.2rem; }

            .nodes-grid { padding: 0 1rem; gap: 1rem; margin-bottom: 2rem;}
            .sys-node { height: auto; min-height: 160px; padding: 1.2rem; border-radius: 8px;}
            .n-title { font-size: 1.4rem; }
            .n-desc { font-size: 0.8rem; }
            
            /* Pipo Mobile Fixes */
            .pipo-wrapper { bottom: 85px; right: 1rem; }
            .pipo-trigger { width: 60px; height: 60px; }
            .pipo-toast { right: auto; left: 50%; transform: translateX(-50%); top: -200px; width: 90%; max-width: 350px;}
            .pipo-toast.show { top: 70px; right: auto; bottom: auto; }

            /* Footer */
            .footer { padding: 2rem 1rem 6rem 1rem; margin-top: 0; border-top: none;}
            .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
            .f-brand p, .f-social { margin-inline: auto; justify-content: center; }
            .footer-bottom { flex-direction: column; text-align: center; gap: 1rem;}

            /* BOTTOM NAVIGATION BAR */
            .mobile-bottom-nav {
                display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
                background: rgba(6, 6, 8, 0.98); backdrop-filter: blur(20px);
                border-top: 1px solid rgba(255,255,255,0.05); z-index: 2000;
                justify-content: space-around; padding: 0.5rem 0;
                padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
            }
            .mb-item {
                display: flex; flex-direction: column; align-items: center; gap: 4px;
                color: var(--text-dim); text-decoration: none; font-size: 0.65rem;
                transition: transform 0.15s var(--spring), color 0.3s; z-index: 50; width: 20%; cursor: pointer; text-transform: uppercase; font-family: var(--font-mono); font-weight: 700;
            }
            .mb-item.active { color: var(--text-main); }
            .mb-item:active { transform: scale(0.85); color: var(--current-theme); }
            .mb-item i { width: 22px; height: 22px; pointer-events: none;}
            
            .mb-add-wrap { display: none; }
            .mb-add-wrap.has-clearance { display: flex; }
            .mb-add-btn {
                position: relative; top: -5px; width: 40px; height: 40px;
                background: transparent; border: 1px solid var(--text-main);
                border-radius: 50%; display: flex; align-items: center; justify-content: center;
                color: var(--text-main); font-size: 1.5rem; transition: all 0.3s;
            }
            .mb-add-wrap.active .mb-add-btn { background: var(--text-main); color: #000; transform: rotate(45deg); border-color: transparent;}
            
            .create-dropdown {
                position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(20px); margin-bottom: 15px;
                background: rgba(15,15,18,0.95); border: 1px solid var(--current-theme); border-radius: 8px;
                padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem;
                opacity: 0; pointer-events: none; transition: all 0.3s var(--spring); z-index: 1999;
                box-shadow: 0 10px 30px rgba(0,0,0,0.8); backdrop-filter: blur(10px); top: auto; right: auto;
            }
            .create-dropdown.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

            .search-mobile-overlay {
                position: fixed; top: 0; left: 0; width: 100%; height: 56px;
                background: var(--bg-hub); z-index: 1005; display: flex; align-items: center;
                padding: 0 1rem; gap: 1rem; transform: translateY(-100%); transition: transform 0.3s;
            }
            .search-mobile-overlay.active { transform: translateY(0); }
            .smo-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 0.6rem 1rem; color: #fff; font-family: var(--font-mono); outline: none; z-index: 50;}
            .smo-close { background: transparent; border: none; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 50;}

            /* Action buttons touch feedback */
            .action-icon:active, .btn-play:active, .smo-close:active, .chip:active { transform: scale(0.92); }
            .page-btn { transition: transform 0.1s, background 0.3s; }
            .page-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.2); }
            .btn-play:active { background: var(--current-theme); color: #000; }
        }