File size: 26,315 Bytes
0406816
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Quantum Analytics - TradeFlow Pro Infinity</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        'quantum': {
                            50: '#f0f9ff',
                            100: '#e0f2fe',
                            200: '#bae6fd',
                            300: '#7dd3fc',
                            400: '#38bdf8',
                            500: '#0ea5e9',
                            600: '#0284c7',
                            700: '#0369a1',
                            800: '#075985',
                            900: '#0c4a6e',
                            950: '#082f49'
                        },
                        'neon': {
                            50: '#f0fdf4',
                            100: '#dcfce7',
                            200: '#bbf7d0',
                            300: '#86efac',
                            400: '#4ade80',
                            500: '#22c55e',
                            600: '#16a34a',
                            700: '#15803d',
                            800: '#166534',
                            900: '#14532d',
                            950: '#052e16'
                        }
                    },
                    animation: {
                        'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
                        'float': 'float 6s ease-in-out infinite',
                        'glow': 'glow 2s ease-in-out infinite alternate',
                    },
                    keyframes: {
                        float: {
                            '0%, 100%': { transform: 'translateY(0px)' },
                            '50%': { transform: 'translateY(-20px)' },
                        },
                        glow: {
                            'from': { boxShadow: '0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 30px #0ea5e9' },
                            'to': { boxShadow: '0 0 20px #0ea5e9, 0 0 30px #0ea5e9, 0 0 40px #0ea5e9' },
                        }
                    }
                }
            }
        }
    </script>
    <style>
        .quantum-gradient {
            background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
        }
        .glass-effect {
            backdrop-filter: blur(10px);
            background: rgba(8, 47, 73, 0.3);
            border: 1px solid rgba(14, 165, 233, 0.2);
        }
        .quantum-card {
            background: linear-gradient(145deg, rgba(8, 47, 73, 0.6), rgba(14, 165, 233, 0.1));
            border: 1px solid rgba(14, 165, 233, 0.3);
            box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
        }
        .neon-glow {
            box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e, 0 0 15px #22c55e;
        }
        .holographic-text {
            background: linear-gradient(45deg, #0ea5e9, #22c55e, #0ea5e9);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shimmer 3s ease-in-out infinite;
        }
        @keyframes shimmer {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        .metric-card {
            transition: all 0.3s ease;
        }
        .metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2);
        }
    </style>
