/* === CSS VARIABLES === */
        :root {
            --bg-color: #F4F4F5;
            --text-main: #1C1C1E;
            --text-sub: #8E8E93;
            --card-bg: #FFFFFF;
            --border-color: rgba(0,0,0,0.04);
            --border-solid: #E5E5EA;
            --nav-bg: rgba(255, 255, 255, 0.75); 
            --icon-bg: #EEF2FF;
            --btn-bg: #FFFFFF;
            --input-text: #1C1C1E;
            --accent-blue: #0A84FF;
            --accent-gold: #FFD60A; 
            --accent-green: #34C759;
            --editor-bg: #111111; 
            /* Warna Premium VIP */
            --accent-purple: #8B42D3;
            --accent-purple-light: #E0B0FF;
            --accent-purple-border: #DDA0DD;
        }

        body.dark-mode {
            --bg-color: #000000;
            --text-main: #FFFFFF;
            --text-sub: #A1A1A6;
            --card-bg: #1C1C1E;
            --border-color: rgba(255,255,255,0.08);
            --border-solid: #2C2C2E;
            --nav-bg: rgba(28, 28, 30, 0.75); 
            --icon-bg: #2C2C2E;
            --btn-bg: #2C2C2E;
            --input-text: #FFFFFF;
            --editor-bg: #000000;
        }

        /* === RESET & BASE === */
        * { 
            margin: 0; 
            padding: 0; 
            box-sizing: border-box; 
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; 
            -webkit-tap-highlight-color: transparent; 
            -webkit-font-smoothing: antialiased; 
            -webkit-overflow-scrolling: touch; 
        }
        body { 
            background-color: var(--bg-color); 
            color: var(--text-main); 
            overflow-x: hidden; 
            transition: background-color 0.3s ease, color 0.3s ease; 
        }

        /* === SISTEM HALAMAN === */
        .page { 
            display: none; 
            animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
            padding-bottom: 140px; 
        } 
        .page.active { 
            display: block; 
        }
        @keyframes fadeIn { 
            from { opacity: 0; transform: translateY(8px); } 
            to { opacity: 1; transform: translateY(0); } 
        }

        /* === KOMPONEN UNIVERSAL === */
        .univ-header { 
            display: flex; align-items: center; justify-content: space-between; 
            padding: 20px; background: transparent; position: sticky; top: 0; z-index: 50; 
        }
        .univ-btn { 
            width: 44px; height: 44px; border-radius: 50%; background: var(--btn-bg); 
            border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; 
            cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: 0.15s ease; position: relative; 
            flex-shrink: 0; color: var(--text-main); 
        }
        .univ-btn:active { transform: scale(0.9); }
        .custom-logo-container { 
            width: 44px; height: 44px; background: var(--btn-bg); border-radius: 14px; 
            display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
            border: 1px solid var(--border-color); 
        }
        .custom-logo-container svg { stroke: var(--text-main); }
        
        .toggle-switch { 
            position: relative; width: 46px; height: 26px; background: var(--border-solid); 
            border-radius: 13px; cursor: pointer; transition: 0.3s; 
        }
        .toggle-switch.active { background: #34C759; }
        .toggle-switch::after { 
            content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; 
            background: white; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
            transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
        }
        .toggle-switch.active::after { transform: translateX(20px); }

        /* MODALS & TOAST */
        .permission-modal-wrapper { 
            position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); 
            -webkit-backdrop-filter: blur(10px); z-index: 999999; display: flex; align-items: flex-end; 
            opacity: 0; pointer-events: none; transition: opacity 0.3s ease; 
        }
        .permission-modal-wrapper.show { opacity: 1; pointer-events: auto; }
        .permission-sheet { 
            background: var(--card-bg); width: 100%; border-radius: 32px 32px 0 0; padding: 30px 24px 40px 24px; 
            text-align: center; box-shadow: 0 -20px 40px rgba(0,0,0,0.2); transform: translateY(100%); 
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        }
        .permission-modal-wrapper.show .permission-sheet { transform: translateY(0); }
        .perm-icon-box { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; font-size: 36px; }
        .permission-sheet h3 { font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
        .permission-sheet p { font-size: 14px; color: var(--text-sub); line-height: 1.5; margin-bottom: 24px; }
        .perm-btn-group { display: flex; gap: 12px; }
        .perm-btn { flex: 1; padding: 16px; border-radius: 20px; font-size: 15px; font-weight: 800; cursor: pointer; border: none; }
        .perm-btn.deny { background: var(--border-solid); color: var(--text-sub); }
        .perm-btn.allow { color: white; background: var(--accent-blue); }

        #toast-alert { 
            position: fixed; top: 20px; left: 50%; transform: translate(-50%, -150px); opacity: 0; 
            pointer-events: none; background: #0B192C; color: white; padding: 12px 24px; border-radius: 30px; 
            font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 100000; 
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; 
            display: flex; align-items: center; gap: 8px; 
        }
        #toast-alert.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

        /* =========================================
           HALAMAN 1 : HOME DASHBOARD 
           ========================================= */
        #page-home { padding: 40px 20px; }
        .app-header-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;}
        .brand-left { display: flex; align-items: center; gap: 12px; }
        .brand-left h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px;}
        .notif-badge-dot { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; background: #EF4444; border-radius: 50%; border: 2px solid var(--card-bg); }
        .status-bar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
        .status-pills { display: flex; gap: 8px; }
        .pill { background: var(--card-bg); border-radius: 12px; padding: 6px 12px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: 0.3s ease;}
        .pill.fire { color: #FF6B00; } 
        .pill.points { border: 1px solid var(--accent-gold); color: var(--accent-gold); cursor: pointer; }
        .pill.points:active { transform: scale(0.95); }
        .header-section { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
        .day-counter { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px;}
        .sub-text { font-size: 14px; font-weight: 600; color: var(--text-sub); }
        .tabs-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
        .tabs { display: flex; gap: 8px; }
        .tab { padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 700; border: 1px solid var(--border-solid); background: var(--card-bg); color: var(--text-sub); cursor: pointer; }
        .tab.active { background: var(--text-main); color: var(--bg-color); border-color: var(--text-main); }
        .task-list { display: flex; flex-direction: column; gap: 16px; }
        .task-card { position: relative; height: 160px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; cursor: pointer; color: white; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border: 2px solid transparent; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
        .task-card:active { transform: scale(0.96); }
        .task-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%); z-index: 1; pointer-events: none;}
        .task-card.todo { border: 2px solid #FF8C00; }
        .task-card.ready { border: 2px solid var(--accent-green); box-shadow: 0 0 24px rgba(52, 199, 89, 0.5); animation: pulseGlow 1.5s infinite; }
        @keyframes pulseGlow { 0% { box-shadow: 0 0 10px rgba(52, 199, 89, 0.3); } 50% { box-shadow: 0 0 25px rgba(52, 199, 89, 0.7); } 100% { box-shadow: 0 0 10px rgba(52, 199, 89, 0.3); } }
        .bg-1 { background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=600&q=80') center/cover; }
        .task-header { display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; position: relative; }
        .task-tag { background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,0.1); color: white;}
        .task-tag.orange { color: #FF8C00; } 
        .task-tag.green { color: var(--accent-green); background: rgba(52, 199, 89, 0.15); border-color: var(--accent-green); }
        .reward-badge { background: linear-gradient(135deg, #FFD700, #FF8C00); color: #1C1C1E; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 4px; box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3); }
        .reward-badge.claim-now { background: var(--accent-green); color: white; box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4); font-size: 12px;}
        .task-body { z-index: 2; position: relative; color: white;}
        .task-title { font-size: 20px; font-weight: 800; margin-bottom: 4px;}

        /* =========================================
           HALAMAN 2 : ANALYTICS 
           ========================================= */
        .act-tabs-container { display: flex; background: var(--border-solid); border-radius: 16px; padding: 4px; margin: 20px; }
        .act-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--text-sub); border-radius: 12px; cursor: pointer; }
        .act-tab.active { background: var(--text-main); color: var(--bg-color); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 20px; }
        .stat-card { background: var(--card-bg); border-radius: 24px; padding: 20px; box-shadow: 0 8px 24px var(--border-color); display: flex; flex-direction: column; border: 1px solid var(--border-color); color: var(--text-main);}
        .stat-card h3 { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; } 
        .stat-card p { font-size: 13px; color: var(--text-sub); font-weight: 500; } 
        .icon-green { color: #10B981; margin-bottom:16px;} 
        .icon-red { color: #EF4444; margin-bottom:16px;}

        /* =========================================
           HALAMAN 3 : EDITOR STUDIO 
           ========================================= */
        #page-enhancer { background-color: var(--editor-bg); min-height: 100vh; padding-bottom: 40px; position: relative; }
        
        .editor-header-alt {
            display: flex; justify-content: space-between; align-items: center; 
            padding: 20px; position: absolute; top: 0; left: 0; right: 0; z-index: 100;
            background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
        }
        .header-title { color: white; font-weight: 700; font-size: 16px; letter-spacing: 0.5px; }
        
        .editor-status-badge { 
            display: flex; align-items: center; gap: 6px; padding: 6px 16px; 
            border-radius: 30px; font-size: 14px; font-weight: 800; 
            backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
            cursor: pointer; transition: 0.3s ease;
        }
        
        /* STYLE BADGE PRO (UNGU) */
        .editor-status-badge.pro { 
            background: var(--accent-purple); 
            border: 2px solid var(--accent-purple-border); 
            color: #FFFFFF; 
            box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
        }
        
        /* STYLE BADGE FREE (ABU-ABU) */
        .editor-status-badge.free { 
            background: rgba(0,0,0,0.5); 
            border: 1px solid rgba(255,255,255,0.4); 
            color: white; 
        }
        .univ-btn.back-light { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.4); color: white;}

        /* --- HERO BANNER (GAMBAR UTUH 16:9 ANTI KEPOTONG) --- */
        .hero-banner-container { 
            width: 100%; 
            aspect-ratio: 16 / 9; /* KUNCI BIAR GAMBAR MOBIL GAK KEPOTONG SAMA SEKALI */
            position: relative; overflow: hidden; background-color: #000; 
        }
        .hero-banner-track { display: flex; width: 400%; height: 100%; animation: scrollBanner 20s linear infinite; }
        
        .banner-img { 
            width: 25%; height: 100%; 
            background-size: contain; /* FOTO DIJAMIN UTUH */
            background-position: center top; 
            background-repeat: no-repeat; 
        }
        
        /* LINK LOKAL FOTO MOBIL LU */
        .img-1 { background-image: url('../assets/images/vf-car-01.jpg'); } /* Mazda */
        .img-2 { background-image: url('../assets/images/vf-car-02.jpg'); } /* Nissan Silvia */
        .img-3 { background-image: url('../assets/images/vf-car-03.jpg'); } /* Porsche */
        .img-4 { background-image: url('../assets/images/vf-car-01.jpg'); } /* Mazda (Looping) */

        @keyframes scrollBanner { 0% { transform: translateX(0); } 100% { transform: translateX(-75%); } }

        /* --- EFEK GRADASI NYATU (Jarak aman buat teks) --- */
        .image-fade-bottom {
            position: absolute; bottom: -2px; left: 0; right: 0; height: 120px; 
            background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--editor-bg) 80%, var(--editor-bg) 100%); z-index: 10;
        }

        /* --- KONTEN UTAMA --- */
        .hero-content-wrapper { 
            position: relative; z-index: 20; 
            margin-top: -30px; 
            padding: 0 0 20px 0; 
        }
        
        .editor-title-area { padding: 0 20px 24px 20px; }
        .editor-title-area h2 { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.8);}
        .editor-title-area p { font-size: 14px; font-weight: 500; color: #A1A1A6; }

        /* =========================================
           3 FEATURE CARDS (GLASSMORPHISM STYLE IPHONE)
           ========================================= */
        .feature-scroll-container { display: flex; gap: 12px; padding: 0 20px 30px 20px; width: 100%; justify-content: space-between; }
        
        .f-card {
            flex: 1; height: 115px; 
            border-radius: 20px; 
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; 
            cursor: pointer; transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            
            /* EFFEK IPHONE BLUR (Glassmorphism Base) */
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        }
        .f-card:active { transform: scale(0.95); }

        /* MODE FREE (Blur Transparan Abu-abu) */
        .f-card:not(.pro-active) {
            background: rgba(142, 142, 147, 0.15); 
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
        }
        .f-card:not(.pro-active) .material-icons-round { color: #8E8E93; font-size: 26px; margin-bottom: 2px;}
        .f-card:not(.pro-active) h4 { font-size: 14px; font-weight: 700; color: #E5E5EA; margin-bottom: 2px; text-align: center;}
        .f-card:not(.pro-active) p { font-size: 10px; font-weight: 500; color: #8E8E93; text-align: center; line-height: 1.3; padding: 0 4px;}
        .f-card.premium-locked { border-color: rgba(224,176,255,.24); background: linear-gradient(145deg, rgba(108,34,166,.15), rgba(64,64,69,.17)); }
        .premium-inline-label { display: inline-flex; align-items: center; justify-content: center; gap: 2px; margin-top: 2px; color: #D7AEF8; font-size: 8px; font-weight: 800; letter-spacing: .02em; }
        .f-card:not(.pro-active) .premium-inline-label .material-icons-round { margin: 0; color: #D7AEF8; font-size: 9px; }

        /* MODE PRO (Blur Transparan Ungu) */
        .f-card.pro-active {
            background: rgba(138, 43, 226, 0.25); 
            border: 1px solid rgba(224, 176, 255, 0.3);
            box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
        }
        .f-card.pro-active .material-icons-round { color: var(--accent-purple-light); font-size: 26px; margin-bottom: 2px;}
        .f-card.pro-active h4 { font-size: 14px; font-weight: 700; color: #FFFFFF; margin-bottom: 2px; text-align: center;}
        .f-card.pro-active p { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.85); text-align: center; line-height: 1.3; padding: 0 4px;}

        /* --- BIG CREATE VIDEO BUTTON (GARIS EMAS) --- */
        .create-video-btn {
            margin: 0 20px 40px 20px; 
            background: #111111; color: var(--accent-gold); 
            border: 1.5px solid var(--accent-gold); 
            height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; 
            font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.2s;
        }
        .create-video-btn .material-icons-round { font-size: 22px; }
        .create-video-btn:active { transform: scale(0.96); background: rgba(255,215,0,0.1); }

        /* --- PROJECT & HISTORY V1: EDITOR --- */
        .history-section-alt { padding: 0 20px; }
        .editor-history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
        .history-section-alt .editor-history-heading h3 { margin: 0; color: #FFFFFF; font-size: 17px; font-weight: 800; }
        .editor-history-heading p { margin-top: 4px; color: #7F858E; font-size: 10px; font-weight: 550; }
        .editor-history-heading button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #C8CDD5; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 750; cursor: pointer; }
        .recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        .rc-item { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; transition: 0.2s; }
        .rc-item:active { transform: scale(0.96); }
        .rc-thumb { width: 100%; aspect-ratio: 3/4; display: grid; place-items: center; background: #2C2C2E; border-radius: 20px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
        .project-thumb::before { content: ''; position: absolute; inset: 0; opacity: .78; background: radial-gradient(circle at 72% 16%, rgba(255,255,255,.24), transparent 24%), linear-gradient(145deg, #3B2C66, #151520 72%); }
        .project-thumb.tone-blue::before { background: radial-gradient(circle at 72% 16%, rgba(255,255,255,.24), transparent 24%), linear-gradient(145deg, #174B78, #111923 72%); }
        .project-thumb.tone-orange::before { background: radial-gradient(circle at 72% 16%, rgba(255,255,255,.22), transparent 24%), linear-gradient(145deg, #70451B, #1D1712 72%); }
        .project-thumb.tone-green::before { background: radial-gradient(circle at 72% 16%, rgba(255,255,255,.22), transparent 24%), linear-gradient(145deg, #1C5E4A, #111C18 72%); }
        .project-thumb-icon { position: relative; z-index: 1; color: rgba(255,255,255,.74); font-size: 44px; }
        .rc-status { position: absolute; bottom: 12px; left: 12px; right: 12px; text-align: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px; border-radius: 12px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
        .rc-status.tone-draft { color: #FFFFFF; border: 1px solid rgba(255,255,255,.18); background: rgba(15,18,24,.66); }
        .rc-status.tone-active { color: #FFFFFF; border: 1px solid rgba(255,149,0,.54); background: rgba(205,113,0,.78); }
        .rc-status.tone-completed { color: #FFFFFF; border: 1px solid rgba(52,199,89,.48); background: rgba(26,132,58,.76); }
        .rc-status.tone-failed { color: #FFFFFF; border: 1px solid rgba(255,69,58,.50); background: rgba(182,45,39,.78); }
        .rc-info { min-width: 0; display: flex; flex-direction: column; }
        .rc-info strong { overflow: hidden; color: #FFFFFF; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
        .rc-info small { margin-top: 3px; color: #8E8E93; font-size: 10px; font-weight: 550; }
        .editor-project-loading, .editor-project-empty { grid-column: 1 / -1; min-height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; border: 1px dashed rgba(255,255,255,.14); border-radius: 22px; color: #777D86; background: rgba(255,255,255,.035); text-align: center; }
        .editor-project-empty .material-icons-round { margin-bottom: 9px; color: #9A9FA7; font-size: 30px; }
        .editor-project-empty strong { color: #D7DAE0; font-size: 13px; }
        .editor-project-empty p, .editor-project-loading p { max-width: 230px; margin-top: 5px; font-size: 10px; line-height: 1.45; }
        input[type="file"] { display: none; }

        /* =========================================
           HALAMAN 4 : PROJECT LIBRARY V1
           ========================================= */
        #page-search { min-height: 100vh; padding-bottom: 140px; }
        .library-header { position: relative; align-items: flex-end; border: 0; background: transparent; }
        .library-header h2 { margin-top: 2px; font-size: 24px; font-weight: 850; letter-spacing: -.65px; }
        .library-kicker { color: #687180; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
        .project-sync-pill { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #CFE9D7; border-radius: 999px; color: #16713A; background: #EEF9F1; font-size: 9px; font-weight: 800; }
        .project-sync-pill .material-icons-round { font-size: 15px; }
        .project-sync-pill[data-state="loading"] { color: #185EA8; border-color: #CFE0F5; background: #EFF6FF; }
        .project-sync-pill[data-state="offline"], .project-sync-pill[data-state="error"] { color: #B42318; border-color: #FECACA; background: #FEF2F2; }
        body.dark-mode .project-sync-pill { border-color: rgba(52,199,89,.26); color: #67D98A; background: rgba(52,199,89,.12); }
        body.dark-mode .project-sync-pill[data-state="loading"] { border-color: rgba(10,132,255,.28); color: #69B6FF; background: rgba(10,132,255,.13); }
        body.dark-mode .project-sync-pill[data-state="offline"], body.dark-mode .project-sync-pill[data-state="error"] { border-color: rgba(255,69,58,.28); color: #FF817A; background: rgba(255,69,58,.12); }
        .library-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 20px 18px; }
        .library-summary > div { min-height: 78px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 14px 16px; border: 1px solid var(--border-solid); border-radius: 20px; background: var(--card-bg); box-shadow: 0 7px 24px var(--border-color); }
        .library-summary span { font-size: 24px; font-weight: 850; letter-spacing: -.75px; }
        .library-summary small { margin-top: 3px; color: var(--text-sub); font-size: 9px; font-weight: 700; }
        .search-bar-container { padding: 0 20px; margin-top: 10px; }
        .search-input-box { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--border-solid); border-radius: 20px; padding: 12px 16px; box-shadow: 0 4px 12px var(--border-color); }
        .search-input-box > .material-icons-round { flex: 0 0 auto; color: var(--text-sub); }
        .search-input-box input { min-width: 0; border: none; outline: none; font-size: 14px; font-weight: 600; width: 100%; background: transparent; color: var(--input-text); }
        .search-input-box input::-webkit-search-cancel-button { display: none; }
        #project-search-clear { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; margin: -6px -8px -6px 0; border: 0; color: var(--text-sub); background: transparent; cursor: pointer; }
        #project-search-clear .material-icons-round { font-size: 18px; }
        #project-search-clear[hidden] { display: none; }
        .project-filter-row { display: flex; gap: 8px; margin-top: 14px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
        .project-filter-row::-webkit-scrollbar { display: none; }
        .project-filter { flex: 0 0 auto; min-height: 34px; padding: 8px 13px; border: 1px solid var(--border-solid); border-radius: 12px; color: var(--text-sub); background: var(--card-bg); font-size: 10px; font-weight: 750; cursor: pointer; }
        .project-filter.active { color: var(--bg-color); border-color: var(--text-main); background: var(--text-main); }
        .library-scroll-area { padding: 0 20px; margin-top: 20px; z-index: 5; position: relative; }
        .recent-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .recent-header h3 { font-size: 17px; font-weight: 700; color: var(--text-main);}
        .recent-header > span { color: var(--text-sub); font-size: 10px; font-weight: 700; }
        .project-item { width: 100%; display: flex; align-items: center; margin-bottom: 11px; padding: 13px; border: 1px solid var(--border-solid); border-radius: 21px; color: var(--text-main); background: var(--card-bg); box-shadow: 0 6px 18px var(--border-color); font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease; }
        .project-item:active { transform: scale(0.98); }
        .project-icon { flex: 0 0 50px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; margin-right: 13px; border-radius: 16px; color: #475467; background: #F0F2F5; }
        .project-icon .material-icons-round { font-size: 24px; }
        .project-icon.tone-active { color: #B54708; background: #FFF4E8; }
        .project-icon.tone-completed { color: #067647; background: #ECFDF3; }
        .project-icon.tone-failed { color: #B42318; background: #FEF3F2; }
        body.dark-mode .project-icon { color: #B9C0CA; background: #292C31; }
        body.dark-mode .project-icon.tone-active { color: #FFB35C; background: rgba(255,149,0,.14); }
        body.dark-mode .project-icon.tone-completed { color: #6DDB8E; background: rgba(52,199,89,.14); }
        body.dark-mode .project-icon.tone-failed { color: #FF817A; background: rgba(255,69,58,.14); }
        .project-details { min-width: 0; flex: 1; display: flex; flex-direction: column; }
        .project-card-top { display: flex; align-items: center; gap: 8px; }
        .project-title { min-width: 0; flex: 1; overflow: hidden; font-size: 13px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
        .project-status-chip { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; color: #475467; background: #F0F2F5; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
        .project-status-chip.tone-active { color: #B54708; background: #FFF4E8; }
        .project-status-chip.tone-completed { color: #067647; background: #ECFDF3; }
        .project-status-chip.tone-failed { color: #B42318; background: #FEF3F2; }
        body.dark-mode .project-status-chip { color: #B9C0CA; background: #292C31; }
        body.dark-mode .project-status-chip.tone-active { color: #FFB35C; background: rgba(255,149,0,.14); }
        body.dark-mode .project-status-chip.tone-completed { color: #6DDB8E; background: rgba(52,199,89,.14); }
        body.dark-mode .project-status-chip.tone-failed { color: #FF817A; background: rgba(255,69,58,.14); }
        .project-meta { margin-top: 5px; color: var(--text-sub); font-size: 9px; font-weight: 600; }
        .project-source-name { margin-top: 3px; overflow: hidden; color: var(--text-sub); font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
        .project-chevron { flex: 0 0 auto; margin-left: 6px; color: #B8BEC7; font-size: 20px; }
        .project-list-state { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px 22px; border: 1px dashed var(--border-solid); border-radius: 24px; color: var(--text-sub); background: color-mix(in srgb, var(--card-bg) 72%, transparent); text-align: center; }
        .project-list-state[hidden] { display: none; }
        .project-state-icon { margin-bottom: 10px; color: #98A2B3; font-size: 38px; }
        .project-list-state h4 { color: var(--text-main); font-size: 15px; font-weight: 800; }
        .project-list-state p { max-width: 270px; margin-top: 7px; font-size: 10px; font-weight: 550; line-height: 1.55; }
        .project-list-state button { margin-top: 16px; padding: 10px 14px; border: 0; border-radius: 12px; color: #FFFFFF; background: #173B61; font-size: 10px; font-weight: 800; cursor: pointer; }
        .project-loading-spinner { width: 24px; height: 24px; display: inline-block; border: 2px solid rgba(142,142,147,.24); border-top-color: #6B7280; border-radius: 50%; animation: spin .75s linear infinite; }

        /* =========================================
           HALAMAN 5 : PROFILE
           ========================================= */
        #page-profile { position: relative; }
        .profile-bg-wrapper { position: absolute; top: 0; left: 0; right: 0; height: 380px; overflow: hidden; z-index: 0; }
        .profile-bg { width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=800&q=80') center/cover; filter: blur(25px); transform: scale(1.1); }
        .profile-bg-wrapper::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 20%, var(--bg-color) 100%); }
        .profile-content { position: relative; z-index: 10; padding: 30px 20px; }
        .profile-card { background: var(--nav-bg); backdrop-filter: blur(30px); border-radius: 36px; margin-top: 20px; padding: 65px 24px 24px 24px; position: relative; border: 1px solid var(--border-color); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
        .avatar-container { position: absolute; top: -55px; left: 50%; transform: translateX(-50%); width: 110px; height: 110px; border-radius: 50%; padding: 6px; background: rgba(128, 128, 128, 0.2); backdrop-filter: blur(10px); }
        .avatar-img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
        .profile-avatar { position: relative; display: grid; place-items: center; overflow: hidden; color: #FFFFFF; background: linear-gradient(145deg, #173B61, #3F6F9F 56%, #7B61FF); isolation: isolate; }
        .profile-avatar::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .20; background: radial-gradient(circle at 72% 22%, #FFFFFF 0 7%, transparent 8%), linear-gradient(135deg, transparent 45%, rgba(255,255,255,.35)); }
        .profile-avatar-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
        .profile-avatar-initials { color: #FFFFFF; font-size: 30px; font-weight: 900; letter-spacing: -.06em; text-shadow: 0 3px 12px rgba(0,0,0,.22); }
        .settings-avatar .profile-avatar-initials { font-size: 17px; }
        .profile-info { display: flex; justify-content: space-between; align-items: flex-start; } 
        .profile-names h2 { font-size: 22px; font-weight: 800; margin-bottom: 2px; letter-spacing:-0.5px; color: var(--text-main);} 
        .profile-names p { font-size: 14px; color: var(--text-sub); font-weight:500;}
        .profile-sync-line { width: fit-content; display: flex; align-items: center; gap: 6px; margin-top: 9px; color: #248A3D; font-size: 11px; font-weight: 700; }
        .profile-sync-line .material-icons-round { font-size: 15px; }
        .profile-sync-line[data-state="syncing"], .profile-sync-status[data-state="syncing"] { color: #0A84FF; }
        .profile-sync-line[data-state="unsaved"], .profile-sync-status[data-state="unsaved"] { color: #FF9500; }
        .profile-sync-line[data-state="offline"], .profile-sync-status[data-state="offline"], .profile-sync-line[data-state="error"], .profile-sync-status[data-state="error"] { color: #D92D20; }
        
        .profile-premium-badge { padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
        .status-badge.free { background: var(--border-solid); color: var(--text-sub); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 4px;}
        .status-badge.pro { background: var(--accent-purple); color: #FFFFFF; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 4px; box-shadow: 0 4px 10px rgba(138,43,226,0.3);}
        .free-icon-wrap { background: var(--text-sub); color: var(--card-bg); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }

        .vip-banner { border-radius: 24px; padding: 20px; margin-top: 24px; box-shadow: 0 8px 24px rgba(108, 34, 166, 0.2); position: relative; overflow: hidden; cursor: pointer; transition: background 0.3s ease, box-shadow 0.3s ease; }
        .vip-banner.free { background: linear-gradient(135deg, #1A0B2E, #4B1E7A, #6C22A6); }
        .vip-banner.pro { background: linear-gradient(135deg, #2B1810, #B8860B, #FFD700); box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2); }
        .vip-banner-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; position: relative; z-index: 2;}
        .vip-brand { display: flex; align-items: center; gap: 8px; }
        .vip-brand span.material-icons-round { font-size: 24px; }
        .vip-banner.free .vip-brand span { color: #E0B0FF; }
        .vip-banner.pro .vip-brand span { color: #FFFFFF; }
        .vip-brand h4 { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
        .vip-banner.free .vip-brand h4 { color: white; }
        .vip-banner.pro .vip-brand h4 { color: #1C1C1E; }
        .vip-btn { padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; backdrop-filter: blur(5px); }
        .vip-banner.free .vip-btn { background: rgba(255, 255, 255, 0.2); color: white; }
        .vip-banner.pro .vip-btn { background: rgba(0, 0, 0, 0.2); color: #1C1C1E; }
        .vip-status { font-size: 13px; font-weight: 500; position: relative; z-index: 2;}
        .vip-banner.free .vip-status { color: rgba(255, 255, 255, 0.8); }
        .vip-banner.pro .vip-status { color: rgba(28, 28, 30, 0.8); }

        .profile-menu-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
        .pm-item { background: var(--card-bg); border-radius: 20px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 12px var(--border-color); border: 1px solid var(--border-solid); cursor: pointer; }
        .pm-item:active { transform: scale(0.98); }
        .pm-left { display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; color: var(--text-main); }
        .pm-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; color: var(--text-main); }
        .pm-item.logout .pm-left { color: #EF4444; }
        .pm-item.logout .pm-icon { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

        /* =========================================
           HALAMAN ACHIEVEMENTS & REWARDS
           ========================================= */
        #page-achievements { background-color: var(--bg-color); min-height: 100vh; padding-bottom: 40px; }
        .ach-hero { padding: 30px 20px; text-align: center; }
        .ach-hero h3 { font-size: 16px; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
        .ach-points-display { font-size: 56px; font-weight: 800; color: var(--text-main); letter-spacing: -2px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px;}
        .ach-points-display span.material-icons-round { color: var(--accent-gold); font-size: 48px; }
        .ach-hero p { font-size: 14px; font-weight: 500; color: var(--text-sub); }

        .ach-section { padding: 0 20px; margin-top: 10px; }
        .ach-section-title { font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 16px; }
        .reward-card { background: var(--card-bg); border-radius: 24px; padding: 20px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-solid); box-shadow: 0 8px 24px var(--border-color); margin-bottom: 12px; transition: 0.2s ease;}
        .reward-left { display: flex; align-items: center; gap: 16px; }
        .reward-icon { width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(135deg, #1A0B2E, #6C22A6); color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; }
        .reward-info h4 { font-size: 16px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
        .reward-info p { font-size: 12px; font-weight: 600; color: var(--text-sub); }
        .redeem-btn { background: var(--accent-gold); color: white; padding: 10px 16px; border-radius: 16px; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3); transition: 0.15s; }
        .redeem-btn:active { transform: scale(0.95); }
        .redeem-btn.disabled { background: var(--border-solid); color: var(--text-sub); box-shadow: none; pointer-events: none; }

        /* =========================================
           HALAMAN SUB-LEVEL (SETTINGS DLL)
           ========================================= */
        #page-settings { background-color: var(--bg-color); min-height: 100vh; padding-bottom: 40px; }
        .settings-top-info { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; margin-top: 10px; }
        .sti-left h2 { font-size: 28px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; margin-bottom: 4px;}
        .sti-left p { font-size: 14px; color: var(--text-sub); font-weight: 500;}
        .settings-avatar { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        
        .search-bar-container { padding: 0 20px; margin-top: 20px; position: relative;}
        .search-input-box { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid var(--border-solid); border-radius: 20px; padding: 12px 16px; box-shadow: 0 4px 12px var(--border-color); }
        .search-input-box input { border: none; outline: none; font-size: 15px; font-weight: 600; width: 100%; background: transparent; color: var(--input-text); }
        
        #settings-no-results { display: none; text-align: center; padding: 30px; color: var(--text-sub); font-size: 14px; font-weight: 500; }

        .settings-section { padding: 0 20px; margin-top: 30px; transition: 0.2s ease;}
        .settings-section-title { font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 12px; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.5px;}
        .settings-card { background: var(--card-bg); border-radius: 20px; padding: 0 20px; box-shadow: 0 4px 12px var(--border-color); border: 1px solid var(--border-solid);}
        .settings-item { display: flex; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border-solid); cursor: pointer; transition: 0.2s ease;}
        .settings-item:last-child { border-bottom: none; } 
        .si-icon { color: var(--text-main); font-size: 22px; margin-right: 16px; width: 24px; text-align: center; }
        .si-text { flex: 1; font-size: 15px; font-weight: 600; color: var(--text-main); }
        .si-chevron { color: #C7C7CC; }

        /* HALAMAN CLOUD STORAGE */
        #page-cloud { background-color: var(--bg-color); min-height: 100vh; padding-bottom: 40px; }
        .cloud-top-area { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 20px 20px; }
        .cloud-brand { display: flex; align-items: center; gap: 12px; }
        .cloud-logo { width: 42px; height: 42px; background: var(--card-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-main); box-shadow: 0 4px 12px var(--border-color); border: 1px solid var(--border-solid); }
        .cloud-logo svg { stroke: var(--text-main); }
        .cloud-brand h2 { font-size: 22px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; margin: 0;}
        .sync-btn { background: var(--card-bg); border: 1px solid var(--border-solid); color: #007AFF; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px var(--border-color); cursor: pointer; }
        .sync-btn:active { transform: scale(0.95); }
        .sync-spin { animation: spin 1s linear infinite; }
        @keyframes spin { 100% { transform: rotate(360deg); } }
        .cloud-section { padding: 0 20px; }
        .storage-main-card { background: var(--card-bg); border-radius: 28px; padding: 24px; box-shadow: 0 8px 24px var(--border-color); border: 1px solid var(--border-solid); margin-bottom: 24px; }
        .storage-title { font-size: 15px; font-weight: 700; color: var(--text-sub); margin-bottom: 12px; }
        .storage-amount { font-size: 16px; color: var(--text-sub); font-weight: 500; margin-bottom: 20px;}
        .storage-amount strong { font-size: 26px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px;}
        .progress-bar-container { width: 100%; height: 12px; background: var(--border-solid); border-radius: 6px; display: flex; overflow: hidden; margin-bottom: 20px; }
        .pb-segment { height: 100%; transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }
        .pb-img { background: #34C759; }
        .pb-doc { background: #007AFF; }
        .pb-vid { background: #FFCC00; }
        .pb-oth { background: #FF9500; }
        .storage-legend { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
        .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-main); }
        .dot { width: 8px; height: 8px; border-radius: 50%; }
        .recent-files-card { background: var(--card-bg); border-radius: 28px; padding: 24px; box-shadow: 0 8px 24px var(--border-color); border: 1px solid var(--border-solid); }
        .rf-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .rf-header h3 { font-size: 16px; font-weight: 700; color: var(--text-sub); }
        .rf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
        .rf-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; cursor: pointer; }
        .rf-item:active { transform: scale(0.95); }
        .rf-icon { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; position: relative;}
        .rf-icon .material-icons-round { font-size: 28px; }
        .rf-badge { position: absolute; bottom: -4px; right: -4px; width: 22px; height: 22px; background: var(--card-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.15); border: 1px solid var(--border-solid);}
        .rf-text h4 { font-size: 11px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px;}
        .rf-text p { font-size: 10px; font-weight: 500; color: var(--text-sub); }

        /* HALAMAN SUBSCRIPTION VIP */
        #page-subscription { min-height: 100vh; padding-bottom: 40px; transition: background 0.3s; position: relative; }
        .sub-bg-glow { position: absolute; top: 0; left: 0; right: 0; height: 450px; z-index: 0; transition: background 0.4s ease; pointer-events: none;}
        #page-subscription.free .sub-bg-glow { background: linear-gradient(to bottom, rgba(108, 34, 166, 0.15) 0%, transparent 100%); }
        #page-subscription.pro .sub-bg-glow { background: radial-gradient(circle at top, rgba(138,43,226,0.2) 0%, transparent 80%); }
        .sub-body { position: relative; z-index: 2; padding: 0 20px; margin-top: 10px;}
        .sub-hero-card { background: var(--nav-bg); backdrop-filter: blur(20px); border-radius: 36px; padding: 30px 24px; box-shadow: 0 20px 40px var(--border-color); border: 1px solid var(--border-solid); margin-bottom: 24px; text-align: center; }
        .sub-hero-icon { width: 64px; height: 64px; margin: 0 auto 16px auto; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
        .sub-hero-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; color: var(--text-main); }
        .sub-hero-card p { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; font-weight: 500;}
        .sub-main-btn { padding: 16px; border-radius: 24px; font-size: 15px; font-weight: 800; cursor: pointer; transition: 0.2s; box-shadow: 0 8px 24px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; gap: 8px;}
        .sub-main-btn:active { transform: scale(0.97); }
        .sub-verification-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 13px; color: var(--text-sub); font-size: 10px; font-weight: 600; line-height: 1.45; }
        .sub-verification-note .material-icons-round { flex: 0 0 auto; font-size: 14px; }
        .sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; } 
        .sub-grid-card { background: var(--card-bg); border-radius: 24px; padding: 20px; box-shadow: 0 8px 24px var(--border-color); border: 1px solid var(--border-solid); } 
        .grid-header { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #8E8E93; margin-bottom: 8px; text-transform: uppercase; } 
        .sub-grid-card h4 { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; letter-spacing: -0.5px;} 
        .sub-grid-card p { font-size: 12px; font-weight: 500; color: var(--text-sub); }
        .cancel-text-btn { color: #EF4444; font-size: 14px; font-weight: 700; text-align: center; padding: 16px; cursor: pointer; margin-bottom: 24px; background: rgba(239, 68, 68, 0.1); border-radius: 20px; transition: 0.15s;}
        .cancel-text-btn:active { opacity: 0.7; transform: scale(0.98);}
        .benefits-title { font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;}
        .benefits-list { display: flex; flex-direction: column; gap: 12px; }
        .benefit-item { background: var(--card-bg); border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--border-solid); box-shadow: 0 4px 12px var(--border-color);}
        .bi-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--icon-bg); color: var(--text-main);}
        .bi-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; color: var(--text-main);}
        .bi-text p { font-size: 12px; color: var(--text-sub);}

        /* NOTIFICATIONS PAGE */
        #page-notifications { min-height: 100vh; padding-bottom: 40px; }
        .notif-badge-pill { background: #0B192C; color: white; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 20px; }
        .notif-section-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px 20px; font-size: 12px; font-weight: 800; color: var(--text-sub); text-transform: uppercase; }
        .clear-all-btn { color: var(--text-main); text-transform: none; cursor: pointer; font-size: 13px; font-weight: 700; }
        .notif-wrapper { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-solid); }
        .notif-delete-bg { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: #EF4444; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; z-index: 1; }
        .notif-item { position: relative; background: var(--card-bg); padding: 16px 20px; display: flex; gap: 16px; align-items: center; z-index: 2; touch-action: pan-y; transition: transform 0.3s ease-out; }
        .notif-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .notif-content { flex: 1; pointer-events: none; }
        .notif-title { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
        .notif-desc { font-size: 13px; color: var(--text-sub); line-height: 1.4; }
        .notif-time { font-size: 12px; color: var(--text-sub); font-weight: 600; white-space: nowrap; align-self: flex-start; margin-top: 4px; pointer-events: none; }

        /* EDIT PROFILE & PROFILE SYNC V1 */
        #page-edit-profile { min-height: 100vh; padding-bottom: max(36px, env(safe-area-inset-bottom)); background-color: var(--bg-color); }
        .ep-header { border: 0; background: var(--bg-color); background: color-mix(in srgb, var(--bg-color) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
        .ep-header button { padding: 0; }
        .ep-header h2 { font-size: 17px; font-weight: 850; letter-spacing: -.25px; }
        .ep-avatar-section { display: flex; flex-direction: column; align-items: center; margin: 18px 20px 26px; }
        .ep-avatar-box { width: 96px; height: 96px; border: 5px solid var(--card-bg); border-radius: 30px; box-shadow: 0 16px 34px rgba(11,25,44,.18); }
        .ep-avatar-box .profile-avatar-initials { font-size: 28px; }
        .progress-text { margin-top: 12px; color: var(--text-sub); font-size: 12px; font-weight: 700; }
        .profile-sync-status { display: flex; align-items: center; gap: 6px; color: #248A3D; }
        .profile-sync-status .material-icons-round { font-size: 16px; }
        .ep-avatar-note { max-width: 270px; margin-top: 7px; color: var(--text-sub); font-size: 10px; font-weight: 550; line-height: 1.45; text-align: center; }
        .ep-form { width: min(100%, 560px); display: flex; flex-direction: column; gap: 13px; margin: 0 auto; padding: 0 20px; }
        .ep-input-group { position: relative; padding: 13px 16px; border: 1px solid var(--border-solid); border-radius: 18px; background: var(--card-bg); box-shadow: 0 5px 18px var(--border-color); transition: border-color .2s, box-shadow .2s; }
        .ep-input-group:focus-within { border-color: #5B7EA4; box-shadow: 0 0 0 4px rgba(49,92,140,.09); }
        .ep-label { display: block; margin-bottom: 5px; color: var(--text-sub); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
        .ep-input-row { display: flex; align-items: center; gap: 8px; }
        .ep-input-row input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--input-text); background: transparent; font-size: 15px; font-weight: 700; line-height: 24px; }
        .ep-input-row input::placeholder { color: #A0A7B1; font-weight: 550; }
        .ep-input-row input[type="date"] { min-height: 28px; color-scheme: light; }
        body.dark-mode .ep-input-row input[type="date"] { color-scheme: dark; }
        .ep-prefix { flex: 0 0 auto; color: #5B6675; font-size: 15px; font-weight: 800; }
        .ep-field-icon { flex: 0 0 auto; color: var(--text-sub); font-size: 20px; pointer-events: none; }
        .ep-field-hint { margin-top: 5px; color: var(--text-sub); font-size: 9px; font-weight: 550; line-height: 1.4; }
        .ep-readonly { background: var(--card-bg); background: color-mix(in srgb, var(--card-bg) 82%, var(--border-solid)); }
        .ep-readonly input { color: var(--text-sub); }
        .ep-verified-icon { flex: 0 0 auto; color: #248A3D; font-size: 19px; }
        .profile-form-error { display: none; padding: 11px 13px; border: 1px solid #FEE4E2; border-radius: 13px; color: #B42318; background: #FEF3F2; font-size: 11px; font-weight: 650; line-height: 1.45; }
        .profile-form-error:not(:empty) { display: block; }
        .ep-actions { display: grid; grid-template-columns: .72fr 1.28fr; gap: 10px; margin-top: 10px; }
        .ep-cancel-btn, .ep-save-btn { min-height: 52px; margin: 0; padding: 14px 16px; border: 0; border-radius: 17px; font-size: 13px; font-weight: 850; cursor: pointer; transition: transform .15s, opacity .15s; }
        .ep-cancel-btn { color: var(--text-main); background: var(--border-solid); }
        .ep-save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #FFFFFF; background: linear-gradient(135deg, #0B192C, #315C8C); box-shadow: 0 10px 24px rgba(11,25,44,.22); }
        .ep-cancel-btn:active, .ep-save-btn:active { transform: scale(.98); }
        .ep-save-btn.loading { opacity: .72; pointer-events: none; }
        .ep-save-btn.loading::after { content: ''; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .75s linear infinite; }
        .ep-save-btn:disabled { cursor: wait; }
        .ep-form button:focus-visible, .ep-form input:focus-visible, .ep-header button:focus-visible { outline: 3px solid rgba(74,135,255,.40); outline-offset: 2px; }

        /* =========================================
           EDGE-TO-EDGE GLASS BOTTOM NAV
           ========================================= */
        .bottom-nav-wrapper {
            position: fixed; bottom: 0; left: 0; right: 0; height: 76px; z-index: 99999;
            padding-bottom: env(safe-area-inset-bottom); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        }

        .bottom-nav {
            width: 100%; height: 100%; background-color: var(--nav-bg); backdrop-filter: blur(25px); 
            -webkit-backdrop-filter: blur(25px); border-top: 1px solid var(--border-color);
            display: flex; justify-content: space-between; align-items: center; padding: 0 16px;
            -webkit-mask-image: radial-gradient(circle at 50% 0px, transparent 38px, black 39px);
            mask-image: radial-gradient(circle at 50% 0px, transparent 38px, black 39px);
        }

        .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-sub); cursor: pointer; width: 60px; height: 100%; transition: color 0.2s ease, transform 0.2s ease; }
        .nav-item.active { color: var(--text-main); }
        .nav-item:active { transform: scale(0.9); }
        .nav-icon { font-size: 24px; }
        .nav-text { font-size: 11px; font-weight: 700; }
        .nav-spacer { width: 70px; pointer-events: none; } 

        .center-cta-wrapper { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; display: flex; justify-content: center; align-items: center; z-index: 2; }
        .center-cta { width: 56px; height: 56px; background: #1C1C1E; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #FFFFFF; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); cursor: pointer; transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease; }
        body.dark-mode .center-cta { background: #FFFFFF; color: #1C1C1E; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25); }
        .center-cta:active { transform: scale(0.85); }

        /* KELAS UNTUK MENYEMBUNYIKAN NAVIGASI DI MENU EDITOR */
        body.hide-nav .bottom-nav-wrapper { transform: translateY(100px) !important; opacity: 0 !important; pointer-events: none !important; }

        /* PROJECT V1 — CREATE & DETAIL BOTTOM SHEETS */
        body.project-sheet-open { overflow: hidden; }
        .project-sheet-backdrop { position: fixed; inset: 0; z-index: 450000; display: flex; align-items: flex-end; justify-content: center; padding-top: max(18px, env(safe-area-inset-top)); background: rgba(3,10,18,.64); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .24s ease, visibility .24s ease; }
        .project-sheet-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }
        .project-sheet { width: min(100%, 560px); max-height: calc(100vh - 18px); max-height: calc(100dvh - 18px); overflow-y: auto; padding: 10px 20px max(24px, env(safe-area-inset-bottom)); border: 1px solid var(--border-solid); border-bottom: 0; border-radius: 30px 30px 0 0; color: var(--text-main); background: var(--card-bg); box-shadow: 0 -24px 70px rgba(0,0,0,.30); transform: translateY(105%); transition: transform .30s cubic-bezier(.16,1,.3,1); }
        .project-sheet-backdrop.show .project-sheet { transform: translateY(0); }
        .project-sheet-handle { width: 42px; height: 5px; margin: 0 auto 17px; border-radius: 999px; background: var(--border-solid); }
        .project-sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
        .project-sheet-kicker { color: #315C8C; font-size: 9px; font-weight: 850; letter-spacing: .10em; text-transform: uppercase; }
        .project-sheet-header h2 { margin-top: 3px; font-size: 22px; font-weight: 850; line-height: 1.2; letter-spacing: -.48px; }
        .project-sheet-close { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 13px; color: var(--text-sub); background: var(--border-solid); cursor: pointer; }
        .project-sheet-close .material-icons-round { font-size: 21px; }
        .project-sheet-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 17px; padding: 12px 13px; border: 1px solid #CFE0F5; border-radius: 15px; color: #34516F; background: #F1F7FE; font-size: 10px; font-weight: 600; line-height: 1.5; }
        .project-sheet-note .material-icons-round { flex: 0 0 auto; font-size: 17px; }
        body.dark-mode .project-sheet-note { border-color: rgba(10,132,255,.26); color: #A8CEF4; background: rgba(10,132,255,.11); }
        .project-name-field { display: block; margin-top: 15px; padding: 13px 15px; border: 1px solid var(--border-solid); border-radius: 17px; background: var(--bg-color); transition: border-color .2s, box-shadow .2s; }
        .project-name-field:focus-within { border-color: #5B7EA4; box-shadow: 0 0 0 4px rgba(49,92,140,.09); }
        .project-name-field > span { display: block; margin-bottom: 5px; color: var(--text-sub); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
        .project-name-field input { width: 100%; border: 0; outline: 0; color: var(--input-text); background: transparent; font-size: 15px; font-weight: 700; line-height: 24px; }
        .project-file-summary { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 13px; border: 1px solid var(--border-solid); border-radius: 17px; }
        .project-file-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #315C8C; background: #EDF4FB; }
        body.dark-mode .project-file-icon { color: #8BB9E8; background: rgba(49,92,140,.24); }
        .project-file-summary > div:last-child { min-width: 0; display: flex; flex-direction: column; }
        .project-file-summary strong { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
        .project-file-summary span { margin-top: 3px; color: var(--text-sub); font-size: 9px; font-weight: 550; }
        .project-form-error { display: none; margin-top: 12px; padding: 10px 12px; border: 1px solid #FEE4E2; border-radius: 13px; color: #B42318; background: #FEF3F2; font-size: 10px; font-weight: 650; line-height: 1.45; }
        .project-form-error:not(:empty) { display: block; }
        .project-sheet-actions { display: grid; grid-template-columns: .72fr 1.28fr; gap: 10px; margin-top: 18px; }
        .project-secondary-btn, .project-primary-btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 15px; border: 0; border-radius: 16px; font-size: 12px; font-weight: 820; cursor: pointer; }
        .project-secondary-btn { color: var(--text-main); background: var(--border-solid); }
        .project-primary-btn { color: #FFFFFF; background: linear-gradient(135deg, #0B192C, #315C8C); box-shadow: 0 10px 24px rgba(11,25,44,.20); }
        .project-primary-btn.loading { opacity: .72; pointer-events: none; }
        .project-primary-btn.loading::after { content: ''; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .75s linear infinite; }
        .project-primary-btn:disabled { cursor: wait; }
        .project-full-btn { width: 100%; margin-top: 17px; }
        .project-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
        .project-detail-status > span:last-child { color: var(--text-sub); font-size: 9px; font-weight: 600; }
        .project-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
        .project-detail-grid > div { min-width: 0; padding: 12px; border: 1px solid var(--border-solid); border-radius: 15px; background: var(--bg-color); }
        .project-detail-grid dt { color: var(--text-sub); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
        .project-detail-grid dd { display: flex; align-items: center; gap: 4px; overflow: hidden; margin-top: 5px; font-size: 10px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; }
        .project-detail-grid dd .material-icons-round { color: #248A3D; font-size: 14px; }
        .project-next-step { display: flex; align-items: flex-start; gap: 11px; margin-top: 14px; padding: 14px; border-radius: 17px; color: #7A4C00; background: #FFF7E8; }
        .project-next-step > .material-icons-round { flex: 0 0 auto; font-size: 22px; }
        .project-next-step strong { font-size: 11px; font-weight: 800; }
        .project-next-step p { margin-top: 4px; font-size: 9px; font-weight: 550; line-height: 1.5; }
        body.dark-mode .project-next-step { color: #FFD28D; background: rgba(255,149,0,.12); }
        .project-sheet button:focus-visible, .project-sheet input:focus-visible { outline: 3px solid rgba(74,135,255,.40); outline-offset: 2px; }

        .project-detail-actions { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10px; margin-top: 17px; }
        .project-detail-actions .project-primary-btn[hidden] { display: none; }
        .project-detail-actions.single { grid-template-columns: 1fr; }

        /* VIDEO WORKSPACE V1 — PREVIEW LOKAL + SETELAN DRAFT */
        .video-workspace-page { min-height: 100vh; min-height: 100dvh; padding-bottom: max(30px, env(safe-area-inset-bottom)); color: #F7F9FC; background: radial-gradient(circle at 88% 3%, rgba(49,92,140,.32), transparent 28%), linear-gradient(180deg, #07111F 0%, #0B1421 48%, #080D15 100%); }
        .workspace-header { position: sticky; top: 0; z-index: 60; min-height: 70px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(7,17,31,.86); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
        .workspace-header > div { min-width: 0; text-align: center; }
        .workspace-header > div span { display: block; color: #8091A7; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
        .workspace-header > div strong { display: block; overflow: hidden; margin-top: 2px; color: #FFFFFF; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
        .workspace-icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.10); border-radius: 15px; color: #F7F9FC; background: rgba(255,255,255,.07); cursor: pointer; }
        .workspace-icon-button .material-icons-round { font-size: 21px; }
        .workspace-icon-button:active { transform: scale(.94); }

        .workspace-body { width: min(100%, 720px); margin: 0 auto; padding: 16px; }
        .workspace-preview-card, .workspace-settings-card { padding: 16px; border: 1px solid rgba(255,255,255,.10); border-radius: 25px; background: rgba(255,255,255,.055); box-shadow: 0 22px 54px rgba(0,0,0,.20); }
        .workspace-settings-card { margin-top: 14px; }
        .workspace-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
        .workspace-section-heading > div > span { display: block; color: #7F93AD; font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
        .workspace-section-heading h2 { margin-top: 3px; color: #FFFFFF; font-size: 19px; font-weight: 850; line-height: 1.2; letter-spacing: -.35px; }
        .workspace-local-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; border: 1px solid rgba(91,160,225,.18); border-radius: 999px; color: #9DC9F2; background: rgba(49,92,140,.22); font-size: 8px; font-weight: 800; }
        .workspace-local-badge .material-icons-round { font-size: 13px; }
        .workspace-heading-icon { color: #91B9E4; font-size: 24px; }

        .workspace-video-frame { --workspace-source-ratio: 16 / 9; position: relative; width: 100%; max-height: 58vh; max-height: 58dvh; display: grid; place-items: center; overflow: hidden; margin: 15px auto 0; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #020407; box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 16px 34px rgba(0,0,0,.26); transition: width .24s ease, aspect-ratio .24s ease; }
        .workspace-video-frame.ratio-original { aspect-ratio: var(--workspace-source-ratio); }
        .workspace-video-frame.ratio-landscape { aspect-ratio: 16 / 9; }
        .workspace-video-frame.ratio-square { width: min(100%, 470px); aspect-ratio: 1 / 1; }
        .workspace-video-frame.ratio-portrait { width: min(100%, 310px); aspect-ratio: 9 / 16; }
        .workspace-video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #020407; }
        .workspace-video-frame:not(.ratio-original) video { object-fit: cover; }
        .workspace-video-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: #B7C1CE; background: rgba(2,4,7,.88); pointer-events: none; }
        .workspace-video-loading[hidden] { display: none; }
        .workspace-video-loading p { font-size: 10px; font-weight: 650; }
        .workspace-spinner { width: 25px; height: 25px; border: 3px solid rgba(255,255,255,.18); border-top-color: #8EBCE9; border-radius: 50%; animation: spin .75s linear infinite; }
        .workspace-preview-error { display: none; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(255,96,84,.22); border-radius: 13px; color: #FFB5AE; background: rgba(180,35,24,.16); font-size: 9px; font-weight: 650; line-height: 1.5; }
        .workspace-preview-error:not(:empty) { display: block; }

        .workspace-source-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
        .workspace-source-meta > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
        .workspace-source-meta > div > .material-icons-round { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #91B9E4; background: rgba(49,92,140,.24); font-size: 18px; }
        .workspace-source-meta p { min-width: 0; display: flex; flex-direction: column; }
        .workspace-source-meta strong { overflow: hidden; color: #F5F7FA; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
        .workspace-source-meta small { overflow: hidden; margin-top: 2px; color: #7F8996; font-size: 8px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
        .workspace-source-meta button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid rgba(255,255,255,.10); border-radius: 10px; color: #BFD5EB; background: rgba(255,255,255,.06); font-size: 9px; font-weight: 750; cursor: pointer; }
        .workspace-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
        .workspace-meta-grid > div { min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(0,0,0,.13); }
        .workspace-meta-grid span { display: block; color: #718096; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
        .workspace-meta-grid strong { display: block; overflow: hidden; margin-top: 4px; color: #E7ECF2; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

        .workspace-name-field { display: block; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: rgba(0,0,0,.14); }
        .workspace-name-field:focus-within { border-color: rgba(142,188,233,.65); box-shadow: 0 0 0 4px rgba(74,135,255,.10); }
        .workspace-name-field > span, .workspace-select-grid label > span { display: block; margin-bottom: 5px; color: #8190A3; font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
        .workspace-name-field input { width: 100%; border: 0; outline: 0; color: #FFFFFF; background: transparent; font-size: 14px; font-weight: 700; line-height: 22px; }
        .workspace-name-field input::placeholder { color: #566274; }

        .workspace-setting-group { min-width: 0; margin-top: 15px; padding: 0; border: 0; }
        .workspace-setting-group legend { margin-bottom: 8px; color: #8190A3; font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
        .workspace-choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
        .workspace-choice { min-width: 0; min-height: 66px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 8px 5px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; color: #96A0AD; background: rgba(0,0,0,.12); cursor: pointer; }
        .workspace-choice.active { border-color: rgba(119,174,226,.58); color: #DCEEFF; background: rgba(49,92,140,.30); box-shadow: inset 0 0 0 1px rgba(140,191,239,.12); }
        .workspace-choice strong { font-size: 9px; font-weight: 780; }
        .ratio-icon { display: block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .9; }
        .ratio-icon.original { width: 18px; height: 14px; }
        .ratio-icon.portrait { width: 10px; height: 18px; }
        .ratio-icon.landscape { width: 20px; height: 11px; }
        .ratio-icon.square { width: 15px; height: 15px; }

        .workspace-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
        .workspace-select-grid label { min-width: 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(0,0,0,.12); }
        .workspace-select-grid select { width: 100%; border: 0; outline: 0; color: #F4F7FB; background: #121D2B; font-size: 11px; font-weight: 700; }
        .workspace-select-grid option { color: #F4F7FB; background: #121D2B; }

        .workspace-audio-toggle { width: 100%; min-height: 60px; display: grid; grid-template-columns: 36px 1fr 38px; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; color: #98A3B0; background: rgba(0,0,0,.12); text-align: left; cursor: pointer; }
        .workspace-audio-toggle > .material-icons-round { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #9DA9B6; background: rgba(255,255,255,.06); font-size: 19px; }
        .workspace-audio-toggle > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
        .workspace-audio-toggle strong { color: #E1E6EC; font-size: 10px; font-weight: 780; }
        .workspace-audio-toggle small { margin-top: 3px; color: #748194; font-size: 8px; font-weight: 550; }
        .workspace-toggle-knob { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #394352; transition: background .2s; }
        .workspace-toggle-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 5px rgba(0,0,0,.28); transition: transform .2s; }
        .workspace-audio-toggle.active { border-color: rgba(79,151,217,.30); background: rgba(49,92,140,.17); }
        .workspace-audio-toggle.active > .material-icons-round { color: #9BC9F4; background: rgba(49,92,140,.28); }
        .workspace-audio-toggle.active .workspace-toggle-knob { background: #3C83C6; }
        .workspace-audio-toggle.active .workspace-toggle-knob::after { transform: translateX(16px); }
        .workspace-audio-quality { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(0,0,0,.12); }
        .workspace-audio-quality > span { color: #8794A5; font-size: 8px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
        .workspace-audio-quality select { width: 100%; border: 0; outline: 0; color: #F4F7FB; background: #121D2B; font-size: 11px; font-weight: 700; }
        .workspace-audio-quality option { color: #F4F7FB; background: #121D2B; }
        .workspace-audio-quality small { color: #748194; font-size: 8px; font-weight: 550; line-height: 1.45; }
        .workspace-audio-quality.disabled { opacity: .46; }

        .workspace-premium-access { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; padding: 11px 12px; border: 1px solid rgba(189,139,235,.25); border-radius: 16px; color: #E7D4F8; background: linear-gradient(135deg, rgba(94,42,139,.26), rgba(38,21,54,.30)); }
        .workspace-premium-access.locked { cursor: pointer; }
        .workspace-premium-access.active { border-color: rgba(255,211,90,.28); color: #FFE89A; background: linear-gradient(135deg, rgba(143,101,16,.22), rgba(56,40,9,.28)); }
        .workspace-premium-access > .material-icons-round { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: inherit; background: rgba(255,255,255,.08); font-size: 17px; }
        .workspace-premium-access > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .workspace-premium-access strong { color: inherit; font-size: 10px; font-weight: 820; }
        .workspace-premium-access small { color: #A995B9; font-size: 8px; font-weight: 580; line-height: 1.4; }
        .workspace-premium-access.active small { color: #C7B77E; }
        .workspace-premium-action { white-space: nowrap; padding: 7px 9px; border-radius: 10px; color: #F1D9FF; background: rgba(216,164,255,.12); font-size: 8px; font-weight: 800; }
        .workspace-premium-action[hidden] { display: none; }

        .workspace-scope-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; padding: 11px 12px; border: 1px solid rgba(83,146,207,.18); border-radius: 14px; color: #9BB5CE; background: rgba(49,92,140,.13); font-size: 8px; font-weight: 580; line-height: 1.55; }
        .workspace-scope-note .material-icons-round { flex: 0 0 auto; font-size: 15px; }
        .workspace-form-error { display: none; margin-top: 11px; padding: 10px 12px; border: 1px solid rgba(255,96,84,.22); border-radius: 13px; color: #FFB5AE; background: rgba(180,35,24,.16); font-size: 9px; font-weight: 650; line-height: 1.5; }
        .workspace-form-error:not(:empty) { display: block; }
        .workspace-save-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 14px 16px; border: 0; border-radius: 17px; color: #FFFFFF; background: linear-gradient(135deg, #315C8C, #4D90D0); box-shadow: 0 13px 30px rgba(25,78,128,.30); font-size: 12px; font-weight: 820; cursor: pointer; }
        .workspace-save-button .material-icons-round { font-size: 19px; }
        .workspace-save-button:disabled { opacity: .42; box-shadow: none; cursor: not-allowed; }
        .workspace-save-button.loading { opacity: .72; pointer-events: none; }
        .workspace-save-button.loading > .material-icons-round { animation: spin .8s linear infinite; }
        .workspace-header button:focus-visible, .workspace-body button:focus-visible, .workspace-body input:focus-visible, .workspace-body select:focus-visible { outline: 3px solid rgba(142,188,233,.45); outline-offset: 2px; }

        /* VIDEO PROCESSING V1 — EKSPOR NYATA DI PERANGKAT */
        .processor-card { margin-top: 20px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.09); }
        .processor-output-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
        .processor-output-grid > div { min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(0,0,0,.15); }
        .processor-output-grid span { display: block; color: #718096; font-size: 7px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
        .processor-output-grid strong { display: block; overflow: hidden; margin-top: 4px; color: #EDF4FB; font-size: 10px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
        .processor-capability { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; color: #9EB2C7; font-size: 8px; font-weight: 600; line-height: 1.5; }
        .processor-capability .material-icons-round { flex: 0 0 auto; color: #71B894; font-size: 14px; }
        .processor-start-button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 13px; padding: 14px 16px; border: 1px solid rgba(121,216,166,.26); border-radius: 17px; color: #F5FFF9; background: linear-gradient(135deg, #147A50, #29A970); box-shadow: 0 14px 30px rgba(13,115,72,.28); font-size: 12px; font-weight: 830; cursor: pointer; }
        .processor-start-button .material-icons-round { font-size: 20px; }
        .processor-start-button:disabled { opacity: .42; box-shadow: none; cursor: not-allowed; }
        .processor-start-button[aria-busy="true"] .material-icons-round { animation: spin .8s linear infinite; }
        .processor-active .processor-start-button { display: none; }

        .processor-progress-panel { margin-top: 14px; padding: 14px; border: 1px solid rgba(79,151,217,.25); border-radius: 18px; background: linear-gradient(145deg, rgba(27,68,108,.36), rgba(6,17,30,.58)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
        .processor-progress-panel[hidden], .processor-result-panel[hidden] { display: none; }
        .processor-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        .processor-progress-heading > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
        .processor-progress-heading strong { overflow: hidden; color: #EAF4FF; font-size: 9px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
        .processor-progress-heading > span { flex: 0 0 auto; color: #9FD0FF; font-size: 12px; font-weight: 850; }
        .processor-live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #5BCB91; box-shadow: 0 0 0 5px rgba(91,203,145,.10); animation: processorPulse 1.4s ease-in-out infinite; }
        .processor-progress-track { height: 8px; overflow: hidden; margin-top: 13px; border-radius: 999px; background: rgba(255,255,255,.10); }
        .processor-progress-track > span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #4D90D0, #7FC4FF); box-shadow: 0 0 13px rgba(99,177,248,.35); transition: width .24s linear; }
        .processor-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: #788BA1; font-size: 7px; font-weight: 650; }
        .processor-progress-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
        .processor-progress-actions button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.10); border-radius: 13px; color: #D9E8F7; background: rgba(255,255,255,.07); font-size: 9px; font-weight: 760; cursor: pointer; }
        .processor-progress-actions button .material-icons-round { font-size: 16px; }
        .processor-progress-actions button.danger { color: #FFBCB5; border-color: rgba(255,111,97,.16); background: rgba(172,44,33,.16); }
        .processor-progress-actions button:disabled { opacity: .4; cursor: not-allowed; }

        .processor-result-panel { margin-top: 14px; padding: 14px; border: 1px solid rgba(91,203,145,.24); border-radius: 19px; background: linear-gradient(145deg, rgba(25,112,75,.22), rgba(5,18,28,.62)); }
        .processor-result-heading { display: flex; align-items: center; gap: 10px; }
        .processor-result-heading > .material-icons-round { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #A8E7C6; background: rgba(53,184,117,.18); font-size: 21px; }
        .processor-result-heading > div { min-width: 0; display: flex; flex-direction: column; }
        .processor-result-heading span { color: #83A895; font-size: 7px; font-weight: 830; letter-spacing: .07em; text-transform: uppercase; }
        .processor-result-heading strong { overflow: hidden; margin-top: 3px; color: #F2FFF8; font-size: 10px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
        .processor-result-panel video { width: 100%; max-height: 52vh; display: block; margin-top: 12px; border: 1px solid rgba(255,255,255,.10); border-radius: 15px; background: #010305; object-fit: contain; }
        .processor-result-details { margin-top: 9px; color: #BFD7C9; font-size: 8px; font-weight: 700; }
        .processor-result-audio { margin-top: 7px; padding: 9px 10px; border: 1px solid rgba(94,171,229,.20); border-radius: 12px; color: #B8D9F2; background: rgba(49,92,140,.14); font-size: 8px; font-weight: 650; line-height: 1.45; }
        .processor-result-audio[hidden] { display: none; }
        .processor-result-sync { margin-top: 5px; color: #7D9588; font-size: 7px; font-weight: 560; line-height: 1.5; }
        .processor-result-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
        .processor-result-actions.has-share, .processor-result-actions.has-audio { grid-template-columns: 1fr 1fr; }
        .processor-result-actions.has-share.has-audio button.secondary { grid-column: 1 / -1; }
        .processor-result-actions button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; color: #FFFFFF; background: linear-gradient(135deg, #16794F, #2FAE76); font-size: 9px; font-weight: 800; cursor: pointer; }
        .processor-result-actions button.audio { border: 1px solid rgba(98,178,240,.20); color: #E8F6FF; background: linear-gradient(135deg, #285F91, #438FCA); }
        .processor-result-actions button.secondary { border: 1px solid rgba(255,255,255,.11); color: #D7E7DE; background: rgba(255,255,255,.07); }
        .processor-result-actions button[hidden] { display: none; }
        .processor-result-actions .material-icons-round { font-size: 17px; }
        .processor-error { display: none; margin-top: 11px; padding: 10px 12px; border: 1px solid rgba(255,96,84,.22); border-radius: 13px; color: #FFB5AE; background: rgba(180,35,24,.16); font-size: 9px; font-weight: 650; line-height: 1.5; }
        .processor-error:not(:empty) { display: block; }
        .processor-footnote { display: flex; align-items: flex-start; gap: 7px; margin-top: 11px; color: #74869A; font-size: 7px; font-weight: 570; line-height: 1.5; }
        .processor-footnote .material-icons-round { flex: 0 0 auto; font-size: 13px; }
        .processor-active .workspace-video-frame { border-color: rgba(96,173,240,.34); box-shadow: 0 0 0 3px rgba(74,135,255,.07), 0 18px 40px rgba(0,0,0,.28); }
        .processor-active .workspace-video-frame video { pointer-events: none; }
        .processor-active .workspace-choice:disabled, .processor-active select:disabled, .processor-active input:disabled, .processor-active .workspace-audio-toggle:disabled, .processor-active .workspace-icon-button:disabled, .processor-active .workspace-source-meta button:disabled { opacity: .45; cursor: not-allowed; }
        @keyframes processorPulse { 0%, 100% { opacity: .55; transform: scale(.88); } 50% { opacity: 1; transform: scale(1); } }

        @media (min-width: 760px) {
            .workspace-body { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: start; gap: 14px; padding: 20px; }
            .workspace-settings-card { margin-top: 0; }
            .workspace-video-frame { max-height: 640px; }
        }

        /* AUTHENTICATION V1 — LAYAR APLIKASI TERPISAH */
        body.auth-mode { overflow: hidden; background: #07101D; }
        body.auth-mode .bottom-nav-wrapper { transform: translateY(100px) !important; opacity: 0 !important; pointer-events: none !important; }
        #page-login, #page-register, #page-forgot-password {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 200000;
            min-height: 100vh;
            min-height: 100dvh;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            align-items: center;
            justify-content: center;
            padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
            color: #FFFFFF;
            background: radial-gradient(circle at 82% 10%, rgba(74, 135, 255, .26), transparent 29%), radial-gradient(circle at 5% 92%, rgba(79, 70, 229, .22), transparent 31%), linear-gradient(150deg, #06101D, #0B192C 55%, #143353);
            isolation: isolate;
        }
        #page-register { background: radial-gradient(circle at 84% 9%, rgba(139, 92, 246, .28), transparent 30%), radial-gradient(circle at 5% 92%, rgba(38, 105, 165, .20), transparent 32%), linear-gradient(150deg, #07111F, #101A33 56%, #211B49); }
        #page-forgot-password { background: radial-gradient(circle at 82% 10%, rgba(33, 150, 243, .24), transparent 29%), linear-gradient(150deg, #06101D, #0B192C 58%, #11304B); }
        #page-login::before, #page-register::before, #page-forgot-password::before { content: ''; position: fixed; inset: 0; z-index: -1; opacity: .11; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(to bottom right, transparent, #000 48%, transparent); mask-image: linear-gradient(to bottom right, transparent, #000 48%, transparent); }
        #page-login.active, #page-register.active, #page-forgot-password.active { display: flex; }

        .auth-shell { position: relative; width: min(100%, 430px); display: flex; flex-direction: column; align-items: stretch; margin: auto; }
        .auth-shell-short { max-width: 420px; }
        .auth-logo-area { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; text-align: center; }
        .auth-logo-area.auth-logo-compact { margin-bottom: 14px; }
        .auth-logo-area .custom-logo-container { width: 58px !important; height: 58px !important; border-radius: 18px; background: #FFFFFF; border: 1px solid rgba(255,255,255,.64); box-shadow: 0 18px 44px rgba(0,0,0,.25); }
        .auth-logo-area .custom-logo-container svg { stroke: #0B192C; }
        .auth-brand-name { margin-top: 10px; color: rgba(255,255,255,.92); font-size: 11px; font-weight: 900; letter-spacing: .24em; }
        .auth-reset-icon { color: #0B192C; }
        .auth-reset-icon .material-icons-round { font-size: 28px; }

        .auth-card { padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: rgba(255,255,255,.975); box-shadow: 0 28px 72px rgba(0,0,0,.30); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: #111827; }
        .auth-card-heading { margin-bottom: 20px; }
        .auth-kicker { display: inline-flex; margin-bottom: 7px; color: #315C8C; font-size: 10px; font-weight: 850; letter-spacing: .10em; text-transform: uppercase; }
        .auth-card-heading h1 { color: #101828; font-size: 25px; font-weight: 850; line-height: 1.15; letter-spacing: -.65px; }
        .auth-card-heading p { margin-top: 8px; color: #667085; font-size: 12px; font-weight: 520; line-height: 1.55; }
        .auth-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }

        .auth-input-group { padding: 10px 13px; border: 1px solid #DFE4EB; border-radius: 16px; background: #F7F8FA; box-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s; }
        .auth-input-group:focus-within { border-color: #315C8C; background: #FFFFFF; box-shadow: 0 0 0 4px rgba(49,92,140,.10); }
        .auth-input-group label { display: block; margin: 0 0 5px 28px; color: #667085; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
        .auth-input-row { display: flex; align-items: center; gap: 9px; }
        .auth-field-icon { flex: 0 0 auto; color: #8490A2; font-size: 19px; }
        .auth-input-group input { width: 100%; min-width: 0; border: 0; outline: 0; color: #101828; background: transparent; font-size: 14px; font-weight: 650; line-height: 24px; }
        .auth-input-group input::placeholder { color: #A3ACB9; font-weight: 500; }
        .auth-input-group input:-webkit-autofill { -webkit-text-fill-color: #101828; -webkit-box-shadow: 0 0 0 1000px #F7F8FA inset; transition: background-color 9999s ease-out; }
        .auth-password-toggle { flex: 0 0 36px; width: 36px; height: 32px; display: grid; place-items: center; margin: -4px -7px -4px 0; border: 0; border-radius: 10px; color: #667085; background: transparent; cursor: pointer; }
        .auth-password-toggle .material-icons-round { font-size: 20px; }
        .auth-password-toggle:active { background: #E9EDF2; transform: scale(.95); }

        .auth-options { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
        .auth-checkbox { display: inline-flex; align-items: center; gap: 8px; color: #667085; font-size: 11px; font-weight: 650; cursor: pointer; }
        .auth-checkbox input { width: 17px; height: 17px; border-radius: 5px; accent-color: #173B61; }
        .auth-text-button, .auth-switch-text button { padding: 4px; border: 0; color: #214E7D; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
        .auth-password-hint { display: flex; align-items: center; gap: 5px; margin: -2px 2px 0; color: #7A8492; font-size: 10px; font-weight: 600; }
        .auth-password-hint .material-icons-round { font-size: 14px; }
        .auth-error-msg, .auth-success-msg { display: none; min-height: 0; padding: 9px 11px; border-radius: 11px; font-size: 11px; font-weight: 650; line-height: 1.45; text-align: left; }
        .auth-error-msg:not(:empty) { display: block; color: #B42318; background: #FEF3F2; border: 1px solid #FEE4E2; }
        .auth-success-msg:not(:empty) { display: block; color: #067647; background: #ECFDF3; border: 1px solid #D1FADF; }

        .auth-main-btn, .auth-dialog-confirm { position: relative; width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; padding: 14px 18px; border: 0; border-radius: 16px; color: #FFFFFF; background: linear-gradient(135deg, #0B192C, #224D79); box-shadow: 0 13px 28px rgba(11,25,44,.23); font-size: 13px; font-weight: 850; text-align: center; cursor: pointer; transition: transform .18s, box-shadow .18s, opacity .18s; }
        .auth-main-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(11,25,44,.28); }
        .auth-main-btn:active, .auth-dialog-confirm:active { transform: scale(.985); }
        .auth-main-btn.loading, .auth-dialog-confirm.loading { opacity: .72; pointer-events: none; }
        .auth-main-btn.loading::after, .auth-dialog-confirm.loading::after { content: ''; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .75s linear infinite; }
        .auth-main-btn:disabled, .auth-dialog-confirm:disabled { cursor: wait; }

        .auth-switch-text { margin-top: 17px; color: rgba(255,255,255,.66); font-size: 12px; font-weight: 550; text-align: center; }
        .auth-switch-text button { color: #FFFFFF; }
        .auth-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: rgba(255,255,255,.48); font-size: 9px; font-weight: 600; text-align: center; }
        .auth-trust .material-icons-round { font-size: 14px; }
        .auth-back-button { position: absolute; top: 4px; left: 0; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: #FFFFFF; background: rgba(255,255,255,.09); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; }

        #auth-loading-screen { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: #FFFFFF; background: radial-gradient(circle at 50% 38%, rgba(55,117,181,.25), transparent 27%), #081321; transition: opacity .2s ease, visibility .2s ease; }
        #auth-loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
        #auth-loading-screen p { color: rgba(255,255,255,.60); font-size: 12px; font-weight: 650; }
        .auth-loading-logo { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 2px; border-radius: 18px; color: #0B192C; background: #FFFFFF; box-shadow: 0 16px 42px rgba(0,0,0,.25); }
        .auth-loading-logo svg { stroke: currentColor; }
        .auth-spinner { width: 25px; height: 25px; border: 2px solid rgba(255,255,255,.16); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .8s linear infinite; }

        .auth-network-banner { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; z-index: 300000; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: #FFFFFF; background: rgba(180,35,24,.94); box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 10px; font-weight: 700; transform: translate(-50%, -120px); opacity: 0; pointer-events: none; transition: .28s ease; }
        .auth-network-banner.show { transform: translate(-50%, 0); opacity: 1; }
        .auth-network-banner .material-icons-round { font-size: 17px; }

        .auth-dialog-backdrop { position: fixed; inset: 0; z-index: 400000; display: flex; align-items: flex-end; justify-content: center; padding: 18px 18px max(18px, env(safe-area-inset-bottom)); background: rgba(3,10,18,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .24s ease, visibility .24s ease; }
        .auth-dialog-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }
        .auth-dialog { width: min(100%, 420px); padding: 24px; border: 1px solid var(--border-solid); border-radius: 28px; color: var(--text-main); background: var(--card-bg); box-shadow: 0 28px 80px rgba(0,0,0,.32); text-align: center; transform: translateY(24px) scale(.98); transition: transform .28s cubic-bezier(.16,1,.3,1); }
        .auth-dialog-backdrop.show .auth-dialog { transform: translateY(0) scale(1); }
        .auth-dialog-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 17px; color: #B42318; background: #FEF3F2; }
        .auth-dialog-icon .material-icons-round { font-size: 26px; }
        .auth-dialog h2 { font-size: 20px; font-weight: 850; letter-spacing: -.35px; }
        .auth-dialog p { margin-top: 8px; color: var(--text-sub); font-size: 12px; line-height: 1.55; }
        .auth-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
        .auth-dialog-cancel, .auth-dialog-confirm { min-height: 48px; margin: 0; border: 0; border-radius: 15px; font-size: 13px; font-weight: 800; cursor: pointer; }
        .auth-dialog-cancel { color: var(--text-main); background: var(--border-solid); }
        .auth-dialog-confirm { background: #D92D20; box-shadow: 0 10px 24px rgba(217,45,32,.22); }

        .auth-page button:focus-visible, .auth-page input:focus-visible, .auth-dialog button:focus-visible { outline: 3px solid rgba(74,135,255,.42); outline-offset: 2px; }
        @media (max-height: 760px) { #page-login, #page-register, #page-forgot-password { align-items: flex-start; justify-content: flex-start; } .auth-shell { margin: 0 auto; } .auth-logo-area { margin-bottom: 12px; } .auth-logo-area .custom-logo-container { width: 50px !important; height: 50px !important; } .auth-card { padding: 19px; } .auth-card-heading { margin-bottom: 15px; } .auth-card-heading h1 { font-size: 23px; } .auth-form { gap: 10px; } }
        @media (min-width: 700px) { .auth-dialog-backdrop { align-items: center; } .project-sheet-backdrop { align-items: center; padding: 24px; } .project-sheet { border-bottom: 1px solid var(--border-solid); border-radius: 30px; } }
        @media (max-width: 360px) { .library-summary { gap: 7px; margin-left: 16px; margin-right: 16px; } .library-summary > div { padding: 12px; } .project-detail-grid { grid-template-columns: 1fr; } }
        @media (prefers-reduced-motion: reduce) { .auth-page, .auth-dialog, .auth-dialog-backdrop, .auth-network-banner, #auth-loading-screen, .project-sheet, .project-sheet-backdrop, .project-loading-spinner, .processor-live-dot { animation: none !important; transition: none !important; } }

/* =========================================
   V-FORGE STUDIO POLISH V6.3 — HERO AD + GLASS UI
   ========================================= */
#page-enhancer {
    background:
        radial-gradient(circle at 12% 6%, rgba(114, 54, 200, 0.22), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(246, 187, 52, 0.16), transparent 18%),
        linear-gradient(180deg, #040404 0%, #09090D 22%, #0B0C11 54%, #06070B 100%);
}

.editor-header-alt {
    padding: max(18px, env(safe-area-inset-top)) 18px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.16) 72%, transparent 100%);
}

.header-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.editor-status-badge {
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
}

.editor-status-badge.free {
    background: rgba(20, 20, 24, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 30px rgba(0, 0, 0, 0.24);
}

.hero-banner-container {
    position: relative;
    width: calc(100% - 24px);
    margin: 10px auto 0;
    min-height: 320px;
    aspect-ratio: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 24%, rgba(106, 52, 187, 0.35), transparent 24%),
        radial-gradient(circle at 82% 16%, rgba(255, 205, 85, 0.16), transparent 18%),
        linear-gradient(160deg, rgba(10, 10, 14, 0.96) 0%, rgba(10, 12, 18, 0.94) 50%, rgba(4, 5, 8, 0.98) 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.62;
    pointer-events: none;
    animation: heroOrbFloat 12s ease-in-out infinite;
}

.hero-ambient-orb.orb-one {
    top: 36px;
    right: 46px;
    width: 120px;
    height: 120px;
    background: rgba(121, 84, 255, 0.28);
}

.hero-ambient-orb.orb-two {
    bottom: 28px;
    left: 18px;
    width: 148px;
    height: 148px;
    background: rgba(255, 174, 64, 0.16);
    animation-delay: -3s;
}

.hero-glass-shell {
    position: relative;
    min-height: 100%;
    padding: 74px 14px 16px;
}

.hero-marquee {
    position: absolute;
    top: 16px;
    left: 14px;
    right: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.hero-marquee-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding: 10px 12px;
    animation: heroMarquee 22s linear infinite;
}

.hero-marquee-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #F8FAFF;
    background: rgba(255, 255, 255, 0.05);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-marquee-pill svg {
    flex: 0 0 auto;
    stroke: #FFFFFF;
}

.hero-showcase-track {
    display: flex;
    width: 400%;
    animation: heroShowcase 26s ease-in-out infinite;
}

.hero-slide {
    position: relative;
    width: 25%;
    min-height: 214px;
    padding: 16px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        rgba(8, 10, 14, 0.58);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.10), transparent 36%, rgba(0, 0, 0, 0.42) 78%);
    pointer-events: none;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: auto auto 14px 14px;
    width: 110px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    filter: blur(12px);
    transform: rotate(-8deg);
    pointer-events: none;
}

.slide-1 {
    --hero-main: url('../assets/images/vf-car-01.jpg');
    --hero-poster-a: url('../assets/images/vf-car-02.jpg');
    --hero-poster-b: url('../assets/images/vf-car-03.jpg');
    --hero-accent: #8B5CF6;
}

.slide-2 {
    --hero-main: url('../assets/images/vf-car-02.jpg');
    --hero-poster-a: url('../assets/images/vf-car-04.jpg');
    --hero-poster-b: url('../assets/images/vf-car-01.jpg');
    --hero-accent: #F43F5E;
}

.slide-3 {
    --hero-main: url('../assets/images/vf-car-03.jpg');
    --hero-poster-a: url('../assets/images/vf-car-04.jpg');
    --hero-poster-b: url('../assets/images/vf-car-02.jpg');
    --hero-accent: #22C55E;
}

.slide-4 {
    --hero-main: url('../assets/images/vf-car-04.jpg');
    --hero-poster-a: url('../assets/images/vf-car-03.jpg');
    --hero-poster-b: url('../assets/images/vf-car-01.jpg');
    --hero-accent: #F59E0B;
}

.hero-slide-copy,
.hero-slide-stats,
.hero-poster-stack,
.hero-car-stage {
    position: relative;
    z-index: 2;
}

.hero-slide-copy {
    position: relative;
    max-width: 55%;
}

.hero-slide-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-slide-copy h3 {
    margin-top: 12px;
    color: #FFFFFF;
    font-size: 21px;
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-slide-copy p {
    margin-top: 8px;
    max-width: 90%;
    color: rgba(233, 239, 248, 0.74);
    font-size: 11px;
    font-weight: 520;
    line-height: 1.5;
}

.hero-poster-stack {
    position: absolute;
    top: 28px;
    right: 18px;
    display: flex;
    gap: 10px;
}

.hero-poster {
    width: 54px;
    height: 94px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.hero-poster.poster-a {
    background-image: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18)), var(--hero-poster-a);
    transform: translateY(8px) rotate(-8deg);
}

.hero-poster.poster-b {
    background-image: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.24)), var(--hero-poster-b);
    transform: rotate(8deg);
}

.hero-car-stage {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 52px;
    height: 118px;
}

.hero-car-body {
    position: absolute;
    left: 14px;
    right: 20px;
    bottom: 4px;
    height: 102px;
    border-radius: 20px;
    background-image:
        linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.34)),
        var(--hero-main);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.82) 16%, rgba(0,0,0,1) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.82) 16%, rgba(0,0,0,1) 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-wheel {
    position: absolute;
    bottom: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: radial-gradient(circle at center, rgba(255,255,255,0.12) 0 18%, rgba(15,18,23,0.95) 19% 38%, rgba(235,239,245,0.35) 39% 45%, rgba(7,9,12,0.98) 46% 100%);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.hero-wheel::before,
.hero-wheel::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-wheel::after {
    inset: 3px;
    background:
        conic-gradient(from 0deg, transparent 0 12%, rgba(255,255,255,0.85) 12% 14%, transparent 14% 26%, rgba(255,255,255,0.85) 26% 28%, transparent 28% 40%, rgba(255,255,255,0.85) 40% 42%, transparent 42% 54%, rgba(255,255,255,0.85) 54% 56%, transparent 56% 68%, rgba(255,255,255,0.85) 68% 70%, transparent 70% 82%, rgba(255,255,255,0.85) 82% 84%, transparent 84% 100%);
    mix-blend-mode: screen;
    animation: heroWheelSpin 0.8s linear infinite;
}

.hero-wheel.rear { left: 66px; }
.hero-wheel.front { right: 52px; }

.hero-smoke {
    position: absolute;
    bottom: 20px;
    width: 58px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.28) 0%, rgba(214,219,226,0.22) 34%, rgba(255,255,255,0.05) 64%, transparent 100%);
    filter: blur(7px);
    opacity: 0;
    animation: heroSmoke 3.2s ease-out infinite;
}

.hero-smoke.smoke-left { left: 34px; animation-delay: 0.2s; }
.hero-smoke.smoke-mid { left: 88px; animation-delay: 0.9s; }
.hero-smoke.smoke-right { right: 96px; animation-delay: 1.4s; }

.hero-slide-stats {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.hero-slide-stats div {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.hero-slide-stats strong {
    display: block;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-slide-stats span {
    display: block;
    margin-top: 3px;
    color: rgba(222, 228, 236, 0.70);
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-floating-card {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(10, 14, 22, 0.72), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.hero-kicker {
    color: rgba(201, 210, 220, 0.76);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-floating-card strong {
    font-size: 13px;
    line-height: 1.42;
}

.hero-floating-card small {
    color: rgba(213, 221, 231, 0.72);
    font-size: 10px;
    line-height: 1.45;
}

.image-fade-bottom {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 5, 7, 0.08) 28%, rgba(5, 6, 10, 0.88) 100%);
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    margin-top: -34px;
}

.editor-title-area {
    margin: 0 16px;
    padding: 16px 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(16, 18, 26, 0.84), rgba(255, 255, 255, 0.05));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.editor-title-area h2 {
    margin-bottom: 6px;
    font-size: 38px;
    letter-spacing: -0.06em;
}

.editor-title-area p {
    max-width: 280px;
    color: #B6BECA;
    font-size: 13px;
    line-height: 1.55;
}

.feature-scroll-container {
    gap: 12px;
    padding: 14px 16px 22px;
}

.f-card {
    min-height: 150px;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.f-card:not(.pro-active) {
    border-color: rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(87, 46, 142, 0.18), rgba(25, 27, 34, 0.70));
}

.f-card.premium-locked {
    border-color: rgba(222, 176, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 42px rgba(0, 0, 0, 0.22);
}

.f-card.pro-active {
    box-shadow: 0 16px 42px rgba(138, 66, 211, 0.24);
}

.create-video-btn {
    width: calc(100% - 32px);
    min-height: 92px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 14px;
    margin: 0 16px 24px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 209, 59, 0.55);
    border-radius: 26px;
    color: #FFF4CB;
    background:
        linear-gradient(135deg, rgba(255, 194, 46, 0.12), rgba(255, 255, 255, 0.05)),
        rgba(20, 14, 2, 0.70);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: left;
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.create-video-btn:active {
    transform: scale(0.98);
    background:
        linear-gradient(135deg, rgba(255, 194, 46, 0.18), rgba(255, 255, 255, 0.07)),
        rgba(20, 14, 2, 0.80);
}

.create-video-icon-shell {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #1D1605;
    background: linear-gradient(135deg, #FFD84A, #FFB800);
    box-shadow: 0 12px 28px rgba(255, 191, 0, 0.26);
}

.create-video-icon-shell .material-icons-round {
    font-size: 28px;
}

.create-video-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.create-video-copy strong {
    color: #FFD95C;
    font-size: 19px;
    font-weight: 860;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.create-video-copy small {
    color: rgba(255, 240, 194, 0.82);
    font-size: 11px;
    font-weight: 530;
    line-height: 1.48;
}

.create-video-meta {
    color: rgba(255, 232, 163, 0.72);
    font-size: 10px;
    font-weight: 760;
    line-height: 1.35;
}

.create-video-arrow {
    justify-self: end;
    color: #FFD95C;
    font-size: 24px;
}

.history-section-alt {
    padding: 0 16px;
}

.editor-history-heading {
    align-items: center;
    margin-bottom: 14px;
}

.history-section-alt .editor-history-heading h3 {
    font-size: 20px;
    letter-spacing: -0.03em;
}

.editor-history-heading p {
    font-size: 11px;
    color: #8F97A4;
}

.editor-history-heading button {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.recent-grid {
    gap: 14px;
}

.video-workspace-page {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 16% 0%, rgba(109, 81, 255, 0.18), transparent 22%),
        radial-gradient(circle at 92% 10%, rgba(67, 170, 255, 0.18), transparent 24%),
        linear-gradient(180deg, #050912 0%, #09121E 44%, #070C15 100%);
}

.video-workspace-page::before,
.video-workspace-page::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(44px);
    opacity: 0.5;
    pointer-events: none;
}

.video-workspace-page::before {
    top: 80px;
    left: -40px;
    width: 190px;
    height: 190px;
    background: rgba(104, 72, 255, 0.16);
}

.video-workspace-page::after {
    right: -70px;
    bottom: 70px;
    width: 220px;
    height: 220px;
    background: rgba(85, 182, 255, 0.14);
}

.workspace-header {
    border-bottom-color: rgba(255, 255, 255, 0.09);
    background: rgba(8, 13, 22, 0.66);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
}

.workspace-icon-button {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.workspace-preview-card,
.workspace-settings-card {
    border-color: rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(28px) saturate(145%);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.workspace-video-frame {
    border-color: rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 35%),
        #05070B;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 44px rgba(0,0,0,0.32);
}

.workspace-name-field,
.workspace-select-grid label,
.workspace-audio-toggle,
.workspace-audio-quality,
.workspace-premium-access,
.workspace-scope-note,
.processor-output-grid > div,
.processor-progress-panel,
.processor-result-panel,
.processor-progress-actions button,
.processor-secondary-btn,
.processor-primary-btn {
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.workspace-name-field {
    background: rgba(255, 255, 255, 0.05);
}

.workspace-select-grid label,
.workspace-audio-toggle,
.workspace-audio-quality {
    background: rgba(0, 0, 0, 0.14);
}

.workspace-select-grid select,
.workspace-audio-quality select {
    padding: 6px 0;
    background: rgba(16, 24, 36, 0.86);
}

.workspace-save-button {
    min-height: 58px;
    border: 1px solid rgba(153, 205, 255, 0.18);
    background: linear-gradient(135deg, #386AA2, #67AFFF);
    box-shadow: 0 18px 38px rgba(38, 94, 153, 0.30);
}

.workspace-premium-access {
    border-color: rgba(215, 170, 255, 0.22);
    background: linear-gradient(135deg, rgba(100, 49, 147, 0.26), rgba(255, 255, 255, 0.04));
}

.workspace-premium-access.active {
    background: linear-gradient(135deg, rgba(143, 101, 16, 0.22), rgba(255, 255, 255, 0.06));
}

@keyframes heroMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes heroShowcase {
    0%, 19% { transform: translateX(0); }
    24%, 43% { transform: translateX(-25%); }
    48%, 67% { transform: translateX(-50%); }
    72%, 91% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

@keyframes heroWheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroSmoke {
    0% {
        transform: translate3d(0, 10px, 0) scale(0.75);
        opacity: 0;
    }
    20% {
        opacity: 0.55;
    }
    100% {
        transform: translate3d(-26px, -34px, 0) scale(1.55);
        opacity: 0;
    }
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(8px, -12px, 0) scale(1.08); }
}

@media (max-width: 420px) {
    .hero-banner-container {
        min-height: 300px;
    }

    .hero-slide {
        min-height: 206px;
        padding: 14px;
    }

    .hero-slide-copy {
        max-width: 58%;
    }

    .hero-slide-copy h3 {
        font-size: 18px;
    }

    .hero-slide-copy p {
        font-size: 10px;
    }

    .hero-poster {
        width: 48px;
        height: 84px;
    }

    .hero-floating-card {
        padding: 11px 12px;
    }

    .editor-title-area h2 {
        font-size: 32px;
    }

    .create-video-btn {
        grid-template-columns: 52px minmax(0, 1fr) 24px;
        min-height: 88px;
        padding: 14px 15px;
    }

    .create-video-copy strong {
        font-size: 17px;
    }

    .create-video-copy small,
    .create-video-meta {
        font-size: 10px;
    }
}

@media (min-width: 760px) {
    .hero-banner-container {
        width: min(100% - 40px, 980px);
        min-height: 420px;
    }

    .hero-glass-shell {
        padding: 86px 20px 20px;
    }

    .hero-slide {
        min-height: 290px;
        padding: 20px;
    }

    .hero-slide-copy h3 {
        font-size: 30px;
    }

    .hero-slide-copy p {
        font-size: 13px;
        max-width: 70%;
    }

    .hero-poster {
        width: 84px;
        height: 144px;
    }

    .hero-car-stage {
        height: 170px;
    }

    .hero-car-body {
        height: 150px;
    }

    .hero-wheel {
        width: 52px;
        height: 52px;
    }

    .hero-wheel.rear { left: 106px; }
    .hero-wheel.front { right: 84px; }

    .hero-slide-stats strong {
        font-size: 12px;
    }

    .hero-slide-stats span {
        font-size: 10px;
    }

    .hero-floating-card {
        left: auto;
        width: 320px;
        right: 24px;
    }
}

/* =========================================================
   V-FORGE MOTION STUDIO V7 — TEMPLATE / TRANSITION / ONBOARDING
   ========================================================= */
.studio-template-section {
    margin: 0 16px 22px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: 0 22px 54px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    content-visibility: auto;
    contain-intrinsic-size: 430px;
}

.studio-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 13px;
}

.studio-section-heading > div { min-width: 0; }
.studio-kicker {
    display: block;
    color: #BCA5FF;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.studio-section-heading h3 {
    margin-top: 5px;
    color: #FFFFFF;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.studio-section-heading p {
    max-width: 300px;
    margin-top: 7px;
    color: #8F99A8;
    font-size: 10px;
    font-weight: 540;
    line-height: 1.55;
}

.studio-tour-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid rgba(185,151,255,.22);
    border-radius: 13px;
    color: #DCCEFF;
    background: rgba(119,75,206,.14);
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}
.studio-tour-button .material-icons-round { font-size: 15px; }

.studio-template-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(188px, 76%);
    gap: 11px;
    overflow-x: auto;
    margin: 16px -17px 0;
    padding: 0 17px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}
.studio-template-list::-webkit-scrollbar { display: none; }

.studio-template-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 76px minmax(0,1fr) 20px;
    align-items: center;
    gap: 11px;
    min-height: 112px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 21px;
    color: #F6F8FC;
    background: rgba(6,8,13,.46);
    text-align: left;
    box-shadow: 0 14px 32px rgba(0,0,0,.18);
    cursor: pointer;
    transform: translate3d(0,0,0);
    transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s, background .22s, box-shadow .22s;
    backface-visibility: hidden;
}
.studio-template-card:active { transform: scale(.975) translate3d(0,0,0); }
.studio-template-card.active {
    border-color: rgba(157,118,255,.56);
    background: linear-gradient(135deg, rgba(104,61,194,.24), rgba(255,255,255,.045));
    box-shadow: 0 17px 38px rgba(65,35,128,.24), inset 0 1px rgba(255,255,255,.07);
}
.studio-template-card.locked { opacity: .72; }
.studio-template-card.locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.025), transparent);
    pointer-events: none;
}

.studio-template-art {
    position: relative;
    width: 76px;
    height: 90px;
    overflow: hidden;
    border-radius: 16px;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 24px rgba(0,0,0,.25);
}
.studio-template-art::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 56%;
    background: linear-gradient(180deg, transparent, rgba(3,4,7,.72));
}
.studio-template-badge {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #FFFFFF;
    background: rgba(4,6,10,.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .08em;
}
.studio-template-badge .material-icons-round { font-size: 8px; }
.studio-template-icon {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: 7px;
    color: #FFFFFF;
    font-size: 19px;
    text-shadow: 0 5px 12px rgba(0,0,0,.54);
}
.studio-template-copy { min-width: 0; display: flex; flex-direction: column; }
.studio-template-copy strong { font-size: 12px; font-weight: 820; line-height: 1.25; }
.studio-template-copy small { margin-top: 5px; color: #929CAA; font-size: 8px; font-weight: 540; line-height: 1.48; }
.studio-template-check { color: #777F8B; font-size: 18px; }
.studio-template-card.active .studio-template-check { color: #BCA5FF; }

.studio-selected-template {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) 20px;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(127,210,166,.18);
    border-radius: 16px;
    color: #DFF8EA;
    background: rgba(48,137,91,.11);
}
.studio-selected-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #A6EBC5;
    background: rgba(83,198,135,.14);
}
.studio-selected-icon .material-icons-round { font-size: 18px; }
.studio-selected-template > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.studio-selected-template small { color: #7FAE94; font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.studio-selected-template strong { margin-top: 2px; font-size: 10px; font-weight: 800; }
.studio-selected-template > .material-icons-round { color: #78D8A4; font-size: 18px; }

.create-video-preset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    color: rgba(255,237,177,.82);
    font-size: 9px;
    font-weight: 720;
}
.create-video-preset .material-icons-round { font-size: 12px; }

/* Workspace creative deck */
.workspace-creative-suite {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(160,128,255,.18);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 6%, rgba(126,89,220,.18), transparent 28%),
        linear-gradient(145deg, rgba(91,64,160,.13), rgba(3,8,15,.25));
    box-shadow: inset 0 1px rgba(255,255,255,.045);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.workspace-creative-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.workspace-creative-heading > div:first-child > span {
    display: block;
    color: #A690D7;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.workspace-creative-heading h3 {
    margin-top: 3px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 820;
    letter-spacing: -.02em;
}
.workspace-history-actions { display: flex; gap: 6px; }
.workspace-history-actions button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    color: #CDD7E5;
    background: rgba(255,255,255,.055);
    cursor: pointer;
}
.workspace-history-actions button .material-icons-round { font-size: 17px; }
.workspace-history-actions button:disabled { opacity: .28; cursor: not-allowed; }

.studio-control-block { margin-top: 13px; }
.studio-control-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.studio-control-label > span { color: #768397; font-size: 7px; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.studio-control-label strong { color: #CFC2F3; font-size: 8px; font-weight: 780; }
.studio-control-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(104px, 35%);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.studio-control-scroll::-webkit-scrollbar { display: none; }
.studio-control-scroll.compact { grid-auto-columns: minmax(92px, 31%); }

.studio-choice {
    min-width: 0;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding: 10px;
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 15px;
    color: #A6B1C0;
    background: rgba(0,0,0,.14);
    text-align: left;
    cursor: pointer;
    transition: transform .18s, border-color .18s, background .18s;
}
.studio-choice:active { transform: scale(.96); }
.studio-choice > .material-icons-round { color: #8B98A9; font-size: 18px; }
.studio-choice strong { overflow: hidden; width: 100%; color: #D9E0E9; font-size: 8px; font-weight: 760; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.studio-choice small { color: #68768A; font-size: 6px; font-weight: 830; letter-spacing: .06em; }
.studio-choice.active {
    border-color: rgba(176,146,255,.38);
    color: #E9E0FF;
    background: linear-gradient(145deg, rgba(113,73,198,.23), rgba(255,255,255,.045));
    box-shadow: inset 0 1px rgba(255,255,255,.045);
}
.studio-choice.active > .material-icons-round { color: #C5AEFF; }
.studio-choice.active strong { color: #F3EEFF; }
.studio-choice.locked { opacity: .48; }
.studio-choice.compact { min-height: 61px; justify-content: center; gap: 7px; }
.studio-choice.compact strong { white-space: normal; }

.studio-intensity-control {
    display: block;
    margin-top: 13px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 15px;
    background: rgba(0,0,0,.13);
}
.studio-intensity-control > span { display: flex; justify-content: space-between; gap: 10px; }
.studio-intensity-control > span span { color: #8794A5; font-size: 8px; font-weight: 760; }
.studio-intensity-control > span strong { color: #C9B8F4; font-size: 8px; font-weight: 820; }
.studio-intensity-control input {
    width: 100%;
    height: 4px;
    margin-top: 11px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    outline: 0;
    background: linear-gradient(90deg, #7959D9, #76BFFF);
    cursor: pointer;
}
.studio-intensity-control input::-webkit-slider-thumb {
    width: 19px;
    height: 19px;
    appearance: none;
    -webkit-appearance: none;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: #8063DE;
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.studio-intensity-control input::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: #8063DE;
}

.studio-mini-timeline {
    --studio-motion-strength: .48;
    position: relative;
    overflow: hidden;
    margin-top: 13px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(4,8,14,.62), rgba(8,12,19,.84));
    box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.studio-timeline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.studio-timeline-toolbar > span { display: inline-flex; align-items: center; gap: 5px; color: #AAB5C5; font-size: 7px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.studio-timeline-toolbar > span .material-icons-round { color: #9B82E7; font-size: 14px; }
.studio-timeline-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 9px;
    border: 1px solid rgba(145,204,255,.15);
    border-radius: 10px;
    color: #B9DFFF;
    background: rgba(65,139,203,.12);
    font-size: 7px;
    font-weight: 800;
    cursor: pointer;
}
.studio-timeline-toolbar button .material-icons-round { font-size: 13px; }
.studio-timeline-ruler { display: flex; justify-content: space-between; margin: 11px 3px 5px 34px; color: #4F5B6D; font-size: 5px; font-weight: 680; }
.studio-timeline-track {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0,1fr);
    align-items: center;
    gap: 7px;
    min-height: 38px;
    margin-top: 6px;
}
.studio-track-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #738095; background: rgba(255,255,255,.045); }
.studio-track-icon .material-icons-round { font-size: 13px; }
.studio-clip-block {
    position: relative;
    overflow: hidden;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7px 44px 7px 10px;
    border: 1px solid rgba(138,103,225,.20);
    border-radius: 11px;
    color: #E9E2FA;
    background:
        repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.035) 22px 23px),
        linear-gradient(135deg, rgba(112,75,198,.32), rgba(52,90,134,.20));
}
.studio-clip-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 22%, rgba(255,255,255,.08) 46%, transparent 68%);
    transform: translate3d(-120%,0,0);
    animation: studioClipShine calc(4s - (var(--studio-motion-strength) * 1.7s)) linear infinite;
}
.studio-clip-block > span, .studio-clip-block > small { position: relative; z-index: 1; }
.studio-clip-block > span { font-size: 8px; font-weight: 790; }
.studio-clip-block > small { margin-top: 2px; color: #9AABD0; font-size: 6px; font-weight: 630; }
.studio-transition-marker {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    width: 35px;
    height: 31px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,210,116,.24);
    border-radius: 9px;
    color: #FFD98C;
    background: rgba(128,83,13,.28);
    transform: translateY(-50%);
    cursor: pointer;
}
.studio-transition-marker .material-icons-round { font-size: 12px; }
.studio-transition-marker small { max-width: 30px; overflow: hidden; margin-top: 1px; font-size: 5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.audio-track { min-height: 31px; }
.studio-waveform { height: 28px; display: flex; align-items: center; gap: 3px; padding: 0 8px; border: 1px solid rgba(72,199,139,.12); border-radius: 9px; background: rgba(25,109,73,.12); }
.studio-waveform i { width: 3px; height: calc(5px + (var(--wave, .5) * 14px)); border-radius: 99px; background: #4BBA82; opacity: .62; transform-origin: center; animation: studioWave calc(1.4s - (var(--studio-motion-strength) * .45s)) ease-in-out infinite alternate; }
.studio-waveform i:nth-child(2n) { --wave:.9; animation-delay:-.7s; }
.studio-waveform i:nth-child(3n) { --wave:.35; animation-delay:-.3s; }
.studio-waveform i:nth-child(5n) { --wave:.7; animation-delay:-.9s; }
.studio-playhead { position: absolute; z-index: 5; top: 42px; bottom: 10px; left: 43px; width: 1px; background: #FF6B79; box-shadow: 0 0 8px rgba(255,76,96,.48); opacity: .72; }
.studio-playhead::before { content:''; position:absolute; top:-4px; left:50%; width:7px; height:7px; border-radius:2px 2px 50% 50%; background:#FF6B79; transform:translateX(-50%); }
.studio-playhead.playing { animation: studioPlayhead 1.15s cubic-bezier(.22,.7,.2,1) both; }

/* Preview transition overlay & video filters */
.workspace-video-frame { --studio-motion-strength: .48; isolation: isolate; }
.workspace-video-frame video {
    transition: filter .28s ease, transform .28s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: filter, transform;
}
.workspace-video-frame[data-studio-effect="natural"] video { filter: none; }
.workspace-video-frame[data-studio-effect="vibrant"] video { filter: saturate(1.24) contrast(1.06) brightness(1.02); }
.workspace-video-frame[data-studio-effect="cinematic"] video { filter: saturate(.86) contrast(1.12) brightness(.94) sepia(.07); }
.workspace-video-frame[data-studio-effect="soft-film"] video { filter: saturate(.78) contrast(.94) brightness(1.07) sepia(.12); }
.workspace-video-frame[data-studio-effect="mono"] video { filter: grayscale(1) contrast(1.08); }
.workspace-video-frame[data-studio-effect="neon"] video { filter: saturate(1.48) contrast(1.16) hue-rotate(-8deg) brightness(.96); }
.workspace-video-frame[data-studio-effect="cinematic-pro"] video { filter: saturate(.72) contrast(1.2) brightness(.91) sepia(.11); }
.workspace-video-frame[data-studio-template="velocity-drive"] { box-shadow: inset 0 0 0 1px rgba(113,178,255,.07), 0 18px 44px rgba(0,0,0,.32); }
.workspace-video-frame[data-studio-template="neon-rush"] { box-shadow: inset 0 0 0 1px rgba(201,91,255,.12), 0 18px 50px rgba(100,24,164,.21); }
.workspace-video-frame[data-studio-template="cinematic-drive"] { box-shadow: inset 0 0 0 1px rgba(255,190,78,.10), 0 18px 50px rgba(0,0,0,.38); }

.studio-transition-preview {
    position: absolute;
    z-index: 5;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transform: translateZ(0);
    will-change: transform, opacity, filter;
}
.studio-transition-preview > span { position: absolute; inset: -10%; pointer-events: none; }
.studio-transition-flare { background: radial-gradient(circle at 42% 55%, rgba(255,255,255,.92), rgba(163,118,255,.52) 20%, transparent 54%); opacity: 0; }
.studio-transition-grid { background: repeating-linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.10) 8% 8.5%); opacity: 0; }
.studio-transition-preview.playing { opacity: 1; }
.studio-transition-preview.playing[data-transition="hard-cut"] { animation: studioHardCut .52s steps(2,end) both; background:#020305; }
.studio-transition-preview.playing[data-transition="cross-dissolve"] { animation: studioDissolve 1.05s ease-in-out both; background:rgba(255,255,255,.13); }
.studio-transition-preview.playing[data-transition="soft-fade"] { animation: studioSoftFade 1.1s ease-in-out both; background:#05070A; }
.studio-transition-preview.playing[data-transition="whip-pan"] .studio-transition-flare { opacity:1; animation:studioWhip 1s cubic-bezier(.2,.8,.2,1) both; }
.studio-transition-preview.playing[data-transition="zoom-punch"] .studio-transition-grid { opacity:1; animation:studioZoomPunch 1s cubic-bezier(.18,.72,.2,1) both; background:radial-gradient(circle,transparent 15%,rgba(255,255,255,.16) 16%,transparent 36%),repeating-radial-gradient(circle,transparent 0 17px,rgba(255,255,255,.08) 18px 19px); }
.studio-transition-preview.playing[data-transition="film-burn"] { animation:studioFilmBurn 1.1s ease both; background:radial-gradient(circle at 18% 70%,#FFF4C0 0,#FF9C43 18%,#F23620 35%,rgba(23,2,0,.88) 58%,transparent 76%); mix-blend-mode:screen; }
.studio-transition-preview.playing[data-transition="glitch-split"] .studio-transition-grid { opacity:1; animation:studioGlitch 1.05s steps(7,end) both; background:linear-gradient(90deg,rgba(0,238,255,.45),transparent 38%,rgba(255,0,153,.45)),repeating-linear-gradient(0deg,transparent 0 8px,rgba(255,255,255,.13) 9px 10px); mix-blend-mode:screen; }
.studio-transition-preview.playing[data-transition="liquid-warp"] .studio-transition-flare { opacity:1; animation:studioLiquid 1.05s ease-in-out both; background:radial-gradient(ellipse at center,rgba(145,225,255,.46),rgba(83,73,224,.35) 30%,transparent 66%); filter:blur(7px); }
.workspace-video-loading { z-index: 7; }

/* Professional project cards */
.project-item.project-record {
    border-color: rgba(125,139,160,.13);
    background: var(--card-bg);
    box-shadow: 0 13px 32px rgba(0,0,0,.07);
}
.project-style-row { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.project-style-row > span { display:inline-flex; align-items:center; gap:3px; padding:4px 6px; border-radius:7px; color:#6C7690; background:rgba(106,92,176,.08); font-size:6px; font-weight:760; }
.project-style-row .material-icons-round { font-size:9px; color:#826FC8; }
.rc-thumb.project-thumb { background-position:center; background-size:cover; }
.rc-template-chip { position:absolute; left:8px; bottom:8px; max-width:calc(100% - 16px); display:inline-flex; align-items:center; gap:3px; padding:5px 7px; border:1px solid rgba(255,255,255,.13); border-radius:8px; color:#FFFFFF; background:rgba(7,9,14,.55); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); font-size:6px; font-weight:790; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rc-template-chip .material-icons-round { font-size:10px; }

/* Onboarding */
body.studio-onboarding-open { overflow:hidden; }
.studio-onboarding {
    position: fixed;
    z-index: 9999999;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: max(14px, env(safe-area-inset-top));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s;
}
.studio-onboarding.show { opacity:1; visibility:visible; pointer-events:auto; }
.studio-onboarding-backdrop { position:absolute; inset:0; background:rgba(1,3,8,.76); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.studio-onboarding-card {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100dvh - 14px);
    overflow-y: auto;
    padding: 16px 18px max(22px, env(safe-area-inset-bottom));
    border: 1px solid rgba(255,255,255,.12);
    border-bottom: 0;
    border-radius: 32px 32px 0 0;
    color: #F7F8FC;
    background:
        radial-gradient(circle at 85% 4%, rgba(126,75,224,.26), transparent 25%),
        linear-gradient(180deg, rgba(19,22,32,.98), rgba(8,10,16,.99));
    box-shadow: 0 -30px 80px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.06);
    transform: translate3d(0,105%,0);
    transition: transform .38s cubic-bezier(.16,1,.3,1);
}
.studio-onboarding.show .studio-onboarding-card { transform:translate3d(0,0,0); }
.studio-onboarding-topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.studio-onboarding-brand { display:inline-flex; align-items:center; gap:7px; color:#D9CCFF; font-size:10px; font-weight:820; letter-spacing:.04em; }
.studio-onboarding-brand .material-icons-round { font-size:17px; }
.studio-onboarding-topbar button { width:38px; height:38px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.09); border-radius:13px; color:#CFD5DF; background:rgba(255,255,255,.055); cursor:pointer; }
.studio-onboarding-topbar button .material-icons-round { font-size:19px; }
.studio-onboarding-visual {
    position:relative;
    min-height:210px;
    overflow:hidden;
    display:grid;
    place-items:center;
    margin-top:14px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:26px;
    background:linear-gradient(145deg,rgba(104,66,194,.23),rgba(35,78,122,.16),rgba(255,255,255,.025));
    isolation:isolate;
}
.studio-onboarding-orb { position:absolute; border-radius:50%; filter:blur(22px); opacity:.62; animation:heroOrbFloat 8s ease-in-out infinite; }
.studio-onboarding-orb.one { width:120px; height:120px; top:12px; right:25px; background:rgba(155,95,255,.38); }
.studio-onboarding-orb.two { width:130px; height:130px; bottom:-30px; left:10px; background:rgba(55,170,255,.26); animation-delay:-3s; }
.studio-onboarding-main-icon { position:relative; z-index:2; width:78px; height:78px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.18); border-radius:25px; color:#FFFFFF; background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(111,70,205,.28)); box-shadow:0 24px 50px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.18); font-size:38px; animation:studioOnboardingIcon 3.8s ease-in-out infinite; }
.studio-onboarding-mini-cards { position:absolute; z-index:1; inset:0; }
.studio-onboarding-mini-cards i { position:absolute; width:54px; height:82px; border:1px solid rgba(255,255,255,.12); border-radius:17px; background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.025)); box-shadow:0 14px 28px rgba(0,0,0,.20); }
.studio-onboarding-mini-cards i:nth-child(1) { left:28px; top:38px; transform:rotate(-12deg); }
.studio-onboarding-mini-cards i:nth-child(2) { right:31px; top:30px; transform:rotate(11deg); }
.studio-onboarding-mini-cards i:nth-child(3) { right:54px; bottom:22px; width:72px; height:42px; transform:rotate(-5deg); }
.studio-onboarding-visual[data-step="1"] { background:linear-gradient(145deg,rgba(36,137,103,.22),rgba(77,71,181,.18),rgba(255,255,255,.025)); }
.studio-onboarding-visual[data-step="2"] { background:linear-gradient(145deg,rgba(31,102,163,.23),rgba(109,59,171,.18),rgba(255,255,255,.025)); }
.studio-onboarding-visual[data-step="3"] { background:linear-gradient(145deg,rgba(151,100,14,.25),rgba(112,62,163,.18),rgba(255,255,255,.025)); }
.studio-onboarding-copy { margin-top:20px; }
.studio-onboarding-kicker { color:#A997D9; font-size:8px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.studio-onboarding-copy h2 { margin-top:6px; color:#FFFFFF; font-size:25px; font-weight:860; line-height:1.12; letter-spacing:-.045em; }
.studio-onboarding-copy p { margin-top:10px; color:#9BA5B4; font-size:12px; font-weight:530; line-height:1.6; }
.studio-onboarding-progress { display:flex; gap:6px; margin-top:20px; }
.studio-onboarding-progress span { width:7px; height:7px; border-radius:99px; background:rgba(255,255,255,.13); transition:width .25s, background .25s; }
.studio-onboarding-progress span.active { width:25px; background:linear-gradient(90deg,#8E6DE7,#6EBBFF); }
.studio-onboarding-actions { display:grid; grid-template-columns:.7fr 1.3fr; gap:9px; margin-top:18px; }
.studio-onboarding-actions button { min-height:52px; display:flex; align-items:center; justify-content:center; gap:7px; border:0; border-radius:17px; font-size:11px; font-weight:820; cursor:pointer; }
.studio-onboarding-actions .secondary { color:#AEB7C5; background:rgba(255,255,255,.065); }
.studio-onboarding-actions .primary { color:#FFFFFF; background:linear-gradient(135deg,#7251CD,#529DE0); box-shadow:0 15px 34px rgba(74,92,193,.27); }
.studio-onboarding-actions .material-icons-round { font-size:17px; }

/* Motion optimization */
.hero-showcase-track,
.hero-marquee-track,
.hero-wheel::after,
.hero-smoke,
.studio-clip-block::before,
.studio-waveform i,
.studio-onboarding-main-icon {
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.hero-showcase-track,
.hero-marquee-track { will-change: transform; }
.hero-smoke, .hero-wheel::after { will-change: transform, opacity; }
.vf-motion-paused .hero-showcase-track,
.vf-motion-paused .hero-marquee-track,
.vf-motion-paused .hero-wheel::after,
.vf-motion-paused .hero-smoke,
.vf-motion-paused .studio-clip-block::before,
.vf-motion-paused .studio-waveform i,
.vf-motion-paused .studio-onboarding-main-icon,
.vf-hero-paused .hero-showcase-track,
.vf-hero-paused .hero-marquee-track,
.vf-hero-paused .hero-wheel::after,
.vf-hero-paused .hero-smoke { animation-play-state:paused !important; }

@keyframes studioClipShine { to { transform:translate3d(120%,0,0); } }
@keyframes studioWave { from { transform:scaleY(.55); opacity:.36; } to { transform:scaleY(1); opacity:.9; } }
@keyframes studioPlayhead { from { transform:translate3d(0,0,0); } to { transform:translate3d(calc(100vw - 105px),0,0); } }
@keyframes studioHardCut { 0%,42%{opacity:0}43%,58%{opacity:1}59%,100%{opacity:0} }
@keyframes studioDissolve { 0%,100%{opacity:0;backdrop-filter:blur(0)}45%{opacity:.72;backdrop-filter:blur(13px)} }
@keyframes studioSoftFade { 0%,100%{opacity:0}48%{opacity:.92} }
@keyframes studioWhip { 0%{transform:translate3d(-130%,0,0) skewX(-16deg);opacity:0}35%{opacity:.9}62%{opacity:.7}100%{transform:translate3d(140%,0,0) skewX(-16deg);opacity:0} }
@keyframes studioZoomPunch { 0%{transform:scale(.45);opacity:0;filter:blur(8px)}45%{opacity:.8}100%{transform:scale(2.1);opacity:0;filter:blur(0)} }
@keyframes studioFilmBurn { 0%{transform:translate3d(-35%,25%,0) scale(.65);opacity:0}40%{opacity:.94}100%{transform:translate3d(30%,-20%,0) scale(1.55);opacity:0} }
@keyframes studioGlitch { 0%,100%{transform:translate3d(0,0,0);opacity:0}18%{transform:translate3d(-8%,0,0);opacity:.9;clip-path:inset(10% 0 65% 0)}35%{transform:translate3d(7%,0,0);clip-path:inset(58% 0 12% 0)}52%{transform:translate3d(-4%,0,0);clip-path:inset(30% 0 40% 0)}75%{transform:translate3d(3%,0,0);opacity:.7;clip-path:inset(5% 0 8% 0)} }
@keyframes studioLiquid { 0%{transform:scale(.4) rotate(-12deg);opacity:0;filter:blur(18px)}45%{opacity:.85}100%{transform:scale(1.75) rotate(8deg);opacity:0;filter:blur(3px)} }
@keyframes studioOnboardingIcon { 0%,100%{transform:translate3d(0,0,0) rotate(-2deg)}50%{transform:translate3d(0,-7px,0) rotate(2deg)} }

@media (min-width: 620px) {
    .studio-template-list { grid-auto-columns:minmax(230px,36%); }
    .studio-control-scroll { grid-auto-columns:minmax(120px,24%); }
    .studio-control-scroll.compact { grid-auto-columns:minmax(105px,20%); }
    .studio-playhead.playing { animation-name:studioPlayheadWide; }
    @keyframes studioPlayheadWide { from{transform:translate3d(0,0,0)} to{transform:translate3d(540px,0,0)} }
}

@media (prefers-reduced-motion: reduce) {
    .hero-showcase-track,
    .hero-marquee-track,
    .hero-wheel::after,
    .hero-smoke,
    .hero-ambient-orb,
    .studio-clip-block::before,
    .studio-waveform i,
    .studio-onboarding-main-icon,
    .studio-onboarding-orb { animation:none !important; }
    .studio-template-card,
    .studio-onboarding-card,
    .studio-transition-preview,
    .workspace-video-frame video { transition:none !important; }
    .studio-playhead.playing { animation-duration:.01ms !important; }
}

/* =========================================================
   V-FORGE MOBILE LAYOUT HOTFIX V7.0.1
   Memisahkan header, hero, CTA, template, dan project cards
   agar tidak saling menumpuk pada Chrome/Brave Android.
   ========================================================= */
#page-enhancer {
    padding-top: 0;
    overflow-x: clip;
}

#page-enhancer .editor-header-alt {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 120;
    min-height: 74px;
    padding: max(12px, env(safe-area-inset-top)) 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(5,6,10,.76);
    box-shadow: 0 12px 34px rgba(0,0,0,.24);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}

#page-enhancer .editor-header-alt .header-title {
    min-width: 0;
    overflow: hidden;
    padding: 0 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#page-enhancer .hero-banner-container {
    width: calc(100% - 28px);
    min-height: 0;
    height: auto;
    margin: 14px auto 0;
    overflow: hidden;
}

#page-enhancer .hero-glass-shell {
    min-height: 0;
    height: auto;
    padding: 70px 12px 14px;
}

#page-enhancer .hero-showcase-track {
    align-items: stretch;
}

#page-enhancer .hero-slide {
    min-height: 278px;
    height: auto;
    padding: 16px 16px 70px;
}

#page-enhancer .hero-slide-copy {
    max-width: 54%;
}

#page-enhancer .hero-slide-copy h3 {
    font-size: clamp(17px, 5.1vw, 21px);
}

#page-enhancer .hero-slide-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

#page-enhancer .hero-poster-stack {
    top: 24px;
    right: 13px;
    gap: 7px;
}

#page-enhancer .hero-car-stage {
    bottom: 58px;
    height: 118px;
}

#page-enhancer .hero-slide-stats {
    bottom: 12px;
}

#page-enhancer .hero-floating-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 4;
    width: auto;
    margin: 12px 2px 0;
}

#page-enhancer .image-fade-bottom {
    display: none;
}

#page-enhancer .hero-content-wrapper {
    z-index: 2;
    margin-top: 18px;
    padding-bottom: 44px;
}

#page-enhancer .editor-title-area {
    margin: 0 16px 18px;
}

#page-enhancer .feature-scroll-container {
    padding-top: 0;
    padding-bottom: 22px;
}

#page-enhancer .f-card {
    height: auto;
    min-height: 142px;
    min-width: 0;
}

#page-enhancer .studio-template-section {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

#page-enhancer .studio-template-list {
    min-height: 132px;
}

#page-enhancer .create-video-btn {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    height: auto;
    min-height: 132px;
    align-items: center;
    margin: 0 16px 34px;
    padding: 18px;
    overflow: visible;
}

#page-enhancer .create-video-copy {
    align-self: stretch;
    justify-content: center;
}

#page-enhancer .create-video-copy strong,
#page-enhancer .create-video-copy small,
#page-enhancer .create-video-meta,
#page-enhancer .create-video-preset {
    position: static;
    max-width: 100%;
    overflow-wrap: anywhere;
}

#page-enhancer .create-video-preset {
    margin-top: 3px;
    line-height: 1.35;
}

#page-enhancer .history-section-alt {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 0 16px 30px;
    clear: both;
}

#page-enhancer .editor-history-heading {
    min-height: 58px;
    margin-bottom: 18px;
}

#page-enhancer .recent-grid {
    align-items: start;
}

#page-enhancer .rc-thumb {
    isolation: isolate;
}

#page-enhancer .rc-template-chip {
    left: 10px;
    right: auto;
    bottom: 54px;
    z-index: 3;
    max-width: calc(100% - 20px);
}

#page-enhancer .rc-status {
    z-index: 2;
}

@media (max-width: 430px) {
    #page-enhancer .editor-header-alt {
        grid-template-columns: 44px minmax(0,1fr) auto;
    }

    #page-enhancer .hero-banner-container {
        width: calc(100% - 24px);
        border-radius: 28px;
    }

    #page-enhancer .hero-glass-shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    #page-enhancer .hero-slide {
        min-height: 264px;
        padding: 14px 14px 66px;
        border-radius: 22px;
    }

    #page-enhancer .hero-slide-copy {
        max-width: 57%;
    }

    #page-enhancer .hero-poster {
        width: 44px;
        height: 78px;
        border-radius: 14px;
    }

    #page-enhancer .hero-car-stage {
        left: 8px;
        right: 8px;
        bottom: 56px;
        height: 108px;
    }

    #page-enhancer .hero-car-body {
        left: 8px;
        right: 10px;
        height: 94px;
    }

    #page-enhancer .hero-wheel.rear { left: 52px; }
    #page-enhancer .hero-wheel.front { right: 42px; }

    #page-enhancer .hero-slide-stats {
        left: 12px;
        right: 12px;
        gap: 6px;
    }

    #page-enhancer .hero-slide-stats div {
        padding: 8px 5px;
    }

    #page-enhancer .hero-floating-card {
        margin-top: 10px;
        padding: 12px;
    }

    #page-enhancer .editor-title-area {
        margin-left: 12px;
        margin-right: 12px;
        padding: 18px;
    }

    #page-enhancer .editor-title-area h2 {
        font-size: clamp(31px, 9vw, 38px);
    }

    #page-enhancer .feature-scroll-container {
        gap: 9px;
        padding-left: 12px;
        padding-right: 12px;
    }

    #page-enhancer .f-card {
        min-height: 136px;
        padding: 10px 5px;
    }

    #page-enhancer .studio-template-section {
        margin-left: 12px;
        margin-right: 12px;
    }

    #page-enhancer .create-video-btn {
        width: calc(100% - 24px);
        grid-template-columns: 54px minmax(0,1fr) 24px;
        gap: 12px;
        margin-left: 12px;
        margin-right: 12px;
        padding: 16px;
    }

    #page-enhancer .create-video-icon-shell {
        width: 54px;
        height: 54px;
    }

    #page-enhancer .create-video-copy strong {
        font-size: clamp(17px, 5.2vw, 20px);
    }

    #page-enhancer .history-section-alt {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 350px) {
    #page-enhancer .hero-slide-copy p,
    #page-enhancer .hero-poster-stack {
        display: none;
    }

    #page-enhancer .hero-slide-copy {
        max-width: 88%;
    }

    #page-enhancer .create-video-btn {
        grid-template-columns: 48px minmax(0,1fr) 20px;
        gap: 9px;
        padding: 14px;
    }

    #page-enhancer .create-video-icon-shell {
        width: 48px;
        height: 48px;
    }

    #page-enhancer .create-video-copy small {
        display: none;
    }
}


/* =========================================================
   V-FORGE v7.1 — FOCUS UI + LOCAL-FIRST
   ========================================================= */
#page-enhancer .hero-banner-container {
    min-height: 220px;
    max-height: 250px;
}
#page-enhancer .hero-glass-shell { padding-top: 62px; }
#page-enhancer .hero-slide { min-height: 154px; padding: 12px 12px 50px; }
#page-enhancer .hero-slide-copy h3 { font-size: 17px; }
#page-enhancer .hero-slide-copy p { font-size: 9px; margin-top: 5px; }
#page-enhancer .hero-poster { width: 38px; height: 66px; }
#page-enhancer .hero-car-stage { height: 78px; bottom: 42px; }
#page-enhancer .hero-car-body { height: 68px; }
#page-enhancer .hero-wheel { width: 26px; height: 26px; }
#page-enhancer .hero-wheel.rear { left: 48px; }
#page-enhancer .hero-wheel.front { right: 38px; }
#page-enhancer .hero-slide-stats { bottom: 8px; }
#page-enhancer .hero-slide-stats div { padding: 6px 4px; }
#page-enhancer .hero-floating-card { display: none; }
#page-enhancer .hero-content-wrapper { margin-top: 14px; }
#page-enhancer .editor-title-area { padding: 14px 16px; margin-bottom: 12px; }
#page-enhancer .editor-title-area h2 { font-size: 28px; margin-bottom: 4px; }
#page-enhancer .editor-title-area p { font-size: 11px; max-width: none; }

.local-first-strip {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 16px 12px;
    padding: 11px 12px;
    border: 1px solid rgba(90,210,152,.2);
    border-radius: 18px;
    background: linear-gradient(135deg,rgba(32,122,84,.18),rgba(255,255,255,.035));
    color: #dff9ec;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.local-first-strip>.material-icons-round {
    width: 38px;height:38px;display:grid;place-items:center;border-radius:12px;
    color:#79d8aa;background:rgba(76,193,132,.12);font-size:19px;
}
.local-first-strip>span:nth-child(2){display:flex;flex-direction:column;min-width:0;gap:2px}
.local-first-strip strong{font-size:10px;font-weight:850}
.local-first-strip small{font-size:8px;line-height:1.4;color:#9fc5b2}
.local-first-badge{padding:6px 8px;border-radius:999px;background:rgba(76,193,132,.13);color:#8be0b5;font-size:7px;font-weight:850;white-space:nowrap}

#page-enhancer .feature-scroll-container {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    padding:0 16px 14px;
}
#page-enhancer .f-card {
    min-height:82px;
    padding:9px 5px;
    border-radius:18px;
    justify-content:center;
}
#page-enhancer .f-card:not(.pro-active) .material-icons-round,
#page-enhancer .f-card.pro-active .material-icons-round { font-size:20px; margin-bottom:1px; }
#page-enhancer .f-card:not(.pro-active) h4,
#page-enhancer .f-card.pro-active h4 { font-size:11px; }
#page-enhancer .f-card:not(.pro-active) p,
#page-enhancer .f-card.pro-active p { font-size:8px; }

#page-enhancer .studio-template-section {
    margin:0 16px 14px;
    padding:14px;
    border-radius:22px;
}
#page-enhancer .studio-section-heading h3 { font-size:17px; }
#page-enhancer .studio-section-heading p { font-size:9px; }
#page-enhancer .studio-template-list { min-height:104px; gap:10px; }
#page-enhancer .studio-template-card { min-width:150px; width:150px; border-radius:18px; }
#page-enhancer .studio-template-art { min-height:74px; }
#page-enhancer .studio-template-copy { padding:9px; }
#page-enhancer .studio-template-copy strong { font-size:10px; }
#page-enhancer .studio-template-copy small { display:none; }
#page-enhancer .studio-selected-template { margin-top:10px; min-height:46px; padding:8px 10px; }

#page-enhancer .create-video-btn {
    min-height:86px;
    margin:0 16px 22px;
    padding:14px 16px;
    border-radius:22px;
}
#page-enhancer .create-video-icon-shell { width:50px;height:50px;border-radius:16px; }
#page-enhancer .create-video-copy strong { font-size:18px; }
#page-enhancer .create-video-copy small { font-size:10px; }
#page-enhancer .create-video-meta { font-size:9px; }
#page-enhancer .create-video-preset { font-size:9px; }

#page-enhancer .history-section-alt { padding-bottom:18px; }
#page-enhancer .editor-history-heading { min-height:44px; margin-bottom:12px; }
#page-enhancer .recent-grid { gap:10px; }

.video-workspace-page .workspace-body { padding:12px; }
.video-workspace-page .workspace-preview-card,
.video-workspace-page .workspace-settings-card { border-radius:21px; padding:14px; }
.video-workspace-page .workspace-settings-card { margin-top:10px; }
.video-workspace-page .studio-workspace-panel { border-radius:20px; }
.video-workspace-page .studio-tool-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.video-workspace-page .studio-tool-button { min-height:56px; padding:8px 4px; }

@media (max-width:430px){
  #page-enhancer .hero-banner-container{min-height:210px;max-height:230px}
  #page-enhancer .hero-slide{min-height:145px;padding-bottom:46px}
  #page-enhancer .hero-slide-copy{max-width:62%}
  #page-enhancer .hero-slide-copy h3{font-size:15px}
  #page-enhancer .hero-poster-stack{top:22px;right:12px}
  #page-enhancer .editor-title-area{margin-left:12px;margin-right:12px}
  .local-first-strip{margin-left:12px;margin-right:12px;grid-template-columns:36px minmax(0,1fr)}
  .local-first-badge{display:none}
  #page-enhancer .feature-scroll-container{padding-left:12px;padding-right:12px}
  #page-enhancer .studio-template-section{margin-left:12px;margin-right:12px}
  #page-enhancer .create-video-btn{width:calc(100% - 24px);margin-left:12px;margin-right:12px;grid-template-columns:50px minmax(0,1fr) 22px}
  #page-enhancer .create-video-copy small{display:block}
}

/* =========================================================
   V-FORGE v8.0 — FOCUS REDESIGN
   Home, Template Studio, Editor Dock, Local-first UX
   ========================================================= */
:root {
    --v8-bg: #07070a;
    --v8-surface: #111116;
    --v8-surface-2: #17171d;
    --v8-line: rgba(255,255,255,.09);
    --v8-text: #f7f7fa;
    --v8-muted: #9b9ba6;
    --v8-purple: #a970ff;
    --v8-purple-2: #6c42ff;
    --v8-lime: #c8ff4d;
    --v8-orange: #ff8c37;
    --v8-safe-bottom: max(18px, env(safe-area-inset-bottom));
}

body.v8-ui {
    background: var(--v8-bg);
    overscroll-behavior-y: none;
}

body.v8-ui .page {
    min-height: 100dvh;
}

/* ------------------------- HOME ------------------------- */
#page-home.v8-home-page {
    position: relative;
    padding: 0 0 126px;
    overflow: hidden;
    color: var(--v8-text);
    background:
        radial-gradient(circle at 8% -5%, rgba(139,77,255,.20), transparent 34%),
        radial-gradient(circle at 100% 18%, rgba(255,121,43,.10), transparent 28%),
        var(--v8-bg);
}

.v8-home-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    opacity: .35;
}
.v8-glow-a { width: 220px; height: 220px; top: 120px; left: -150px; background: #7b3fff; }
.v8-glow-b { width: 180px; height: 180px; top: 460px; right: -130px; background: #ff762f; }

.v8-home-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: max(14px, env(safe-area-inset-top)) 18px 12px;
    background: linear-gradient(180deg, rgba(7,7,10,.96), rgba(7,7,10,.76) 72%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.v8-brand-lockup { display: flex; align-items: center; gap: 11px; }
.v8-brand-mark {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #b57cff, #6a38ff);
    box-shadow: 0 10px 30px rgba(111,55,255,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.v8-brand-mark svg { width: 24px; height: 24px; stroke: white; }
.v8-brand-lockup > div:last-child { display: flex; flex-direction: column; gap: 1px; }
.v8-brand-lockup span { color: #777783; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.v8-brand-lockup strong { font-size: 18px; line-height: 1; letter-spacing: -.04em; }
.v8-home-actions { display: flex; align-items: center; gap: 8px; }

.v8-icon-button,
.v8-profile-mini {
    position: relative;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 1px solid var(--v8-line);
    border-radius: 14px;
    color: var(--v8-text);
    background: rgba(255,255,255,.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    cursor: pointer;
}
.v8-icon-button .material-icons-round { font-size: 21px; }
.v8-icon-button .notif-badge-dot { top: 9px; right: 9px; width: 7px; height: 7px; border-color: #111116; }
.v8-profile-mini { overflow: hidden; background: linear-gradient(145deg, #272733, #131318); font-size: 12px; font-weight: 900; }
.v8-profile-mini .profile-avatar-photo { width: 100%; height: 100%; object-fit: cover; }
.v8-icon-button:active, .v8-profile-mini:active { transform: scale(.92); }

.v8-home-main { position: relative; z-index: 2; padding: 4px 16px 28px; }
.v8-greeting-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 2px 21px; }
.v8-greeting-row > div { min-width: 0; }
.v8-eyebrow { display: block; margin-bottom: 6px; color: var(--v8-purple); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.v8-greeting-row h1 { margin: 0; color: white; font-size: clamp(30px, 9vw, 40px); line-height: .98; letter-spacing: -.055em; }
.v8-greeting-row p { max-width: 270px; margin: 9px 0 0; color: var(--v8-muted); font-size: 11px; line-height: 1.45; }
.v8-points-chip {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 5px;
    min-height: 37px;
    padding: 0 11px;
    border: 1px solid rgba(200,255,77,.18);
    border-radius: 13px;
    color: var(--v8-lime);
    background: rgba(200,255,77,.075);
}
.v8-points-chip .material-icons-round { font-size: 16px; }
.v8-points-chip strong { font-size: 12px; }

.v8-new-project-card {
    position: relative;
    display: grid;
    grid-template-columns: 46% minmax(0,1fr);
    min-height: 236px;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 29px;
    background: linear-gradient(135deg, #181820, #0d0d12 72%);
    box-shadow: 0 24px 60px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
}
.v8-new-project-card::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255,255,255,.055), transparent 32%, transparent 72%, rgba(170,108,255,.07));
}
.v8-project-art {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent 72%, #111116),
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.64)),
        url('../assets/images/vf-car-02.jpg') center/cover;
}
.v8-project-light { position: absolute; width: 140px; height: 140px; left: -80px; bottom: -45px; border-radius: 50%; background: #8f50ff; filter: blur(54px); opacity: .75; }
.v8-project-badge { position: absolute; top: 14px; left: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: white; background: rgba(0,0,0,.38); backdrop-filter: blur(12px); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.v8-project-badge .material-icons-round { font-size: 12px; color: var(--v8-lime); }
.v8-project-speed { position: absolute; left: 12px; bottom: 14px; display: flex; align-items: baseline; gap: 4px; color: white; }
.v8-project-speed strong { font-size: 26px; line-height: 1; letter-spacing: -.06em; }
.v8-project-speed span { color: rgba(255,255,255,.62); font-size: 7px; font-weight: 900; }

.v8-project-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 22px 17px 20px 10px; }
.v8-project-copy > span { color: var(--v8-purple); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.v8-project-copy h2 { margin: 7px 0 8px; color: white; font-size: clamp(23px, 7vw, 31px); line-height: .98; letter-spacing: -.05em; }
.v8-project-copy p { margin: 0; color: var(--v8-muted); font-size: 9.5px; line-height: 1.5; }
.v8-primary-cta { display: grid; grid-template-columns: 30px minmax(0,1fr) 20px; align-items: center; gap: 7px; width: 100%; min-height: 50px; margin-top: 17px; padding: 6px 10px 6px 7px; border: 0; border-radius: 16px; color: #0b0612; background: linear-gradient(135deg, #d1a6ff, #9d66ff); box-shadow: 0 12px 25px rgba(139,73,255,.26); cursor: pointer; }
.v8-primary-cta > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.35); font-size: 18px; }
.v8-primary-cta strong { text-align: left; font-size: 11px; }
.v8-primary-cta > span:last-child { font-size: 18px; }
.v8-primary-cta:active { transform: scale(.97); }

.v8-section { margin: 0 0 28px; }
.v8-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 2px 13px; }
.v8-section-heading > div > span { display: block; margin-bottom: 3px; color: #71717d; font-size: 7.5px; font-weight: 900; letter-spacing: .16em; }
.v8-section-heading h2 { margin: 0; color: white; font-size: 19px; letter-spacing: -.035em; }
.v8-section-heading button { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; color: #a7a7b0; background: none; font-size: 9px; font-weight: 700; }
.v8-section-heading button .material-icons-round { font-size: 14px; }

#page-home .v8-recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0; }
#page-home .v8-recent-grid .rc-item { min-width: 0; border: 1px solid var(--v8-line); border-radius: 20px; background: #111116; overflow: hidden; }
#page-home .v8-recent-grid .rc-thumb { aspect-ratio: 1.35; height: auto; min-height: 105px; border-radius: 0; }
#page-home .v8-recent-grid .rc-info { padding: 10px 11px 12px; }
#page-home .v8-recent-grid .rc-info strong { color: white; font-size: 10px; }
#page-home .v8-recent-grid .rc-info small { color: #777783; font-size: 8px; }
#page-home .v8-recent-grid .editor-project-loading,
#page-home .v8-recent-grid .editor-project-empty { grid-column: 1 / -1; min-height: 116px; border: 1px dashed rgba(255,255,255,.12); border-radius: 20px; color: #8f8f9a; background: rgba(255,255,255,.025); }

.v8-quick-template-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 42vw); gap: 10px; overflow-x: auto; padding: 0 1px 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v8-quick-template-row::-webkit-scrollbar { display: none; }
.v8-quick-template { position: relative; min-height: 145px; overflow: hidden; padding: 15px; border: 1px solid var(--v8-line); border-radius: 21px; color: white; text-align: left; background-size: cover; background-position: center; scroll-snap-align: start; }
.v8-quick-template::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(5,5,8,.82)); }
.v8-quick-template > * { position: relative; z-index: 1; }
.v8-quick-template span { position: absolute; left: 13px; bottom: 29px; font-size: 12px; font-weight: 850; }
.v8-quick-template small { position: absolute; left: 13px; bottom: 14px; color: rgba(255,255,255,.6); font-size: 8px; }
.v8-quick-template i { position: absolute; top: 11px; right: 11px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(0,0,0,.32); backdrop-filter: blur(8px); font-size: 15px; }
.v8-quick-template.template-clean { background-image: url('../assets/images/vf-car-01.jpg'); }
.v8-quick-template.template-velocity { background-image: url('../assets/images/vf-car-02.jpg'); }
.v8-quick-template.template-pop { background-image: url('../assets/images/vf-car-03.jpg'); }

.v8-storage-card { display: grid; grid-template-columns: 42px minmax(0,1fr) 20px; align-items: center; gap: 11px; margin-bottom: 26px; padding: 14px; border: 1px solid rgba(121,220,170,.17); border-radius: 20px; background: linear-gradient(135deg, rgba(42,132,92,.14), rgba(255,255,255,.025)); }
.v8-storage-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #82dfb1; background: rgba(74,197,133,.12); }
.v8-storage-card div { display: flex; flex-direction: column; min-width: 0; }
.v8-storage-card div > span { color: #65bd91; font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.v8-storage-card strong { margin-top: 3px; color: #eefaf3; font-size: 11px; }
.v8-storage-card p { margin: 3px 0 0; color: #799788; font-size: 8px; line-height: 1.4; }
.v8-storage-card > i { color: #65bd91; font-size: 18px; }

.v8-daily-section { margin-top: 2px; }
#page-home .v8-mission-tabs { margin: 0 0 12px; padding: 3px; background: #111116; border: 1px solid var(--v8-line); }
#page-home .v8-mission-tabs .tabs { width: 100%; gap: 3px; }
#page-home .v8-mission-tabs .tab { flex: 1; padding: 9px 6px; border: 0; border-radius: 11px; color: #777783; background: transparent; font-size: 9px; }
#page-home .v8-mission-tabs .tab.active { color: white; background: #23232a; }
#page-home .v8-mission-card { height: 128px; border: 1px solid rgba(255,140,55,.22); border-radius: 21px; background-image: linear-gradient(90deg, rgba(8,8,12,.96), rgba(8,8,12,.42)), url('../assets/images/vf-car-04.jpg'); box-shadow: none; }
#page-home .v8-mission-card .task-tag { font-size: 8px; }
#page-home .v8-mission-card .task-tag .material-icons-round { font-size: 13px; }
#page-home .v8-mission-card .task-title { font-size: 16px; }
#page-home .v8-mission-card .task-diff { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 9px; }
#page-home .v8-mission-card .task-diff .material-icons-round { font-size: 13px; }

/* ---------------------- TEMPLATE STUDIO ---------------------- */
#page-enhancer.v8-studio-page {
    position: relative;
    padding: 0 0 124px;
    overflow: hidden;
    color: var(--v8-text);
    background: var(--v8-bg);
}
.v8-studio-backdrop { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 86% 4%, rgba(154,91,255,.20), transparent 26%), radial-gradient(circle at 5% 40%, rgba(255,112,38,.08), transparent 30%); }
.v8-studio-header { position: sticky; top: 0; z-index: 80; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 72px; padding: max(13px, env(safe-area-inset-top)) 15px 10px; background: linear-gradient(180deg, rgba(7,7,10,.98), rgba(7,7,10,.75), transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.v8-icon-button.dark { background: #141419; }
.v8-studio-header > div:nth-child(2) { min-width: 0; text-align: center; display: flex; flex-direction: column; }
.v8-studio-header > div:nth-child(2) span { color: #71717d; font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.v8-studio-header > div:nth-child(2) strong { color: white; font-size: 14px; }
#page-enhancer .v8-studio-header .editor-status-badge { min-height: 36px; padding: 0 10px; border-radius: 12px; }
#page-enhancer .v8-studio-header .editor-status-badge > .material-icons-round { font-size: 14px; }
.v8-studio-main { position: relative; z-index: 2; padding: 5px 14px 30px; }
.v8-studio-hero { position: relative; min-height: 316px; overflow: hidden; margin: 5px 0 18px; border: 1px solid rgba(255,255,255,.11); border-radius: 30px; background: linear-gradient(120deg, rgba(14,14,19,.98) 40%, rgba(14,14,19,.30)), url('../assets/images/vf-car-02.jpg') 69% center/cover; box-shadow: 0 28px 60px rgba(0,0,0,.35); }
.v8-studio-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 88% 52%, rgba(176,93,255,.38), transparent 33%), linear-gradient(180deg, transparent 55%, rgba(6,6,9,.80)); }
.v8-studio-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; width: 70%; min-height: 316px; padding: 25px 0 19px 21px; }
.v8-studio-label { display: inline-flex; align-items: center; gap: 6px; color: #d1b0ff; font-size: 7px; font-weight: 900; letter-spacing: .15em; }
.v8-studio-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--v8-lime); box-shadow: 0 0 14px var(--v8-lime); }
.v8-studio-hero h1 { margin: 15px 0 10px; color: white; font-size: clamp(30px, 9vw, 41px); line-height: .96; letter-spacing: -.06em; }
.v8-studio-hero h1 em { color: #c295ff; font-style: normal; }
.v8-studio-hero-copy > p { max-width: 250px; margin: 0; color: rgba(255,255,255,.57); font-size: 10px; line-height: 1.5; }
.v8-studio-art { display: none; }
.v8-studio-hero-art .v8-art-chip { position: absolute; top: 18px; right: 16px; z-index: 3; padding: 6px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: white; background: rgba(0,0,0,.3); backdrop-filter: blur(10px); font-size: 7px; font-weight: 900; }
.v8-studio-hero-art .v8-art-frame { position: absolute; right: 16px; bottom: 18px; z-index: 3; color: rgba(255,255,255,.7); font-size: 8px; font-weight: 900; letter-spacing: .1em; }

#page-enhancer .v8-studio-cta { position: relative; display: grid; grid-template-columns: 42px minmax(0,1fr) 22px; align-items: center; gap: 10px; width: min(250px, 100%); min-height: 68px; margin: auto 0 0; padding: 9px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; color: white; background: rgba(15,12,21,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 18px 34px rgba(0,0,0,.3); }
#page-enhancer .v8-studio-cta::before { display: none; }
#page-enhancer .v8-studio-cta .create-video-icon-shell { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #b77cff, #7542ff); }
#page-enhancer .v8-studio-cta .create-video-copy { gap: 1px; }
#page-enhancer .v8-studio-cta .create-video-copy strong { color: white; font-size: 13px; }
#page-enhancer .v8-studio-cta .create-video-copy small { color: rgba(255,255,255,.48); font-size: 8px; }
#page-enhancer .v8-studio-cta .create-video-preset { margin: 2px 0 0; color: #c9a8ff; font-size: 7px; }
#page-enhancer .v8-studio-cta .create-video-preset .material-icons-round { font-size: 11px; }
#page-enhancer .v8-studio-cta .create-video-arrow { color: white; font-size: 18px; }

#page-enhancer .v8-template-section { margin: 0 0 17px; padding: 17px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#page-enhancer .v8-template-section .studio-section-heading { padding: 0 2px; }
#page-enhancer .v8-template-section .studio-section-heading h3 { color: white; font-size: 20px; }
#page-enhancer .v8-template-section .studio-section-heading p { color: #7c7c88; font-size: 9px; }
#page-enhancer .v8-template-section .studio-kicker { color: var(--v8-purple); font-size: 7px; }
#page-enhancer .v8-template-section .studio-tour-button { border: 1px solid var(--v8-line); color: #d0d0d7; background: #141419; }
#page-enhancer .v8-template-section .studio-template-list { gap: 10px; min-height: 188px; padding: 3px 2px 8px; }
#page-enhancer .v8-template-section .studio-template-card { min-width: 158px; width: 158px; border: 1px solid var(--v8-line); border-radius: 22px; background: #111116; box-shadow: none; }
#page-enhancer .v8-template-section .studio-template-card.active { border-color: rgba(176,112,255,.65); box-shadow: 0 0 0 2px rgba(159,93,255,.13); }
#page-enhancer .v8-template-section .studio-template-art { min-height: 108px; }
#page-enhancer .v8-template-section .studio-template-copy { padding: 10px 11px 12px; }
#page-enhancer .v8-template-section .studio-template-copy strong { color: white; font-size: 11px; }
#page-enhancer .v8-template-section .studio-template-copy small { display: block; margin-top: 3px; color: #777783; font-size: 7.5px; line-height: 1.3; }
#page-enhancer .v8-template-section .studio-selected-template { min-height: 52px; margin: 8px 0 0; border: 1px solid var(--v8-line); border-radius: 17px; background: #111116; }

.v8-premium-card { position: relative; overflow: hidden; margin: 0 0 15px; padding: 18px; border: 1px solid rgba(190,125,255,.22); border-radius: 25px; background: radial-gradient(circle at 100% 0, rgba(158,85,255,.32), transparent 35%), linear-gradient(135deg, #17121f, #0e0e13); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); cursor: pointer; }
.v8-premium-copy { padding-right: 28px; }
.v8-premium-copy > span { color: #c89cff; font-size: 7px; font-weight: 900; letter-spacing: .15em; }
.v8-premium-copy h2 { margin: 7px 0 6px; color: white; font-size: 20px; line-height: 1.06; letter-spacing: -.04em; }
.v8-premium-copy p { max-width: 290px; margin: 0; color: #8d8297; font-size: 8.5px; line-height: 1.45; }
.v8-premium-arrow { position: absolute; top: 16px; right: 16px; color: #caa5ff; font-size: 19px; }
#page-enhancer .v8-premium-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 14px 0 0; }
#page-enhancer .v8-premium-features .f-card { min-width: 0; min-height: 74px; height: auto; padding: 9px 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; color: white; background: rgba(255,255,255,.045); box-shadow: none; }
#page-enhancer .v8-premium-features .f-card > .material-icons-round { margin: 0 0 3px; color: #c8a1ff; font-size: 18px; }
#page-enhancer .v8-premium-features .f-card h4 { color: white; font-size: 11px; }
#page-enhancer .v8-premium-features .f-card p { color: #887d91; font-size: 7px; }
#page-enhancer .v8-local-first { margin: 0; }

/* ------------------------- EDITOR ------------------------- */
#page-video-workspace.v8-editor-page { padding: 0 0 calc(88px + var(--v8-safe-bottom)); color: white; background: #07070a; }
#page-video-workspace .workspace-header { position: sticky; top: 0; z-index: 75; min-height: 66px; padding-top: max(11px, env(safe-area-inset-top)); border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(8,8,11,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
#page-video-workspace .workspace-header > div span { color: #777783; font-size: 7px; letter-spacing: .15em; }
#page-video-workspace .workspace-header > div strong { color: white; font-size: 12px; }
#page-video-workspace .workspace-icon-button { color: white; background: #17171d; border-color: rgba(255,255,255,.09); }
#page-video-workspace .workspace-body { display: block; max-width: 720px; margin: 0 auto; padding: 12px 11px 24px; }
#page-video-workspace .workspace-preview-card,
#page-video-workspace .workspace-settings-card { margin: 0 0 11px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; color: white; background: #111116; box-shadow: none; }
#page-video-workspace .workspace-preview-card .workspace-section-heading { margin-bottom: 10px; }
#page-video-workspace .workspace-section-heading span { color: #797985; }
#page-video-workspace .workspace-section-heading h2 { color: white; font-size: 16px; }
#page-video-workspace .workspace-video-frame { max-height: 55dvh; border-radius: 17px; background: #020203; }
#page-video-workspace .workspace-source-meta,
#page-video-workspace .workspace-meta-grid { border-color: rgba(255,255,255,.07); background: #17171d; }
#page-video-workspace .workspace-source-meta strong,
#page-video-workspace .workspace-meta-grid strong { color: white; }
#page-video-workspace .workspace-settings-card { padding-bottom: 18px; }
#page-video-workspace .workspace-name-field input,
#page-video-workspace select { color: white; border-color: rgba(255,255,255,.09); background: #18181e; }
#page-video-workspace select option { color: #111; }
#page-video-workspace .workspace-creative-suite { margin: 13px -3px; padding: 14px 10px; border: 1px solid rgba(166,103,255,.15); border-radius: 20px; background: linear-gradient(145deg, rgba(130,66,230,.09), rgba(255,255,255,.02)); }
#page-video-workspace .studio-control-scroll { scrollbar-width: none; }
#page-video-workspace .studio-control-scroll::-webkit-scrollbar { display: none; }
#page-video-workspace .studio-control-option,
#page-video-workspace .studio-template-control { border-color: rgba(255,255,255,.08); color: #c5c5cc; background: #17171d; }
#page-video-workspace .studio-control-option.active,
#page-video-workspace .studio-template-control.active { color: white; border-color: rgba(169,112,255,.6); background: rgba(137,73,235,.20); }
#page-video-workspace .studio-mini-timeline { border-color: rgba(255,255,255,.08); background: #0c0c10; }
#page-video-workspace .workspace-setting-group,
#page-video-workspace .workspace-audio-toggle,
#page-video-workspace .workspace-audio-quality,
#page-video-workspace .workspace-premium-access,
#page-video-workspace .processor-card { border-color: rgba(255,255,255,.08); background: #17171d; }
#page-video-workspace .workspace-choice { color: #aaaab4; border-color: rgba(255,255,255,.07); background: #121217; }
#page-video-workspace .workspace-choice.active { color: white; border-color: rgba(169,112,255,.65); background: rgba(137,73,235,.18); }
#page-video-workspace .workspace-save-button { background: linear-gradient(135deg, #aa73ff, #7043ff); }
#page-video-workspace .processor-start-button { background: linear-gradient(135deg, #d2ff6a, #9bd82a); color: #111508; }
#page-video-workspace .processor-output-grid > div { border-color: rgba(255,255,255,.07); background: #101015; }
#page-video-workspace .processor-output-grid strong { color: white; }

.v8-editor-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: var(--v8-safe-bottom);
    z-index: 190;
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    max-width: 560px;
    min-height: 68px;
    margin: 0 auto;
    padding: 7px 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 23px;
    background: rgba(20,20,26,.90);
    box-shadow: 0 18px 50px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.v8-editor-dock button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border: 0; border-radius: 16px; color: #777783; background: transparent; cursor: pointer; }
.v8-editor-dock button .material-icons-round { font-size: 20px; }
.v8-editor-dock button small { font-size: 7px; font-weight: 750; }
.v8-editor-dock button i { position: absolute; top: 2px; right: 2px; padding: 2px 3px; border-radius: 4px; color: #b9ff5c; background: rgba(154,222,60,.13); font-size: 4.5px; font-style: normal; font-weight: 900; }
.v8-editor-dock button.active { color: white; background: linear-gradient(145deg, rgba(173,112,255,.28), rgba(111,66,255,.16)); }
.v8-editor-dock button.active .material-icons-round { color: #c79dff; }
.v8-tool-highlight { animation: v8ToolHighlight .9s ease; }
@keyframes v8ToolHighlight { 0%,100% { box-shadow: none; } 35% { box-shadow: 0 0 0 3px rgba(169,112,255,.24), 0 0 32px rgba(130,65,255,.18); } }

/* ---------------------- BOTTOM NAV ---------------------- */
body.v8-ui .v8-bottom-nav-wrapper { height: 94px; bottom: 0; padding-bottom: max(7px, env(safe-area-inset-bottom)); }
body.v8-ui .v8-bottom-nav { height: 72px; margin: 0 9px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.10); border-radius: 25px; background: rgba(19,19,24,.90); box-shadow: 0 16px 48px rgba(0,0,0,.43), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); }
body.v8-ui .v8-bottom-nav .nav-item { height: 58px; color: #696974; border-radius: 17px; }
body.v8-ui .v8-bottom-nav .nav-item.active { color: white; background: rgba(255,255,255,.055); }
body.v8-ui .v8-bottom-nav .nav-icon { font-size: 21px; }
body.v8-ui .v8-bottom-nav .nav-text { font-size: 7px; font-weight: 750; }
body.v8-ui .center-cta-wrapper { bottom: calc(max(7px, env(safe-area-inset-bottom)) + 21px); }
body.v8-ui .center-cta { width: 58px; height: 58px; border: 5px solid #07070a; border-radius: 19px; color: white; background: linear-gradient(145deg, #bd84ff, #713eff); box-shadow: 0 14px 32px rgba(111,59,255,.44), inset 0 1px 0 rgba(255,255,255,.3); }
body.v8-ui .center-cta .material-icons-round { font-size: 27px; }

@media (min-width: 700px) {
    .v8-home-main, .v8-home-header, .v8-studio-main, .v8-studio-header { max-width: 720px; margin-left: auto; margin-right: auto; }
    .v8-new-project-card { grid-template-columns: 42% minmax(0,1fr); min-height: 270px; }
    .v8-project-copy { padding-right: 34px; }
    .v8-studio-hero-copy { width: 58%; padding-left: 32px; }
}

@media (max-width: 370px) {
    .v8-home-main { padding-left: 12px; padding-right: 12px; }
    .v8-new-project-card { grid-template-columns: 43% minmax(0,1fr); min-height: 220px; }
    .v8-project-copy { padding-left: 8px; padding-right: 12px; }
    .v8-project-copy h2 { font-size: 22px; }
    .v8-project-copy p { font-size: 8px; }
    .v8-primary-cta { min-height: 46px; }
    .v8-studio-main { padding-left: 10px; padding-right: 10px; }
    .v8-studio-hero-copy { width: 78%; padding-left: 16px; }
    .v8-studio-hero h1 { font-size: 29px; }
    #page-enhancer .v8-studio-cta { width: 220px; }
    .v8-editor-dock { left: 6px; right: 6px; }
    .v8-editor-dock button small { font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .v8-home-page *, .v8-studio-page *, .v8-editor-page * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ============================================================
   V-FORGE v8.2 — NATIVE NAVIGATION + FOCUSED EDITOR
   ============================================================ */
:root {
    --v82-bg: #08080b;
    --v82-surface: #121217;
    --v82-surface-2: #191920;
    --v82-line: rgba(255,255,255,.085);
    --v82-text: #f8f8fb;
    --v82-muted: #858590;
    --v82-purple: #9f6cff;
    --v82-lime: #c9ff62;
    --v82-nav-height: 90px;
}
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
body.v82-ui { color: var(--v82-text); background: var(--v82-bg); }
body.v82-ui.v82-modal-open { overflow: hidden; }
.v82-hidden-legacy, .v82-points-hidden { display: none !important; }

/* root headers */
.v82-root-header { position: sticky; top: 0; z-index: 60; display:flex; align-items:center; justify-content:space-between; min-height:76px; padding: max(14px,env(safe-area-inset-top)) 18px 10px; background:linear-gradient(180deg,rgba(8,8,11,.98) 72%,rgba(8,8,11,0)); }
.v82-brand-lockup { display:flex; align-items:center; gap:10px; }
.v82-brand-mark { display:grid; place-items:center; width:38px; height:38px; border:1px solid rgba(255,255,255,.13); border-radius:13px; background:linear-gradient(145deg,#1e1e26,#0e0e13); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.v82-brand-mark svg { width:21px; height:21px; stroke:#c9ff62; }
.v82-brand-lockup div:last-child { display:flex; flex-direction:column; }
.v82-brand-lockup strong { font-size:16px; line-height:1; letter-spacing:-.035em; }
.v82-brand-lockup span { margin-top:4px; color:var(--v82-muted); font-size:7px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.v82-header-actions { display:flex; align-items:center; gap:9px; }
.v82-round-button,.v82-avatar-button { position:relative; display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid var(--v82-line); border-radius:14px; color:white; background:rgba(24,24,31,.86); }
.v82-round-button .material-icons-round { font-size:20px; }
.v82-avatar-button { overflow:hidden; font-size:11px; font-weight:850; background:linear-gradient(145deg,#b880ff,#6443ff); }
.v82-avatar-button img { width:100%; height:100%; object-fit:cover; }
.v82-page-header { align-items:flex-end; min-height:92px; padding-bottom:12px; }
.v82-page-header h1 { margin:2px 0 0; font-size:31px; line-height:1; letter-spacing:-.06em; }
.v82-page-kicker { color:#7d7d89; font-size:7px; font-weight:900; letter-spacing:.18em; }

/* home: intentionally minimal */
#page-home.v82-home-page { min-height:100dvh; padding:0 0 calc(var(--v82-nav-height) + env(safe-area-inset-bottom)); background:radial-gradient(circle at 110% 8%,rgba(132,73,255,.16),transparent 31%),var(--v82-bg); }
.v82-home-main { padding:6px 15px 24px; }
.v82-home-intro { padding:5px 2px 17px; }
.v82-day-chip { display:inline-flex; padding:5px 8px; border:1px solid rgba(201,255,98,.18); border-radius:999px; color:#bfe65f; background:rgba(201,255,98,.06); font-size:7px; font-weight:850; letter-spacing:.08em; }
.v82-home-intro h1 { margin:11px 0 5px; font-size:31px; line-height:.98; letter-spacing:-.065em; }
.v82-home-intro p { margin:0; color:var(--v82-muted); font-size:11px; line-height:1.45; }
.v82-create-hero { position:relative; display:grid; grid-template-columns:44% minmax(0,1fr); min-height:238px; overflow:hidden; border:1px solid rgba(255,255,255,.10); border-radius:29px; background:linear-gradient(140deg,#15151b,#0d0d11); box-shadow:0 24px 50px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08); }
.v82-create-visual { position:relative; min-width:0; background:radial-gradient(circle at 35% 34%,rgba(166,91,255,.65),transparent 27%),linear-gradient(155deg,#1e1729,#08080b 68%); }
.v82-car-surface { position:absolute; inset:0; background-image:linear-gradient(90deg,rgba(8,8,11,.04),rgba(8,8,11,.48)),url('../assets/images/vf-car-02.jpg'); background-size:cover; background-position:50% center; filter:saturate(1.08) contrast(1.05); }
.v82-create-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 42%,#111116 100%),linear-gradient(0deg,rgba(8,8,11,.48),transparent 45%); }
.v82-create-tag { position:absolute; z-index:2; top:13px; left:12px; display:flex; align-items:center; gap:4px; padding:6px 7px; border:1px solid rgba(255,255,255,.16); border-radius:8px; color:white; background:rgba(9,9,13,.56); backdrop-filter:blur(12px); font-size:6px; font-weight:900; letter-spacing:.08em; }
.v82-create-tag .material-icons-round { color:var(--v82-lime); font-size:10px; }
.v82-create-ratio { position:absolute; z-index:2; bottom:12px; left:12px; color:rgba(255,255,255,.8); font-size:8px; font-weight:900; }
.v82-create-copy { position:relative; z-index:3; display:flex; flex-direction:column; justify-content:center; padding:20px 17px 20px 5px; }
.v82-create-copy>span { color:#a987dd; font-size:6px; font-weight:900; letter-spacing:.17em; }
.v82-create-copy h2 { margin:7px 0 7px; font-size:24px; line-height:.98; letter-spacing:-.055em; }
.v82-create-copy p { margin:0; color:#89838f; font-size:8.5px; line-height:1.48; }
.v82-create-button { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:7px; min-height:47px; margin-top:16px; padding:0 10px; border:0; border-radius:15px; color:#12130d; background:linear-gradient(135deg,#d7ff7e,#a9e33c); box-shadow:0 12px 28px rgba(158,218,54,.16); }
.v82-create-button .material-icons-round { font-size:17px; }
.v82-create-button strong { text-align:left; font-size:9px; }
.v82-home-section { margin-top:23px; }
.v82-section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; }
.v82-section-title span { display:block; color:#73737f; font-size:6px; font-weight:900; letter-spacing:.16em; }
.v82-section-title h2 { margin:3px 0 0; font-size:19px; line-height:1; letter-spacing:-.04em; }
.v82-section-title button { display:flex; align-items:center; gap:4px; padding:5px; border:0; color:#a68bd0; background:transparent; font-size:8px; font-weight:750; }
.v82-home-projects { display:grid; grid-auto-flow:column; grid-auto-columns:44%; grid-template-columns:none; gap:10px; overflow-x:auto; padding:0 1px 5px; scroll-snap-type:x mandatory; scrollbar-width:none; }
.v82-home-projects::-webkit-scrollbar { display:none; }
.v82-home-projects .rc-item { scroll-snap-align:start; min-width:0; }
.v82-home-projects .rc-thumb { aspect-ratio:4/5; border-radius:20px; }
.v82-home-projects .rc-info strong { color:white; }
.v82-pro-strip { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; width:100%; margin-top:20px; padding:13px; border:1px solid rgba(177,119,255,.18); border-radius:20px; color:white; background:linear-gradient(135deg,rgba(121,67,220,.13),rgba(255,255,255,.025)); text-align:left; }
.v82-pro-icon { display:grid; place-items:center; width:37px; height:37px; border-radius:12px; color:#d3adff; background:rgba(161,98,255,.14); font-size:19px; }
.v82-pro-strip>span:nth-child(2) { display:flex; flex-direction:column; }
.v82-pro-strip small { color:#b795e5; font-size:6px; font-weight:900; letter-spacing:.12em; }
.v82-pro-strip strong { margin-top:3px; font-size:10px; }
.v82-pro-strip em { margin-top:2px; color:#77717f; font-size:7px; font-style:normal; }
.v82-pro-strip>span:last-child { color:#766b81; font-size:20px; }

/* templates page */
#page-enhancer.v82-templates-page { min-height:100dvh; padding:0 0 calc(var(--v82-nav-height) + env(safe-area-inset-bottom)); color:white; background:radial-gradient(circle at 100% 3%,rgba(116,63,215,.15),transparent 28%),var(--v82-bg); }
.v82-templates-main,.v82-projects-main { padding:5px 15px 25px; }
.v82-search-field { display:flex; align-items:center; gap:8px; min-height:45px; padding:0 13px; border:1px solid var(--v82-line); border-radius:15px; background:#15151b; }
.v82-search-field .material-icons-round { color:#72727e; font-size:19px; }
.v82-search-field input { flex:1; min-width:0; border:0; outline:0; color:white; background:transparent; font-size:10px; }
.v82-category-row { display:flex; gap:7px; overflow-x:auto; padding:12px 0 14px; scrollbar-width:none; }
.v82-category-row::-webkit-scrollbar { display:none; }
.v82-category-row button { flex:0 0 auto; min-height:31px; padding:0 12px; border:1px solid var(--v82-line); border-radius:999px; color:#777783; background:#121217; font-size:8px; font-weight:750; }
.v82-category-row button.active { color:#15160e; border-color:var(--v82-lime); background:var(--v82-lime); }
.v82-template-featured { position:relative; min-height:190px; overflow:hidden; padding:22px; border:1px solid rgba(255,255,255,.1); border-radius:27px; background-image:linear-gradient(90deg,rgba(5,5,8,.96) 3%,rgba(5,5,8,.65) 50%,rgba(5,5,8,.16)),url('../assets/images/vf-car-04.jpg'); background-size:cover; background-position:center; box-shadow:0 20px 45px rgba(0,0,0,.25); }
.v82-template-featured-copy { position:relative; z-index:2; max-width:205px; }
.v82-template-featured-copy>span { color:#c6ff5e; font-size:6px; font-weight:900; letter-spacing:.17em; }
.v82-template-featured h2 { margin:9px 0 6px; font-size:27px; line-height:.98; letter-spacing:-.055em; }
.v82-template-featured p { margin:0; color:#a3a0a8; font-size:8px; line-height:1.5; }
.v82-template-featured button { display:flex; align-items:center; gap:5px; min-height:36px; margin-top:15px; padding:0 12px; border:0; border-radius:12px; color:#11130b; background:var(--v82-lime); font-size:8px; font-weight:850; }
.v82-template-featured button .material-icons-round { font-size:15px; }
.v82-featured-duration { position:absolute; right:12px; bottom:12px; padding:5px 7px; border-radius:8px; color:white; background:rgba(5,5,8,.62); backdrop-filter:blur(10px); font-size:7px; font-weight:850; }
.v82-template-library { margin-top:22px; }
#page-enhancer .v82-template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; overflow:visible; padding:0; }
#page-enhancer .v82-template-grid>* { width:auto!important; min-width:0!important; margin:0!important; }
#page-enhancer .studio-template-card { min-height:190px; border-radius:21px; }
.v82-template-action { position:sticky; bottom:calc(var(--v82-nav-height) + env(safe-area-inset-bottom) + 5px); z-index:45; display:grid!important; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; min-height:63px; margin-top:15px!important; padding:9px 10px!important; border:1px solid rgba(255,255,255,.13)!important; border-radius:20px!important; background:rgba(23,23,29,.92)!important; box-shadow:0 16px 42px rgba(0,0,0,.38); backdrop-filter:blur(22px) saturate(145%); }
.v82-template-action>span:nth-child(2) { display:flex; min-width:0; flex-direction:column; }
.v82-template-action i { display:none; }
.v82-template-action button { min-height:38px; padding:0 15px; border:0; border-radius:12px; color:#15160d; background:var(--v82-lime); font-size:8px; font-weight:900; }

/* projects */
#page-search.v82-projects-page { min-height:100dvh; padding:0 0 calc(var(--v82-nav-height) + env(safe-area-inset-bottom)); color:white; background:var(--v82-bg); }
.v82-project-status-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.v82-local-label { display:flex; align-items:center; gap:4px; color:#777783; font-size:7px; font-weight:750; }
.v82-local-label .material-icons-round { color:#a4d94a; font-size:13px; }
.v82-library-summary { margin:0 0 13px; border:1px solid var(--v82-line); border-radius:19px; background:#121217; box-shadow:none; }
.v82-library-summary>div { border-color:var(--v82-line); }
.v82-library-summary span { color:white; }
.v82-project-search { margin:0!important; }
.v82-project-search .search-input-box { min-height:45px; border:1px solid var(--v82-line); border-radius:15px; background:#15151b; }
.v82-project-search input { color:white; }
.v82-project-filters { margin:12px 0 15px; padding:0; }
.v82-project-filters .project-filter { color:#777783; border-color:var(--v82-line); background:#121217; }
.v82-project-filters .project-filter.active { color:#14150d; border-color:var(--v82-lime); background:var(--v82-lime); }
.v82-library-area { padding:0; }
.v82-library-area .recent-header { margin-bottom:10px; }
.v82-library-area .recent-header h3 { color:white; font-size:15px; }
.v82-project-list { display:grid; grid-template-columns:1fr; gap:9px; }
.v82-project-list .project-item { border:1px solid var(--v82-line); border-radius:19px; color:white; background:#121217; box-shadow:none; }
.v82-project-list .project-title { color:white; }
.v82-project-list .project-meta,.v82-project-list .project-source-name { color:#777783; }

/* create sheet */
.v82-create-sheet { position:fixed; inset:0; z-index:500; visibility:hidden; opacity:0; transition:visibility .28s,opacity .28s; }
.v82-create-sheet.show { visibility:visible; opacity:1; }
.v82-sheet-backdrop { position:absolute; inset:0; width:100%; border:0; background:rgba(0,0,0,.62); backdrop-filter:blur(5px); }
.v82-create-sheet-card { position:absolute; left:0; right:0; bottom:0; max-width:620px; margin:auto; padding:8px 14px calc(17px + env(safe-area-inset-bottom)); border:1px solid rgba(255,255,255,.12); border-bottom:0; border-radius:29px 29px 0 0; color:white; background:linear-gradient(180deg,#1c1c23,#101014); box-shadow:0 -25px 80px rgba(0,0,0,.52); transform:translateY(105%); transition:transform .38s cubic-bezier(.2,.8,.2,1); }
.v82-create-sheet.show .v82-create-sheet-card { transform:translateY(0); }
.v82-sheet-handle { width:34px; height:4px; margin:1px auto 13px; border-radius:999px; background:#474750; }
.v82-create-sheet-head { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:12px; }
.v82-create-sheet-head span { color:#8d72b7; font-size:6px; font-weight:900; letter-spacing:.16em; }
.v82-create-sheet-head h2 { margin:5px 0 0; font-size:21px; letter-spacing:-.045em; }
.v82-create-sheet-head>button { display:grid; place-items:center; width:35px; height:35px; border:1px solid var(--v82-line); border-radius:12px; color:white; background:#25252c; }
.v82-create-option { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; width:100%; min-height:66px; margin-top:8px; padding:9px 11px; border:1px solid var(--v82-line); border-radius:18px; color:white; background:#17171d; text-align:left; }
.v82-create-option.primary { border-color:rgba(201,255,98,.18); background:linear-gradient(135deg,rgba(201,255,98,.08),rgba(255,255,255,.025)); }
.v82-option-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; color:#cba4ff; background:rgba(156,96,255,.13); font-size:21px; }
.v82-create-option.primary .v82-option-icon { color:#c9ff62; background:rgba(201,255,98,.1); }
.v82-create-option>span:nth-child(2) { display:flex; flex-direction:column; }
.v82-create-option strong { font-size:10px; }
.v82-create-option small { margin-top:3px; color:#777783; font-size:7px; }
.v82-create-option>span:last-child { color:#676772; font-size:19px; }
.v82-create-sheet-card>p { display:flex; align-items:center; justify-content:center; gap:5px; margin:13px 0 0; color:#6f6f79; font-size:7px; }
.v82-create-sheet-card>p .material-icons-round { color:#95c744; font-size:13px; }

/* full-screen editor */
#page-video-workspace.v82-editor-page { position:relative; height:100dvh; min-height:0; overflow:hidden; padding:0; color:white; background:#050507; }
.v82-editor-header { position:absolute; z-index:90; top:0; left:0; right:0; display:grid; grid-template-columns:44px 1fr auto; align-items:center; min-height:64px; padding:max(9px,env(safe-area-inset-top)) 11px 5px; background:linear-gradient(180deg,rgba(5,5,7,.92),rgba(5,5,7,.18)); }
.v82-editor-icon { display:grid; place-items:center; width:37px; height:37px; border:0; border-radius:13px; color:white; background:rgba(28,28,34,.72); backdrop-filter:blur(14px); }
.v82-editor-title { display:flex; min-width:0; align-items:center; justify-content:center; flex-direction:column; }
.v82-editor-title span { max-width:100%; overflow:hidden; color:#8b8b95; font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.v82-editor-title strong { margin-top:2px; font-size:10px; }
.v82-export-top { min-height:35px; padding:0 13px; border:0; border-radius:12px; color:#14160d; background:var(--v82-lime); font-size:8px; font-weight:900; }
.v82-editor-shell { display:grid; grid-template-rows:minmax(0,43dvh) 126px minmax(0,1fr); height:100dvh; padding-top:0; }
.v82-preview-stage { position:relative; display:flex; min-height:0; align-items:center; justify-content:center; padding:64px 10px 7px; background:radial-gradient(circle at 50% 40%,#16131d,#050507 62%); }
.v82-preview-stage .workspace-video-frame { width:100%; max-width:680px; height:100%; max-height:none!important; border:0; border-radius:0; background:#000; box-shadow:none; }
.v82-preview-stage .workspace-video-frame video { width:100%; height:100%; object-fit:contain; }
.v82-preview-meta { position:absolute; z-index:3; right:10px; bottom:10px; left:10px; display:flex; align-items:flex-end; justify-content:space-between; pointer-events:none; }
.v82-preview-meta>button { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:6px; max-width:58%; min-height:35px; padding:5px 8px; border:1px solid rgba(255,255,255,.11); border-radius:11px; color:white; background:rgba(11,11,14,.66); backdrop-filter:blur(13px); pointer-events:auto; text-align:left; }
.v82-preview-meta>button>.material-icons-round { font-size:15px; }
.v82-preview-meta>button>span:nth-child(2) { display:flex; min-width:0; flex-direction:column; }
.v82-preview-meta strong { overflow:hidden; font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.v82-preview-meta small { color:#8c8c94; font-size:5.5px; }
.v82-preview-meta>div { display:flex; gap:4px; }
.v82-preview-meta>div>span { display:flex; min-width:48px; flex-direction:column; padding:5px 6px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:rgba(11,11,14,.66); backdrop-filter:blur(13px); }
.v82-preview-meta>div small { color:#7e7e88; font-size:5px; }
.v82-preview-meta>div strong { margin-top:2px; font-size:6.5px; }
.v82-preview-stage .workspace-preview-error { position:absolute; z-index:8; top:70px; left:12px; right:12px; }
.v82-timeline { position:relative; z-index:6; min-height:0; margin:0!important; padding:7px 9px 8px!important; overflow:hidden; border:0!important; border-top:1px solid rgba(255,255,255,.08)!important; border-bottom:1px solid rgba(255,255,255,.08)!important; border-radius:0!important; background:#0b0b0f!important; }
.v82-timeline-top { display:grid; grid-template-columns:34px 1fr 34px; align-items:center; margin-bottom:2px; }
.v82-timeline-top span { text-align:center; color:#73737d; font-size:6px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.v82-timeline-top button { display:grid; place-items:center; width:29px; height:24px; border:0; border-radius:8px; color:#8b8b95; background:#17171c; }
.v82-timeline-top button:last-child { justify-self:end; }
.v82-timeline-top button .material-icons-round { font-size:14px; }
.v82-timeline .studio-timeline-ruler { margin-left:30px; }
.v82-timeline .studio-timeline-track { min-height:32px; }
.v82-timeline .audio-track { min-height:23px; }
.v82-timeline .studio-playhead { top:27px; bottom:4px; }
.v82-tool-sheet { position:relative; z-index:7; min-height:0; overflow-y:auto; margin:0!important; padding:6px 12px calc(75px + env(safe-area-inset-bottom))!important; border:0!important; border-radius:0!important; color:white; background:#111116!important; box-shadow:0 -10px 30px rgba(0,0,0,.2)!important; scrollbar-width:none; }
.v82-tool-sheet::-webkit-scrollbar { display:none; }
.v82-tool-sheet>.v82-sheet-handle { position:sticky; top:0; z-index:8; margin:0 auto 7px; }
.v82-tool-panel { display:none; animation:v82PanelIn .24s ease; }
.v82-tool-panel.active { display:block; }
@keyframes v82PanelIn { from { opacity:.2; transform:translateY(5px); } to { opacity:1; transform:none; } }
.v82-tool-heading { display:flex; align-items:center; justify-content:space-between; margin:2px 0 10px; }
.v82-tool-heading small { color:#8d6fb7; font-size:6px; font-weight:900; letter-spacing:.16em; }
.v82-tool-heading h2 { margin:2px 0 0; font-size:16px; letter-spacing:-.04em; }
.v82-tool-heading>.material-icons-round { color:#b88cff; font-size:21px; }
.v82-tool-heading>button { display:grid; place-items:center; width:31px; height:31px; border:1px solid var(--v82-line); border-radius:10px; color:white; background:#1b1b21; }
.v82-name-field { margin-bottom:10px; }
.v82-name-field input,#page-video-workspace select { color:white!important; border-color:var(--v82-line)!important; background:#1a1a20!important; }
.v82-setting-card { margin:0 0 10px!important; padding:11px!important; border-color:var(--v82-line)!important; border-radius:17px!important; background:#17171d!important; }
.v82-save-draft { min-height:44px!important; margin-top:8px!important; border-radius:14px!important; background:linear-gradient(135deg,#b47aff,#6c43ff)!important; }
#page-video-workspace .workspace-audio-toggle,#page-video-workspace .workspace-audio-quality,#page-video-workspace .workspace-premium-access { border-color:var(--v82-line)!important; border-radius:17px!important; background:#17171d!important; }
.v82-coming-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:9px; margin-top:10px; padding:12px; border:1px solid var(--v82-line); border-radius:17px; background:#17171d; }
.v82-coming-card>.material-icons-round { color:#a97aff; }
.v82-coming-card>div { display:flex; flex-direction:column; }
.v82-coming-card strong { font-size:9px; }
.v82-coming-card small { margin-top:3px; color:#777783; font-size:7px; line-height:1.4; }
.v82-soon { padding:4px 6px; border-radius:7px; color:#b9e866; background:rgba(201,255,98,.08); font-size:5px; font-weight:900; }
.v82-placeholder-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.v82-placeholder-grid button { display:flex; min-height:81px; align-items:center; justify-content:center; flex-direction:column; gap:7px; border:1px solid var(--v82-line); border-radius:17px; color:#cfcfd5; background:#17171d; }
.v82-placeholder-grid button .material-icons-round { color:#a57aff; font-size:22px; }
.v82-placeholder-grid button strong { font-size:7px; }
#page-video-workspace .studio-control-block { margin-bottom:11px; }
#page-video-workspace .studio-control-scroll { display:flex; overflow-x:auto; }
.v82-preview-transition { display:flex; align-items:center; justify-content:center; gap:5px; width:100%; min-height:40px; border:1px solid rgba(172,117,255,.22); border-radius:13px; color:#d5bbff; background:rgba(148,89,243,.09); font-size:8px; font-weight:850; }
.v82-select-grid { margin-bottom:10px; }
.v82-export-panel { padding-bottom:15px; }
#page-video-workspace .v82-export-panel .processor-card { margin:0!important; padding:0!important; border:0!important; background:transparent!important; }
#page-video-workspace .processor-output-grid>div { background:#19191f; }
#page-video-workspace .processor-start-button { color:#12140c; background:var(--v82-lime); }
.v82-editor-dock { position:absolute; z-index:100; right:8px; bottom:max(6px,env(safe-area-inset-bottom)); left:8px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); min-height:61px; padding:5px; border:1px solid rgba(255,255,255,.11); border-radius:20px; background:rgba(24,24,30,.93); box-shadow:0 14px 42px rgba(0,0,0,.45); backdrop-filter:blur(24px) saturate(145%); }
.v82-editor-dock button { display:flex; min-width:0; align-items:center; justify-content:center; flex-direction:column; gap:3px; border:0; border-radius:14px; color:#72727d; background:transparent; }
.v82-editor-dock button .material-icons-round { font-size:19px; }
.v82-editor-dock button small { font-size:6px; font-weight:800; }
.v82-editor-dock button.active { color:white; background:rgba(159,108,255,.16); }
.v82-editor-dock button.active .material-icons-round { color:#bd91ff; }

/* bottom navigation */
body.v82-ui .v82-bottom-nav-wrapper { height:var(--v82-nav-height); bottom:0; padding:0 8px max(7px,env(safe-area-inset-bottom)); }
body.v82-ui .v82-bottom-nav { display:grid; grid-template-columns:1fr 1fr 62px 1fr 1fr; align-items:center; height:69px; margin:0; padding:5px; border:1px solid rgba(255,255,255,.10); border-radius:24px; background:rgba(19,19,24,.94); box-shadow:0 18px 50px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter:blur(24px) saturate(150%); }
body.v82-ui .v82-bottom-nav .nav-item { display:flex; height:57px; align-items:center; justify-content:center; flex-direction:column; gap:3px; border:0; border-radius:17px; color:#666671; background:transparent; }
body.v82-ui .v82-bottom-nav .nav-item.active { color:white; background:rgba(255,255,255,.045); }
body.v82-ui .v82-bottom-nav .nav-icon { font-size:20px; }
body.v82-ui .v82-bottom-nav .nav-text { font-size:6.5px; font-weight:800; }
body.v82-ui .v82-center-cta { width:57px; height:57px; border:5px solid #08080b; border-radius:19px; color:#16170e; background:var(--v82-lime); box-shadow:0 13px 31px rgba(166,221,60,.27),inset 0 1px 0 rgba(255,255,255,.4); }
body.v82-ui .center-cta-wrapper { bottom:calc(max(7px,env(safe-area-inset-bottom)) + 19px); }
body.v82-ui .v82-center-cta .material-icons-round { font-size:28px; font-weight:500; }

/* profile consistency */
#page-profile.v82-profile-page { min-height:100dvh; padding-bottom:calc(var(--v82-nav-height) + env(safe-area-inset-bottom)); color:white; background:radial-gradient(circle at 50% 0,rgba(124,67,221,.19),transparent 34%),var(--v82-bg); }
#page-profile.v82-profile-page .profile-card,#page-profile.v82-profile-page .profile-menu-list { border-color:var(--v82-line); background:#121217; box-shadow:none; }
#page-profile.v82-profile-page .profile-info h2,#page-profile.v82-profile-page .pm-left { color:white; }
#page-profile.v82-profile-page .pm-item { border-color:var(--v82-line); }

@media (min-width:700px) {
    .v82-root-header,.v82-home-main,.v82-templates-main,.v82-projects-main { max-width:720px; margin-left:auto; margin-right:auto; }
    .v82-editor-dock { max-width:620px; margin:auto; }
    .v82-tool-sheet { padding-left:max(12px,calc((100vw - 700px)/2)); padding-right:max(12px,calc((100vw - 700px)/2)); }
}
@media (max-width:370px) {
    .v82-create-hero { grid-template-columns:42% minmax(0,1fr); min-height:224px; }
    .v82-create-copy { padding-right:12px; }
    .v82-create-copy h2 { font-size:21px; }
    .v82-editor-shell { grid-template-rows:minmax(0,40dvh) 118px minmax(0,1fr); }
    .v82-preview-meta>div>span:nth-child(3) { display:none; }
    .v82-editor-dock button small { font-size:5.5px; }
}
@media (prefers-reduced-motion:reduce) {
    .v82-ui * { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}

/* ============================================================
   V-FORGE v8.2.1 — SCROLL + NAVIGATION RELIABILITY HOTFIX
   ============================================================ */
html {
    width: 100%;
    min-height: 100%;
    background: var(--v82-bg);
}

body.v82-ui {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.v82-ui:not(.auth-mode):not(.v82-modal-open):not(.project-sheet-open):not(.studio-onboarding-open) {
    overflow-y: auto !important;
}

body.v82-ui .page.active:not(#page-video-workspace):not(#page-login):not(#page-register):not(#page-forgot-password) {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible;
    touch-action: pan-y pinch-zoom;
}

#page-home.v82-home-page,
#page-enhancer.v82-templates-page,
#page-search.v82-projects-page,
#page-profile.v82-profile-page {
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
}

.v82-home-main,
.v82-templates-main,
.v82-projects-main,
#page-profile .profile-content {
    width: 100%;
    min-width: 0;
}

/* Native horizontal rails: cards remain swipeable on Android/iOS. */
.v82-home-projects,
.v82-category-row,
.v82-project-filters,
#page-video-workspace .studio-control-scroll {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
}

.v82-home-projects::-webkit-scrollbar,
.v82-category-row::-webkit-scrollbar,
.v82-project-filters::-webkit-scrollbar,
#page-video-workspace .studio-control-scroll::-webkit-scrollbar {
    display: none;
}

.v82-category-row,
.v82-project-filters {
    flex-wrap: nowrap;
}

.v82-category-row > *,
.v82-project-filters > *,
#page-video-workspace .studio-control-scroll > * {
    flex: 0 0 auto;
}

/* Critical fix: v8.2 inherited grid-auto-flow:column from the old carousel.
   It placed most template cards outside the screen while body overflow hid them. */
#page-enhancer .v82-template-grid {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 11px;
    width: 100%;
    margin: 0;
    padding: 0 0 4px;
    overflow: visible !important;
    scroll-snap-type: none;
}

#page-enhancer .v82-template-grid .studio-template-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 224px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 9px;
    scroll-snap-align: none;
}

#page-enhancer .v82-template-grid .studio-template-art {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    flex: 0 0 auto;
}

#page-enhancer .v82-template-grid .studio-template-copy {
    width: 100%;
    min-width: 0;
    padding: 0 2px 2px;
}

#page-enhancer .v82-template-grid .studio-template-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#page-enhancer .v82-template-grid .studio-template-copy small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#page-enhancer .v82-template-grid .studio-template-check {
    position: absolute;
    right: 16px;
    bottom: 14px;
}

/* Sheets must scroll on short phones, landscape, and when the keyboard is open. */
.v82-create-sheet-card,
.permission-sheet {
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.v82-create-sheet-card {
    scroll-padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

/* Editor owns the viewport; only its tool sheet scrolls. */
#page-video-workspace.v82-editor-page {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overscroll-behavior: none;
}

.v82-editor-shell {
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.v82-tool-sheet {
    max-width: 100%;
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.v82-timeline {
    touch-action: pan-x;
}

/* Keep sticky controls from covering the final template row. */
.v82-templates-main {
    padding-bottom: calc(36px + var(--v82-nav-height) + env(safe-area-inset-bottom));
}

.v82-projects-main,
#page-profile .profile-content {
    padding-bottom: calc(28px + var(--v82-nav-height) + env(safe-area-inset-bottom));
}

@media (max-width: 339px) {
    #page-enhancer .v82-template-grid {
        grid-template-columns: 1fr !important;
    }

    #page-enhancer .v82-template-grid .studio-template-card {
        min-height: 210px;
    }
}

@media (max-height: 680px) {
    .v82-editor-shell {
        grid-template-rows: minmax(0, 38dvh) 112px minmax(0, 1fr);
    }

    .v82-editor-dock {
        min-height: 56px;
    }

    .v82-create-sheet-card {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* ============================================================
   V-FORGE v8.3 — MISSION, THEME & EDITOR ATTRACTION REBUILD
   ============================================================ */
html[data-theme="dark"] {
    color-scheme: dark;
    --app-bg: #07070a;
    --app-bg-soft: #0d0d12;
    --app-surface: #141419;
    --app-surface-2: #1b1b22;
    --app-surface-3: #22222b;
    --app-text: #f7f7fb;
    --app-muted: #92929e;
    --app-faint: #686874;
    --app-line: rgba(255,255,255,.095);
    --app-line-strong: rgba(255,255,255,.16);
    --app-shadow: 0 22px 60px rgba(0,0,0,.36);
    --app-glass: rgba(20,20,27,.88);
    --app-input: #191920;
    --v82-bg: #07070a;
    --v82-surface: #141419;
    --v82-surface-2: #1b1b22;
    --v82-line: rgba(255,255,255,.095);
    --v82-text: #f7f7fb;
    --v82-muted: #92929e;
}
html[data-theme="light"] {
    color-scheme: light;
    --app-bg: #f3f3f7;
    --app-bg-soft: #ebebf1;
    --app-surface: rgba(255,255,255,.92);
    --app-surface-2: #ffffff;
    --app-surface-3: #e9e9ef;
    --app-text: #15151a;
    --app-muted: #6f6f7a;
    --app-faint: #92929b;
    --app-line: rgba(20,20,30,.09);
    --app-line-strong: rgba(20,20,30,.15);
    --app-shadow: 0 20px 55px rgba(54,43,80,.12);
    --app-glass: rgba(250,250,253,.88);
    --app-input: #ffffff;
    --v82-bg: #f3f3f7;
    --v82-surface: #ffffff;
    --v82-surface-2: #ececf2;
    --v82-line: rgba(20,20,30,.09);
    --v82-text: #15151a;
    --v82-muted: #70707a;
}

html, body.v83-ui { background: var(--app-bg); }
body.v83-ui {
    color: var(--app-text);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.v83-ui .page { color: var(--app-text); }
body.v83-ui .page.active:not(#page-video-workspace):not(.auth-page) {
    height: auto !important;
    min-height: 100dvh;
    overflow-x: clip !important;
    overflow-y: visible !important;
    touch-action: pan-y pinch-zoom;
}
body.v83-ui .v82-root-header {
    color: var(--app-text);
    background: linear-gradient(180deg, color-mix(in srgb, var(--app-bg) 96%, transparent) 74%, transparent);
}
body.v83-ui .v82-brand-lockup strong,
body.v83-ui .v82-home-intro h1,
body.v83-ui .v82-section-title h2,
body.v83-ui .v82-page-header h1 { color: var(--app-text); }
body.v83-ui .v82-round-button,
body.v83-ui .v82-avatar-button { border-color: var(--app-line); }

/* Home can always scroll vertically, including when gesture starts on a card. */
#page-home.v82-home-page {
    overflow-x: clip !important;
    overflow-y: visible !important;
    background:
        radial-gradient(circle at 110% 8%, rgba(132,73,255,.17), transparent 31%),
        radial-gradient(circle at -15% 38%, rgba(201,255,98,.07), transparent 28%),
        var(--app-bg) !important;
}
.v82-home-main { touch-action: pan-y; }
.v82-category-row,
.v82-project-filters,
#page-video-workspace .studio-control-scroll {
    touch-action: pan-x pan-y !important;
}

/* Daily missions replace duplicate recent projects on Home. */
.v83-mission-section { margin-top: 24px; touch-action: pan-y; }
.v83-mission-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:0 2px 13px; }
.v83-mission-heading > div { min-width:0; }
.v83-mission-heading > div > span { display:block; color:#9d73d7; font-size:7px; font-weight:900; letter-spacing:.17em; }
.v83-mission-heading h2 { margin:4px 0 0; color:var(--app-text); font-size:21px; line-height:1; letter-spacing:-.045em; }
.v83-mission-heading p { margin:6px 0 0; color:var(--app-muted); font-size:8px; line-height:1.45; }
.v83-points-pill { flex:0 0 auto; display:grid; grid-template-columns:auto auto auto; align-items:center; gap:4px; min-height:39px; padding:0 10px; border:1px solid rgba(201,255,98,.2); border-radius:13px; color:#c9ff62; background:rgba(201,255,98,.075); }
.v83-points-pill .material-icons-round { font-size:16px; }
.v83-points-pill strong { font-size:12px; }
.v83-points-pill small { font-size:5.5px; font-weight:900; letter-spacing:.08em; }

.v83-premium-progress { position:relative; overflow:hidden; margin-bottom:11px; padding:14px; border:1px solid rgba(172,112,255,.22); border-radius:22px; background:linear-gradient(135deg,rgba(139,77,238,.16),rgba(255,255,255,.025)); box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.v83-premium-progress::after { content:""; position:absolute; width:130px; height:130px; right:-65px; top:-75px; border-radius:50%; background:#8d4dff; filter:blur(45px); opacity:.22; pointer-events:none; }
.v83-premium-progress-top { position:relative; z-index:1; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; }
.v83-premium-orb { display:grid; place-items:center; width:43px; height:43px; border-radius:14px; color:#d9baff; background:linear-gradient(145deg,rgba(175,111,255,.26),rgba(92,47,178,.15)); }
.v83-premium-orb .material-icons-round { font-size:21px; }
.v83-premium-copy { display:flex; min-width:0; flex-direction:column; }
.v83-premium-copy small { color:#aa7ee6; font-size:5.5px; font-weight:900; letter-spacing:.15em; }
.v83-premium-copy strong { margin-top:3px; color:var(--app-text); font-size:11px; }
.v83-premium-copy em { margin-top:2px; color:var(--app-muted); font-size:7px; font-style:normal; }
#v83-redeem-premium { min-height:34px; padding:0 11px; border:0; border-radius:11px; color:#17150e; background:#c9ff62; font-size:7px; font-weight:900; }
#v83-redeem-premium:disabled { color:var(--app-muted); background:var(--app-surface-3); opacity:.72; }
.v83-progress-track { position:relative; z-index:1; height:5px; margin-top:12px; overflow:hidden; border-radius:999px; background:rgba(127,127,140,.18); }
.v83-progress-track span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#9b65ff,#c9ff62); transition:width .45s cubic-bezier(.2,.8,.2,1); }
.v83-premium-progress p { position:relative; z-index:1; margin:7px 0 0; color:var(--app-muted); font-size:6.5px; line-height:1.45; }

.v83-mission-list { display:grid; gap:9px; touch-action:pan-y; }
.v83-mission-loading { display:flex; min-height:86px; align-items:center; justify-content:center; flex-direction:column; gap:8px; border:1px dashed var(--app-line-strong); border-radius:19px; color:var(--app-muted); background:color-mix(in srgb,var(--app-surface) 72%,transparent); }
.v83-mission-loading p { font-size:8px; }
.v83-mission-card { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; min-height:88px; padding:12px; overflow:hidden; border:1px solid var(--app-line); border-radius:20px; color:var(--app-text); background:var(--app-surface); box-shadow:0 8px 24px rgba(0,0,0,.08); touch-action:pan-y; }
.v83-mission-card::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(115deg,rgba(255,255,255,.045),transparent 34%); }
.v83-mission-card.is-complete { border-color:rgba(201,255,98,.28); background:linear-gradient(135deg,rgba(201,255,98,.08),var(--app-surface)); }
.v83-mission-card.is-claimed { opacity:.76; }
.v83-mission-icon { position:relative; z-index:1; display:grid; place-items:center; width:45px; height:45px; border-radius:15px; color:#c9ff62; background:rgba(201,255,98,.09); }
.v83-mission-card:nth-child(2) .v83-mission-icon { color:#c8a2ff; background:rgba(161,102,255,.11); }
.v83-mission-card:nth-child(3) .v83-mission-icon { color:#7dcfff; background:rgba(64,161,255,.11); }
.v83-mission-card:nth-child(4) .v83-mission-icon { color:#ffab68; background:rgba(255,136,54,.11); }
.v83-mission-icon .material-icons-round { font-size:22px; }
.v83-mission-copy { position:relative; z-index:1; display:flex; min-width:0; flex-direction:column; }
.v83-mission-copy strong { overflow:hidden; color:var(--app-text); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.v83-mission-copy small { margin-top:4px; color:var(--app-muted); font-size:7px; line-height:1.4; }
.v83-mission-mini-track { height:4px; margin-top:8px; overflow:hidden; border-radius:999px; background:color-mix(in srgb,var(--app-muted) 18%,transparent); }
.v83-mission-mini-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#9e6bff,#c9ff62); }
.v83-mission-reward { position:relative; z-index:1; display:flex; align-items:flex-end; flex-direction:column; gap:4px; }
.v83-mission-reward b { color:#c9ff62; font-size:9px; }
.v83-mission-reward span { padding:4px 6px; border-radius:7px; color:var(--app-muted); background:var(--app-surface-3); font-size:5.5px; font-weight:850; }
.v83-mission-card.is-complete .v83-mission-reward span { color:#15160f; background:#c9ff62; }

/* Unified themed pages: Profile, Settings, Subscription, Notifications, Rewards, Cloud. */
#page-profile.v82-profile-page,
#page-settings,
#page-subscription,
#page-notifications,
#page-achievements,
#page-cloud,
#page-edit-profile {
    color:var(--app-text) !important;
    background:
        radial-gradient(circle at 92% -5%,rgba(139,78,240,.14),transparent 31%),
        var(--app-bg) !important;
}
#page-profile .profile-bg-wrapper { opacity:.72; }
#page-profile .profile-card,
#page-profile .profile-menu-list,
#page-settings .settings-card,
#page-subscription .sub-hero-card,
#page-subscription .benefit-item,
#page-cloud .storage-main-card,
#page-cloud .recent-files-card,
#page-achievements .reward-card {
    color:var(--app-text) !important;
    border-color:var(--app-line) !important;
    background:var(--app-surface) !important;
    box-shadow:var(--app-shadow) !important;
}
#page-profile .profile-content { padding-bottom:calc(28px + var(--v82-nav-height) + env(safe-area-inset-bottom)); }
#page-profile .profile-info h2,
#page-profile .profile-info p,
#page-profile .pm-left,
#page-profile .pm-copy strong,
#page-settings h2,
#page-settings .si-text,
#page-subscription h2,
#page-subscription h3,
#page-subscription .bi-text h4,
#page-notifications h2,
#page-notifications .notif-title,
#page-cloud h2,
#page-cloud h3,
#page-cloud h4 { color:var(--app-text) !important; }
#page-profile .profile-info p,
#page-profile .pm-copy small,
#page-settings .sti-left p,
#page-subscription p,
#page-subscription .bi-text p,
#page-notifications .notif-desc,
#page-notifications .notif-time,
#page-cloud p { color:var(--app-muted) !important; }
#page-profile .profile-menu-list { display:grid; gap:9px; margin:18px 0 0; padding:0; background:transparent !important; box-shadow:none !important; }
#page-profile .pm-item { min-height:72px; padding:11px 13px; border:1px solid var(--app-line) !important; border-radius:19px; background:var(--app-surface) !important; box-shadow:0 9px 24px rgba(0,0,0,.08) !important; }
#page-profile .pm-left { display:flex; min-width:0; align-items:center; gap:11px; }
#page-profile .pm-icon { flex:0 0 auto; width:43px; height:43px; border-radius:14px; }
#page-profile .pm-copy { display:flex; min-width:0; flex-direction:column; }
#page-profile .pm-copy strong { font-size:10px; }
#page-profile .pm-copy small { margin-top:3px; font-size:7px; }
#page-profile .pm-item.logout .pm-copy strong { color:#ff6d75 !important; }

body.v83-ui .univ-header { color:var(--app-text); background:linear-gradient(180deg,color-mix(in srgb,var(--app-bg) 96%,transparent),transparent); }
body.v83-ui .univ-btn { color:var(--app-text); border-color:var(--app-line); background:var(--app-surface); box-shadow:0 8px 22px rgba(0,0,0,.10); }
#page-settings .search-input-box,
#page-settings .ep-input-row,
#page-edit-profile .ep-input-row { border-color:var(--app-line) !important; background:var(--app-input) !important; }
#page-settings input,
#page-edit-profile input { color:var(--app-text) !important; }
#page-settings .settings-section-title,
#page-subscription .benefits-title,
#page-notifications .notif-section-header { color:var(--app-muted) !important; }
#page-settings .settings-item { border-color:var(--app-line) !important; }
#page-settings .si-icon { color:var(--app-text) !important; }
#page-settings .toggle-switch { background:var(--app-surface-3); }
#page-settings .toggle-switch.active { background:#8c57ff; }

#page-subscription .sub-bg-glow { opacity:.9; }
#page-subscription .sub-hero-card { overflow:hidden; backdrop-filter:blur(24px); }
#page-subscription .sub-main-btn { color:#15130f !important; background:linear-gradient(135deg,#d5ff7c,#adE745) !important; }
#page-subscription .benefit-item { min-height:90px; }
#page-subscription .bi-icon { background:rgba(154,99,255,.12) !important; color:#b889ff !important; }

#page-notifications .notif-section-header { border-color:var(--app-line); background:var(--app-bg) !important; }
#page-notifications .notif-wrapper { border-color:var(--app-line) !important; background:var(--app-bg) !important; }
#page-notifications .notif-item { color:var(--app-text); border-bottom:1px solid var(--app-line); background:var(--app-surface) !important; }
#page-notifications #notif-section-today { background:var(--app-bg); }

#page-cloud .rf-item { border-color:var(--app-line); background:var(--app-surface-2); }
#page-cloud .storage-title,
#page-cloud .storage-amount,
#page-cloud .legend-item { color:var(--app-muted); }

/* Bottom navigation follows theme without losing premium feel. */
body.v83-ui .v82-bottom-nav {
    border-color:var(--app-line);
    background:color-mix(in srgb,var(--app-glass) 94%,transparent);
    box-shadow:0 18px 50px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06);
}
body.v83-ui .v82-bottom-nav .nav-item { color:var(--app-faint); }
body.v83-ui .v82-bottom-nav .nav-item.active { color:var(--app-text); background:color-mix(in srgb,var(--app-text) 6%,transparent); }
body.v83-ui .v82-center-cta { border-color:var(--app-bg); }

/* Empty editor attraction: animated, polished, and still local-first. */
#page-video-workspace .workspace-video-frame { position:relative; overflow:hidden; }
.v83-editor-attract { position:absolute; z-index:4; inset:0; display:flex; align-items:flex-end; justify-content:flex-end; flex-direction:column; overflow:hidden; color:white; background:#060608; transition:opacity .35s ease,visibility .35s ease; }
#workspace-video-frame.has-video .v83-editor-attract { opacity:0; visibility:hidden; pointer-events:none; }
.v83-attract-scene { position:absolute; inset:0; overflow:hidden; }
.v83-attract-scene::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(3,3,5,.05),rgba(3,3,5,.18) 45%,rgba(3,3,5,.94) 87%),linear-gradient(90deg,rgba(128,63,255,.16),transparent 50%); }
.v83-attract-grid { position:absolute; inset:45% -10% -35%; transform:perspective(360px) rotateX(64deg); transform-origin:center top; background-image:linear-gradient(rgba(180,134,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(180,134,255,.18) 1px,transparent 1px); background-size:25px 25px; animation:v83GridDrive 5s linear infinite; }
.v83-attract-car { position:absolute; inset:8% -4% 18%; background:url('../assets/images/vf-car-02.jpg') center/cover no-repeat; filter:saturate(1.18) contrast(1.08); transform:scale(1.03); animation:v83CarFloat 6s ease-in-out infinite alternate; }
.v83-attract-light { position:absolute; z-index:2; width:55%; height:16px; border-radius:50%; filter:blur(12px); opacity:.7; transform:rotate(-9deg); }
.v83-attract-light.one { top:26%; left:-20%; background:#b55dff; animation:v83LightSweep 3.8s ease-in-out infinite; }
.v83-attract-light.two { top:42%; right:-24%; background:#c9ff62; animation:v83LightSweep 4.6s ease-in-out -1.2s infinite reverse; }
.v83-attract-smoke { position:absolute; z-index:3; width:120px; height:70px; bottom:21%; border-radius:50%; background:rgba(223,218,242,.25); filter:blur(22px); opacity:0; }
.v83-attract-smoke.s1 { left:9%; animation:v83Smoke 4s ease-out infinite; }
.v83-attract-smoke.s2 { left:24%; animation:v83Smoke 4s ease-out 1.7s infinite; }
.v83-attract-logo { position:absolute; z-index:5; top:13%; left:50%; display:grid; place-items:center; width:62px; height:62px; transform:translateX(-50%); border:1px solid rgba(255,255,255,.18); border-radius:21px; background:rgba(10,10,15,.52); box-shadow:0 18px 50px rgba(91,43,176,.4),inset 0 1px 0 rgba(255,255,255,.16); backdrop-filter:blur(18px); animation:v83LogoPulse 3.2s ease-in-out infinite; }
.v83-attract-logo svg { width:32px; height:32px; stroke:#c9ff62; }
.v83-attract-copy { position:relative; z-index:7; width:100%; padding:0 18px 24px; text-align:center; }
.v83-attract-copy>span { color:#c7a4ff; font-size:6px; font-weight:900; letter-spacing:.18em; }
.v83-attract-copy h2 { margin:7px 0 6px; color:white; font-size:23px; line-height:1; letter-spacing:-.05em; }
.v83-attract-copy p { max-width:310px; margin:0 auto; color:rgba(255,255,255,.63); font-size:8px; line-height:1.5; }
.v83-attract-chips { display:flex; justify-content:center; gap:5px; margin-top:10px; }
.v83-attract-chips i { padding:5px 7px; border:1px solid rgba(255,255,255,.11); border-radius:999px; color:rgba(255,255,255,.7); background:rgba(8,8,12,.46); font-size:5.5px; font-style:normal; backdrop-filter:blur(10px); }
.v83-attract-copy button { display:inline-flex; min-height:37px; align-items:center; justify-content:center; gap:6px; margin-top:12px; padding:0 15px; border:0; border-radius:12px; color:#14160d; background:#c9ff62; box-shadow:0 10px 26px rgba(174,230,69,.22); font-size:8px; font-weight:900; }
.v83-attract-copy button .material-icons-round { font-size:15px; }
@keyframes v83GridDrive { to { background-position:0 50px,50px 0; } }
@keyframes v83CarFloat { from { transform:scale(1.03) translate3d(-1%,0,0); } to { transform:scale(1.09) translate3d(1%,-1%,0); } }
@keyframes v83LightSweep { 0%,100% { transform:translateX(-30%) rotate(-9deg); opacity:.15; } 50% { transform:translateX(180%) rotate(-9deg); opacity:.8; } }
@keyframes v83Smoke { 0% { transform:translate3d(0,20px,0) scale(.45); opacity:0; } 25% { opacity:.35; } 100% { transform:translate3d(-55px,-35px,0) scale(1.5); opacity:0; } }
@keyframes v83LogoPulse { 50% { transform:translateX(-50%) translateY(-4px); box-shadow:0 24px 60px rgba(91,43,176,.58),inset 0 1px 0 rgba(255,255,255,.2); } }

/* Editor theme: preview remains black, controls follow selected theme. */
#page-video-workspace.v82-editor-page { background:var(--app-bg-soft); }
#page-video-workspace .v82-tool-sheet { color:var(--app-text); background:var(--app-surface) !important; }
#page-video-workspace .v82-setting-card,
#page-video-workspace .workspace-audio-toggle,
#page-video-workspace .workspace-audio-quality,
#page-video-workspace .workspace-premium-access,
#page-video-workspace .v82-coming-card,
#page-video-workspace .v82-placeholder-grid button { color:var(--app-text); border-color:var(--app-line) !important; background:var(--app-surface-2) !important; }
#page-video-workspace .v82-editor-dock { border-color:var(--app-line); background:color-mix(in srgb,var(--app-glass) 94%,transparent); }
#page-video-workspace .v82-editor-dock button.active { color:var(--app-text); }

@media (max-height: 640px) {
    .v83-attract-logo { top:10%; width:51px; height:51px; }
    .v83-attract-logo svg { width:27px; height:27px; }
    .v83-attract-copy { padding-bottom:16px; }
    .v83-attract-copy h2 { font-size:19px; }
    .v83-attract-chips { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    .v83-attract-grid,.v83-attract-car,.v83-attract-light,.v83-attract-smoke,.v83-attract-logo { animation:none !important; }
}

/* v8.3 theme completion for every main route. */
#page-activity,
#page-search.v82-projects-page,
#page-enhancer.v82-templates-page {
    color: var(--app-text) !important;
    background: var(--app-bg) !important;
}
#page-activity .stat-card,
#page-search .v82-library-summary,
#page-search .project-item,
#page-search .project-list-state,
#page-enhancer .studio-template-card,
#page-enhancer .v82-template-action,
#page-enhancer .v82-search-field,
#page-enhancer .v82-category-row button {
    color: var(--app-text) !important;
    border-color: var(--app-line) !important;
    background: var(--app-surface) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
}
#page-search .project-title,
#page-search .recent-header h3,
#page-enhancer .studio-template-copy strong,
#page-enhancer .v82-section-title h2 { color: var(--app-text) !important; }
#page-search .project-meta,
#page-search .project-source-name,
#page-search .recent-header span,
#page-enhancer .studio-template-copy small,
#page-enhancer .v82-search-field input { color: var(--app-muted) !important; }
#page-search .search-input-box,
#page-search .v82-project-filters .project-filter { border-color:var(--app-line) !important; background:var(--app-surface) !important; color:var(--app-muted) !important; }
#page-search .v82-project-filters .project-filter.active,
#page-enhancer .v82-category-row button.active { color:#15160e !important; border-color:#c9ff62 !important; background:#c9ff62 !important; }

html[data-theme="light"] #page-home .v82-create-hero {
    border-color: rgba(31,24,45,.10);
    background: linear-gradient(145deg,#ffffff,#eeeef4);
    box-shadow: 0 24px 54px rgba(65,48,100,.14), inset 0 1px 0 #fff;
}
html[data-theme="light"] #page-home .v82-create-copy h2 { color:#17151c; }
html[data-theme="light"] #page-home .v82-create-copy p { color:#696572; }
html[data-theme="light"] #page-home .v82-create-copy>span { color:#8152ba; }
html[data-theme="light"] .v83-premium-progress {
    background: linear-gradient(135deg,rgba(139,77,238,.12),rgba(255,255,255,.82));
    box-shadow: 0 16px 38px rgba(80,52,125,.10), inset 0 1px 0 #fff;
}
html[data-theme="light"] .v83-mission-card { box-shadow:0 12px 30px rgba(55,44,82,.09); }
html[data-theme="light"] #page-enhancer .v82-template-featured { box-shadow:0 20px 45px rgba(48,35,70,.16); }
html[data-theme="light"] #page-enhancer .studio-template-card.selected { border-color:rgba(139,83,224,.48) !important; background:linear-gradient(145deg,#fff,rgba(148,92,238,.08)) !important; }
html[data-theme="light"] #page-profile .profile-bg { opacity:.62; }
html[data-theme="light"] #page-subscription .sub-bg-glow { opacity:.46; }
html[data-theme="light"] #page-notifications .notif-icon { box-shadow:none; }
html[data-theme="light"] body.v83-ui .v82-bottom-nav { box-shadow:0 18px 46px rgba(45,35,66,.16),inset 0 1px 0 #fff; }

body.v83-ui,
body.v83-ui .page,
body.v83-ui .v82-bottom-nav,
body.v83-ui .v82-root-header,
body.v83-ui .profile-card,
body.v83-ui .pm-item,
body.v83-ui .settings-card,
body.v83-ui .benefit-item,
body.v83-ui .notif-item {
    transition: background-color .28s ease, background .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

/* Readability pass for real mobile density. */
.v82-create-copy h2 { font-size:clamp(24px,7vw,29px); }
.v82-create-copy p { font-size:10px; line-height:1.5; }
.v82-create-button strong { font-size:11px; }
.v83-mission-heading p { font-size:9px; }
.v83-premium-copy strong { font-size:12px; }
.v83-premium-copy em { font-size:8px; }
.v83-premium-progress p { font-size:7.5px; }
.v83-mission-copy strong { font-size:12px; }
.v83-mission-copy small { font-size:8.5px; }
.v83-mission-reward b { font-size:10px; }
.v83-mission-reward span { font-size:6.5px; }
body.v83-ui .v82-bottom-nav .nav-text { font-size:7.5px; }
#page-profile .pm-copy strong { font-size:12px; }
#page-profile .pm-copy small { font-size:8.5px; }


/* ============================================================
   V-FORGE SPRINT V9 — APP SHELL / SPARK BETA / EDITOR MOTION
   ============================================================ */
:root {
  --v9-bg:#08080b;
  --v9-surface:#121218;
  --v9-surface-2:#1a1a22;
  --v9-surface-3:#252530;
  --v9-line:rgba(255,255,255,.10);
  --v9-text:#f8f7fb;
  --v9-muted:#a09da9;
  --v9-faint:#6e6a77;
  --v9-purple:#a974ff;
  --v9-purple-2:#7144ff;
  --v9-lime:#c9ff62;
  --v9-cyan:#6bd8ff;
  --v9-danger:#ff6b7a;
  --v9-nav:92px;
}
html[data-theme="light"] {
  --v9-bg:#f4f2f8;
  --v9-surface:#ffffff;
  --v9-surface-2:#f0edf5;
  --v9-surface-3:#e6e1ec;
  --v9-line:rgba(43,29,61,.10);
  --v9-text:#1c1722;
  --v9-muted:#716a79;
  --v9-faint:#9b94a2;
}
html,body { min-height:100%; }
body.v9-ui {
  color:var(--v9-text);
  background:var(--v9-bg);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:auto;
  touch-action:pan-y pinch-zoom;
  -webkit-text-size-adjust:100%;
}
body.v9-ui .page { min-height:100dvh; color:var(--v9-text); background:var(--v9-bg); }
body.v9-ui .page.active:not(#page-video-workspace) { display:block; overflow:visible; touch-action:pan-y; }
body.v9-ui button, body.v9-ui input, body.v9-ui select { font:inherit; }
body.v9-ui button { -webkit-user-select:none; user-select:none; }

/* Header & readable typography */
body.v9-ui .v82-root-header { background:linear-gradient(180deg,color-mix(in srgb,var(--v9-bg) 97%,transparent) 72%,transparent); }
body.v9-ui .v82-brand-lockup strong { font-size:18px; color:var(--v9-text); }
body.v9-ui .v82-brand-lockup span { font-size:9px; color:var(--v9-muted); }
body.v9-ui .v82-round-button,body.v9-ui .v82-avatar-button { color:var(--v9-text); border-color:var(--v9-line); background:color-mix(in srgb,var(--v9-surface) 88%,transparent); }
body.v9-ui .v82-page-header h1 { font-size:32px; color:var(--v9-text); }
body.v9-ui .v82-page-kicker { font-size:9px; color:var(--v9-purple); }

/* Home: one vertical flow, no trapped scroll */
#page-home.v82-home-page { min-height:100dvh; padding-bottom:calc(var(--v9-nav) + 34px + env(safe-area-inset-bottom)); overflow:visible!important; background:radial-gradient(circle at 105% 4%,rgba(139,79,255,.17),transparent 32%),radial-gradient(circle at -10% 40%,rgba(95,216,255,.06),transparent 28%),var(--v9-bg); }
body.v9-ui .v82-home-main { padding:8px 16px 30px; }
body.v9-ui .v82-home-intro { padding:8px 2px 20px; }
body.v9-ui .v82-day-chip { min-height:26px; align-items:center; padding:0 10px; font-size:9px; color:#bce95a; border-color:rgba(201,255,98,.22); }
body.v9-ui .v82-home-intro h1 { margin:13px 0 8px; font-size:clamp(34px,10vw,45px); color:var(--v9-text); }
body.v9-ui .v82-home-intro p { max-width:340px; font-size:13px; line-height:1.55; color:var(--v9-muted); }
body.v9-ui .v82-create-hero { grid-template-columns:42% minmax(0,1fr); min-height:242px; border-color:var(--v9-line); background:linear-gradient(145deg,var(--v9-surface-2),var(--v9-surface)); box-shadow:0 25px 65px rgba(0,0,0,.27),inset 0 1px 0 rgba(255,255,255,.08); }
body.v9-ui .v82-create-copy { padding:22px 18px 22px 8px; }
body.v9-ui .v82-create-copy>span { font-size:8px; color:var(--v9-purple); }
body.v9-ui .v82-create-copy h2 { font-size:clamp(25px,7vw,32px); color:var(--v9-text); }
body.v9-ui .v82-create-copy p { font-size:11px; line-height:1.55; color:var(--v9-muted); }
body.v9-ui .v82-create-button { min-height:52px; border-radius:16px; font-size:12px; }
body.v9-ui .v82-create-button strong { font-size:11px; }
body.v9-ui .v82-create-tag,body.v9-ui .v82-create-ratio { font-size:8px; }

/* Mission system */
body.v9-ui .v83-mission-section { margin:28px 0 0; touch-action:pan-y; }
body.v9-ui .v83-mission-heading { align-items:center; }
body.v9-ui .v83-mission-heading>div>span { font-size:8px; color:var(--v9-purple); }
body.v9-ui .v83-mission-heading h2 { font-size:25px; color:var(--v9-text); }
body.v9-ui .v83-mission-heading p { max-width:290px; font-size:11px; line-height:1.5; color:var(--v9-muted); }
body.v9-ui .v83-points-pill { min-width:78px; min-height:47px; border-color:var(--v9-line); background:var(--v9-surface); }
body.v9-ui .v83-points-pill strong { font-size:15px; color:var(--v9-text); }
body.v9-ui .v83-premium-progress { padding:16px; border-color:rgba(169,116,255,.23); border-radius:23px; background:linear-gradient(135deg,rgba(132,73,225,.17),var(--v9-surface)); }
body.v9-ui .v83-premium-orb { width:46px; height:46px; }
body.v9-ui .v83-premium-copy small { font-size:7px; }
body.v9-ui .v83-premium-copy strong { font-size:14px; color:var(--v9-text); }
body.v9-ui .v83-premium-copy em { font-size:10px; color:var(--v9-muted); }
body.v9-ui #v83-redeem-premium { min-height:35px; padding:0 11px; font-size:8px; color:#d3bbf7; border:1px solid rgba(169,116,255,.2); background:rgba(169,116,255,.09); }
body.v9-ui .v83-premium-progress p { font-size:10px; line-height:1.5; color:var(--v9-muted); }
.v9-beta-status { display:grid; grid-template-columns:30px minmax(0,1fr); align-items:center; gap:9px; margin-top:12px; padding:10px; border:1px solid rgba(107,216,255,.14); border-radius:15px; background:rgba(107,216,255,.055); }
.v9-beta-status>.material-icons-round { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; color:var(--v9-cyan); background:rgba(107,216,255,.1); font-size:17px; }
.v9-beta-status>span { display:flex; min-width:0; flex-direction:column; }
.v9-beta-status strong { color:var(--v9-text); font-size:9px; }
.v9-beta-status small { margin-top:3px; color:var(--v9-muted); font-size:7px; line-height:1.4; }
body.v9-ui .v83-mission-list { display:grid; gap:11px; margin-top:13px; overflow:visible; touch-action:pan-y; }
body.v9-ui .v83-mission-card { width:100%; min-height:92px; grid-template-columns:50px minmax(0,1fr) auto; gap:11px; padding:13px; border-color:var(--v9-line); border-radius:20px; color:var(--v9-text); background:var(--v9-surface); text-align:left; touch-action:pan-y; box-shadow:0 13px 34px rgba(0,0,0,.10); }
body.v9-ui .v83-mission-card:active { transform:scale(.985); }
body.v9-ui .v83-mission-icon { width:50px; height:50px; border-radius:16px; }
body.v9-ui .v83-mission-copy strong { font-size:12px; color:var(--v9-text); }
body.v9-ui .v83-mission-copy small { font-size:9px; line-height:1.45; color:var(--v9-muted); }
body.v9-ui .v83-mission-reward b { font-size:11px; }
body.v9-ui .v83-mission-reward span { font-size:7px; }
body.v9-ui .v83-mission-card.is-complete { border-color:rgba(201,255,98,.26); background:linear-gradient(135deg,rgba(201,255,98,.07),var(--v9-surface)); }

/* Templates & Projects */
#page-enhancer.v82-templates-page,#page-search.v82-projects-page { padding-bottom:calc(var(--v9-nav) + 26px + env(safe-area-inset-bottom)); overflow:visible!important; background:var(--v9-bg); }
body.v9-ui .v82-search-field,body.v9-ui .v82-project-search .search-input-box { min-height:50px; border-color:var(--v9-line); background:var(--v9-surface); }
body.v9-ui .v82-search-field input,body.v9-ui .v82-project-search input { font-size:12px; color:var(--v9-text); }
body.v9-ui .v82-category-row,body.v9-ui .v82-project-filters { touch-action:pan-x; overscroll-behavior-inline:contain; }
body.v9-ui .v82-category-row button,body.v9-ui .project-filter { min-height:36px; font-size:10px; }
body.v9-ui #page-enhancer .v82-template-grid { grid-auto-flow:row!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; overflow:visible!important; touch-action:pan-y; }
body.v9-ui #page-enhancer .studio-template-card { min-height:210px; }
body.v9-ui .v82-template-featured p { font-size:10px; }
body.v9-ui .v82-template-featured button { min-height:42px; font-size:10px; }
body.v9-ui .v82-project-list { padding-bottom:16px; }
body.v9-ui .v82-project-list .project-item { min-height:92px; }

/* Profile / settings / premium / notifications share one theme */
#page-profile.v82-profile-page,#page-settings,#page-subscription,#page-notifications,#page-achievements,#page-cloud,#page-edit-profile { min-height:100dvh; color:var(--v9-text)!important; background:radial-gradient(circle at 50% -10%,rgba(139,75,238,.15),transparent 34%),var(--v9-bg)!important; }
body.v9-ui .profile-card,body.v9-ui .profile-menu-list,body.v9-ui .pm-item,body.v9-ui .settings-card,body.v9-ui .benefit-item,body.v9-ui .sub-hero-card,body.v9-ui .notif-item,body.v9-ui .reward-card { color:var(--v9-text)!important; border-color:var(--v9-line)!important; background:var(--v9-surface)!important; }
body.v9-ui .profile-info h2,body.v9-ui .pm-copy strong,body.v9-ui .si-text,body.v9-ui .bi-text h4,body.v9-ui .notif-title,body.v9-ui .reward-info h4 { color:var(--v9-text)!important; }
body.v9-ui .pm-copy small,body.v9-ui .profile-info p,body.v9-ui .bi-text p,body.v9-ui .notif-desc,body.v9-ui .notif-time,body.v9-ui .reward-info p { color:var(--v9-muted)!important; }
body.v9-ui .pm-copy strong { font-size:14px; }
body.v9-ui .pm-copy small { font-size:10px; }
body.v9-ui .profile-menu-list { padding-bottom:calc(var(--v9-nav) + 20px); }
.v9-page-heading { padding:0 38px 7px; }
.v9-page-heading span { color:var(--v9-purple); font-size:9px; font-weight:900; letter-spacing:.16em; }
.v9-page-heading h1 { margin:5px 0 0; color:var(--v9-text); font-size:34px; line-height:1; letter-spacing:-.055em; }
body.v9-ui #page-settings .settings-top-info { color:var(--v9-text); }
body.v9-ui #page-settings .settings-top-info h2 { font-size:25px; }
body.v9-ui #page-settings .settings-top-info p { color:var(--v9-muted); }
body.v9-ui #page-settings .search-input-box { border:1px solid var(--v9-line); background:var(--v9-surface); }
body.v9-ui #page-settings input { color:var(--v9-text); background:transparent; }
body.v9-ui #page-settings .settings-section-title { font-size:11px; color:var(--v9-muted)!important; }
body.v9-ui #page-settings .settings-item { min-height:67px; }
body.v9-ui #page-settings .si-text { font-size:14px; }
body.v9-ui #page-settings .toggle-switch { background:var(--v9-surface-3); }
body.v9-ui #page-settings .toggle-switch.active { background:linear-gradient(135deg,var(--v9-purple),var(--v9-purple-2)); }
.v9-subscription-notice { display:grid; grid-template-columns:39px minmax(0,1fr); align-items:center; gap:10px; margin:16px 0 20px; padding:13px; border:1px solid rgba(107,216,255,.15); border-radius:18px; background:rgba(107,216,255,.06); }
.v9-subscription-notice>.material-icons-round { display:grid; place-items:center; width:39px; height:39px; border-radius:13px; color:var(--v9-cyan); background:rgba(107,216,255,.1); }
.v9-subscription-notice>span { display:flex; flex-direction:column; }
.v9-subscription-notice strong { font-size:11px; color:var(--v9-text); }
.v9-subscription-notice small { margin-top:4px; font-size:8px; line-height:1.45; color:var(--v9-muted); }
.v9-sub-kicker { display:block; color:var(--v9-purple); font-size:8px; font-weight:900; letter-spacing:.17em; }
body.v9-ui #page-subscription .sub-main-btn { color:#15170d!important; background:linear-gradient(135deg,#d7ff82,#a9e441)!important; }
body.v9-ui #page-notifications .notif-section-header,body.v9-ui #page-notifications #notif-section-today,body.v9-ui #page-notifications .notif-wrapper { background:var(--v9-bg)!important; }
body.v9-ui #page-notifications .notif-item { min-height:104px; border-bottom:1px solid var(--v9-line)!important; }
body.v9-ui #page-notifications .notif-title { font-size:15px; }
body.v9-ui #page-notifications .notif-desc { font-size:12px; }

/* Editor: fixed preview/timeline, independently scrollable tools */
#page-video-workspace.v82-editor-page { height:100dvh; overflow:hidden!important; background:#050507!important; }
body.v9-ui .v82-editor-shell { grid-template-rows:minmax(0,43dvh) 126px minmax(0,1fr); height:100dvh; }
body.v9-ui .v82-tool-sheet { overflow-y:auto!important; overscroll-behavior:contain; touch-action:pan-y; scrollbar-width:none; }
body.v9-ui .v82-timeline { overflow-x:auto!important; overflow-y:hidden!important; touch-action:pan-x; overscroll-behavior-inline:contain; }
body.v9-ui .v82-editor-dock { overflow-x:auto; grid-template-columns:repeat(6,minmax(62px,1fr)); scrollbar-width:none; touch-action:pan-x; }
body.v9-ui .v82-editor-dock button small { font-size:8px; }
body.v9-ui .v82-editor-dock button .material-icons-round { font-size:21px; }
body.v9-ui .v82-tool-heading h2 { font-size:19px; }
body.v9-ui .v82-tool-heading small { font-size:8px; }
body.v9-ui .v82-setting-card { padding:14px!important; }
body.v9-ui .v82-coming-card strong { font-size:11px; }
body.v9-ui .v82-coming-card small { font-size:9px; }

/* Attraction animation: rich but lightweight */
.v9-attract-copy { transition:opacity .22s ease,transform .22s ease; }
.v9-feature-dots { display:flex; justify-content:center; gap:6px; margin-top:11px; }
.v9-feature-dots i { width:5px; height:5px; border-radius:99px; background:rgba(255,255,255,.28); transition:width .28s ease,background .28s ease; }
.v9-feature-dots i.active { width:20px; background:var(--v9-lime); }
body.v9-ui .v83-attract-copy h2 { font-size:clamp(23px,7vw,31px); }
body.v9-ui .v83-attract-copy p { font-size:10px; line-height:1.55; }
body.v9-ui .v83-attract-copy button { min-height:43px; padding:0 18px; font-size:10px; }
body.v9-ui .v83-attract-car { animation:v9CarBreath 7s ease-in-out infinite alternate; }
body.v9-ui .v83-attract-scene::before { content:""; position:absolute; z-index:4; inset:-20%; background:linear-gradient(110deg,transparent 36%,rgba(255,255,255,.13) 49%,transparent 62%); transform:translateX(-75%) rotate(-7deg); animation:v9LensSweep 5.5s ease-in-out infinite; }
@keyframes v9CarBreath { from{transform:scale(1.02) translate3d(-.8%,0,0)} to{transform:scale(1.09) translate3d(1.2%,-.8%,0)} }
@keyframes v9LensSweep { 0%,18%{transform:translateX(-80%) rotate(-7deg);opacity:0} 38%{opacity:.9} 58%,100%{transform:translateX(82%) rotate(-7deg);opacity:0} }

/* Bottom navigation */
body.v9-ui .v82-bottom-nav-wrapper { height:var(--v9-nav); }
body.v9-ui .v82-bottom-nav { height:72px; border-color:var(--v9-line); background:color-mix(in srgb,var(--v9-surface) 92%,transparent); box-shadow:0 20px 56px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.07); }
body.v9-ui .v82-bottom-nav .nav-item { color:var(--v9-faint); }
body.v9-ui .v82-bottom-nav .nav-item.active { color:var(--v9-text); background:color-mix(in srgb,var(--v9-text) 6%,transparent); }
body.v9-ui .v82-bottom-nav .nav-text { font-size:9px; }
body.v9-ui .v82-bottom-nav .nav-icon { font-size:22px; }
body.v9-ui .v82-center-cta { width:59px; height:59px; color:#16180d; border-color:var(--v9-bg); background:linear-gradient(145deg,#d8ff83,#a7e23b); box-shadow:0 15px 36px rgba(171,227,61,.30),inset 0 1px 0 rgba(255,255,255,.5); }

html[data-theme="light"] body.v9-ui .v82-create-hero,
html[data-theme="light"] body.v9-ui .v83-mission-card,
html[data-theme="light"] body.v9-ui .v83-premium-progress { box-shadow:0 18px 45px rgba(55,39,79,.10),inset 0 1px 0 #fff; }
html[data-theme="light"] body.v9-ui .profile-bg { opacity:.44; }
html[data-theme="light"] body.v9-ui .v82-bottom-nav { box-shadow:0 18px 46px rgba(45,35,66,.16),inset 0 1px 0 #fff; }

@media (max-width:370px) {
  body.v9-ui .v82-home-main { padding-left:12px; padding-right:12px; }
  body.v9-ui .v82-create-hero { min-height:230px; grid-template-columns:40% minmax(0,1fr); }
  body.v9-ui .v82-create-copy { padding-right:12px; }
  body.v9-ui .v82-create-copy p { font-size:10px; }
  body.v9-ui .v83-mission-card { grid-template-columns:44px minmax(0,1fr) auto; padding:11px; }
  body.v9-ui .v83-mission-icon { width:44px; height:44px; }
  body.v9-ui .v82-editor-shell { grid-template-rows:minmax(0,40dvh) 118px minmax(0,1fr); }
}
@media (min-width:700px) {
  body.v9-ui .v82-home-main,body.v9-ui .v82-root-header,body.v9-ui .v82-templates-main,body.v9-ui .v82-projects-main { max-width:720px; margin-left:auto; margin-right:auto; }
  body.v9-ui .v83-mission-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) {
  body.v9-ui *,body.v9-ui *::before,body.v9-ui *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}

.v9-soon-pill { margin-left:auto; padding:5px 7px; border:1px solid rgba(169,116,255,.16); border-radius:8px; color:var(--v9-purple); background:rgba(169,116,255,.07); font-size:7px; font-weight:900; letter-spacing:.08em; }

/* ============================================================
   V-FORGE v9.0.1 — MOBILE EDITOR LAYOUT RELIABILITY
   Fixes viewport overflow, desktop-only proportions, dock overlap,
   short-phone/keyboard behavior, and landscape editor composition.
   ============================================================ */
:root {
  --vf-editor-height: 100dvh;
  --vf-editor-header-min: 62px;
  --vf-editor-dock-min: 68px;
}

body.v9-ui.vf-editor-open {
  width: 100%;
  height: var(--vf-editor-height, 100dvh);
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: pan-x pan-y;
}

#page-video-workspace.v82-editor-page {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000;
  display: none;
  width: 100vw !important;
  max-width: 100vw !important;
  height: var(--vf-editor-height, 100dvh) !important;
  max-height: var(--vf-editor-height, 100dvh) !important;
  min-height: 0 !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  animation: none !important;
  isolation: isolate;
  background: #050507 !important;
}

#page-video-workspace.v82-editor-page.active {
  display: grid !important;
}

#page-video-workspace .v82-editor-header {
  position: relative !important;
  inset: auto !important;
  z-index: 30;
  grid-row: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: calc(var(--vf-editor-header-min) + env(safe-area-inset-top));
  padding: max(8px, env(safe-area-inset-top)) 10px 7px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(8,8,11,.98), rgba(8,8,11,.94));
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

#page-video-workspace .v82-editor-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  background: #19191f;
}

#page-video-workspace .v82-editor-title {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
}

#page-video-workspace .v82-editor-title span {
  max-width: 100%;
  font-size: 8px;
  line-height: 1.2;
}

#page-video-workspace .v82-editor-title strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-video-workspace .v82-export-top {
  min-width: 72px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 10px;
}

#page-video-workspace .v82-editor-shell {
  grid-row: 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(180px, 41%) clamp(96px, 14vh, 116px) minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  contain: layout paint;
}

#page-video-workspace .v82-preview-stage {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 8px !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 50% 38%, #17131f, #050507 64%);
}

#page-video-workspace .workspace-video-frame {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  border-radius: 17px !important;
  background: #000;
  box-shadow: 0 14px 36px rgba(0,0,0,.28) !important;
}

#page-video-workspace .workspace-video-frame video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#page-video-workspace .workspace-preview-error {
  top: 14px !important;
  right: 14px !important;
  left: 14px !important;
  max-width: none;
}

#page-video-workspace .v82-preview-meta {
  right: 14px;
  bottom: 13px;
  left: 14px;
  gap: 7px;
  min-width: 0;
}

#page-video-workspace .v82-preview-meta > button {
  min-width: 0;
  max-width: 58%;
  min-height: 37px;
  padding: 5px 8px;
}

#page-video-workspace .v82-preview-meta > div {
  min-width: 0;
  justify-content: flex-end;
}

#page-video-workspace .v82-preview-meta > div > span {
  min-width: 46px;
  max-width: 68px;
}

#page-video-workspace .v83-attract-copy {
  padding: 0 16px 18px;
}

#page-video-workspace .v83-attract-copy h2 {
  max-width: 340px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(21px, 6.5vw, 29px);
}

#page-video-workspace .v83-attract-copy p {
  max-width: 330px;
  font-size: 9.5px;
}

#page-video-workspace .v83-attract-logo {
  top: 10%;
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

#page-video-workspace .v83-attract-logo svg {
  width: 28px;
  height: 28px;
}

#page-video-workspace .v82-timeline {
  position: relative;
  z-index: 8;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 8px 7px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  border-right: 0 !important;
  border-left: 0 !important;
  background: #0b0b0f !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#page-video-workspace .v82-timeline::-webkit-scrollbar {
  display: none;
}

#page-video-workspace .v82-timeline-top {
  position: sticky;
  z-index: 10;
  left: 0;
  width: calc(100vw - 16px);
  min-width: calc(100vw - 16px);
  padding-bottom: 2px;
  background: #0b0b0f;
}

#page-video-workspace .studio-timeline-ruler,
#page-video-workspace .studio-timeline-track {
  width: max(100%, 520px);
  min-width: 520px;
}

#page-video-workspace .studio-timeline-ruler {
  margin-top: 3px;
  font-size: 6px;
}

#page-video-workspace .studio-timeline-track {
  margin-top: 4px;
}

#page-video-workspace .studio-playhead {
  top: 26px;
  bottom: 5px;
}

#page-video-workspace .v82-tool-sheet {
  position: relative;
  z-index: 9;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 12px calc(14px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  border: 0 !important;
  border-radius: 0 !important;
  background: #111116 !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#page-video-workspace .v82-tool-sheet::-webkit-scrollbar {
  display: none;
}

#page-video-workspace .v82-tool-sheet > .v82-sheet-handle {
  position: sticky;
  top: -2px;
  z-index: 15;
  margin-bottom: 8px;
  box-shadow: 0 0 0 7px #111116;
}

#page-video-workspace .v82-tool-panel {
  width: 100%;
  min-width: 0;
  padding-bottom: 4px;
}

#page-video-workspace .v82-tool-heading {
  gap: 10px;
}

#page-video-workspace .workspace-name-field,
#page-video-workspace .workspace-setting-group,
#page-video-workspace .workspace-select-grid,
#page-video-workspace .workspace-audio-toggle,
#page-video-workspace .workspace-audio-quality,
#page-video-workspace .workspace-premium-access,
#page-video-workspace .processor-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#page-video-workspace .workspace-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100%;
  min-width: 0;
}

#page-video-workspace .workspace-choice {
  min-width: 0 !important;
  padding-right: 4px;
  padding-left: 4px;
}

#page-video-workspace .workspace-select-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#page-video-workspace .v82-placeholder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}

#page-video-workspace .studio-control-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 4px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

#page-video-workspace .processor-output-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#page-video-workspace .v82-editor-dock {
  position: relative !important;
  inset: auto !important;
  z-index: 35;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: calc(var(--vf-editor-dock-min) + env(safe-area-inset-bottom));
  margin: 0 !important;
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  overflow: hidden !important;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 !important;
  background: rgba(18,18,23,.98) !important;
  box-shadow: 0 -12px 34px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.055) !important;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

#page-video-workspace .v82-editor-dock button {
  min-width: 0;
  min-height: 54px;
  gap: 3px;
  padding: 4px 1px;
  border-radius: 13px;
}

#page-video-workspace .v82-editor-dock button .material-icons-round {
  font-size: 20px;
}

#page-video-workspace .v82-editor-dock button small {
  max-width: 100%;
  overflow: hidden;
  font-size: 7px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  :root {
    --vf-editor-header-min: 58px;
    --vf-editor-dock-min: 62px;
  }

  #page-video-workspace .v82-editor-header {
    grid-template-columns: 39px minmax(0, 1fr) auto;
    padding-right: 8px;
    padding-left: 8px;
  }

  #page-video-workspace .v82-export-top {
    min-width: 64px;
    padding: 0 11px;
  }

  #page-video-workspace .v82-editor-shell {
    grid-template-rows: minmax(165px, 38%) 100px minmax(0, 1fr) !important;
  }

  #page-video-workspace .v82-preview-meta > div > span:nth-child(3) {
    display: none;
  }

  #page-video-workspace .v82-preview-meta > button {
    max-width: 62%;
  }

  #page-video-workspace .workspace-choice-grid {
    gap: 5px !important;
  }

  #page-video-workspace .workspace-choice strong {
    font-size: 8px;
  }

  #page-video-workspace .v82-editor-dock {
    padding-right: 3px;
    padding-left: 3px;
  }

  #page-video-workspace .v82-editor-dock button small {
    font-size: 6.5px;
  }
}

@media (max-height: 700px) and (orientation: portrait) {
  :root {
    --vf-editor-header-min: 56px;
    --vf-editor-dock-min: 60px;
  }

  #page-video-workspace .v82-editor-shell {
    grid-template-rows: minmax(145px, 34%) 92px minmax(0, 1fr) !important;
  }

  #page-video-workspace .v83-attract-logo {
    top: 7%;
    width: 46px;
    height: 46px;
  }

  #page-video-workspace .v83-attract-copy {
    padding-bottom: 11px;
  }

  #page-video-workspace .v83-attract-copy h2 {
    margin-top: 4px;
    font-size: 18px;
  }

  #page-video-workspace .v83-attract-copy p,
  #page-video-workspace .v83-attract-chips {
    display: none;
  }

  #page-video-workspace .v83-attract-copy button {
    min-height: 34px;
    margin-top: 7px;
  }

  #page-video-workspace .v82-editor-dock button {
    min-height: 48px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  :root {
    --vf-editor-header-min: 52px;
    --vf-editor-dock-min: 56px;
  }

  #page-video-workspace .v82-editor-header {
    min-height: calc(var(--vf-editor-header-min) + env(safe-area-inset-top));
    padding-top: max(5px, env(safe-area-inset-top));
    padding-bottom: 5px;
  }

  #page-video-workspace .v82-editor-shell {
    grid-template-columns: minmax(0, 58%) minmax(280px, 42%) !important;
    grid-template-rows: minmax(0, 1fr) 88px !important;
  }

  #page-video-workspace .v82-preview-stage {
    grid-column: 1;
    grid-row: 1;
    padding: 6px !important;
  }

  #page-video-workspace .v82-timeline {
    grid-column: 1;
    grid-row: 2;
  }

  #page-video-workspace .v82-tool-sheet {
    grid-column: 2;
    grid-row: 1 / 3;
    border-left: 1px solid rgba(255,255,255,.07) !important;
  }

  #page-video-workspace .v83-attract-logo {
    top: 7%;
    width: 42px;
    height: 42px;
  }

  #page-video-workspace .v83-attract-copy {
    padding: 0 12px 10px;
  }

  #page-video-workspace .v83-attract-copy h2 {
    margin: 4px 0;
    font-size: 17px;
  }

  #page-video-workspace .v83-attract-copy p,
  #page-video-workspace .v83-attract-chips {
    display: none;
  }

  #page-video-workspace .v83-attract-copy button {
    min-height: 32px;
    margin-top: 6px;
  }

  #page-video-workspace .v82-preview-meta > div > span:nth-child(3) {
    display: none;
  }

  #page-video-workspace .v82-editor-dock {
    min-height: calc(var(--vf-editor-dock-min) + env(safe-area-inset-bottom));
  }

  #page-video-workspace .v82-editor-dock button {
    min-height: 46px;
  }
}

#page-video-workspace .v82-placeholder-grid button {
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden;
  padding-right: 4px;
  padding-left: 4px;
}

#page-video-workspace .v82-placeholder-grid button > * {
  max-width: 100%;
}

#page-video-workspace .v82-placeholder-grid button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   V-FORGE v9.0.2 — FULL-FRAME MOBILE PREVIEW
   Seluruh frame video selalu terlihat seperti editor mobile modern.
   ============================================================ */
:root {
  --v902-preview-gap: 8px;
}

#page-video-workspace .v82-editor-shell {
  grid-template-rows: minmax(250px, 52%) clamp(92px, 13vh, 108px) minmax(0, 1fr) !important;
}

#page-video-workspace .v82-preview-stage {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  place-items: stretch center !important;
  gap: var(--v902-preview-gap) !important;
  padding: 8px 10px 7px !important;
  overflow: hidden !important;
  contain: layout paint;
}

#page-video-workspace .workspace-video-frame {
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  width: var(--v902-canvas-width, 100%) !important;
  height: var(--v902-canvas-height, 100%) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: var(--v902-preview-ratio, auto) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.018) 75%),
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, #020204 25%, #020204 75%, rgba(255,255,255,.018) 75%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.34) !important;
  transition: width .22s cubic-bezier(.2,.8,.2,1), height .22s cubic-bezier(.2,.8,.2,1), border-radius .2s ease !important;
}

#page-video-workspace .workspace-video-frame video,
#page-video-workspace .workspace-video-frame:not(.ratio-original) video,
#page-video-workspace .workspace-video-frame.ratio-original video,
#page-video-workspace .workspace-video-frame.ratio-portrait video,
#page-video-workspace .workspace-video-frame.ratio-landscape video,
#page-video-workspace .workspace-video-frame.ratio-square video {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  background: #000 !important;
  transform: none;
}

#page-video-workspace .workspace-video-frame[data-preview-orientation="portrait"] {
  border-radius: 12px !important;
}

#page-video-workspace .v82-preview-meta {
  position: static !important;
  grid-row: 2 !important;
  align-self: end !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  gap: 7px !important;
  pointer-events: auto !important;
}

#page-video-workspace .v82-preview-meta > button {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 36px !important;
  border-color: rgba(255,255,255,.085) !important;
  background: rgba(18,18,23,.94) !important;
}

#page-video-workspace .v82-preview-meta > div {
  display: flex !important;
  min-width: 0 !important;
  gap: 5px !important;
}

#page-video-workspace .v82-preview-meta > div > span {
  min-width: 54px !important;
  max-width: 76px !important;
  border-color: rgba(255,255,255,.085) !important;
  background: rgba(18,18,23,.94) !important;
}

#page-video-workspace .workspace-preview-error {
  top: 12px !important;
  z-index: 20 !important;
}

#page-video-workspace .v83-editor-attract {
  position: absolute !important;
  inset: 0 !important;
}

#page-video-workspace .v82-timeline {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 430px) {
  #page-video-workspace .v82-editor-shell {
    grid-template-rows: minmax(270px, 53%) 98px minmax(0, 1fr) !important;
  }
  #page-video-workspace .v82-preview-meta > div > span:nth-child(3) {
    display: none !important;
  }
}

@media (max-width: 360px), (max-height: 680px) {
  #page-video-workspace .v82-editor-shell {
    grid-template-rows: minmax(225px, 49%) 92px minmax(0, 1fr) !important;
  }
  #page-video-workspace .v82-preview-stage {
    padding: 6px 8px !important;
    gap: 5px !important;
  }
  #page-video-workspace .v82-preview-meta > div > span:nth-child(2),
  #page-video-workspace .v82-preview-meta > div > span:nth-child(3) {
    display: none !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  #page-video-workspace .v82-editor-shell {
    grid-template-rows: minmax(0, 1fr) 88px !important;
  }
  #page-video-workspace .v82-preview-stage {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  #page-video-workspace .v82-preview-meta {
    grid-template-columns: minmax(0,1fr) !important;
  }
  #page-video-workspace .v82-preview-meta > div {
    display: none !important;
  }
}
