File size: 63,193 Bytes
d6d3f49
 
287f7a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d6d3f49
 
 
 
 
 
 
 
 
 
 
 
 
287f7a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d6d3f49
4c6ea95
d6d3f49
 
287f7a2
 
 
 
d6d3f49
4c6ea95
 
 
d6d3f49
 
 
 
 
4c6ea95
d6d3f49
 
4c6ea95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d6d3f49
 
 
 
4c6ea95
d6d3f49
4c6ea95
 
d6d3f49
4c6ea95
 
d6d3f49
4c6ea95
 
 
d6d3f49
 
 
 
4c6ea95
 
 
 
 
 
 
d6d3f49
4c6ea95
 
 
 
 
 
 
d6d3f49
 
 
4c6ea95
d6d3f49
4c6ea95
 
d6d3f49
4c6ea95
 
 
d6d3f49
 
4c6ea95
 
 
 
 
d6d3f49
 
 
4c6ea95
 
 
d6d3f49
4c6ea95
d6d3f49
4c6ea95
d6d3f49
 
 
 
 
 
 
 
 
 
287f7a2
d6d3f49
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
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046


<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Spectre Analytics - Détection de Fraude Financière</title>
    <link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🔍</text></svg>">
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: {
                            50: '#f0fdfa',
                            100: '#ccfbf1',
                            200: '#99f6e4',
                            300: '#5eead4',
                            400: '#2dd4bf',
                            500: '#14b8a6',
                            600: '#0d9488',
                            700: '#0f766e',
                            800: '#115e59',
                            900: '#134e4a',
                            950: '#042f2e',
                        },
                        secondary: {
                            50: '#f8fafc',
                            100: '#f1f5f9',
                            200: '#e2e8f0',
                            300: '#cbd5e1',
                            400: '#94a3b8',
                            500: '#64748b',
                            600: '#475569',
                            700: '#334155',
                            800: '#1e293b',
                            900: '#0f172a',
                            950: '#020617',
                        },
                        danger: {
                            50: '#fef2f2',
                            100: '#fee2e2',
                            200: '#fecaca',
                            300: '#fca5a5',
                            400: '#f87171',
                            500: '#ef4444',
                            600: '#dc2626',
                            700: '#b91c1c',
                            800: '#991b1b',
                            900: '#7f1d1d',
                        },
                        warning: {
                            50: '#fffbeb',
                            100: '#fef3c7',
                            200: '#fde68a',
                            300: '#fcd34d',
                            400: '#fbbf24',
                            500: '#f59e0b',
                            600: '#d97706',
                            700: '#b45309',
                            800: '#92400e',
                            900: '#78350f',
                        },
                        success: {
                            50: '#f0fdf4',
                            100: '#dcfce7',
                            200: '#bbf7d0',
                            300: '#86efac',
                            400: '#4ade80',
                            500: '#22c55e',
                            600: '#16a34a',
                            700: '#15803d',
                            800: '#166534',
                            900: '#14532d',
                        }
                    },
                    fontFamily: {
                        sans: ['Inter', 'sans-serif'],
                        mono: ['JetBrains Mono', 'monospace'],
                    }
                }
            }
        }
    </script>
    <style>
        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: #1e293b;
        }
        ::-webkit-scrollbar-thumb {
            background: #475569;
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #64748b;
        }
        
        /* Animations */
        @keyframes pulse-ring {
            0% { transform: scale(0.8); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }
        @keyframes slideIn {
            from { transform: translateX(-10px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes scan {
            0%, 100% { top: 0; }
            50% { top: calc(100% - 2px); }
        }
        
        .animate-pulse-ring {
            animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        .animate-slide-in {
            animation: slideIn 0.3s ease-out;
        }
        .animate-fade-in {
            animation: fadeIn 0.4s ease-out;
        }
        .scan-line {
            animation: scan 2s linear infinite;
        }
        
        /* Glass morphism */
        .glass {
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(51, 65, 85, 0.5);
        }
        
        /* Graph styles */
        .node-link {
            stroke: #2dd4bf;
            stroke-opacity: 0.4;
            fill: none;
        }
        .node-circle {
            fill: #0d9488;
            stroke: #14b8a6;
            stroke-width: 2;
        }
        .node-circle:hover {
            fill: #2dd4bf;
        }
        
        /* Pattern backgrounds */
        .pattern-grid {
            background-image: 
                linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
        }
        
        /* Tooltip */
        .tooltip {
            position: relative;
        }
        .tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            padding: 6px 12px;
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            z-index: 1000;
        }
        .tooltip:hover::after {
            opacity: 1;
        }
        
        /* Status indicators */
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }
        .status-dot.active {
            background: #22c55e;
            box-shadow: 0 0 8px #22c55e;
        }
        .status-dot.warning {
            background: #f59e0b;
            box-shadow: 0 0 8px #f59e0b;
        }
        .status-dot.danger {
            background: #ef4444;
            box-shadow: 0 0 8px #ef4444;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        /* Scrollable containers */
        .scrollable-y {
            overflow-y: auto;
            scrollbar-width: thin;
        }
        .scrollable-x {
            overflow-x: auto;
        }
    </style>
</head>
<body class="bg-secondary-950 text-gray-100 font-sans antialiased">
    <!-- Background Pattern -->
    <div class="fixed inset-0 pattern-grid pointer-events-none z-0"></div>
    
    <div class="relative z-10 flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <aside class="w-64 glass flex flex-col border-r border-secondary-800">
            <!-- Logo -->
            <div class="p-4 border-b border-secondary-800">
                <div class="flex items-center gap-3">
                    <div class="w-10 h-10 bg-gradient-to-br from-primary-500 to-primary-700 rounded-lg flex items-center justify-center">
                        <i data-feather="hexagon" class="text-white w-6 h-6"></i>
                    </div>
                    <div>
                        <h1 class="font-bold text-lg text-white">SPECTRE</h1>
                        <p class="text-xs text-gray-500">Analytics Platform</p>
                    </div>
                </div>
            </div>
            
            <!-- Navigation -->
            <nav class="flex-1 p-4 space-y-1">
                <a href="#" class="flex items-center gap-3 px-3 py-2.5 bg-primary-500/10 text-primary-400 rounded-lg border border-primary-500/20">
                    <i data-feather="activity" class="w-5 h-5"></i>
                    <span class="font-medium">Dashboard</span>
                </a>
                <a href="#" class="flex items-center gap-3 px-3 py-2.5 text-gray-400 hover:bg-secondary-800 hover:text-white rounded-lg transition-colors">
                    <i data-feather="search" class="w-5 h-5"></i>
                    <span>Investigations</span>
                </a>
                <a href="#" class="flex items-center gap-3 px-3 py-2.5 text-gray-400 hover:bg-secondary-800 hover:text-white rounded-lg transition-colors">
                    <i data-feather="git-branch" class="w-5 h-5"></i>
                    <span>Graph Analysis</span>
                    <span class="ml-auto text-xs bg-warning-500/20 text-warning-400 px-2 py-0.5 rounded-full">New</span>
                </a>
                <a href="#" class="flex items-center gap-3 px-3 py-2.5 text-gray-400 hover:bg-secondary-800 hover:text-white rounded-lg transition-colors">
                    <i data-feather="alert-triangle" class="w-5 h-5"></i>
                    <span>Alerts</span>
                    <span class="ml-auto text-xs bg-danger-500/20 text-danger-400 px-2 py-0.5 rounded-full">12</span>
                </a>
                <a href="#" class="flex items-center gap-3 px-3 py-2.5 text-gray-400 hover:bg-secondary-800 hover:text-white rounded-lg transition-colors">
                    <i data-feather="clock" class="w-5 h-5"></i>
                    <span>Time Series</span>
                </a>
                <a href="#" class="flex items-center gap-3 px-3 py-2.5 text-gray-400 hover:bg-secondary-800 hover:text-white rounded-lg transition-colors">
                    <i data-feather="shield" class="w-5 h-5"></i>
                    <span>Entity Database</span>
                </a>
                <a href="#" class="flex items-center gap-3 px-3 py-2.5 text-gray-400 hover:bg-secondary-800 hover:text-white rounded-lg transition-colors">
                    <i data-feather="file-text" class="w-5 h-5"></i>
                    <span>Reports</span>
                </a>
                <a href="#" class="flex items-center gap-3 px-3 py-2.5 text-gray-400 hover:bg-secondary-800 hover:text-white rounded-lg transition-colors">
                    <i data-feather="settings" class="w-5 h-5"></i>
                    <span>Settings</span>
                </a>
            </nav>
            
            <!-- User Profile -->
            <div class="p-4 border-t border-secondary-800">
                <div class="flex items-center gap-3">
                    <div class="w-10 h-10 bg-secondary-700 rounded-full flex items-center justify-center">
                        <span class="font-semibold text-sm">JD</span>
                    </div>
                    <div class="flex-1 min-w-0">
                        <p class="font-medium text-sm truncate">Jean Dupont</p>
                        <p class="text-xs text-gray-500">Senior Analyst</p>
                    </div>
                    <button class="text-gray-400 hover:text-white transition-colors">
                        <i data-feather="log-out" class="w-4 h-4"></i>
                    </button>
                </div>
            </div>
        </aside>
        
        <!-- Main Content -->
        <main class="flex-1 flex flex-col overflow-hidden">
            <!-- Header -->
            <header class="h-16 glass border-b border-secondary-800 flex items-center justify-between px-6">
                <div class="flex items-center gap-4">
                    <div class="relative">
                        <i data-feather="search" class="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"></i>
                        <input type="text" placeholder="Search entities, transactions, alerts..." 
                            class="w-96 pl-10 pr-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-sm focus:outline-none focus:border-primary-500 transition-colors">
                    </div>
                    <div class="flex items-center gap-2 text-sm text-gray-400">
                        <span>|</span>
                        <span class="flex items-center gap-2">
                            <span class="status-dot active"></span>
                            System Online
                        </span>
                    </div>
                </div>
                    <div class="flex items-center gap-4">
                        <div class="flex items-center gap-2 px-3 py-1.5 bg-secondary-800 rounded-lg border border-secondary-700">
                            <span class="relative flex h-2 w-2">
                              <span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"></span>
                              <span class="relative inline-flex rounded-full h-2 w-2 bg-green-500"></span>
                            </span>
                            <span class="text-xs text-gray-400 font-mono">API: ONLINE</span>
                        </div>
                        <button class="relative p-2 text-gray-400 hover:text-white transition-colors">
                            <i data-feather="bell" class="w-5 h-5"></i>
                            <span class="absolute top-1 right-1 w-2 h-2 bg-danger-500 rounded-full"></span>
                        </button>
<button class="p-2 text-gray-400 hover:text-white transition-colors">
                        <i data-feather="maximize-2" class="w-5 h-5"></i>
                    </button>
                    <button class="px-4 py-2 bg-primary-500 hover:bg-primary-600 text-white text-sm font-medium rounded-lg transition-colors flex items-center gap-2">
                        <i data-feather="plus" class="w-4 h-4"></i>
                        New Investigation
                    </button>
                </div>
            </header>
            
            <!-- Dashboard Content -->
            <div class="flex-1 overflow-auto p-6 space-y-6">
                <!-- Stats Cards -->
                <div class="grid grid-cols-4 gap-4">
                    <div class="glass rounded-xl p-4 border border-secondary-800">
                        <div class="flex items-center justify-between mb-3">
                            <div class="w-10 h-10 bg-primary-500/20 rounded-lg flex items-center justify-center">
                                <i data-feather="search" class="text-primary-400 w-5 h-5"></i>
                            </div>
                            <span class="text-xs text-success-400 flex items-center gap-1">
                                <i data-feather="arrow-up" class="w-3 h-3"></i>
                                23%
                            </span>
                        </div>
                        <h3 class="text-2xl font-bold text-white">1,247</h3>
                        <p class="text-sm text-gray-400">Active Investigations</p>
                    </div>
                    
                    <div class="glass rounded-xl p-4 border border-secondary-800">
                        <div class="flex items-center justify-between mb-3">
                            <div class="w-10 h-10 bg-danger-500/20 rounded-lg flex items-center justify-center">
                                <i data-feather="alert-triangle" class="text-danger-400 w-5 h-5"></i>
                            </div>
                            <span class="text-xs text-danger-400 flex items-center gap-1">
                                <i data-feather="arrow-up" class="w-3 h-3"></i>
                                15%
                            </span>
                        </div>
                        <h3 class="text-2xl font-bold text-white">89</h3>
                        <p class="text-sm text-gray-400">High-Risk Alerts</p>
                    </div>
                    
                    <div class="glass rounded-xl p-4 border border-secondary-800">
                        <div class="flex items-center justify-between mb-3">
                            <div class="w-10 h-10 bg-warning-500/20 rounded-lg flex items-center justify-center">
                                <i data-feather="users" class="text-warning-400 w-5 h-5"></i>
                            </div>
                            <span class="text-xs text-warning-400 flex items-center gap-1">
                                <i data-feather="arrow-down" class="w-3 h-3"></i>
                                5%
                            </span>
                        </div>
                        <h3 class="text-2xl font-bold text-white">3,892</h3>
                        <p class="text-sm text-gray-400">Tracked Entities</p>
                    </div>
                    
                    <div class="glass rounded-xl p-4 border border-secondary-800">
                        <div class="flex items-center justify-between mb-3">
                            <div class="w-10 h-10 bg-success-500/20 rounded-lg flex items-center justify-center">
                                <i data-feather="check-circle" class="text-success-400 w-5 h-5"></i>
                            </div>
                            <span class="text-xs text-success-400 flex items-center gap-1">
                                <i data-feather="arrow-up" class="w-3 h-3"></i>
                                89%
                            </span>
                        </div>
                        <h3 class="text-2xl font-bold text-white">96.2%</h3>
                        <p class="text-sm text-gray-400">Detection Accuracy</p>
                    </div>
                </div>
                
                <!-- Main Grid -->
                <div class="grid grid-cols-3 gap-6">
                    <!-- Graph Visualization -->
                    <div class="col-span-2 glass rounded-xl border border-secondary-800 overflow-hidden">
                        <div class="p-4 border-b border-secondary-800 flex items-center justify-between">
                            <div class="flex items-center gap-3">
                                <h2 class="font-semibold text-white">Entity Relationship Graph</h2>
                                <span class="text-xs text-gray-500">Real-time network analysis</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <button class="px-3 py-1 text-xs bg-secondary-700 hover:bg-secondary-600 rounded-lg transition-colors">Zoom In</button>
                                <button class="px-3 py-1 text-xs bg-secondary-700 hover:bg-secondary-600 rounded-lg transition-colors">Zoom Out</button>
                                <button class="px-3 py-1 text-xs bg-secondary-700 hover:bg-secondary-600 rounded-lg transition-colors">Reset</button>
                            </div>
                        </div>
                        <div class="relative h-96 bg-secondary-900/50" id="graph-container">
                            <svg id="entity-graph" class="w-full h-full"></svg>
                            <div class="absolute bottom-4 left-4 flex items-center gap-4 text-xs">
                                <div class="flex items-center gap-2">
                                    <span class="w-3 h-3 bg-primary-500 rounded-full"></span>
                                    <span class="text-gray-400">Entity</span>
                                </div>
                                <div class="flex items-center gap-2">
                                    <span class="w-3 h-3 bg-warning-500 rounded-full"></span>
                                    <span class="text-gray-400">Transaction</span>
                                </div>
                                <div class="flex items-center gap-2">
                                    <span class="w-3 h-3 bg-danger-500 rounded-full"></span>
                                    <span class="text-gray-400">High Risk</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Recent Alerts -->
                    <div class="glass rounded-xl border border-secondary-800 overflow-hidden">
                        <div class="p-4 border-b border-secondary-800 flex items-center justify-between">
                            <h2 class="font-semibold text-white">Recent Alerts</h2>
                            <button class="text-xs text-primary-400 hover:text-primary-300">View All</button>
                        </div>
                        <div class="divide-y divide-secondary-800 scrollable-y" style="max-height: 24rem;">
                            <!-- Alert Items -->
                            <div class="p-4 hover:bg-secondary-800/50 transition-colors cursor-pointer">
                                <div class="flex items-start gap-3">
                                    <div class="w-8 h-8 bg-danger-500/20 rounded-lg flex items-center justify-center flex-shrink-0">
                                        <i data-feather="alert-circle" class="text-danger-400 w-4 h-4"></i>
                                    </div>
                                    <div class="flex-1 min-w-0">
                                        <p class="font-medium text-sm text-white">Quantum Alpha LP Detected</p>
                                        <p class="text-xs text-gray-500 mt-1">Quantum entanglement with Sigma Beta Fund • 0.997 correlation</p>
                                        <div class="flex items-center gap-2 mt-2">
                                            <span class="text-xs px-2 py-0.5 bg-danger-500/20 text-danger-400 rounded">High Risk</span>
                                            <span class="text-xs text-gray-500">2 min ago</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="p-4 hover:bg-secondary-800/50 transition-colors cursor-pointer">
                                <div class="flex items-start gap-3">
                                    <div class="w-8 h-8 bg-warning-500/20 rounded-lg flex items-center justify-center flex-shrink-0">
                                        <i data-feather="layers" class="text-warning-400 w-4 h-4"></i>
                                    </div>
                                    <div class="flex-1 min-w-0">
                                        <p class="font-medium text-sm text-white">Matriochka Structure Found</p>
                                        <p class="text-xs text-gray-500 mt-1">5 nested layers detected • Cayman → BVI → Luxembourg</p>
                                        <div class="flex items-center gap-2 mt-2">
                                            <span class="text-xs px-2 py-0.5 bg-warning-500/20 text-warning-400 rounded">Medium Risk</span>
                                            <span class="text-xs text-gray-500">15 min ago</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="p-4 hover:bg-secondary-800/50 transition-colors cursor-pointer">
                                <div class="flex items-start gap-3">
                                    <div class="w-8 h-8 bg-primary-500/20 rounded-lg flex items-center justify-center flex-shrink-0">
                                        <i data-feather="repeat" class="text-primary-400 w-4 h-4"></i>
                                    </div>
                                    <div class="flex-1 min-w-0">
                                        <p class="font-medium text-sm text-white">Circular Transaction Pattern</p>
                                        <p class="text-xs text-gray-500 mt-1">847 transactions detected • A → B → C → A loop</p>
                                        <div class="flex items-center gap-2 mt-2">
                                            <span class="text-xs px-2 py-0.5 bg-primary-500/20 text-primary-400 rounded">Info</span>
                                            <span class="text-xs text-gray-500">1 hour ago</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="p-4 hover:bg-secondary-800/50 transition-colors cursor-pointer">
                                <div class="flex items-start gap-3">
                                    <div class="w-8 h-8 bg-danger-500/20 rounded-lg flex items-center justify-center flex-shrink-0">
                                        <i data-feather="eye-off" class="text-danger-400 w-4 h-4"></i>
                                    </div>
                                    <div class="flex-1 min-w-0">
                                        <p class="font-medium text-sm text-white">Ghost Entity Activity</p>
                                        <p class="text-xs text-gray-500 mt-1">Shell company with 1 employee • $100M+ volume</p>
                                        <div class="flex items-center gap-2 mt-2">
                                            <span class="text-xs px-2 py-0.5 bg-danger-500/20 text-danger-400 rounded">High Risk</span>
                                            <span class="text-xs text-gray-500">3 hours ago</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="p-4 hover:bg-secondary-800/50 transition-colors cursor-pointer">
                                <div class="flex items-start gap-3">
                                    <div class="w-8 h-8 bg-warning-500/20 rounded-lg flex items-center justify-center flex-shrink-0">
                                        <i data-feather="clock" class="text-warning-400 w-4 h-4"></i>
                                    </div>
                                    <div class="flex-1 min-w-0">
                                        <p class="font-medium text-sm text-white">Suspicious Trading Hours</p>
                                        <p class="text-xs text-gray-500 mt-1">All transactions at 3-4 AM UTC • 847 occurrences</p>
                                        <div class="flex items-center gap-2 mt-2">
                                            <span class="text-xs px-2 py-0.5 bg-warning-500/20 text-warning-400 rounded">Medium Risk</span>
                                            <span class="text-xs text-gray-500">5 hours ago</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Bottom Row -->
                <div class="grid grid-cols-3 gap-6">
                    <!-- Detection Models -->
                    <div class="glass rounded-xl border border-secondary-800 p-4">
                        <h2 class="font-semibold text-white mb-4">Detection Models</h2>
                        <div class="space-y-3">
                            <div class="p-3 bg-secondary-800/50 rounded-lg">
                                <div class="flex items-center justify-between mb-2">
                                    <span class="text-sm font-medium">Ghost Protocol</span>
                                    <span class="status-dot active"></span>
                                </div>
                                <div class="w-full bg-secondary-700 rounded-full h-2">
                                    <div class="bg-primary-500 h-2 rounded-full" style="width: 94%"></div>
                                </div>
                                <p class="text-xs text-gray-500 mt-1">94% accuracy • 247 entities detected</p>
                            </div>
                            
                            <div class="p-3 bg-secondary-800/50 rounded-lg">
                                <div class="flex items-center justify-between mb-2">
                                    <span class="text-sm font-medium">Quantum Entanglement</span>
                                    <span class="status-dot active"></span>
                                </div>
                                <div class="w-full bg-secondary-700 rounded-full h-2">
                                    <div class="bg-primary-500 h-2 rounded-full" style="width: 99.7%"></div>
                                </div>
                                <p class="text-xs text-gray-500 mt-1">99.7% accuracy • 23 pairs identified</p>
                            </div>
                            
                            <div class="p-3 bg-secondary-800/50 rounded-lg">
                                <div class="flex items-center justify-between mb-2">
                                    <span class="text-sm font-medium">Matryoshka Analyzer</span>
                                    <span class="status-dot warning"></span>
                                </div>
                                <div class="w-full bg-secondary-700 rounded-full h-2">
                                    <div class="bg-warning-500 h-2 rounded-full" style="width: 78%"></div>
                                </div>
                                <p class="text-xs text-gray-500 mt-1">78% accuracy • 12 structures found</p>
                            </div>
                            
                            <div class="p-3 bg-secondary-800/50 rounded-lg">
                                <div class="flex items-center justify-between mb-2">
                                    <span class="text-sm font-medium">Pattern Matcher v4</span>
                                    <span class="status-dot active"></span>
                                </div>
                                <div class="w-full bg-secondary-700 rounded-full h-2">
                                    <div class="bg-primary-500 h-2 rounded-full" style="width: 96%"></div>
                                </div>
                                <p class="text-xs text-gray-500 mt-1">96% accuracy • 1.2M patterns checked</p>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Transaction Timeline -->
                    <div class="glass rounded-xl border border-secondary-800 p-4">
                        <h2 class="font-semibold text-white mb-4">Transaction Flow</h2>
                        <canvas id="timeline-chart" class="w-full h-48"></canvas>
                    </div>
                    
                    <!-- Risk Distribution -->
                    <div class="glass rounded-xl border border-secondary-800 p-4">
                        <h2 class="font-semibold text-white mb-4">Risk Distribution</h2>
                        <div class="flex items-center justify-center">
                            <canvas id="risk-chart" class="w-48 h-48"></canvas>
                        </div>
                        <div class="flex justify-center gap-6 mt-4 text-xs">
                            <div class="flex items-center gap-2">
                                <span class="w-3 h-3 bg-danger-500 rounded"></span>
                                <span class="text-gray-400">High Risk</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <span class="w-3 h-3 bg-warning-500 rounded"></span>
                                <span class="text-gray-400">Medium Risk</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <span class="w-3 h-3 bg-primary-500 rounded"></span>
                                <span class="text-gray-400">Low Risk</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Entity Table -->
                <div class="glass rounded-xl border border-secondary-800 overflow-hidden">
                    <div class="p-4 border-b border-secondary-800 flex items-center justify-between">
                        <h2 class="font-semibold text-white">Tracked Entities</h2>
                        <div class="flex items-center gap-3">
                            <select class="px-3 py-1.5 bg-secondary-800 border border-secondary-700 rounded-lg text-sm focus:outline-none focus:border-primary-500">
                                <option>All Jurisdictions</option>
                                <option>Cayman Islands</option>
                                <option>BVI</option>
                                <option>Luxembourg</option>
                                <option>Singapore</option>
                                <option>Delaware</option>
                            </select>
                            <select class="px-3 py-1.5 bg-secondary-800 border border-secondary-700 rounded-lg text-sm focus:outline-none focus:border-primary-500">
                                <option>All Risk Levels</option>
                                <option>High Risk</option>
                                <option>Medium Risk</option>
                                <option>Low Risk</option>
                            </select>
                            <button class="px-3 py-1.5 bg-secondary-700 hover:bg-secondary-600 text-sm rounded-lg transition-colors flex items-center gap-2">
                                <i data-feather="download" class="w-4 h-4"></i>
                                Export
                            </button>
                        </div>
                    </div>
                    <div class="overflow-x-auto">
                        <table class="w-full">
                            <thead class="bg-secondary-800/50">
                                <tr>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Entity</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Jurisdiction</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Volume</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Risk Score</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Last Activity</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Status</th>
                                    <th class="px-4 py-3 text-right text-xs font-medium text-gray-400 uppercase tracking-wider">Actions</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-secondary-800">
                                <tr class="hover:bg-secondary-800/30 transition-colors">
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-3">
                                            <div class="w-8 h-8 bg-warning-500/20 rounded-lg flex items-center justify-center">
                                                <i data-feather="briefcase" class="text-warning-400 w-4 h-4"></i>
                                            </div>
                                            <div>
                                                <p class="font-medium text-sm text-white">Quantum Alpha LP</p>
                                                <p class="text-xs text-gray-500">Delaware, USA</p>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-300">Delaware</td>
                                    <td class="px-4 py-3 text-sm font-mono text-gray-300">$847.2M</td>
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-2">
                                            <div class="w-16 bg-secondary-700 rounded-full h-2">
                                                <div class="bg-danger-500 h-2 rounded-full" style="width: 92%"></div>
                                            </div>
                                            <span class="text-sm font-medium text-danger-400">92</span>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-400">2 min ago</td>
                                    <td class="px-4 py-3">
                                        <span class="px-2 py-1 text-xs bg-danger-500/20 text-danger-400 rounded-full">Investigating</span>
                                    </td>
                                    <td class="px-4 py-3 text-right">
                                        <button class="p-1.5 text-gray-400 hover:text-white hover:bg-secondary-700 rounded transition-colors">
                                            <i data-feather="eye" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                                
                                <tr class="hover:bg-secondary-800/30 transition-colors">
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-3">
                                            <div class="w-8 h-8 bg-warning-500/20 rounded-lg flex items-center justify-center">
                                                <i data-feather="briefcase" class="text-warning-400 w-4 h-4"></i>
                                            </div>
                                            <div>
                                                <p class="font-medium text-sm text-white">Sigma Beta Fund</p>
                                                <p class="text-xs text-gray-500">Luxembourg</p>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-300">Luxembourg</td>
                                    <td class="px-4 py-3 text-sm font-mono text-gray-300">$1.2B</td>
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-2">
                                            <div class="w-16 bg-secondary-700 rounded-full h-2">
                                                <div class="bg-danger-500 h-2 rounded-full" style="width: 88%"></div>
                                            </div>
                                            <span class="text-sm font-medium text-danger-400">88</span>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-400">2 min ago</td>
                                    <td class="px-4 py-3">
                                        <span class="px-2 py-1 text-xs bg-danger-500/20 text-danger-400 rounded-full">Investigating</span>
                                    </td>
                                    <td class="px-4 py-3 text-right">
                                        <button class="p-1.5 text-gray-400 hover:text-white hover:bg-secondary-700 rounded transition-colors">
                                            <i data-feather="eye" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                                
                                <tr class="hover:bg-secondary-800/30 transition-colors">
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-3">
                                            <div class="w-8 h-8 bg-primary-500/20 rounded-lg flex items-center justify-center">
                                                <i data-feather="briefcase" class="text-primary-400 w-4 h-4"></i>
                                            </div>
                                            <div>
                                                <p class="font-medium text-sm text-white">AI Alpha Technologies Ltd</p>
                                                <p class="text-xs text-gray-500">Cayman Islands</p>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-300">Cayman Islands</td>
                                    <td class="px-4 py-3 text-sm font-mono text-gray-300">$2.3B</td>
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-2">
                                            <div class="w-16 bg-secondary-700 rounded-full h-2">
                                                <div class="bg-warning-500 h-2 rounded-full" style="width: 65%"></div>
                                            </div>
                                            <span class="text-sm font-medium text-warning-400">65</span>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-400">1 hour ago</td>
                                    <td class="px-4 py-3">
                                        <span class="px-2 py-1 text-xs bg-warning-500/20 text-warning-400 rounded-full">Flagged</span>
                                    </td>
                                    <td class="px-4 py-3 text-right">
                                        <button class="p-1.5 text-gray-400 hover:text-white hover:bg-secondary-700 rounded transition-colors">
                                            <i data-feather="eye" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                                
                                <tr class="hover:bg-secondary-800/30 transition-colors">
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-3">
                                            <div class="w-8 h-8 bg-primary-500/20 rounded-lg flex items-center justify-center">
                                                <i data-feather="briefcase" class="text-primary-400 w-4 h-4"></i>
                                            </div>
                                            <div>
                                                <p class="font-medium text-sm text-white">Beta Sigma Management SA</p>
                                                <p class="text-xs text-gray-500">Switzerland</p>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-300">Switzerland</td>
                                    <td class="px-4 py-3 text-sm font-mono text-gray-300">$890M</td>
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-2">
                                            <div class="w-16 bg-secondary-700 rounded-full h-2">
                                                <div class="bg-warning-500 h-2 rounded-full" style="width: 58%"></div>
                                            </div>
                                            <span class="text-sm font-medium text-warning-400">58</span>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-400">3 hours ago</td>
                                    <td class="px-4 py-3">
                                        <span class="px-2 py-1 text-xs bg-warning-500/20 text-warning-400 rounded-full">Flagged</span>
                                    </td>
                                    <td class="px-4 py-3 text-right">
                                        <button class="p-1.5 text-gray-400 hover:text-white hover:bg-secondary-700 rounded transition-colors">
                                            <i data-feather="eye" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                                
                                <tr class="hover:bg-secondary-800/30 transition-colors">
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-3">
                                            <div class="w-8 h-8 bg-primary-500/20 rounded-lg flex items-center justify-center">
                                                <i data-feather="briefcase" class="text-primary-400 w-4 h-4"></i>
                                            </div>
                                            <div>
                                                <p class="font-medium text-sm text-white">Mirror Trading Corp</p>
                                                <p class="text-xs text-gray-500">Singapore</p>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-300">Singapore</td>
                                    <td class="px-4 py-3 text-sm font-mono text-gray-300">$567M</td>
                                    <td class="px-4 py-3">
                                        <div class="flex items-center gap-2">
                                            <div class="w-16 bg-secondary-700 rounded-full h-2">
                                                <div class="bg-primary-500 h-2 rounded-full" style="width: 35%"></div>
                                            </div>
                                            <span class="text-sm font-medium text-primary-400">35</span>
                                        </div>
                                    </td>
                                    <td class="px-4 py-3 text-sm text-gray-400">1 day ago</td>
                                    <td class="px-4 py-3">
                                        <span class="px-2 py-1 text-xs bg-primary-500/20 text-primary-400 rounded-full">Monitored</span>
                                    </td>
                                    <td class="px-4 py-3 text-right">
                                        <button class="p-1.5 text-gray-400 hover:text-white hover:bg-secondary-700 rounded transition-colors">
                                            <i data-feather="eye" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </main>
        
        <!-- Right Panel - Entity Details -->
        <aside class="w-96 glass border-l border-secondary-800 flex flex-col">
            <div class="p-4 border-b border-secondary-800">
                <h2 class="font-semibold text-white">Entity Details</h2>
                <p class="text-xs text-gray-500">Quantum Alpha LP</p>
            </div>
            
            <div class="flex-1 overflow-auto p-4 space-y-4">
                <!-- Risk Score -->
                <div class="text-center p-4 bg-gradient-to-br from-danger-500/20 to-danger-600/10 rounded-xl border border-danger-500/30">
                    <div class="relative w-24 h-24 mx-auto">
                        <svg class="w-24 h-24 transform -rotate-90">
                            <circle cx="48" cy="48" r="40" stroke="#334155" stroke-width="8" fill="none"/>
                            <circle cx="48" cy="48" r="40" stroke="#ef4444" stroke-width="8" fill="none" 
                                stroke-dasharray="251.2" stroke-dashoffset="20" stroke-linecap="round"/>
                        </svg>
                        <div class="absolute inset-0 flex items-center justify-center">
                            <span class="text-2xl font-bold text-white">92</span>
                        </div>
                    </div>
                    <p class="text-sm text-danger-400 mt-2">High Risk Score</p>
                </div>
                
                <!-- Quick Stats -->
                <div class="grid grid-cols-2 gap-3">
                    <div class="p-3 bg-secondary-800/50 rounded-lg text-center">
                        <p class="text-lg font-bold text-white">$847.2M</p>
                        <p class="text-xs text-gray-500">Total Volume</p>
                    </div>
                    <div class="p-3 bg-secondary-800/50 rounded-lg text-center">
                        <p class="text-lg font-bold text-white">847</p>
                        <p class="text-xs text-gray-500">Transactions</p>
                    </div>
                    <div class="p-3 bg-secondary-800/50 rounded-lg text-center">
                        <p class="text-lg font-bold text-white">5</p>
                        <p class="text-xs text-gray-500">Linked Entities</p>
                    </div>
                    <div class="p-3 bg-secondary-800/50 rounded-lg text-center">
                        <p class="text-lg font-bold text-white">18mo</p>
                        <p class="text-xs text-gray-500">Activity Period</p>
                    </div>
                </div>
                
                <!-- Detection Flags -->
                <div class="p-4 bg-secondary-800/50 rounded-xl">
                    <h3 class="font-medium text-white mb-3 flex items-center gap-2">
                        <i data-feather="flag" class="w-4 h-4 text-danger-400"></i>
                        Detection Flags
                    </h3>
                    <div class="space-y-2">
                        <div class="flex items-center gap-2 p-2 bg-danger-500/10 border border-danger-500/30 rounded-lg">
                            <i data-feather="link" class="w-4 h-4 text-danger-400"></i>
                            <span class="text-sm text-gray-300">Quantum Entanglement</span>
                        </div>
                        <div class="flex items-center gap-2 p-2 bg-warning-500/10 border border-warning-500/30 rounded-lg">
                            <i data-feather="layers" class="w-4 h-4 text-warning-400"></i>
                            <span class="text-sm text-gray-300">Matriochka Structure</span>
                        </div>
                        <div class="flex items-center gap-2 p-2 bg-warning-500/10 border border-warning-500/30 rounded-lg">
                            <i data-feather="repeat" class="w-4 h-4 text-warning-400"></i>
                            <span class="text-sm text-gray-300">Circular Transactions</span>
                        </div>
                        <div class="flex items-center gap-2 p-2 bg-primary-500/10 border border-primary-500/30 rounded-lg">
                            <i data-feather="clock" class="w-4 h-4 text-primary-400"></i>
                            <span class="text-sm text-gray-300">Unusual Trading Hours</span>
                        </div>
                    </div>
                </div>
                
                <!-- Correlation Chart -->
                <div class="p-4 bg-secondary-800/50 rounded-xl">
                    <h3 class="font-medium text-white mb-3 flex items-center gap-2">
                        <i data-feather="trending-up" class="w-4 h-4 text-primary-400"></i>
                        Correlation with Sigma Beta
                    </h3>
                    <canvas id="correlation-chart" class="w-full h-32"></canvas>
                    <p class="text-center text-xs text-danger-400 mt-2 font-mono">Correlation: 0.997</p>
                </div>
                
                <!-- Action Buttons -->
                <div class="space-y-2">
                    <button class="w-full py-2.5 bg-danger-500 hover:bg-danger-600 text-white rounded-lg font-medium transition-colors flex items-center justify-center gap-2">
                        <i data-feather="file-plus" class="w-4 h-4"></i>
                        Create Case
                    </button>
                    <button class="w-full py-2.5 bg-secondary-700 hover:bg-secondary-600 text-white rounded-lg font-medium transition-colors flex items-center justify-center gap-2">
                        <i data-feather="download" class="w-4 h-4"></i>
                        Export Evidence
                    </button>
                    <button class="w-full py-2.5 bg-secondary-800 hover:bg-secondary-700 text-white rounded-lg font-medium transition-colors flex items-center justify-center gap-2">
                        <i data-feather="users" class="w-4 h-4"></i>
                        Add to Watchlist
                    </button>
                </div>
            </div>
        </aside>
    </div>
    <!-- AI & API Components -->
    <script src="js/federated-core.js"></script>
    <script src="js/ai-core.js"></script>
    <script src="js/api-service.js"></script>
    <script src="components/graph-visualization.js"></script>
    <script src="components/charts.js"></script>
    <script src="script.js"></script>
    <script>feather.replace();</script>

    <!-- Federated Neural Interface -->
    <div id="ai-cortex-overlay" class="fixed inset-0 bg-black/90 backdrop-blur-xl z-50 hidden flex items-center justify-center">
        <div class="glass p-8 rounded-2xl border border-primary-500/50 max-w-4xl w-full mx-4 relative overflow-hidden">
            <button onclick="toggleAICortex()" class="absolute top-4 right-4 text-gray-400 hover:text-white">
                <i data-feather="x" class="w-6 h-6"></i>
            </button>
            
            <div class="text-center mb-8">
                <div class="w-20 h-20 mx-auto bg-gradient-to-br from-primary-500 via-purple-600 to-danger-500 rounded-full flex items-center justify-center mb-4 relative">
                    <i data-feather="cpu" class="w-10 h-10 text-white"></i>
                    <div class="absolute inset-0 rounded-full border-2 border-primary-400 animate-ping opacity-25"></div>
                    <div class="absolute -inset-2 rounded-full border border-primary-500/30 animate-pulse"></div>
                </div>
                <h2 class="text-2xl font-bold text-white">Federated Neural Cortex</h2>
                <p class="text-gray-400 mt-2">22-Nodes Byzantine Consensus • Post-Quantum Encryption</p>
            </div>

            <div class="grid grid-cols-3 gap-4 mb-6">
                <div class="bg-secondary-800/50 rounded-xl p-4 border border-secondary-700">
                    <div class="flex items-center gap-2 mb-2">
                        <span class="status-dot active"></span>
                        <span class="text-sm text-gray-400">Active Nodes</span>
                    </div>
                    <p class="text-3xl font-bold text-primary-400" id="fed-active-nodes">22/22</p>
                    <p class="text-xs text-gray-500 mt-1">Consensus: 100%</p>
                </div>
                
                <div class="bg-secondary-800/50 rounded-xl p-4 border border-secondary-700">
                    <div class="flex items-center gap-2 mb-2">
                        <i data-feather="shield" class="w-4 h-4 text-success-400"></i>
                        <span class="text-sm text-gray-400">Firewall Status</span>
                    </div>
                    <p class="text-3xl font-bold text-success-400" id="fed-firewall">ACTIVE</p>
                    <p class="text-xs text-gray-500 mt-1">Blocked: <span id="fed-blocked">0</span></p>
                </div>
                
                <div class="bg-secondary-800/50 rounded-xl p-4 border border-secondary-700">
                    <div class="flex items-center gap-2 mb-2">
                        <i data-feather="lock" class="w-4 h-4 text-purple-400"></i>
                        <span class="text-sm text-gray-400">Encryption</span>
                    </div>
                    <p class="text-lg font-bold text-purple-400" id="fed-encryption">CRYSTALS-Kyber</p>
                    <p class="text-xs text-gray-500 mt-1">Post-Quantum Ready</p>
                </div>
            </div>

            <div class="space-y-4">
                <div class="bg-secondary-800/50 rounded-xl p-4 border border-primary-500/30">
                    <div class="flex justify-between items-center mb-2">
                        <span class="text-sm text-gray-400 font-mono">Federated Model Training</span>
                        <span class="text-xs text-primary-400 font-mono">ROUND #<span id="fed-round">2847</span></span>
                    </div>
                    <div class="w-full bg-secondary-700 rounded-full h-2 mb-2 relative overflow-hidden">
                        <div class="bg-gradient-to-r from-primary-500 via-purple-500 to-primary-400 h-2 rounded-full animate-pulse" style="width: 92%" id="fed-progress"></div>
                    </div>
                    <div class="flex justify-between text-xs text-gray-500 font-mono">
                        <span>Global Model Sync</span>
                        <span id="fed-status">Byzantine Consensus Achieved</span>
                    </div>
                </div>

                <div class="grid grid-cols-2 gap-4">
                    <div class="bg-gradient-to-br from-secondary-800/50 to-secondary-900/50 rounded-xl p-4 border border-secondary-700">
                        <p class="text-xs text-gray-500 mb-1">Threat Detection Confidence</p>
                        <p class="text-4xl font-bold text-primary-400" id="fed-confidence">99.97%</p>
                        <div class="mt-2 text-xs text-success-400 flex items-center gap-1">
                            <i data-feather="trending-up" class="w-3 h-3"></i>
                            Distributed consensus verified
                        </div>
                    </div>
                    
                    <div class="bg-gradient-to-br from-secondary-800/50 to-secondary-900/50 rounded-xl p-4 border border-secondary-700">
                        <p class="text-xs text-gray-500 mb-1">Average Trust Score</p>
                        <p class="text-4xl font-bold text-warning-400" id="fed-trust">98.4</p>
                        <div class="mt-2 text-xs text-gray-400">
                            Across 22 federated nodes
                        </div>
                    </div>
                </div>

                <div class="bg-gradient-to-r from-danger-500/10 via-warning-500/10 to-primary-500/10 border border-danger-500/20 rounded-xl p-4">
                    <div class="flex items-center gap-2 mb-2">
                        <i data-feather="activity" class="w-4 h-4 text-danger-400 animate-pulse"></i>
                        <span class="font-medium text-danger-400">Quantum-Resistant Analysis</span>
                    </div>
                    <p class="text-sm text-gray-300 font-mono" id="fed-insight">
                        Byzantine consensus achieved across 22 nodes. Zero-knowledge proof validated. 
                        Threat vector analysis complete. No adversarial nodes detected.
                    </p>
                </div>
                
                <!-- Live Node Grid -->
                <div class="grid grid-cols-11 gap-1 mt-4" id="node-grid">
                    <!-- Generated by JS -->
                </div>
            </div>

            <div class="mt-6 flex gap-3">
                <button onclick="runFederatedAnalysis()" class="flex-1 py-3 bg-gradient-to-r from-primary-600 to-purple-600 hover:from-primary-500 hover:to-purple-500 text-white rounded-lg font-medium transition-all flex items-center justify-center gap-2">
                    <i data-feather="play-circle" class="w-4 h-4"></i>
                    Run Consensus Analysis
                </button>
                <button onclick="exportFederatedReport()" class="flex-1 py-3 bg-secondary-700 hover:bg-secondary-600 text-white rounded-lg font-medium transition-all flex items-center justify-center gap-2">
                    <i data-feather="download" class="w-4 h-4"></i>
                    Export Consensus Report
                </button>
            </div>
        </div>
    </div>

    <!-- Floating AI Assistant -->
    <button onclick="toggleAICortex()" class="fixed bottom-6 right-6 w-14 h-14 bg-gradient-to-br from-primary-500 to-purple-600 rounded-full shadow-lg shadow-primary-500/30 flex items-center justify-center hover:scale-110 transition-transform z-40">
        <i data-feather="cpu" class="w-6 h-6 text-white"></i>
        <span class="absolute -top-1 -right-1 w-4 h-4 bg-green-500 rounded-full animate-pulse border-2 border-secondary-900"></span>
    </button>
</body>
</html>