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
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Account Settings | MALiPo</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        .settings-gradient {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        }
        .settings-card {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2极速 4px -1px rgba(0, 0, 0, 0.06);
        }
        .tab-active {
            border-bottom: 3px solid #6e00ff;
            color: #6e00ff;
        }
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }
        .switch input { 
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .slider {
            background-color: #6e00ff;
        }
        input:checked + .slider:before {
            transform: translateX(26px);
        }
    </style>
</head>
<body class="font-sans antialiased text-gray-900">
    <!-- Navigation -->
    <nav class="bg-white shadow-sm fixed w-full z-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="极速 justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <i data-feather="zap" class="h-8 w-8 text-indigo-600"></i>
                        <span class="ml-2 text-xl font-bold text-gray-900">MALiPo</span>
                    </div>
                </div>
                <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
                    <a href="dashboard.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Dashboard</a>
                    <a href="transactions.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Transactions</a>
                    <a href="settings.html" class="text-indigo-600 px-3 py-2 text-sm font-medium">Settings</a>
                </div>
                <div class="flex items-center">
                    <div class="relative ml-3">
                        <div>
                            <button type="button" class="flex items-center text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" id="user-menu-button">
                                <span class="sr-only">Open user menu</span>
                                <div class="h-8 w-8 rounded-full bg-indigo-100 flex items-center justify-center">
                                    <i data-feather="user" class="h-5 w-5 text-indigo-600"></i>
                                </div>
                                <span class="ml-2 text-sm font-medium text-gray-700">John Doe</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <div class="pt-20 pb-12 px-4 sm:px-6 lg:px-8 settings-gradient min-h-screen">
        <div class="max-w-4xl mx-auto">
            <!-- Header -->
            <div class="bg-white rounded-lg shadow-md p-6 mb-8 settings-card">
                <h1 class="text-2xl font-bold text-gray-900">Account Settings</h1>
                <p class="mt-2 text-gray-600">Manage your account preferences and security settings</p>
            </div>

            <!-- Tabs Navigation -->
            <div class="bg-white rounded-lg shadow-md mb-8 settings-card">
                <div class="border-b border-gray-200">
                    <nav class="-mb-px flex space-x-8">
                        <a href="#profile" class="tab-active py-4 px-1 border-b-2 font-medium text-sm whitespace-nowrap">
                            Profile
                        </a>
                        <a href="#security" class="py-4 px-1 border-b-2 border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 font-medium text-sm whitespace-nowrap">
                            Security
                        </a>
                        <a href="#notifications" class="py-4 px-1 border-b-2 border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 font-medium text-sm whitespace-nowrap">
                            Notifications
                        </a>
                        <a href="#privacy" class="py-4 px-1 border-b-2 border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 font-medium text-sm whitespace-nowrap">
                            Privacy
                        </a>
                    </nav>
                </div>
            </div>

            <!-- Profile Settings -->
            <div id="profile" class="settings-section">
                <div class="bg-white rounded-lg shadow-md p-6 mb-8 settings-card">
                    <h2 class="text-xl font-semibold text-gray-900 mb-6">Profile Information</h2>
                    
                    <form class="space-y-6">
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <div>
                                <label for="first-name" class="block text-sm font-medium text-gray-700 mb-1">First Name</label>
                                <input type="text" id="first-name" name="first-name" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" value="John">
                            </div>
                            <div>
                                <label for="last-name" class="block text-sm font-medium text-gray-700 mb-1">Last Name</label>
                                <input type="text" id="last-name" name="last-name" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:极速line-none focus:ring-2 focus:ring-indigo-500" value="Doe">
                            </div>
                        </div>
                        
                        <div>
                            <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label>
                            <input type="email" id="email" name="email" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" value="john.doe@example.com">
                        </div>
                        
                        <div>
                            <label for="phone" class="block text-sm font-medium text-gray-700 mb-1">Phone Number</label>
                            <input type="tel" id="phone" name="phone" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" value="+1 (555) 123-4567">
                        </div>
                        
                        <div>
                            <label for="country" class="block text-sm font-medium text-gray-700 mb-1">Country</label>
                            <select id="country" name="country" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                <option>United States</option>
                                <option>Canada</option>
                                <option>United Kingdom</option>
                                <option>Australia</option>
                                <option>Germany</option>
                            </select>
                        </div>
                        
                        <div class="flex justify-end">
                            <button type="button" class="px-6 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">
                                Save Changes
                            </button>
                        </div>
                    </form>
                </div>

                <!-- Verification Status -->
                <div class="bg-white rounded-lg shadow-md p-6 mb-8 settings-card">
                    <h2 class="text-xl font-semibold text-gray-900 mb-6">Identity Verification</h2>
                    
                    <div class="flex items-center justify-between mb-6">
                        <div>
                            <h3 class="text-lg font-medium text-gray-900">Verification Status</h3>
                            <p class="text-sm text-gray-600">Your account is fully verified</p>
                        </div>
                        <span class="px-3 py-1 text-xs font-semibold text-green-800 bg-green-100 rounded-full">Verified</span>
                    </div>
                    
                    <div class="bg-gray-50 p-4 rounded-lg">
                        <h4 class="font-medium text-gray-900 mb-2">Verified Documents</h4>
                        <ul class="text-sm text-gray-600 space-y-1">
                            <li>• Government ID: Driver's License (Verified on Dec 10, 2023)</li>
                            <li>• Facial Recognition: Completed on Dec 10, 2023</li>
                        </ul>
                    </div>
                    
                    <div class="mt-6">
                        <button type="button" class="px-4 py-2 border border-gray-300 text-gray-700 rounded-md hover:bg-gray-50">
                            Re-verify Identity
                        </button>
                    </div>
                </div>
            </div>

            <!-- Security Settings -->
            <div id="security" class="settings-section hidden">
                <div class="bg-white rounded-lg shadow-md p-6 mb-8 settings-card">
                    <h2 class="text-xl font-semibold text-gray-900 mb-6">Security Settings</h2>
                    
                    <div class="space-y-6">
                        <!-- Password Change -->
                        <div>
                            <h3 class="text-lg font-medium text-gray-900 mb-4">Change Password</h3>
                            <form class="space-y-4">
                                <div>
                                    <label for="current-password" class="block text-sm font-medium text-gray-700 mb-1">Current Password</label>
                                    <input type="password" id="current-password" name="current-password" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                </div>
                                <div>
                                    <label for="new-password" class="block text-sm font-medium text-gray-700 mb-1">New Password</label>
                                    <input type="password" id="new-password" name="new-password" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                </div>
                                <div>
                                    <label for="confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Confirm New Password</label>
                                    <input type="password" id="confirm-password" name="confirm-password" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                </div>
                                <div class="flex justify-end">
                                    <button type="button" class="px-6 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">
                                        Update Password
                                    </button>
                                </div>
                            </form>
                        </div>
                        
                        <!-- Two-Factor Authentication -->
                        <div class="pt-6 border-t border-gray-200">
                            <h3 class="text-lg font-medium text-gray-900 mb-4">Two-Factor Authentication</h3>
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-sm text-gray-600">Add an extra layer of security to your account</p>
                                </div>
                                <label class="switch">
                                    <input type="checkbox">
                                    <span class="slider"></span>
                                </label>
                            </div>
                        </div>
                        
                        <!-- Session Management -->
                        <div class="pt-6 border-t border-gray-200">
                            <h3 class="text-lg font-medium text-gray-900 mb-4">Active Sessions</h3>
                            <div class="space-y-4">
                                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Current Session</p>
                                        <p class="text-xs text-gray-600">Chrome on Windows • 127.0.0.1</p>
                                        <p class="text-xs text-gray-600">Logged in 2 hours ago</p>
                                    </div>
                                    <span class="px-2 py-1 text-xs font-semibold text-green-800 bg-green-100 rounded-full">Active</span>
                                </div>
                                
                                <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Mobile Session</p>
                                        <p class="text-xs text-gray-600">Safari on iPhone • 192.168.1.5</p>
                                        <p class="text-xs text-gray-600">Logged in 1 day ago</p>
                                    </div>
                                    <button class="px-3 py-1 text-xs text-red-600 border border-red-300 rounded-md hover:bg-red-50">
                                        Revoke
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Notification Settings -->
            <div id="notifications" class="settings-section hidden">
                <div class="bg-white rounded-lg shadow-md p-6 mb-8 settings-card">
                    <h2 class="text-xl font-semibold text-gray-900 mb-6">Notification Preferences</h2>
                    
                    <div class="space-y-6">
                        <!-- Email Notifications -->
                        <div>
                            <h3 class="text-lg font-medium text-gray-900 mb-4">Email Notifications</h3>
                            <div class="space-y-4">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Transaction alerts</p>
                                        <p class="text-xs text-gray-600">Get notified when you send or receive funds</p>
                                    </div>
                                    <label class="switch">
                                        <input type="checkbox" checked>
                                        <span class="slider"></span>
                                    </label>
                                </div>
                                
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Security alerts</p>
                                        <p class="text-xs text-gray-600">Important security notifications about your account</p>
                                    </div>
                                    <label class="switch">
                                        <input type="checkbox" checked>
                                        <span class="slider"></span>
                                    </label>
                                </div>
                                
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Marketing emails</p>
                                        <p class="text-xs text极速-600">Product updates and promotional offers</p>
                                    </div>
                                    <label class="switch">
                                        <input type="checkbox">
                                        <span class="slider"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Push Notifications -->
                        <div class="pt-6 border-t border-gray-200">
                            <h3 class="text-lg font-medium text-gray-900 mb-4">Push Notifications</h3>
                            <div class="space-y-4">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Instant transaction alerts</p>
                                        <p class="text-xs text-gray-600">Receive immediate notifications for transactions</p>
                                    </div>
                                    <label class="switch">
                                        <input type="checkbox" checked>
                                        <span class="slider"></span>
                                    </label>
                                </div>
                                
                                <div class="flex items-center justify-between">
                                    <极速>
                                        <p class="text-sm font-medium text-gray-900">Price alerts</p>
                                        <p class="text-xs text-gray-600">Get notified when prices reach your targets</p>
                                    </div>
                                    <label class="switch">
                                        <input type="checkbox">
                                        <span class="slider"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        
                        <div class="pt-6 border-t border-gray-200 flex justify-end">
                            <button type="button" class="px-6 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">
                                Save Preferences
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Privacy Settings -->
            <div id="privacy" class="settings-section hidden">
                <div class="bg-white rounded-lg shadow-md p-6 mb-8 settings-card">
                    <h2 class="text-xl font-semibold text-gray-900 mb-6">Privacy Settings</h2>
                    
                    <div class="space-y-6">
                        <!-- Data Privacy -->
                        <div>
                            <h3 class="text-lg font-medium text-gray-900 mb-4">Data Privacy</h3>
                            <div class="space-y-4">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Data sharing for analytics</p>
                                        <p class="text-xs text-gray-600">Help us improve by sharing anonymous usage data</p>
                                    </div>
                                    <label class="switch">
                                        <input type="checkbox">
                                        <span class="slider"></span>
                                    </label>
                                </div>
                                
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Personalized advertising</p>
                                        <p class="text-xs text-gray-600">See relevant ads based on your activity</p>
                                    </div>
                                    <label class="switch">
                                        <input type="checkbox">
                                        <span class="slider"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Account Privacy -->
                        <div class="pt-6 border-t border-gray-200">
                            <h3 class="text-lg font-medium text-gray-900 mb-4">Account Privacy</h3>
                            <div class="space-y-4">
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Public profile</p>
                                        <p class="text-xs text-gray-600">Allow others to find you by email</p>
                                    </div>
                                    <label class="switch">
                                        <input type="checkbox">
                                        <span class="slider"></span>
                                    </label>
                                </div>
                                
                                <div class="flex items-center justify-between">
                                    <div>
                                        <p class="text-sm font-medium text-gray-900">Transaction history visibility</p>
                                        <p class="text-xs text-gray-600">Who can see your transaction history</p>
                                    </div>
                                    <select class="px-3 py-1 border border-gray-300 rounded-md text-sm">
                                        <option>Only Me</option>
                                        <option>Contacts</option>
                                        <option>Everyone</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Data Management -->
                        <div class="pt-6 border-t border-gray-200">
                            <h3 class="text-lg font-medium text-gray-900 mb-4">Data Management</h3>
                            <div class="space-y-4">
                                <button type="button" class="w-full text-left p-3 bg-gray-50 rounded-lg hover:bg-gray-100">
                                    <p class="text-sm font-medium text-gray-900">Download your data</p>
                                    <p class="text-xs text-gray-600">Get a copy of your MALiPo data</p>
                                </button>
                                
                                <button type="button" class="w-full text-left p-3 bg-gray-50 rounded-lg hover:bg-gray-100">
                                    <p class="text-sm font-medium text-red-600">Delete account</p>
                                    <p class="text-xs text-gray-600">Permanently delete your account and data</极速>
                                </button>
                            </div>
                        </div>
                        
                        <div class="pt-6 border-t border-gray-200 flex justify-end">
                            <button type="button" class="px-6 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700">
                                Save Privacy Settings
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-50">
        <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
            <div class="text-center">
                <p class="text-sm text-gray-600">
                    &copy; 2023 MALiPo. All rights reserved. 
                    <a href="#" class="text-indigo-600 hover:text-indigo-500">Privacy Policy</a> • 
                    <a href="#" class="text-indigo-600 hover:text-indigo-500">Terms of Service</a>
                </极速>
            </div>
        </div>
    </footer>

    <script>
        feather.replace();
        
        // Tab functionality
        document.querySelectorAll('nav a').forEach(tab => {
            tab.addEventListener('click', function(e) {
                e.preventDefault();
                
                // Remove active class from all tabs
                document.querySelectorAll('nav a').forEach(t => {
                    t.classList.remove('tab-active');
                    t.classList.add('border-transparent', 'text-gray-500');
                });
                
                // Add active class to clicked tab
                this.classList.add('tab-active');
                this.classList.remove('border-transparent', 'text-gray-500');
                
                // Hide all sections
                document.querySelectorAll('.settings-section').forEach(section => {
                    section.classList.add('hidden');
                });
                
                // Show selected section
                const sectionId = this.getAttribute('href').substring(1);
                document.getElementById(sectionId).classList.remove('hidden');
            });
        });
        
        // Initialize first tab as active
        document.querySelector('nav a.tab-active').click();
    </script>
</body>
</html>