File size: 27,383 Bytes
6447cea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Secure Bitcoin Wallet Scanner</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
        }
        .wallet-card {
            transition: all 0.3s ease;
        }
        .wallet-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        .progress-bar {
            height: 4px;
            background-color: #3b82f6;
            animation: progress 2s ease-in-out infinite;
        }
        @keyframes progress {
            0% { width: 0%; }
            50% { width: 100%; }
            100% { width: 0%; }
        }
    </style>
</head>
<body class="gradient-bg min-h-screen text-gray-100">
    <div class="container mx-auto px-4 py-8">
        <!-- Header -->
        <header class="flex flex-col md:flex-row justify-between items-center mb-8">
            <div class="flex items-center mb-4 md:mb-0">
                <i class="fab fa-bitcoin text-4xl text-yellow-500 mr-3"></i>
                <h1 class="text-3xl font-bold">Secure Wallet Scanner</h1>
            </div>
            <div class="flex space-x-2">
                <button id="settingsBtn" class="bg-blue-700 hover:bg-blue-600 px-4 py-2 rounded-lg flex items-center">
                    <i class="fas fa-cog mr-2"></i> Settings
                </button>
                <button id="helpBtn" class="bg-gray-700 hover:bg-gray-600 px-4 py-2 rounded-lg flex items-center">
                    <i class="fas fa-question-circle mr-2"></i> Help
                </button>
            </div>
        </header>

        <!-- Main Content -->
        <main>
            <!-- Scanner Section -->
            <section class="bg-gray-800 rounded-xl p-6 mb-8 shadow-lg">
                <h2 class="text-2xl font-semibold mb-4 flex items-center">
                    <i class="fas fa-search mr-3 text-blue-400"></i> Wallet Scanner
                </h2>
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
                    <div class="bg-gray-700 p-4 rounded-lg">
                        <h3 class="font-medium mb-2 text-blue-300">Scan Directories</h3>
                        <p class="text-sm text-gray-300">Search system for wallet files (.dat), seed phrases, and private keys</p>
                    </div>
                    <div class="bg-gray-700 p-4 rounded-lg">
                        <h3 class="font-medium mb-2 text-blue-300">Check Balances</h3>
                        <p class="text-sm text-gray-300">Query Bitcoin blockchain via full node to verify wallet balances</p>
                    </div>
                    <div class="bg-gray-700 p-4 rounded-lg">
                        <h3 class="font-medium mb-2 text-blue-300">Secure Storage</h3>
                        <p class="text-sm text-gray-300">Encrypt and store findings with military-grade AES-256 encryption</p>
                    </div>
                </div>

                <div class="flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-4">
                    <div class="flex-1">
                        <label for="scanPath" class="block mb-2 text-sm font-medium">Scan Path</label>
                        <div class="flex">
                            <input type="text" id="scanPath" value="C:\Users\YourUsername" 
                                   class="bg-gray-700 border border-gray-600 text-white text-sm rounded-l-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
                            <button class="bg-blue-700 hover:bg-blue-600 px-4 rounded-r-lg">
                                <i class="fas fa-folder-open"></i>
                            </button>
                        </div>
                    </div>
                    <div class="flex items-end">
                        <button id="startScanBtn" class="bg-green-600 hover:bg-green-500 text-white font-bold py-2 px-6 rounded-lg flex items-center">
                            <i class="fas fa-play mr-2"></i> Start Scan
                        </button>
                    </div>
                </div>
            </section>

            <!-- Progress Section -->
            <section id="progressSection" class="hidden bg-gray-800 rounded-xl p-6 mb-8 shadow-lg">
                <h2 class="text-2xl font-semibold mb-4">Scan Progress</h2>
                <div class="mb-4">
                    <div class="flex justify-between mb-1">
                        <span class="text-sm font-medium">Scanning directories...</span>
                        <span id="progressPercent" class="text-sm font-medium">0%</span>
                    </div>
                    <div class="w-full bg-gray-700 rounded-full h-2.5">
                        <div id="progressBar" class="bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
                    </div>
                </div>
                <div id="progressDetails" class="text-sm text-gray-300 space-y-2">
                    <div class="flex items-center">
                        <i class="fas fa-circle-notch fa-spin text-blue-400 mr-2"></i>
                        <span>Initializing secure scanner...</span>
                    </div>
                </div>
            </section>

            <!-- Results Section -->
            <section id="resultsSection" class="hidden bg-gray-800 rounded-xl p-6 shadow-lg">
                <div class="flex justify-between items-center mb-4">
                    <h2 class="text-2xl font-semibold flex items-center">
                        <i class="fas fa-wallet mr-3 text-yellow-400"></i> Scan Results
                    </h2>
                    <div class="flex space-x-2">
                        <button id="exportBtn" class="bg-blue-700 hover:bg-blue-600 px-4 py-2 rounded-lg flex items-center text-sm">
                            <i class="fas fa-file-export mr-2"></i> Export to Electrum
                        </button>
                        <button id="encryptBtn" class="bg-purple-700 hover:bg-purple-600 px-4 py-2 rounded-lg flex items-center text-sm">
                            <i class="fas fa-lock mr-2"></i> Encrypt Results
                        </button>
                    </div>
                </div>

                <div class="overflow-x-auto">
                    <table class="w-full text-sm text-left text-gray-400">
                        <thead class="text-xs uppercase bg-gray-700 text-gray-300">
                            <tr>
                                <th scope="col" class="px-6 py-3">Type</th>
                                <th scope="col" class="px-6 py-3">Location</th>
                                <th scope="col" class="px-6 py-3">Address</th>
                                <th scope="col" class="px-6 py-3">Balance</th>
                                <th scope="col" class="px-6 py-3">Status</th>
                                <th scope="col" class="px-6 py-3">Actions</th>
                            </tr>
                        </thead>
                        <tbody id="resultsTableBody">
                            <!-- Results will be populated here -->
                        </tbody>
                    </table>
                </div>
            </section>

            <!-- Security Info -->
            <section class="mt-8 bg-gray-800 rounded-xl p-6 shadow-lg">
                <h2 class="text-2xl font-semibold mb-4 flex items-center">
                    <i class="fas fa-shield-alt mr-3 text-green-400"></i> Security Information
                </h2>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                    <div class="bg-gray-700 p-4 rounded-lg">
                        <h3 class="font-medium mb-3 text-green-300 flex items-center">
                            <i class="fas fa-lock mr-2"></i> Local Processing
                        </h3>
                        <p class="text-sm text-gray-300 mb-3">
                            All scanning and balance checking is performed locally on your machine. No wallet data is transmitted to external servers.
                        </p>
                        <div class="flex items-center text-sm text-green-400">
                            <i class="fas fa-check-circle mr-2"></i>
                            <span>No internet connection required for scanning</span>
                        </div>
                    </div>
                    <div class="bg-gray-700 p-4 rounded-lg">
                        <h3 class="font-medium mb-3 text-green-300 flex items-center">
                            <i class="fas fa-key mr-2"></i> Encryption Standards
                        </h3>
                        <p class="text-sm text-gray-300 mb-3">
                            Discovered wallets are encrypted using AES-256 with your master password before any storage occurs.
                        </p>
                        <div class="flex items-center text-sm text-green-400">
                            <i class="fas fa-check-circle mr-2"></i>
                            <span>Military-grade encryption for all sensitive data</span>
                        </div>
                    </div>
                </div>
            </section>
        </main>

        <!-- Modals -->
        <!-- Settings Modal -->
        <div id="settingsModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
            <div class="bg-gray-800 rounded-xl p-6 w-full max-w-2xl">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-bold">Scanner Settings</h3>
                    <button id="closeSettings" class="text-gray-400 hover:text-white">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                <div class="space-y-4">
                    <div>
                        <label class="block mb-2 text-sm font-medium">File Types to Scan</label>
                        <div class="grid grid-cols-2 md:grid-cols-3 gap-2">
                            <div class="flex items-center">
                                <input id="scan-dat" type="checkbox" checked class="w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500">
                                <label for="scan-dat" class="ml-2 text-sm">.dat files</label>
                            </div>
                            <div class="flex items-center">
                                <input id="scan-txt" type="checkbox" checked class="w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500">
                                <label for="scan-txt" class="ml-2 text-sm">.txt files</label>
                            </div>
                            <div class="flex items-center">
                                <input id="scan-json" type="checkbox" checked class="w-4 h-4 text-blue-600 bg-gray-700 border-gray-600 rounded focus:ring-blue-500">
                                <label for="scan-json" class="ml-2 text-sm">.json files</label>
                            </div>
                        </div>
                    </div>
                    <div>
                        <label for="node-connection" class="block mb-2 text-sm font-medium">Bitcoin Node Connection</label>
                        <select id="node-connection" class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
                            <option value="local">Local Node (Recommended)</option>
                            <option value="custom">Custom Node</option>
                            <option value="api">Blockchain API (Fallback)</option>
                        </select>
                    </div>
                    <div id="customNodeSection" class="hidden">
                        <label for="node-url" class="block mb-2 text-sm font-medium">Node URL</label>
                        <input type="text" id="node-url" placeholder="http://127.0.0.1:8332" class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
                    </div>
                    <div class="pt-4 border-t border-gray-700">
                        <button class="bg-blue-700 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">
                            Save Settings
                        </button>
                    </div>
                </div>
            </div>
        </div>

        <!-- Help Modal -->
        <div id="helpModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
            <div class="bg-gray-800 rounded-xl p-6 w-full max-w-2xl">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-bold">Help & Information</h3>
                    <button id="closeHelp" class="text-gray-400 hover:text-white">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                <div class="space-y-4">
                    <div>
                        <h4 class="font-medium text-blue-300 mb-2">How It Works</h4>
                        <p class="text-sm text-gray-300">
                            The Secure Wallet Scanner searches your system for Bitcoin wallet files, seed phrases, and private keys. 
                            It then checks the balance of each found wallet by connecting directly to the Bitcoin blockchain.
                        </p>
                    </div>
                    <div>
                        <h4 class="font-medium text-blue-300 mb-2">Security Features</h4>
                        <ul class="text-sm text-gray-300 space-y-1 list-disc pl-5">
                            <li>All operations performed locally - no data leaves your computer</li>
                            <li>Wallet data is encrypted before storage</li>
                            <li>Private keys and seed phrases are never displayed in plain text</li>
                            <li>Supports direct connection to your own Bitcoin node</li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="font-medium text-blue-300 mb-2">Supported Formats</h4>
                        <div class="grid grid-cols-2 gap-2 text-sm">
                            <div class="flex items-center">
                                <i class="fas fa-file-alt text-yellow-500 mr-2"></i>
                                <span>wallet.dat (Bitcoin Core)</span>
                            </div>
                            <div class="flex items-center">
                                <i class="fas fa-key text-green-500 mr-2"></i>
                                <span>Private Keys (WIF)</span>
                            </div>
                            <div class="flex items-center">
                                <i class="fas fa-seedling text-purple-500 mr-2"></i>
                                <span>Seed Phrases (BIP39)</span>
                            </div>
                            <div class="flex items-center">
                                <i class="fas fa-file-code text-blue-500 mr-2"></i>
                                <span>Electrum Wallet Files</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Encryption Modal -->
        <div id="encryptModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
            <div class="bg-gray-800 rounded-xl p-6 w-full max-w-md">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-bold">Encrypt Results</h3>
                    <button id="closeEncrypt" class="text-gray-400 hover:text-white">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                <div class="space-y-4">
                    <div>
                        <label for="encryptPassword" class="block mb-2 text-sm font-medium">Encryption Password</label>
                        <input type="password" id="encryptPassword" class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="Enter a strong password">
                    </div>
                    <div>
                        <label for="confirmPassword" class="block mb-2 text-sm font-medium">Confirm Password</label>
                        <input type="password" id="confirmPassword" class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5" placeholder="Confirm your password">
                    </div>
                    <div class="pt-4 border-t border-gray-700">
                        <button id="confirmEncrypt" class="bg-purple-700 hover:bg-purple-600 text-white font-bold py-2 px-4 rounded w-full">
                            <i class="fas fa-lock mr-2"></i> Encrypt & Save
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // DOM Elements
        const startScanBtn = document.getElementById('startScanBtn');
        const progressSection = document.getElementById('progressSection');
        const resultsSection = document.getElementById('resultsSection');
        const progressBar = document.getElementById('progressBar');
        const progressPercent = document.getElementById('progressPercent');
        const progressDetails = document.getElementById('progressDetails');
        const resultsTableBody = document.getElementById('resultsTableBody');
        const settingsBtn = document.getElementById('settingsBtn');
        const helpBtn = document.getElementById('helpBtn');
        const settingsModal = document.getElementById('settingsModal');
        const helpModal = document.getElementById('helpModal');
        const closeSettings = document.getElementById('closeSettings');
        const closeHelp = document.getElementById('closeHelp');
        const exportBtn = document.getElementById('exportBtn');
        const encryptBtn = document.getElementById('encryptBtn');
        const encryptModal = document.getElementById('encryptModal');
        const closeEncrypt = document.getElementById('closeEncrypt');
        const confirmEncrypt = document.getElementById('confirmEncrypt');
        const nodeConnection = document.getElementById('node-connection');
        const customNodeSection = document.getElementById('customNodeSection');

        // Event Listeners
        startScanBtn.addEventListener('click', startScan);
        settingsBtn.addEventListener('click', () => settingsModal.classList.remove('hidden'));
        helpBtn.addEventListener('click', () => helpModal.classList.remove('hidden'));
        closeSettings.addEventListener('click', () => settingsModal.classList.add('hidden'));
        closeHelp.addEventListener('click', () => helpModal.classList.add('hidden'));
        exportBtn.addEventListener('click', exportToElectrum);
        encryptBtn.addEventListener('click', () => encryptModal.classList.remove('hidden'));
        closeEncrypt.addEventListener('click', () => encryptModal.classList.add('hidden'));
        confirmEncrypt.addEventListener('click', encryptResults);
        nodeConnection.addEventListener('change', toggleCustomNode);

        // Toggle custom node input
        function toggleCustomNode() {
            if (nodeConnection.value === 'custom') {
                customNodeSection.classList.remove('hidden');
            } else {
                customNodeSection.classList.add('hidden');
            }
        }

        // Start scan simulation
        function startScan() {
            startScanBtn.disabled = true;
            startScanBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Scanning...';
            progressSection.classList.remove('hidden');
            
            // Simulate scan progress
            let progress = 0;
            const scanInterval = setInterval(() => {
                progress += Math.random() * 10;
                if (progress > 100) progress = 100;
                
                progressBar.style.width = `${progress}%`;
                progressPercent.textContent = `${Math.floor(progress)}%`;
                
                // Update progress details
                if (progress < 30) {
                    updateProgressDetails('Scanning system directories for wallet files...');
                } else if (progress < 60) {
                    updateProgressDetails('Analyzing found files for wallet data...');
                } else if (progress < 90) {
                    updateProgressDetails('Connecting to Bitcoin node to check balances...');
                } else {
                    updateProgressDetails('Finalizing and encrypting results...');
                }
                
                if (progress === 100) {
                    clearInterval(scanInterval);
                    setTimeout(showResults, 1000);
                }
            }, 500);
        }

        function updateProgressDetails(text) {
            const now = new Date();
            const timeString = now.toLocaleTimeString();
            progressDetails.innerHTML = `
                <div class="flex items-center">
                    <i class="fas fa-circle-notch fa-spin text-blue-400 mr-2"></i>
                    <span>[${timeString}] ${text}</span>
                </div>
            ` + progressDetails.innerHTML;
        }

        function showResults() {
            startScanBtn.disabled = false;
            startScanBtn.innerHTML = '<i class="fas fa-play mr-2"></i> Start Scan';
            resultsSection.classList.remove('hidden');
            
            // Sample data - in a real app this would come from the scan
            const wallets = [
                {
                    type: 'wallet.dat',
                    location: 'C:\\Users\\YourUsername\\AppData\\Roaming\\Bitcoin\\wallets\\wallet.dat',
                    address: 'bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq',
                    balance: '0.125 BTC',
                    status: 'Verified'
                },
                {
                    type: 'Seed Phrase',
                    location: 'C:\\Users\\YourUsername\\Documents\\recovery.txt',
                    address: '1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa',
                    balance: '0.042 BTC',
                    status: 'Verified'
                },
                {
                    type: 'Private Key',
                    location: 'C:\\Users\\YourUsername\\Desktop\\old_wallet_backup.json',
                    address: '3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5',
                    balance: '0 BTC',
                    status: 'Empty'
                }
            ];
            
            // Populate results table
            resultsTableBody.innerHTML = '';
            wallets.forEach(wallet => {
                const row = document.createElement('tr');
                row.className = 'border-b border-gray-700 hover:bg-gray-700';
                
                let statusColor = 'text-green-400';
                if (wallet.balance === '0 BTC') statusColor = 'text-gray-400';
                
                row.innerHTML = `
                    <td class="px-6 py-4 font-medium whitespace-nowrap">
                        <div class="flex items-center">
                            ${getTypeIcon(wallet.type)}
                            <span class="ml-2">${wallet.type}</span>
                        </div>
                    </td>
                    <td class="px-6 py-4 max-w-xs truncate" title="${wallet.location}">${wallet.location}</td>
                    <td class="px-6 py-4 font-mono">${wallet.address}</td>
                    <td class="px-6 py-4 font-mono ${wallet.balance !== '0 BTC' ? 'text-yellow-400' : ''}">${wallet.balance}</td>
                    <td class="px-6 py-4 ${statusColor}">${wallet.status}</td>
                    <td class="px-6 py-4">
                        <button class="text-blue-400 hover:text-blue-300 mr-3" title="View Details">
                            <i class="fas fa-eye"></i>
                        </button>
                        <button class="text-green-400 hover:text-green-300" title="Backup">
                            <i class="fas fa-download"></i>
                        </button>
                    </td>
                `;
                
                resultsTableBody.appendChild(row);
            });
        }

        function getTypeIcon(type) {
            if (type.includes('wallet.dat')) return '<i class="fas fa-file-archive text-yellow-500"></i>';
            if (type.includes('Seed')) return '<i class="fas fa-seedling text-purple-500"></i>';
            if (type.includes('Private')) return '<i class="fas fa-key text-green-500"></i>';
            return '<i class="fas fa-file text-blue-500"></i>';
        }

        function exportToElectrum() {
            alert('Export to Electrum functionality would be implemented here. In a real application, this would generate a file compatible with Electrum wallet for easy import.');
        }

        function encryptResults() {
            const password = document.getElementById('encryptPassword').value;
            const confirmPassword = document.getElementById('confirmPassword').value;
            
            if (!password || password !== confirmPassword) {
                alert('Please enter matching passwords');
                return;
            }
            
            // In a real app, this would encrypt the results with the password
            alert('Results encrypted successfully with your password. All sensitive data is now securely stored.');
            encryptModal.classList.add('hidden');
            
            // Clear password fields
            document.getElementById('encryptPassword').value = '';
            document.getElementById('confirmPassword').value = '';
        }
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=libby055404/btc-dat" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>