</head>
<body class="dark bg-gray-950 text-white min-h-screen overflow-x-hidden">
    <!-- Navigation -->
    <nav class="fixed top-0 left-0 right-0 z-50 glass-effect border-b border-quantum-700/30">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex items-center justify-between h-16">
                <div class="flex items-center space-x-4">
                    <a href="index.html" class="text-gray-300 hover:text-white transition-colors">
                        <i data-feather="arrow-left" class="w-5 h-5"></i>
                    </a>
                    <h1 class="text-xl font-bold holographic-text">Quantum Analytics</h1>
                </div>
                <div class="flex items-center space-x-4">
                    <select class="glass-effect rounded-lg px-3 py-1 text-sm bg-transparent">
                        <option>Last 7 Days</option>
                        <option>Last 30 Days</option>
                        <option>Last 90 Days</option>
                        <option>Custom Range</option>
                    </select>
                    <button class="quantum-gradient px-4 py-2 rounded-lg text-sm hover:opacity-80 transition-opacity">
                        Export Report
                    </button>
                </div>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <main class="pt-16 pb-20 md:pb-8">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
            <!-- Key Metrics -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
                <div class="metric-card quantum-card rounded-xl p-6">
                    <div class="flex items-center justify-between mb-2">
                        <p class="text-sm text-gray-400">Total Return</p>
                        <i data-feather="trending-up" class="w-5 h-5 text-neon-500"></i>
                    </div>
                    <p class="text-3xl font-bold text-neon-500">+24.7%</p>
                    <p class="text-xs text-gray-400 mt-1">+$123,450</p>
                </div>

                <div class="metric-card quantum-card rounded-xl p-6">
                    <div class="flex items-center justify-between mb-2">
                        <p class="text-sm text-gray-400">Sharpe Ratio</p>
                        <i data-feather="activity" class="w-5 h-5 text-quantum-400"></i>
                    </div>
                    <p class="text-3xl font-bold text-quantum-400">1.84</p>
                    <p class="text-xs text-gray-400 mt-1">Risk-adjusted return</p>
                </div>

                <div class="metric-card quantum-card rounded-xl p-6">
                    <div class="flex items-center justify-between mb-2">
                        <p class="text-sm text-gray-400">Max Drawdown</p>
                        <i data-feather="arrow-down" class="w-5 h-5 text-red-500"></i>
                    </div>
                    <p class="text-3xl font-bold text-red-500">-8.2%</p>
                    <p class="text-xs text-gray-400 mt-1">Peak to trough</p>
                </div>

                <div class="metric-card quantum-card rounded-xl p-6">
                    <div class="flex items-center justify-between mb-2">
                        <p class="text-sm text-gray-400">Win Rate</p>
                        <i data-feather="target" class="w-5 h-5 text-yellow-500"></i>
                    </div>
                    <p class="text-3xl font-bold text-yellow-500">68.4%</p>
                    <p class="text-xs text-gray-400 mt-1">342 wins / 158 losses</p>
                </div>
            </div>

            <!-- Charts Grid -->
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
                <!-- Equity Curve -->
                <div class="quantum-card rounded-xl p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-lg font-semibold">Equity Curve</h3>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 bg-quantum-600/30 rounded text-sm hover:bg-quantum-600/50 transition-colors">Balance</button>
                            <button class="px-3 py-1 bg-gray-800 rounded text-sm hover:bg-gray-700 transition-colors">Equity</button>
                        </div>
                    </div>
                    <div class="h-64">
                        <canvas id="equityChart"></canvas>
                    </div>
                </div>

                <!-- Monthly Returns -->
                <div class="quantum-card rounded-xl p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-lg font-semibold">Monthly Returns</h3>
                        <select class="glass-effect rounded px-3 py-1 text-sm bg-transparent">
                            <option>2024</option>
                            <option>2023</option>
                        </select>
                    </div>
                    <div class="h-64">
                        <canvas id="returnsChart"></canvas>
                    </div>
                </div>
            </div>

            <!-- Performance Analysis -->
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
                <!-- Asset Performance -->
                <div class="quantum-card rounded-xl p-6">
                    <h3 class="text-lg font-semibold mb-4">Asset Performance</h3>
                    <div class="space-y-3">
                        <div class="flex items-center justify-between">
                            <div class="flex items-center space-x-2">
                                <div class="w-3 h-3 bg-neon-500 rounded-full"></div>
                                <span class="text-sm">EUR/USD</span>
                            </div>
                            <span class="text-sm text-neon-500">+12.4%</span>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center space-x-2">
                                <div class="w-3 h-3 bg-quantum-500 rounded-full"></div>
                                <span class="text-sm">GBP/JPY</span>
                            </div>
                            <span class="text-sm text-neon-500">+8.7%</span>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center space-x-2">
                                <div class="w-3 h-3 bg-yellow-500 rounded-full"></div>
                                <span class="text-sm">GOLD</span>
                            </div>
                            <span class="text-sm text-neon-500">+5.2%</span>
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center space-x-2">
                                <div class="w-3 h-3 bg-purple-500 rounded-full"></div>
                                <span class="text-sm">BTC/USD</span>
                            </div>
                            <span class="text-sm text-red-500">-2.1%</span>
                        </div>
                    </div>
                </div>

                <!-- Trading Hours -->
                <div class="quantum-card rounded-xl p-6">
                    <h3 class="text-lg font-semibold mb-4">Best Trading Hours</h3>
                    <div class="h-48">
                        <canvas id="hoursChart"></canvas>
                    </div>
                </div>

                <!-- Risk Metrics -->
                <div class="quantum-card rounded-xl p-6">
                    <h3 class="text-lg font-semibold mb-4">Risk Metrics</h3>
                    <div class="space-y-4">
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span class="text-gray-400">Value at Risk (95%)</span>
                                <span class="text-white">-$5,240</span>
                            </div>
                            <div class="w-full bg-gray-700 rounded-full h-2">
                                <div class="bg-gradient-to-r from-green-500 to-yellow-500 h-2 rounded-full" style="width: 35%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span class="text-gray-400">Expected Shortfall</span>
                                <span class="text-white">-$8,910</span>
                            </div>
                            <div class="w-full bg-gray-700 rounded-full h-2">
                                <div class="bg-gradient-to-r from-yellow-500 to-red-500 h-2 rounded-full" style="width: 60%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span class="text-gray-400">Beta (vs Market)</span>
                                <span class="text-white">0.84</span>
                            </div>
                            <div class="w-full bg-gray-700 rounded-full h-2">
                                <div class="bg-quantum-500 h-2 rounded-full" style="width: 84%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span class="text-gray-400">Correlation</span>
                                <span class="text-white">0.72</span>
                            </div>
                            <div class="w-full bg-gray-700 rounded-full h-2">
                                <div class="bg-purple-500 h-2 rounded-full" style="width: 72%"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Detailed Statistics -->
            <div class="quantum-card rounded-xl p-6">
                <h3 class="text-lg font-semibold mb-4">Detailed Statistics</h3>
                <div class="overflow-x-auto">
                    <table class="w-full text-sm">
                        <thead>
                            <tr class="text-left text-gray-400 border-b border-gray-800">
                                <th class="pb-3">Metric</th>
                                <th class="pb-3">Value</th>
                                <th class="pb-3">Benchmark</th>
                                <th class="pb-3">Rating</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="border-b border-gray-800">
                                <td class="py-3">Profit Factor</td>
                                <td class="py-3 text-neon-500">1.84</td>
                                <td class="py-3 text-gray-400">> 1.5</td>
                                <td class="py-3"><span class="px-2 py-1 bg-neon-500/20 text-neon-500 rounded text-xs">Excellent</span></td>
                            </tr>
                            <tr class="border-b border-gray-800">
                                <td class="py-3">Recovery Factor</td>
                                <td class="py-3 text-neon-500">3.2</td>
                                <td class="py-3 text-gray-400">> 2.0</td>
                                <td class="py-3"><span class="px-2 py-1 bg-neon-500/20 text-neon-500 rounded text-xs">Good</span></td>
                            </tr>
                            <tr class="border-b border-gray-800">
                                <td class="py-3">Expected Value</td>
                                <td class="py-3 text-neon-500">$247</td>
                                <td class="py-3 text-gray-400">> $100</td>
                                <td class="py-3"><span class="px-2 py-1 bg-neon-500/20 text-neon-500 rounded text-xs">Excellent</span></td>
                            </tr>
                            <tr class="border-b border-gray-800">
                                <td class="py-3">Ulcer Index</td>
                                <td class="py-3 text-quantum-400">4.2</td>
                                <td class="py-3 text-gray-400">< 5.0</td>
                                <td class="py-3"><span class="px-2 py-1 bg-quantum-500/20 text-quantum-400 rounded text-xs">Good</span></td>
                            </tr>
                            <tr class="border-b border-gray-800">
                                <td class="py-3">Calmar Ratio</td>
                                <td class="py-3 text-yellow-500">0.68</td>
                                <td class="py-3 text-gray-400">> 0.5</td>
                                <td class="py-3"><span class="px-2 py-1 bg-yellow-500/20 text-yellow-500 rounded text-xs">Average</span></td>
                            </tr>
                            <tr>
                                <td class="py-3">K-Ratio</td>
                                <td class="py-3 text-quantum-400">1.24</td>
                                <td class="py-3 text-gray-400">> 1.0</td>
                                <td class="py-3"><span class="px-2 py-1 bg-quantum-500/20 text-quantum-400 rounded text-xs">Good</span></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </main>

    <!-- Bottom Navigation for Mobile -->
    <nav class="fixed bottom-0 left-0 right-0 z-50 glass-effect border-t border-quantum-700/30 md:hidden">
        <div class="grid grid-cols-5 py-2">
            <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
                <i data-feather="home" class="w-5 h-5"></i>
                <span class="text-xs">Home</span>
            </button>
            <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
                <i data-feather="bar-chart-2" class="w-5 h-5"></i>
                <span class="text-xs">Trade</span>
            </button>
            <button class="flex flex-col items-center justify-center space-y-1 text-quantum-400">
                <i data-feather="activity" class="w-5 h-5"></i>
                <span class="text-xs">Analytics</span>
            </button>
            <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
                <i data-feather="pie-chart" class="w-5 h-5"></i>
                <span class="text-xs">Portfolio</span>
            </button>
            <button class="flex flex-col items-center justify-center space-y-1 text-gray-400">
                <i data-feather="cpu" class="w-5 h-5"></i>
                <span class="text-xs">AI</span>
            </button>
        </div>
    </nav>

    <script>
        // Initialize Feather Icons
        feather.replace();

        // Equity Curve Chart
        const equityCtx = document.getElementById('equityChart').getContext('2d');
        const equityGradient = equityCtx.createLinearGradient(0, 0, 0, 300);
        equityGradient.addColorStop(0, 'rgba(34, 197, 94, 0.3)');
        equityGradient.addColorStop(1, 'rgba(34, 197, 94, 0)');

        new Chart(equityCtx, {
            type: 'line',
            data: {
                labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'],
                datasets: [{
                    label: 'Equity',
                    data: [50000, 52000, 48500, 53800, 56200, 54800, 58900, 61200, 59400, 62350],
                    borderColor: '#22c55e',
                    backgroundColor: equityGradient,
                    borderWidth: 3,
                    fill: true,
                    tension: 0.4,
                    pointRadius: 0,
                    pointHoverRadius: 6
                }, {
                    label: 'Balance',
                    data: [50000, 51500, 49200, 52800, 55100, 53900, 57400, 59800, 58300, 61250],
                    borderColor: '#0ea5e9',
                    borderWidth: 2,
                    fill: false,
                    tension: 0.4,
                    pointRadius: 0,
                    pointHoverRadius: 6,
                    borderDash: [5, 5]
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        display: false
                    },
                    tooltip: {
                        backgroundColor: 'rgba(8, 47, 73, 0.9)',
                        titleColor: '#fff',
                        bodyColor: '#fff',
                        borderColor: '#0ea5e9',
                        borderWidth: 1,
                        cornerRadius: 8
                    }
                },
                scales: {
                    x: {
                        grid: { color: 'rgba(255, 255, 255, 0.1)', drawBorder: false },
                        ticks: { color: '#9ca3af' }
                    },
                    y: {
                        grid: { color: 'rgba(255, 255, 255, 0.1)', drawBorder: false },
                        ticks: { 
                            color: '#9ca3af',
                            callback: function(value) {
                                return '$' + (value / 1000).toFixed(0) + 'k';
                            }
                        }
                    }
                }
            }
        });

        // Monthly Returns Chart
        const returnsCtx = document.getElementById('returnsChart').getContext('2d');
        new Chart(returnsCtx, {
            type: 'bar',
            data: {
                labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'],
                datasets: [{
                    label: 'Monthly Return %',
                    data: [3.0, -6.7, 10.9, 4.5, -2.5, 7.5, 3.9, -2.9, 4.8],
                    backgroundColor: [
                        '#22c55e', '#ef4444', '#22c55e', '#22c55e', '#ef4444',
                        '#22c55e', '#22c55e', '#ef4444', '#22c55e'
                    ],
                    borderWidth: 0
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: { display: false },
                    tooltip: {
                        backgroundColor: 'rgba(8, 47, 73, 0.9)',
                        titleColor: '#fff',
                        bodyColor: '#fff',
                        borderColor: '#0ea5e9',
                        borderWidth: 1,
                        cornerRadius: 8,
                        callbacks: {
                            label: function(context) {
                                return context.parsed.y + '%';
                            }
                        }
                    }
                },
                scales: {
                    x: {
                        grid: { display: false },
                        ticks: { color: '#9ca3af' }
                    },
                    y: {
                        grid: { color: 'rgba(255, 255, 255, 0.1)', drawBorder: false },
                        ticks: { 
                            color: '#9ca3af',
                            callback: function(value) {
                                return value + '%';
                            }
                        }
                    }
                }
            }
        });

        // Trading Hours Chart
        const hoursCtx = document.getElementById('hoursChart').getContext('2d');
        const hoursGradient = hoursCtx.createLinearGradient(0, 0, 0, 200);
        hoursGradient.addColorStop(0, 'rgba(14, 165, 233, 0.6)');
        hoursGradient.addColorStop(1, 'rgba(14, 165, 233, 0.1)');

        new Chart(hoursCtx, {
            type: 'radar',
            data: {
                labels: ['Tokyo', 'London', 'New York', 'Sydney', 'Frankfurt', 'Hong Kong'],
                datasets: [{
                    label: 'Win Rate %',
                    data: [65, 78, 82, 58, 71, 63],
                    backgroundColor: hoursGradient,
                    borderColor: '#0ea5e9',
                    borderWidth: 2,
                    pointBackgroundColor: '#0ea5e9',
                    pointBorderColor: '#fff',
                    pointHoverBackgroundColor: '#fff',
                    pointHoverBorderColor: '#0ea5e9'
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: { display: false },
                    tooltip: {
                        backgroundColor: 'rgba(8, 47, 73, 0.9)',
                        titleColor: '#fff',
                        bodyColor: '#fff',
                        borderColor: '#0ea5e9',
                        borderWidth: 1,
                        cornerRadius: 8
                    }
                },
                scales: {
                    r: {
                        grid: { color: 'rgba(255, 255, 255, 0.1)' },
                        pointLabels: { color: '#9ca3af' },
                        ticks: { 
                            color: '#9ca3af',
                            backdropColor: 'transparent'
                        },
                        angleLines: { color: 'rgba(255, 255, 255, 0.1)' }
                    }
                }
            }
        });

        // Animate elements
        anime({
            targets: '.metric-card',
            translateY: [30, 0],
            opacity: [0, 1],
            delay: anime.stagger(100),
            duration: 800,
            easing: 'easeOutQuad'
        });
    </script>
</body>
</html>