:root {
            --bg: #06060f;
            --bg-card: rgba(18, 18, 40, 0.85);
            --bg-card-hover: rgba(22, 22, 50, 0.9);
            --accent-1: #4facfe;
            --accent-2: #00f2fe;
            --accent-glow: rgba(79, 172, 254, 0.35);
            --text: #e8e8f0;
            --text-secondary: #a0a0b8;
            --text-muted: #6b6b80;
            --success: #00d4aa;
            --success-glow: rgba(0, 212, 170, 0.4);
            --danger: #ff5e6b;
            --border: rgba(255, 255, 255, 0.08);
            --border-hover: rgba(255, 255, 255, 0.2);
            --radius: 20px;
            --radius-sm: 12px;
            --radius-xs: 8px;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
            --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5);
            --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background-image:
                radial-gradient(ellipse at 30% 10%, rgba(79, 172, 254, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 85%, rgba(0, 242, 254, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 50%, rgba(120, 80, 255, 0.04) 0%, transparent 70%);
            background-attachment: fixed;
        }

        /* ============ PARTICLES (CSS-only) ============ */
        .bg-particles {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }
        .bg-particles span {
            position: absolute;
            border-radius: 50%;
            animation: floatUp linear infinite;
            opacity: 0;
        }
        .bg-particles span:nth-child(1) {
            width: 3px;
            height: 3px;
            left: 10%;
            background: var(--accent-1);
            animation-duration: 18s;
            animation-delay: 0s;
            bottom: -20px;
        }
        .bg-particles span:nth-child(2) {
            width: 2px;
            height: 2px;
            left: 25%;
            background: var(--accent-2);
            animation-duration: 22s;
            animation-delay: 3s;
            bottom: -20px;
        }
        .bg-particles span:nth-child(3) {
            width: 4px;
            height: 4px;
            left: 45%;
            background: var(--accent-1);
            animation-duration: 20s;
            animation-delay: 6s;
            bottom: -20px;
        }
        .bg-particles span:nth-child(4) {
            width: 2px;
            height: 2px;
            left: 60%;
            background: rgba(255, 255, 255, 0.6);
            animation-duration: 25s;
            animation-delay: 2s;
            bottom: -20px;
        }
        .bg-particles span:nth-child(5) {
            width: 3px;
            height: 3px;
            left: 75%;
            background: var(--accent-2);
            animation-duration: 19s;
            animation-delay: 8s;
            bottom: -20px;
        }
        .bg-particles span:nth-child(6) {
            width: 2px;
            height: 2px;
            left: 88%;
            background: var(--accent-1);
            animation-duration: 24s;
            animation-delay: 4s;
            bottom: -20px;
        }

        @keyframes floatUp {
            0% {
                transform: translateY(0) scale(0);
                opacity: 0;
            }
            5% {
                opacity: 0.8;
            }
            40% {
                opacity: 0.5;
            }
            80% {
                opacity: 0.1;
            }
            100% {
                transform: translateY(-110vh) scale(2.5);
                opacity: 0;
            }
        }

        /* ============ NAVBAR ============ */
        .navbar {
            width: 100%;
            max-width: 1200px;
            padding: 18px 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 10;
            flex-shrink: 0;
        }
        .navbar .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 1.35rem;
            letter-spacing: -0.02em;
            color: #fff;
            text-decoration: none;
        }
        .navbar .logo .icon-logo {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-xs);
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 4px 16px var(--accent-glow);
            flex-shrink: 0;
        }
        .navbar .nav-links {
            display: flex;
            gap: 24px;
            list-style: none;
            align-items: center;
        }
        .navbar .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: var(--transition);
            letter-spacing: 0.01em;
        }
        .navbar .nav-links a:hover {
            color: #fff;
        }
        .navbar .btn-nav {
            padding: 10px 20px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border);
            color: #fff;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            transition: var(--transition);
            text-decoration: none;
            letter-spacing: 0.01em;
        }
        .navbar .btn-nav:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: var(--border-hover);
        }

        /* ============ MAIN CONTENT ============ */
        .main-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 1200px;
            padding: 20px 24px 60px;
            position: relative;
            z-index: 5;
        }

        /* Hero */
        .hero-text {
            text-align: center;
            margin-bottom: 32px;
        }
        .hero-text .badge {
            display: inline-block;
            padding: 6px 16px;
            border-radius: 50px;
            background: rgba(79, 172, 254, 0.1);
            border: 1px solid rgba(79, 172, 254, 0.25);
            color: var(--accent-1);
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            margin-bottom: 14px;
        }
        .hero-text h1 {
            font-size: clamp(2rem, 4.5vw, 3.2rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.15;
            color: #fff;
            margin-bottom: 8px;
        }
        .hero-text h1 .gradient-text {
            background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-text p {
            color: var(--text-secondary);
            font-size: 1.05rem;
            max-width: 520px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Card */
        .card {
            background: var(--bg-card);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 36px 30px 30px;
            width: 100%;
            max-width: 600px;
            box-shadow: var(--shadow-card);
            transition: var(--transition);
        }
        .card:hover {
            border-color: var(--border-hover);
            box-shadow: var(--shadow-lg);
        }

        /* Upload Zone */
        .upload-zone {
            border: 2px dashed var(--border);
            border-radius: var(--radius-sm);
            padding: 40px 24px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            background: rgba(255, 255, 255, 0.015);
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        .upload-zone:hover,
        .upload-zone.drag-over {
            border-color: var(--accent-1);
            background: rgba(79, 172, 254, 0.05);
            box-shadow: 0 0 40px rgba(79, 172, 254, 0.1);
            transform: translateY(-2px);
        }
        .upload-zone.drag-over {
            border-style: solid;
            box-shadow: 0 0 50px var(--accent-glow);
        }
        .upload-zone .icon-upload {
            font-size: 3rem;
            margin-bottom: 12px;
            display: block;
            transition: var(--transition);
        }
        .upload-zone:hover .icon-upload {
            transform: translateY(-6px);
        }
        .upload-zone .upload-title {
            font-weight: 700;
            font-size: 1.15rem;
            color: #fff;
            margin-bottom: 4px;
        }
        .upload-zone .upload-subtitle {
            color: var(--text-secondary);
            font-size: 0.88rem;
        }
        .upload-zone input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
        }

        /* File Info */
        .file-info {
            display: none;
            align-items: center;
            gap: 14px;
            padding: 16px 18px;
            margin-top: 18px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: var(--radius-xs);
            border: 1px solid var(--border);
            animation: fadeSlideIn 0.35s ease;
        }
        .file-info.visible {
            display: flex;
        }
        .file-info .file-icon {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-xs);
            background: rgba(79, 172, 254, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            flex-shrink: 0;
        }
        .file-info .file-details {
            flex: 1;
            min-width: 0;
        }
        .file-info .file-name {
            font-weight: 600;
            font-size: 0.9rem;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .file-info .file-meta {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-top: 2px;
        }
        .file-info .btn-remove {
            background: rgba(255, 94, 107, 0.15);
            border: none;
            color: var(--danger);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1rem;
            transition: var(--transition);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .file-info .btn-remove:hover {
            background: rgba(255, 94, 107, 0.3);
            transform: scale(1.08);
        }

        /* Buttons */
        .btn-encode {
            display: none;
            width: 100%;
            margin-top: 20px;
            padding: 15px 24px;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: 0.02em;
            color: #fff;
            background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
            box-shadow: 0 6px 24px var(--accent-glow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }
        .btn-encode.visible {
            display: block;
            animation: fadeSlideIn 0.35s ease;
        }
        .btn-encode:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 32px var(--accent-glow);
        }
        .btn-encode:active {
            transform: scale(0.97);
            transition: 0.1s;
        }
        .btn-encode:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 4px 16px var(--accent-glow);
        }
        .btn-encode .spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 2.5px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            margin-right: 10px;
            vertical-align: middle;
        }
        .btn-encode.loading .spinner {
            display: inline-block;
        }
        .btn-encode.loading .btn-text {
            vertical-align: middle;
        }

        /* Status Message */
        .status-msg {
            display: none;
            text-align: center;
            margin-top: 16px;
            padding: 12px 16px;
            border-radius: var(--radius-xs);
            font-weight: 600;
            font-size: 0.88rem;
            animation: fadeSlideIn 0.3s ease;
        }
        .status-msg.visible {
            display: block;
        }
        .status-msg.success {
            background: rgba(0, 212, 170, 0.1);
            border: 1px solid rgba(0, 212, 170, 0.3);
            color: var(--success);
        }
        .status-msg.error {
            background: rgba(255, 94, 107, 0.1);
            border: 1px solid rgba(255, 94, 107, 0.3);
            color: var(--danger);
        }

        /* ============ HOW IT WORKS ============ */
        .how-section {
            width: 100%;
            max-width: 900px;
            margin-top: 64px;
            text-align: center;
        }
        .how-section h2 {
            font-size: 1.6rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 8px;
            letter-spacing: -0.02em;
        }
        .how-section .how-subtitle {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 36px;
        }
        .steps-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        .step-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 26px 20px;
            text-align: center;
            transition: var(--transition);
        }
        .step-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-4px);
            box-shadow: var(--shadow-card);
        }
        .step-card .step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: #fff;
            font-weight: 800;
            font-size: 1.1rem;
            margin-bottom: 14px;
            box-shadow: 0 4px 14px var(--accent-glow);
        }
        .step-card h3 {
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
        }
        .step-card p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* ============ FOOTER ============ */
        .footer {
            width: 100%;
            max-width: 1200px;
            text-align: center;
            padding: 24px;
            color: var(--text-muted);
            font-size: 0.78rem;
            border-top: 1px solid var(--border);
            margin-top: 20px;
            position: relative;
            z-index: 5;
        }
        .footer span {
            color: var(--accent-1);
            font-weight: 600;
        }

        /* ============ ANIMATIONS ============ */
        @keyframes fadeSlideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        @keyframes pulse {
            0%,
            100% {
                box-shadow: 0 0 0 0 var(--success-glow);
            }
            50% {
                box-shadow: 0 0 0 14px transparent;
            }
        }
        .pulse-once {
            animation: pulse 0.8s ease-out;
        }

        /* ============ RESPONSIVE ============ */
        @media (max-width: 768px) {
            .navbar {
                padding: 14px 16px;
            }
            .navbar .logo {
                font-size: 1.1rem;
                gap: 8px;
            }
            .navbar .logo .icon-logo {
                width: 34px;
                height: 34px;
                font-size: 1rem;
            }
            .navbar .nav-links {
                gap: 14px;
            }
            .navbar .nav-links a {
                font-size: 0.78rem;
            }
            .navbar .btn-nav {
                padding: 8px 14px;
                font-size: 0.75rem;
            }
            .hero-text h1 {
                font-size: 1.7rem;
            }
            .hero-text p {
                font-size: 0.9rem;
            }
            .card {
                padding: 24px 16px 20px;
                border-radius: var(--radius-sm);
            }
            .upload-zone {
                padding: 28px 16px;
            }
            .upload-zone .icon-upload {
                font-size: 2.4rem;
            }
            .upload-zone .upload-title {
                font-size: 1rem;
            }
            .upload-zone .upload-subtitle {
                font-size: 0.78rem;
            }
            .steps-grid {
                grid-template-columns: 1fr;
                gap: 14px;
            }
            .how-section {
                margin-top: 40px;
            }
            .how-section h2 {
                font-size: 1.3rem;
            }
            .btn-encode {
                padding: 13px 20px;
                font-size: 0.9rem;
            }
        }
        @media (max-width: 420px) {
            .navbar .nav-links {
                gap: 8px;
            }
            .navbar .nav-links a {
                font-size: 0.7rem;
            }
            .navbar .btn-nav {
                padding: 6px 10px;
                font-size: 0.7rem;
            }
            .hero-text h1 {
                font-size: 1.4rem;
            }
            .card {
                padding: 18px 12px 16px;
            }
            .upload-zone {
                padding: 22px 10px;
            }
            .file-info {
                flex-wrap: wrap;
                gap: 8px;
            }
            .file-info .btn-remove {
                margin-left: auto;
            }
        }
        
        /* ============ ADDED: Security Mode & Password ============ */
.security-mode-group {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.mode-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 8px 18px;
    border-radius: 60px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.mode-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
}
.mode-option input {
    accent-color: var(--accent-1);
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.mode-option label {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
}

.password-field-wrapper {
    margin: 20px 0 16px;
    animation: fadeSlideIn 0.25s ease;
}
.password-field-wrapper input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 60px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    font-family: var(--font);
}
.password-field-wrapper input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.password-field-wrapper small {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 600px) {
    .security-mode-group {
        gap: 12px;
    }
    .mode-option {
        padding: 6px 14px;
    }
    .mode-option label {
        font-size: 0.8rem;
    }
}

/* Password wrapper & toggle (sama seperti di decode) */
.password-field-wrapper .password-wrapper {
    position: relative;
    margin-bottom: 8px;
}
.password-field-wrapper .password-wrapper input {
    width: 100%;
    padding: 14px 40px 14px 18px;
    border-radius: 60px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    font-family: var(--font);
    box-sizing: border-box;
}
.password-field-wrapper .password-wrapper input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.password-field-wrapper .toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: var(--transition);
}
.password-field-wrapper .toggle-pwd svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}
.password-field-wrapper .toggle-pwd:hover svg {
    color: var(--accent-1);
}
.password-field-wrapper small {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}