:root {
            --bg-primary: #08080d;
            --bg-secondary: #0e0e16;
            --bg-card: #131320;
            --bg-card-hover: #1a1a2e;
            --border: #1e1e35;
            --border-hover: #2e2e4a;
            --text-primary: #eeeef5;
            --text-secondary: #8585a5;
            --text-muted: #50506a;
            --accent: #7c6cf0;
            --accent-light: #a8a0ff;
            --accent-glow: rgba(124, 108, 240, 0.25);
            --green: #00dfa8;
            --green-dim: #00b88a;
            --green-glow: rgba(0, 223, 168, 0.15);
            --orange: #ff8a50;
            --blue: #50b4ff;
            --pink: #ff5f96;
            --yellow: #ffc95c;
            --radius: 20px;
            --radius-md: 14px;
            --radius-sm: 10px;
            --radius-xs: 6px;
            --nav-bg: rgba(8,8,13,0.75);
            --tool-page-bg: var(--bg-primary);
            --shadow-card: 0 8px 28px rgba(0,0,0,0.25);
            --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.3);
            --upload-zone-bg: rgba(19,19,32,0.5);
            --grid-color: rgba(124,108,240,0.03);
            --glow1-color: rgba(124,108,240,0.10);
            --glow2-color: rgba(0,223,168,0.06);
            --privacy-bg: linear-gradient(135deg, rgba(0,223,168,0.04), rgba(124,108,240,0.04));
            --privacy-border: rgba(0,223,168,0.12);
            --result-bg: linear-gradient(135deg, rgba(0,223,168,0.06), rgba(124,108,240,0.04));
            --result-border: rgba(0,223,168,0.15);
            --download-btn-text: #08080d;
            color-scheme: dark;
        }

        /* Light theme */
        [data-theme="light"] {
            --bg-primary: #f5f5f7;
            --bg-secondary: #e8e8ed;
            --bg-card: #ffffff;
            --bg-card-hover: #f0f0f5;
            --border: #d8d8e0;
            --border-hover: #c0c0d0;
            --text-primary: #1a1a2e;
            --text-secondary: #5a5a78;
            --text-muted: #8888a0;
            --accent: #6c5ce7;
            --accent-light: #6c5ce7;
            --accent-glow: rgba(108, 92, 231, 0.15);
            --green: #00b894;
            --green-dim: #00a884;
            --green-glow: rgba(0, 184, 148, 0.1);
            --orange: #e17055;
            --blue: #0984e3;
            --pink: #e84393;
            --yellow: #f0932b;
            --nav-bg: rgba(245,245,247,0.85);
            --tool-page-bg: var(--bg-primary);
            --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
            --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.1);
            --upload-zone-bg: rgba(255,255,255,0.7);
            --grid-color: rgba(108,92,231,0.04);
            --glow1-color: rgba(108,92,231,0.06);
            --glow2-color: rgba(0,184,148,0.04);
            --privacy-bg: linear-gradient(135deg, rgba(0,184,148,0.06), rgba(108,92,231,0.04));
            --privacy-border: rgba(0,184,148,0.2);
            --result-bg: linear-gradient(135deg, rgba(0,184,148,0.08), rgba(108,92,231,0.04));
            --result-border: rgba(0,184,148,0.2);
            --download-btn-text: #ffffff;
            color-scheme: light;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Outfit', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }
        .bg-grid {
            position: fixed; inset: 0;
            background-image:
                linear-gradient(var(--grid-color) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none; z-index: 0;
            mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 100%);
        }
        .bg-glow-1 {
            position: fixed; top: -300px; left: 50%; transform: translateX(-50%);
            width: 900px; height: 600px;
            background: radial-gradient(ellipse, var(--glow1-color), transparent 70%);
            pointer-events: none; z-index: 0;
        }
        .bg-glow-2 {
            position: fixed; top: 200px; right: -200px;
            width: 500px; height: 500px;
            background: radial-gradient(circle, var(--glow2-color), transparent 70%);
            pointer-events: none; z-index: 0;
        }

        /* NAV */
        nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 32px; backdrop-filter: blur(24px) saturate(1.2); background: var(--nav-bg); border-bottom: 1px solid var(--border); }
        .nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
        .logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
        .logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--green)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: white; transform: rotate(-2deg); box-shadow: 0 2px 12px rgba(124,108,240,0.3); }
        .logo-text { font-size: 19px; font-weight: 700; letter-spacing: -0.5px; }
        .logo-text span { color: var(--accent-light); }
        .nav-right { display: flex; align-items: center; gap: 6px; }
        .nav-link { color: var(--text-secondary); font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius-xs); transition: all 0.2s; cursor: pointer; text-decoration: none; }
        .nav-link:hover { color: var(--text-primary); background: var(--bg-card-hover); }
        .nav-pill { padding: 7px 16px; background: rgba(0,223,168,0.1); border: 1px solid rgba(0,223,168,0.2); color: var(--green); font-size: 12px; font-weight: 600; border-radius: 100px; }

        /* FFmpeg status indicator */

        /* HERO */
        .hero { position: relative; z-index: 1; padding: 140px 24px 40px; text-align: center; max-width: 720px; margin: 0 auto; }
        .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(124,108,240,0.08); border: 1px solid rgba(124,108,240,0.15); border-radius: 100px; font-size: 12.5px; font-weight: 500; color: var(--accent-light); margin-bottom: 24px; animation: fadeIn 0.5s; }
        .hero-eyebrow .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: blink 2s infinite; }
        .hero h1 { font-size: clamp(36px, 5.5vw, 58px); font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 16px; animation: fadeUp 0.6s; }
        .hero h1 .grad { background: linear-gradient(135deg, var(--accent-light), var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .hero-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.65; max-width: 520px; margin: 0 auto 12px; animation: fadeUp 0.7s; }

        /* UPLOAD */
        .upload-section { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 24px 32px; animation: fadeUp 0.8s; }
        .upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 52px 32px; text-align: center; cursor: pointer; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); background: var(--upload-zone-bg); backdrop-filter: blur(8px); }
        .upload-zone:hover { border-color: var(--accent); background: rgba(124,108,240,0.04); box-shadow: 0 0 0 6px var(--accent-glow), 0 20px 60px rgba(0,0,0,0.3); transform: translateY(-2px); }
        .upload-zone.dragover { border-color: var(--green); background: rgba(0,223,168,0.06); box-shadow: 0 0 0 6px var(--green-glow); transform: scale(1.01); }
        .upload-icon-wrap { width: 80px; height: 80px; margin: 0 auto 20px; background: linear-gradient(135deg, rgba(124,108,240,0.12), rgba(0,223,168,0.08)); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
        .upload-icon-wrap::after { content: ''; position: absolute; inset: -4px; border: 2px dashed rgba(124,108,240,0.2); border-radius: 50%; animation: spin 20s linear infinite; }
        .upload-icon { font-size: 36px; }
        .upload-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
        .upload-title span { color: var(--accent-light); }
        .upload-hint { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
        .upload-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 32px; background: linear-gradient(135deg, var(--accent), #9575ff); border: none; border-radius: var(--radius-sm); color: white; font-family: 'Outfit'; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.25s; box-shadow: 0 4px 20px rgba(124,108,240,0.25); }
        .upload-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(124,108,240,0.4); }
        .upload-formats { margin-top: 20px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
        .format-chip { padding: 3px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-family: 'JetBrains Mono'; font-size: 11px; color: var(--text-muted); font-weight: 500; }

        /* FILE INFO */
        .file-info-bar { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px; }
        .file-info-left { display: flex; align-items: center; gap: 14px; }
        .file-thumb { width: 56px; height: 40px; background: var(--bg-secondary); border-radius: var(--radius-xs); overflow: hidden; }
        .file-thumb video { width: 100%; height: 100%; object-fit: cover; }
        .file-name { font-size: 14px; font-weight: 600; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .file-meta { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono'; margin-top: 2px; }
        .file-remove { background: rgba(255,95,150,0.1); border: 1px solid rgba(255,95,150,0.15); color: var(--pink); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-xs); cursor: pointer; font-family: 'Outfit'; transition: all 0.2s; }
        .file-remove:hover { background: rgba(255,95,150,0.2); }

        /* ACTION GRID */
        .action-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; text-align: center; }
        .action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .action-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 16px; text-align: center; cursor: pointer; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; overflow: hidden; }
        .action-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--action-color, var(--accent)); opacity: 0; transition: opacity 0.3s; }
        .action-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
        .action-card:hover::before { opacity: 1; }
        .action-emoji { font-size: 28px; }
        .action-name { font-size: 13.5px; font-weight: 600; }
        .action-desc { font-size: 11.5px; color: var(--text-muted); }

        /* USP */
        .usp-strip { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 24px 60px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
        .usp-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
        .usp-check { color: var(--green); }

        /* TOOLS SECTION */
        .tools-section { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
        .tools-header { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
        .tools-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; white-space: nowrap; }
        .tools-line { flex: 1; height: 1px; background: var(--border); }
        .tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
        .tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 20px; display: flex; align-items: flex-start; gap: 14px; transition: all 0.25s cubic-bezier(0.4,0,0.2,1); cursor: pointer; }
        .tool-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: var(--shadow-card); }
        .tool-emoji { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
        .tool-info { flex: 1; }
        .tool-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
        .tool-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
        .tool-badge { display: inline-block; margin-top: 6px; padding: 2px 8px; font-size: 10px; font-weight: 700; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px; }
        .badge-hot { background: rgba(0,223,168,0.1); color: var(--green); }
        .badge-new { background: rgba(255,138,80,0.1); color: var(--orange); }
        .badge-ai { background: rgba(124,108,240,0.1); color: var(--accent-light); }

        /* HOW IT WORKS */
        .how-section { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
        .how-steps { display: flex; gap: 16px; margin-top: 36px; }
        .how-step { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px 22px; text-align: center; }
        .step-num { font-family: 'JetBrains Mono'; font-size: 11px; font-weight: 600; color: var(--accent-light); background: rgba(124,108,240,0.1); padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 16px; }
        .step-icon { font-size: 32px; margin-bottom: 14px; }
        .how-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
        .how-step p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

        /* PRIVACY */
        .privacy-banner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 24px 80px; }
        .privacy-inner { background: var(--privacy-bg); border: 1px solid var(--privacy-border); border-radius: var(--radius); padding: 44px 36px; text-align: center; }
        .privacy-inner h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
        .privacy-inner p { font-size: 15px; color: var(--text-secondary); line-height: 1.65; max-width: 500px; margin: 0 auto 24px; }
        .privacy-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
        .p-chip { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(0,223,168,0.06); border: 1px solid rgba(0,223,168,0.1); border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--green-dim); }

        /* FOOTER */
        footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 36px 24px; }
        .footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
        .footer-copy { font-size: 12.5px; color: var(--text-muted); }
        .footer-links { display: flex; gap: 20px; }
        .footer-links a { font-size: 12.5px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
        .footer-links a:hover { color: var(--text-secondary); }

        /* AD CONTAINERS */
        .ad-container { position: relative; z-index: 1; max-width: 728px; margin: 0 auto; padding: 0 24px; min-height: 90px; display: flex; align-items: center; justify-content: center; }
        .ad-top { padding-bottom: 40px; }
        .ad-bottom { padding: 40px 24px 20px; }
        .ad-container ins { width: 100%; }
        .ad-slot { position: relative; z-index: 1; max-width: 728px; margin: 24px auto; min-height: 90px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); overflow: hidden; }
        .ad-slot ins { width: 100%; }

        /* STATIC PAGES (about, privacy, contact) */
        .page-section { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 140px 24px 80px; }
        .page-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-secondary); text-decoration: none; margin-bottom: 24px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-xs); transition: all 0.2s; }
        .page-back:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-card-hover); }
        .page-section h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
        .page-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
        .page-sub { font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 32px; }
        .page-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; margin-bottom: 20px; }
        .page-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
        .page-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
        .page-card p:last-child { margin-bottom: 0; }
        .page-card ul { padding-left: 20px; margin: 8px 0; }
        .page-card li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }
        .page-card code { background: var(--bg-secondary); padding: 2px 8px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
        /* Contact page */
        .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
        .contact-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; transition: all 0.25s; }
        .contact-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
        .contact-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(var(--c), 0.1); display: flex; align-items: center; justify-content: center; color: var(--c); }
        .contact-label { font-size: 15px; font-weight: 700; color: var(--text-primary); }
        .contact-value { font-size: 13px; color: var(--text-secondary); }

        /* TOOL PAGE */
        .tool-page { position: fixed; inset: 0; z-index: 2000; background: var(--tool-page-bg); overflow-y: auto; animation: fadeIn 0.2s; }
        .tool-page-header { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; }
        .tool-page-back { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); color: var(--text-secondary); font-family: 'Outfit'; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-xs); cursor: pointer; transition: all 0.2s; }
        .tool-page-back:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-card-hover); }
        .tool-page-title { font-size: 16px; font-weight: 700; }
        .tool-page-content { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }

        /* SETTINGS */
        .settings-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 24px; margin-bottom: 20px; }
        .settings-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 20px; }
        .setting-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
        .setting-row:last-child { border-bottom: none; }
        .setting-label { font-size: 13.5px; font-weight: 500; }
        .setting-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
        .setting-control { display: flex; align-items: center; gap: 10px; }
        .custom-select { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); font-family: 'Outfit'; font-size: 13px; padding: 8px 32px 8px 14px; border-radius: var(--radius-xs); cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238585a5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
        .custom-select:focus { border-color: var(--accent); }
        [data-theme="light"] .custom-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a78' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
        .custom-range { -webkit-appearance: none; appearance: none; width: 160px; height: 6px; background: var(--bg-secondary); border-radius: 3px; outline: none; }
        .custom-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; cursor: pointer; border: 3px solid var(--bg-primary); }
        .range-value { font-family: 'JetBrains Mono'; font-size: 12px; font-weight: 600; color: var(--accent-light); min-width: 40px; text-align: right; }
        .custom-input { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); font-family: 'JetBrains Mono'; font-size: 13px; padding: 8px 12px; border-radius: var(--radius-xs); width: 80px; outline: none; }
        .custom-input:focus { border-color: var(--accent); }

        /* VIDEO PREVIEW */
        .video-preview { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; }
        .video-preview video { width: 100%; display: block; max-height: 400px; object-fit: contain; background: #000; }
        .video-info-strip { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); }
        .video-info-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
        .video-info-details { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono'; }

        /* PROCESS BTN */
        .process-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 32px; background: linear-gradient(135deg, var(--accent), #9575ff); border: none; border-radius: var(--radius-sm); color: white; font-family: 'Outfit'; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.25s; box-shadow: 0 4px 24px rgba(124,108,240,0.3); }
        .process-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(124,108,240,0.45); }
        .process-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

        /* PROGRESS */
        .progress-outer { width: 100%; height: 8px; background: var(--bg-secondary); border-radius: 4px; overflow: hidden; margin: 20px 0 10px; }
        .progress-inner { height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 4px; transition: width 0.3s; }
        .progress-text { font-size: 12.5px; color: var(--text-secondary); text-align: center; font-weight: 500; }

        /* RESULT */
        .result-card { background: var(--result-bg); border: 1px solid var(--result-border); border-radius: var(--radius-md); padding: 28px 24px; text-align: center; margin-top: 24px; }
        .result-icon { font-size: 48px; margin-bottom: 12px; }
        .result-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
        .result-stats { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
        .result-highlight { color: var(--green); font-weight: 700; }
        .result-preview { margin-bottom: 20px; }
        .result-preview video, .result-preview audio, .result-preview img { max-width: 100%; max-height: 300px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
        .result-preview audio { width: 100%; }
        .download-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 40px; background: linear-gradient(135deg, var(--green-dim), var(--green)); border: none; border-radius: var(--radius-sm); color: var(--download-btn-text); font-family: 'Outfit'; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.25s; box-shadow: 0 4px 20px rgba(0,223,168,0.25); text-decoration: none; }
        .download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,223,168,0.4); }
        .another-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; background: none; border: 1px solid var(--border); color: var(--text-secondary); font-family: 'Outfit'; font-size: 13px; font-weight: 500; padding: 10px 24px; border-radius: var(--radius-xs); cursor: pointer; transition: all 0.2s; }
        .another-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }

        /* THEME TOGGLE */
        .theme-toggle { background: none; border: 1px solid var(--border); color: var(--text-secondary); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: all 0.25s; flex-shrink: 0; }
        .theme-toggle:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-card-hover); }

        /* SPINNER */
        .spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
        [data-theme="light"] .spinner { border-color: rgba(0,0,0,0.15); border-top-color: var(--accent); }

        /* Light theme specific overrides */
        [data-theme="light"] .nav-pill { background: rgba(0,184,148,0.08); border-color: rgba(0,184,148,0.2); }
        [data-theme="light"] .hero-eyebrow { background: rgba(108,92,231,0.06); border-color: rgba(108,92,231,0.12); }
        [data-theme="light"] .upload-zone:hover { box-shadow: 0 0 0 6px var(--accent-glow), 0 20px 60px rgba(0,0,0,0.08); }
        [data-theme="light"] .upload-zone.dragover { box-shadow: 0 0 0 6px var(--green-glow); }
        [data-theme="light"] .upload-icon-wrap { background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(0,184,148,0.06)); }
        [data-theme="light"] .upload-icon-wrap::after { border-color: rgba(108,92,231,0.15); }
        [data-theme="light"] .upload-btn { box-shadow: 0 4px 20px rgba(108,92,231,0.15); }
        [data-theme="light"] .process-btn { box-shadow: 0 4px 24px rgba(108,92,231,0.2); }
        [data-theme="light"] .process-btn:hover { box-shadow: 0 8px 36px rgba(108,92,231,0.3); }
        [data-theme="light"] .download-btn { box-shadow: 0 4px 20px rgba(0,184,148,0.2); }
        [data-theme="light"] .badge-hot { background: rgba(0,184,148,0.08); }
        [data-theme="light"] .badge-new { background: rgba(225,112,85,0.08); }
        [data-theme="light"] .badge-ai { background: rgba(108,92,231,0.08); }
        [data-theme="light"] .p-chip { background: rgba(0,184,148,0.06); border-color: rgba(0,184,148,0.15); }
        [data-theme="light"] .file-remove { background: rgba(232,67,147,0.06); border-color: rgba(232,67,147,0.12); }
        [data-theme="light"] .file-remove:hover { background: rgba(232,67,147,0.12); }
        [data-theme="light"] .logo-icon { box-shadow: 0 2px 12px rgba(108,92,231,0.2); }
        [data-theme="light"] .another-btn:hover { background: var(--bg-card-hover); }
        [data-theme="light"] .video-preview video { background: #1a1a2e; }
        [data-theme="light"] .custom-range::-webkit-slider-thumb { border-color: var(--bg-primary); }

        @keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
        @keyframes spin { to { transform: rotate(360deg) } }
        @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

        @media (max-width: 768px) {
            .hero { padding: 120px 20px 30px; }
            .hero h1 { font-size: 32px; }
            .nav-right .nav-link { display: none; }
            .action-grid { grid-template-columns: repeat(2, 1fr); }
            .tools-grid { grid-template-columns: 1fr 1fr; }
            .how-steps { flex-direction: column; }
            .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
            .setting-row { flex-direction: column; align-items: flex-start; gap: 10px; }
        }
        @media (max-width: 480px) {
            .action-grid { grid-template-columns: 1fr 1fr; }
            .tools-grid { grid-template-columns: 1fr; }
        }