: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 ============ */
        .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(0, 212, 170, 0.1);
            border: 1px solid rgba(0, 212, 170, 0.25);
            color: var(--success);
            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(--success), #00e6b0);
            -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: 680px;
            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(--success);
            background: rgba(0, 212, 170, 0.05);
            box-shadow: 0 0 40px rgba(0, 212, 170, 0.15);
            transform: translateY(-2px);
        }
        .upload-zone.drag-over {
            border-style: solid;
            box-shadow: 0 0 50px var(--success-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(0, 212, 170, 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-decode {
            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(--success), #00c2a0);
            box-shadow: 0 6px 24px var(--success-glow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }
        .btn-decode.visible {
            display: block;
            animation: fadeSlideIn 0.35s ease;
        }
        .btn-decode:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 32px var(--success-glow);
        }
        .btn-decode:active {
            transform: scale(0.97);
            transition: 0.1s;
        }
        .btn-decode:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 4px 16px var(--success-glow);
        }
        .btn-decode .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-decode.loading .spinner {
            display: inline-block;
        }
        .btn-decode.loading .btn-text {
            vertical-align: middle;
        }

        /* Result Area */
        .result-section {
            display: none;
            margin-top: 24px;
            animation: fadeSlideIn 0.4s ease;
        }
        .result-section.visible {
            display: block;
        }
        .result-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .result-header h3 {
            font-size: 1rem;
            font-weight: 700;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .result-header .badge-info {
            font-size: 0.7rem;
            background: rgba(255,255,255,0.08);
            padding: 4px 10px;
            border-radius: 20px;
            color: var(--text-secondary);
        }
        .btn-download-original {
            padding: 8px 18px;
            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.8rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .btn-download-original:hover {
            background: rgba(255,255,255,0.12);
            border-color: var(--border-hover);
        }
        .content-viewer {
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--border);
            border-radius: var(--radius-xs);
            padding: 16px;
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            color: #d0d0e0;
            white-space: pre-wrap;
            word-break: break-all;
            max-height: 380px;
            overflow-y: auto;
            line-height: 1.5;
            resize: vertical;
            transition: var(--transition);
        }
        .content-viewer:focus {
            outline: 1px solid var(--success);
            border-color: var(--success);
        }
        .content-viewer::-webkit-scrollbar {
            width: 6px;
        }
        .content-viewer::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.15);
            border-radius: 8px;
        }

        /* 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);
        }
        .status-msg.info {
            background: rgba(79, 172, 254, 0.1);
            border: 1px solid rgba(79, 172, 254, 0.3);
            color: var(--accent-1);
        }

        /* ============ 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(--success), #00c2a0);
            color: #fff;
            font-weight: 800;
            font-size: 1.1rem;
            margin-bottom: 14px;
            box-shadow: 0 4px 14px var(--success-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(--success);
            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; }
            .content-viewer { max-height:280px; }
        }
        @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; }
        }
        
        .modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
}
.modal-content h3 { margin-bottom: 12px; color: var(--accent-1); }
.modal-content p { margin-bottom: 16px; font-size: 0.9rem; }
.modal-content input {
    width: 100%;
    padding: 12px;
    border-radius: 40px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    color: white;
    margin-bottom: 20px;
}
.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.modal-buttons button {
    padding: 8px 20px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: var(--accent-1);
    color: white;
}
.modal-buttons button:last-child {
    background: rgba(255,255,255,0.1);
}
.modal-error {
    color: var(--danger);
    margin-top: 12px;
    font-size: 0.8rem;
}

/* Toggle password visibility di modal */
/* Toggle password visibility di modal */
.password-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.password-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border-radius: 40px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0; /* override .modal-content input agar wrapper tidak melebar ke bawah */
}
.toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 0;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.toggle-pwd:hover {
    color: var(--accent-1);
}