File size: 58,226 Bytes
fa3711b
 
 
 
 
8ce7745
fa3711b
 
8ce7745
fa3711b
8ce7745
fa3711b
 
8ce7745
 
 
fa3711b
 
 
8ce7745
fa3711b
 
8ce7745
 
fa3711b
 
 
8ce7745
fa3711b
 
8ce7745
 
 
fa3711b
 
8ce7745
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa3711b
 
8ce7745
 
 
fa3711b
 
8ce7745
 
fa3711b
 
8ce7745
 
 
 
fa3711b
 
8ce7745
 
fa3711b
 
8ce7745
 
 
fa3711b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41270f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dfcbe93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e4489cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa3711b
 
8ce7745
fa3711b
 
8ce7745
fa3711b
 
8ce7745
 
 
 
 
 
 
 
 
 
41270f3
8ce7745
 
 
 
 
 
 
 
 
 
fa3711b
8ce7745
 
41270f3
8ce7745
 
 
 
41270f3
 
8ce7745
 
41270f3
8ce7745
 
41270f3
8ce7745
fa3711b
 
 
 
41270f3
8ce7745
 
 
41270f3
8ce7745
 
 
 
 
 
 
 
41270f3
dfcbe93
e4489cc
8ce7745
e4489cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41270f3
 
 
 
 
 
 
 
 
 
 
 
 
8ce7745
41270f3
 
8ce7745
fa3711b
41270f3
 
 
 
fa3711b
8ce7745
41270f3
 
 
 
 
 
8ce7745
fa3711b
41270f3
 
 
fa3711b
 
8ce7745
41270f3
 
 
8ce7745
41270f3
 
8ce7745
 
41270f3
 
 
 
fa3711b
8ce7745
41270f3
 
 
 
 
 
 
 
 
 
 
 
 
8ce7745
41270f3
 
 
 
 
 
8ce7745
 
41270f3
 
 
 
 
 
 
fa3711b
 
 
8ce7745
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa3711b
 
 
8ce7745
 
 
e4489cc
8ce7745
 
e4489cc
8ce7745
 
e4489cc
8ce7745
 
e4489cc
8ce7745
 
e4489cc
8ce7745
 
e4489cc
8ce7745
 
e4489cc
8ce7745
 
 
 
 
 
 
 
 
 
e4489cc
8ce7745
 
e4489cc
8ce7745
 
 
fa3711b
8ce7745
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa3711b
 
8ce7745
 
e4489cc
8ce7745
 
 
 
 
 
 
 
 
 
fa3711b
8ce7745
 
 
 
 
 
 
 
 
fa3711b
 
 
 
e4489cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ce7745
 
e4489cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa3711b
 
dfcbe93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ce7745
 
dfcbe93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ce7745
 
 
 
 
 
 
fa3711b
 
8ce7745
 
 
 
 
 
fa3711b
8ce7745
 
 
 
 
 
 
 
 
fa3711b
 
8ce7745
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa3711b
 
8ce7745
41270f3
dfcbe93
 
 
 
 
 
 
 
8ce7745
fa3711b
dfcbe93
 
 
 
fa3711b
 
dfcbe93
 
 
 
fa3711b
 
dfcbe93
 
 
 
 
8ce7745
 
 
dfcbe93
 
 
41270f3
dfcbe93
 
41270f3
dfcbe93
 
41270f3
fa3711b
 
8ce7745
dfcbe93
 
 
 
 
 
 
 
 
41270f3
fa3711b
dfcbe93
 
 
 
 
 
41270f3
dfcbe93
8ce7745
dfcbe93
 
 
 
 
 
 
 
fa3711b
 
8ce7745
dfcbe93
 
 
 
 
 
 
fa3711b
 
 
 
 
 
 
 
 
8ce7745
e4489cc
 
 
8ce7745
 
 
e4489cc
8ce7745
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e4489cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ce7745
 
 
fa3711b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ce7745
fa3711b
 
 
 
 
 
 
 
 
dfcbe93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e4489cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa3711b
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
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WifDogJoint - Social Trading Terminal</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Inter', sans-serif;
            background-color: #0f172a;
            color: #e2e8f0;
        }
        
        .doge-bg {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        }
        
        .doge-accent {
            background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
        }
        
        .doge-text {
            color: #f59e0b;
        }
        
        .terminal-bg {
            background-color: #1e293b;
            border: 1px solid #334155;
        }
        
        .chart-container {
            background-color: #1e293b;
            border-radius: 0.5rem;
            border: 1px solid #334155;
        }
        
        .tab-active {
            border-bottom: 2px solid #f59e0b;
            color: #f59e0b;
        }
        
        .orderbook-bid {
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
        }
        
        .orderbook-ask {
            background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
        }
        
        .message-self {
            background-color: #334155;
            border-radius: 1rem 1rem 0 1rem;
        }
        
        .message-other {
            background-color: #1e293b;
            border-radius: 1rem 1rem 1rem 0;
        }
        
        .indicator-active {
            color: #f59e0b;
            border-bottom: 2px solid #f59e0b;
        }
        
        .blink {
            animation: blink 1s infinite;
        }
        
        @keyframes blink {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        
        .coin-spin {
            animation: spin 4s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotateY(0deg); }
            100% { transform: rotateY(360deg); }
        }
        
        .floating-doge {
            position: fixed;
            bottom: 20px;
            right: 20px;
            animation: float 6s ease-in-out infinite;
            cursor: pointer;
            z-index: 100;
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }
        
        .video-chat {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            height: 200px;
        }
        
        .video-box {
            background-color: #334155;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }
        
        .video-box::before {
            content: "";
            display: block;
            padding-top: 100%;
        }
        
        .video-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
        }
        
        .video-user {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.5);
            padding: 4px;
            font-size: 10px;
            text-align: center;
        }
        
        .video-active {
            border: 2px solid #f59e0b;
        }
        
        .video-controls {
            position: absolute;
            bottom: 8px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 8px;
        }
        
        .video-control-btn {
            background: rgba(0,0,0,0.7);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }
        
        .feed-switch {
            display: flex;
            border-radius: 0.5rem;
            overflow: hidden;
            background-color: #1e293b;
            margin-bottom: 1rem;
        }
        
        .feed-switch-btn {
            flex: 1;
            padding: 0.5rem;
            text-align: center;
            cursor: pointer;
            font-size: 0.875rem;
        }
        
        .feed-switch-btn.active {
            background-color: #334155;
            color: #f59e0b;
        }
        
        .hidden-feed {
            display: none;
        }
        
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
        }
        
        .candle-up {
            background-color: #10b981;
            border-color: #10b981;
        }
        
        .candle-down {
            background-color: #ef4444;
            border-color: #ef4444;
        }
        
        .order-form {
            background-color: #1e293b;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }
    </style>
</head>
<body class="doge-bg">
    <!-- Floating Doge Button -->
    <div class="floating-doge" onclick="createConfetti()">
        <img src="https://i.imgur.com/9eeDlQY.png" alt="Doge" class="w-16 h-16 rounded-full border-2 border-yellow-500 shadow-lg">
    </div>
    
    <!-- Main Layout -->
    <div class="min-h-screen flex flex-col">
        <!-- Header -->
        <header class="border-b border-gray-800">
            <div class="container mx-auto px-4 py-3 flex justify-between items-center">
                <div class="flex items-center space-x-3">
                    <img src="https://i.imgur.com/9eeDlQY.png" alt="Doge" class="w-10 h-10 rounded-full border-2 border-yellow-500">
                    <h1 class="text-2xl font-bold doge-text">WifDogJoint</h1>
                </div>
                
                <div class="hidden md:flex items-center space-x-4">
                    <div class="relative">
                        <select class="bg-gray-800 text-white px-4 py-2 rounded-lg appearance-none pr-8">
                            <option>BTC/USDT</option>
                            <option>ETH/USDT</option>
                            <option>SOL/USDT</option>
                            <option>WIF/USDT</option>
                            <option>DOGE/USDT</option>
                        </select>
                        <div class="absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none">
                            <i class="fas fa-chevron-down text-gray-400"></i>
                        </div>
                    </div>
                    
                    <div class="flex items-center space-x-2 bg-gray-800 px-3 py-1 rounded-lg">
                        <span class="text-green-400 font-mono">$69,420.42</span>
                        <span class="text-xs text-green-400">+4.20%</span>
                    </div>
                    
                    <div class="flex space-x-2">
                        <button class="bg-gray-800 text-gray-400 hover:text-yellow-500 p-2 rounded-lg">
                            <i class="fas fa-bell"></i>
                        </button>
                        <button class="bg-gray-800 text-gray-400 hover:text-yellow-500 p-2 rounded-lg">
                            <i class="fas fa-envelope"></i>
                        </button>
                        <button class="bg-gray-800 text-gray-400 hover:text-yellow-500 p-2 rounded-lg">
                            <i class="fas fa-cog"></i>
                        </button>
                    </div>
                </div>
                
                <div class="flex items-center">
                    <button class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-lg font-medium">
                        <i class="fas fa-wallet mr-2"></i> Connect
                    </button>
                    <button class="md:hidden text-gray-400 ml-2">
                        <i class="fas fa-bars text-xl"></i>
                    </button>
                </div>
            </div>
        </header>
        
        <!-- Main Content -->
        <div class="flex flex-1 overflow-hidden">
            <!-- Left Sidebar - Watchlist & Portfolio -->
            <div class="hidden lg:block w-64 border-r border-gray-800 overflow-y-auto">
                <!-- Portfolio -->
                <div class="p-4">
                    <div class="flex justify-between items-center mb-3">
                        <h2 class="font-medium">Portfolio</h2>
                        <div class="text-xs text-gray-400">$42,690.42</div>
                    </div>
                    
                    <div class="bg-gray-800 rounded-lg p-4 mb-4">
                        <div class="flex justify-between mb-3">
                            <div class="text-sm">Total Balance</div>
                            <div class="font-mono">$42,690.42</div>
                        </div>
                        <div class="flex justify-between text-xs text-gray-400 mb-1">
                            <div>Available</div>
                            <div>$12,345.67</div>
                        </div>
                        <div class="flex justify-between text-xs text-gray-400">
                            <div>In Orders</div>
                            <div>$30,344.75</div>
                        </div>
                    </div>
                    
                    <!-- Order Form -->
                    <div class="order-form">
                        <div class="flex mb-4">
                            <button id="buy-btn" class="flex-1 py-2 bg-green-900 bg-opacity-30 text-green-400 font-medium rounded-l-lg">
                                Buy
                            </button>
                            <button id="sell-btn" class="flex-1 py-2 bg-red-900 bg-opacity-30 text-red-400 font-medium rounded-r-lg">
                                Sell
                            </button>
                        </div>
                        
                        <div class="space-y-3">
                            <div>
                                <label class="block text-xs text-gray-400 mb-1">Order Type</label>
                                <select class="w-full bg-gray-800 text-white p-2 rounded-lg text-sm">
                                    <option>Limit</option>
                                    <option>Market</option>
                                    <option>Stop Limit</option>
                                </select>
                            </div>
                            
                            <div>
                                <label class="block text-xs text-gray-400 mb-1">Price (USDT)</label>
                                <input type="text" class="w-full bg-gray-800 text-white p-2 rounded-lg text-sm" value="69,420.42">
                            </div>
                            
                            <div>
                                <label class="block text-xs text-gray-400 mb-1">Amount (BTC)</label>
                                <input type="text" class="w-full bg-gray-800 text-white p-2 rounded-lg text-sm" value="0.1">
                            </div>
                            
                            <div class="grid grid-cols-4 gap-2">
                                <button class="bg-gray-800 text-xs p-1 rounded">25%</button>
                                <button class="bg-gray-800 text-xs p-1 rounded">50%</button>
                                <button class="bg-gray-800 text-xs p-1 rounded">75%</button>
                                <button class="bg-gray-800 text-xs p-1 rounded">100%</button>
                            </div>
                            
                            <div class="pt-2">
                                <button id="place-order-btn" class="w-full bg-green-600 text-white py-2 rounded-lg font-medium">
                                    Buy BTC
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Watchlist -->
                    <div class="mb-6">
                        <div class="flex justify-between items-center mb-3">
                            <h2 class="font-medium">Watchlist</h2>
                            <button class="text-gray-400 hover:text-yellow-500">
                                <i class="fas fa-plus"></i>
                            </button>
                        </div>
                        
                        <div class="space-y-2">
                            <div class="flex items-center justify-between p-2 hover:bg-gray-800 rounded-lg cursor-pointer">
                                <div class="flex items-center">
                                    <img src="https://cryptologos.cc/logos/bitcoin-btc-logo.png" alt="BTC" class="w-6 h-6 mr-3">
                                    <div>
                                        <div class="font-medium">BTC/USDT</div>
                                        <div class="text-xs text-gray-400">Bitcoin</div>
                                    </div>
                                </div>
                                <div class="text-right">
                                    <div class="font-mono">$69,420</div>
                                    <div class="text-xs text-green-400">+4.2%</div>
                                </div>
                            </div>
                            
                            <div class="flex items-center justify-between p-2 hover:bg-gray-800 rounded-lg cursor-pointer">
                                <div class="flex items-center">
                                    <img src="https://cryptologos.cc/logos/ethereum-eth-logo.png" alt="ETH" class="w-6 h-6 mr-3">
                                    <div>
                                        <div class="font-medium">ETH/USDT</div>
                                        <div class="text-xs text-gray-400">Ethereum</div>
                                    </div>
                                </div>
                                <div class="text-right">
                                    <div class="font-mono">$3,690</div>
                                    <div class="text-xs text-green-400">+2.3%</div>
                                </div>
                            </div>
                            
                            <div class="flex items-center justify-between p-2 hover:bg-gray-800 rounded-lg cursor-pointer">
                                <div class="flex items-center">
                                    <img src="https://cryptologos.cc/logos/solana-sol-logo.png" alt="SOL" class="w-6 h-6 mr-3">
                                    <div>
                                        <div class="font-medium">SOL/USDT</div>
                                        <div class="text-xs text-gray-400">Solana</div>
                                    </div>
                                </div>
                                <div class="text-right">
                                    <div class="font-mono">$142.42</div>
                                    <div class="text-xs text-red-400">-1.5%</div>
                                </div>
                            </div>
                            
                            <div class="flex items-center justify-between p-2 hover:bg-gray-800 rounded-lg cursor-pointer">
                                <div class="flex items-center">
                                    <img src="https://cryptologos.cc/logos/wif-dogwifhat-logo.png" alt="WIF" class="w-6 h-6 mr-3">
                                    <div>
                                        <div class="font-medium">WIF/USDT</div>
                                        <div class="text-xs text-gray-400">dogwifhat</div>
                                    </div>
                                </div>
                                <div class="text-right">
                                    <div class="font-mono">$2.34</div>
                                    <div class="text-xs text-green-400">+8.9%</div>
                                </div>
                            </div>
                            
                            <div class="flex items-center justify-between p-2 hover:bg-gray-800 rounded-lg cursor-pointer">
                                <div class="flex items-center">
                                    <img src="https://cryptologos.cc/logos/dogecoin-doge-logo.png" alt="DOGE" class="w-6 h-6 mr-3">
                                    <div>
                                        <div class="font-medium">DOGE/USDT</div>
                                        <div class="text-xs text-gray-400">Dogecoin</div>
                                    </div>
                                </div>
                                <div class="text-right">
                                    <div class="font-mono">$0.16</div>
                                    <div class="text-xs text-red-400">-1.2%</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Main Terminal Area -->
            <div class="flex-1 flex flex-col overflow-hidden">
                <!-- Chart Area -->
                <div class="flex-1 p-4 overflow-hidden">
                    <div class="h-full flex flex-col">
                        <!-- Chart Controls -->
                        <div class="flex justify-between items-center mb-4">
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700">
                                    1m
                                </button>
                                <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700">
                                    5m
                                </button>
                                <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700">
                                    15m
                                </button>
                                <button class="px-3 py-1 bg-yellow-600 rounded-lg text-sm">
                                    1h
                                </button>
                                <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700">
                                    4h
                                </button>
                                <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700">
                                    1d
                                </button>
                            </div>
                            
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700">
                                    <i class="fas fa-ruler-combined"></i>
                                </button>
                                <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700">
                                    <i class="fas fa-sliders-h"></i>
                                </button>
                                <button class="px-3 py-1 bg-gray-800 rounded-lg text-sm hover:bg-gray-700">
                                    <i class="fas fa-cog"></i>
                                </button>
                            </div>
                        </div>
                        
                        <!-- Indicators -->
                        <div class="flex space-x-4 mb-4 overflow-x-auto pb-2">
                            <button id="sma-btn" class="px-3 py-1 text-sm whitespace-nowrap indicator-active" onclick="updateChart('sma')">
                                SMA
                            </button>
                            <button id="ema-btn" class="px-3 py-1 text-sm whitespace-nowrap hover:text-yellow-500" onclick="updateChart('ema')">
                                EMA
                            </button>
                            <button id="rsi-btn" class="px-3 py-1 text-sm whitespace-nowrap hover:text-yellow-500" onclick="updateChart('rsi')">
                                RSI
                            </button>
                            <button id="macd-btn" class="px-3 py-1 text-sm whitespace-nowrap hover:text-yellow-500" onclick="updateChart('macd')">
                                MACD
                            </button>
                            <button id="bollinger-btn" class="px-3 py-1 text-sm whitespace-nowrap hover:text-yellow-500" onclick="updateChart('bollinger')">
                                Bollinger
                            </button>
                            <button id="volume-btn" class="px-3 py-1 text-sm whitespace-nowrap hover:text-yellow-500" onclick="updateChart('volume')">
                                Volume
                            </button>
                            <button id="fibonacci-btn" class="px-3 py-1 text-sm whitespace-nowrap hover:text-yellow-500" onclick="updateChart('fibonacci')">
                                Fibonacci
                            </button>
                        </div>
                        
                        <!-- Main Chart -->
                        <div class="flex-1 chart-container">
                            <canvas id="priceChart"></canvas>
                        </div>
                        
                        <!-- Orderbook -->
                        <div class="h-32 mt-4 chart-container overflow-y-auto">
                            <div class="divide-y divide-gray-800">
                                <!-- Header -->
                                <div class="grid grid-cols-3 text-xs text-gray-400 p-2 sticky top-0 bg-gray-800">
                                    <div>Price (USDT)</div>
                                    <div class="text-right">Size (BTC)</div>
                                    <div class="text-right">Total</div>
                                </div>
                                
                                <!-- Asks -->
                                <div class="divide-y divide-gray-800">
                                    <div class="grid grid-cols-3 text-xs p-1 orderbook-ask">
                                        <div class="text-red-400">69,500.12</div>
                                        <div class="text-right">0.42</div>
                                        <div class="text-right">29,190.05</div>
                                    </div>
                                    <div class="grid grid-cols-3 text-xs p-1 orderbook-ask">
                                        <div class="text-red-400">69,480.34</div>
                                        <div class="text-right">0.84</div>
                                        <div class="text-right">58,363.49</div>
                                    </div>
                                    <div class="grid grid-cols-3 text-xs p-1 orderbook-ask">
                                        <div class="text-red-400">69,450.78</div>
                                        <div class="text-right">1.26</div>
                                        <div class="text-right">87,507.98</div>
                                    </div>
                                </div>
                                
                                <!-- Market Price -->
                                <div class="p-2 text-center sticky top-8 bg-gray-800">
                                    <div class="text-lg font-mono text-yellow-500">69,420.42</div>
                                    <div class="text-xs text-green-400">+4.20%</div>
                                </div>
                                
                                <!-- Bids -->
                                <div class="divide-y divide-gray-800">
                                    <div class="grid grid-cols-3 text-xs p-1 orderbook-bid">
                                        <div class="text-green-400">69,420.42</div>
                                        <div class="text-right">0.69</div>
                                        <div class="text-right">47,900.09</div>
                                    </div>
                                    <div class="grid grid-cols-3 text-xs p-1 orderbook-bid">
                                        <div class="text-green-400">69,400.15</div>
                                        <div class="text-right">1.23</div>
                                        <div class="text-right">85,362.18</div>
                                    </div>
                                    <div class="grid grid-cols-3 text-xs p-1 orderbook-bid">
                                        <div class="text-green-400">69,380.76</div>
                                        <div class="text-right">2.10</div>
                                        <div class="text-right">145,699.60</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Bottom Panel -->
                <div class="border-t border-gray-800">
                    <div class="flex">
                        <button class="px-4 py-2 text-sm font-medium tab-active">
                            Trades
                        </button>
                        <button class="px-4 py-2 text-sm font-medium text-gray-400 hover:text-yellow-500">
                            Positions
                        </button>
                        <button class="px-4 py-2 text-sm font-medium text-gray-400 hover:text-yellow-500">
                            Orders
                        </button>
                    </div>
                    
                    <div class="h-48 overflow-y-auto">
                        <div class="divide-y divide-gray-800">
                            <!-- Trade 1 -->
                            <div class="grid grid-cols-4 text-xs p-2 hover:bg-gray-800">
                                <div class="text-green-400">Buy</div>
                                <div>69,420.42</div>
                                <div>0.1 BTC</div>
                                <div class="text-right">2 min ago</div>
                            </div>
                            
                            <!-- Trade 2 -->
                            <div class="grid grid-cols-4 text-xs p-2 hover:bg-gray-800">
                                <div class="text-red-400">Sell</div>
                                <div>69,425.15</div>
                                <div>0.05 BTC</div>
                                <div class="text-right">5 min ago</div>
                            </div>
                            
                            <!-- Trade 3 -->
                            <div class="grid grid-cols-4 text-xs p-2 hover:bg-gray-800">
                                <div class="text-green-400">Buy</div>
                                <div>69,415.78</div>
                                <div>0.2 BTC</div>
                                <div class="text-right">12 min ago</div>
                            </div>
                            
                            <!-- Trade 4 -->
                            <div class="grid grid-cols-4 text-xs p-2 hover:bg-gray-800">
                                <div class="text-red-400">Sell</div>
                                <div>69,430.10</div>
                                <div>0.15 BTC</div>
                                <div class="text-right">25 min ago</div>
                            </div>
                            
                            <!-- Trade 5 -->
                            <div class="grid grid-cols-4 text-xs p-2 hover:bg-gray-800">
                                <div class="text-green-400">Buy</div>
                                <div>69,410.50</div>
                                <div>0.3 BTC</div>
                                <div class="text-right">42 min ago</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Right Sidebar - Social Feed -->
            <div class="hidden lg:block w-1/3 border-l border-gray-800 overflow-y-auto">
                <div class="p-4">
                    <div class="flex justify-between items-center mb-4">
                        <h2 class="text-lg font-semibold">Social Feed</h2>
                        <button class="text-yellow-500 hover:text-yellow-400">
                            <i class="fas fa-plus"></i>
                        </button>
                    </div>
                    
                    <!-- Feed Switch -->
                    <div class="feed-switch">
                        <button class="feed-switch-btn active" onclick="switchFeed('posts')">Posts</button>
                        <button class="feed-switch-btn" onclick="switchFeed('chat')">Chat</button>
                        <button class="feed-switch-btn" onclick="switchFeed('video')">Video</button>
                    </div>
                    
                    <!-- Posts Feed -->
                    <div id="posts-feed">
                        <!-- Create Post -->
                        <div class="mb-6">
                            <div class="flex items-start space-x-3">
                                <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-10 h-10 rounded-full">
                                <div class="flex-1">
                                    <textarea class="w-full bg-gray-800 text-white p-3 rounded-lg border border-gray-700 focus:outline-none focus:border-yellow-500" rows="2" placeholder="Share your trade idea..."></textarea>
                                    <div class="flex justify-between items-center mt-2">
                                        <div class="flex space-x-2">
                                            <button class="text-gray-400 hover:text-yellow-500 p-1">
                                                <i class="fas fa-chart-line"></i>
                                            </button>
                                            <button class="text-gray-400 hover:text-yellow-500 p-1">
                                                <i class="fas fa-image"></i>
                                            </button>
                                            <button class="text-gray-400 hover:text-yellow-500 p-1">
                                                <i class="fas fa-gift"></i>
                                            </button>
                                        </div>
                                        <button class="bg-yellow-600 hover:bg-yellow-700 text-white px-3 py-1 rounded-lg text-sm">
                                            Post
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Feed Items -->
                        <div class="space-y-4">
                            <!-- Feed Item 1 -->
                            <div class="terminal-bg p-4 rounded-lg">
                                <div class="flex justify-between items-start mb-3">
                                    <div class="flex items-center space-x-2">
                                        <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-8 h-8 rounded-full">
                                        <div>
                                            <span class="font-medium">DiamondPaws</span>
                                            <span class="text-xs text-gray-400 ml-1">@DiamondPaws · 2h</span>
                                        </div>
                                    </div>
                                    <button class="text-gray-400 hover:text-yellow-500">
                                        <i class="fas fa-ellipsis-h"></i>
                                    </button>
                                </div>
                                
                                <p class="mb-3">Just entered a long position on $WIF at $2.30. Chart looks bullish with strong support at $2.00. Target $3.50 🚀</p>
                                
                                <div class="bg-gray-800 rounded-lg p-3 mb-3">
                                    <div class="flex justify-between items-center mb-2">
                                        <div class="flex items-center">
                                            <img src="https://cryptologos.cc/logos/wif-dogwifhat-logo.png" alt="WIF" class="w-6 h-6 mr-2">
                                            <span class="font-medium">WIF/USDT</span>
                                        </div>
                                        <div class="text-green-400 font-mono text-sm">$2.34 (+8.9%)</div>
                                    </div>
                                    <div class="h-24 bg-gray-900 rounded mb-2"></div>
                                    <div class="flex justify-between text-xs text-gray-400">
                                        <span>Entry: $2.30</span>
                                        <span>Target: $3.50</span>
                                        <span>Stop: $2.00</span>
                                    </div>
                                </div>
                                
                                <div class="flex justify-between text-sm text-gray-400">
                                    <button class="flex items-center hover:text-yellow-500">
                                        <i class="far fa-comment mr-1"></i> 12
                                    </button>
                                    <button class="flex items-center hover:text-green-500">
                                        <i class="fas fa-retweet mr-1"></i> 24
                                    </button>
                                    <button class="flex items-center hover:text-red-500">
                                        <i class="far fa-heart mr-1"></i> 89
                                    </button>
                                    <button class="flex items-center hover:text-blue-400">
                                        <i class="fas fa-share-alt mr-1"></i>
                                    </button>
                                </div>
                            </div>
                            
                            <!-- Feed Item 2 -->
                            <div class="terminal-bg p-4 rounded-lg">
                                <div class="flex justify-between items-start mb-3">
                                    <div class="flex items-center space-x-2">
                                        <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-8 h-8 rounded-full">
                                        <div>
                                            <span class="font-medium">WhaleHunter</span>
                                            <span class="text-xs text-gray-400 ml-1">@WhaleHunter · 4h</span>
                                        </div>
                                    </div>
                                    <button class="text-gray-400 hover:text-yellow-500">
                                        <i class="fas fa-ellipsis-h"></i>
                                    </button>
                                </div>
                                
                                <p class="mb-3">Shorting $BTC at $69,500. RSI showing divergence on 4H chart. Target $65,000 with stop at $71,000.</p>
                                
                                <div class="bg-gray-800 rounded-lg p-3 mb-3">
                                    <div class="flex justify-between items-center mb-2">
                                        <div class="flex items-center">
                                            <img src="https://cryptologos.cc/logos/bitcoin-btc-logo.png" alt="BTC" class="w-6 h-6 mr-2">
                                            <span class="font-medium">BTC/USDT</span>
                                        </div>
                                        <div class="text-red-400 font-mono text-sm">$69,420 (-1.2%)</div>
                                    </div>
                                    <div class="h-24 bg-gray-900 rounded mb-2"></div>
                                    <div class="flex justify-between text-xs text-gray-400">
                                        <span>Entry: $69,500</span>
                                        <span>Target: $65,000</span>
                                        <span>Stop: $71,000</span>
                                    </div>
                                </div>
                                
                                <div class="flex justify-between text-sm text-gray-400">
                                    <button class="flex items-center hover:text-yellow-500">
                                        <i class="far fa-comment mr-1"></i> 8
                                    </button>
                                    <button class="flex items-center hover:text-green-500">
                                        <i class="fas fa-retweet mr-1"></i> 15
                                    </button>
                                    <button class="flex items-center hover:text-red-500">
                                        <i class="far fa-heart mr-1"></i> 42
                                    </button>
                                    <button class="flex items-center hover:text-blue-400">
                                        <i class="fas fa-share-alt mr-1"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Chat Feed -->
                    <div id="chat-feed" class="hidden-feed">
                        <div class="flex flex-col h-full">
                            <div class="flex-1 overflow-y-auto p-3 space-y-3">
                                <!-- Message 1 -->
                                <div class="flex items-start space-x-2">
                                    <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-8 h-8 rounded-full">
                                    <div class="message-other p-2 max-w-xs">
                                        <div class="text-xs font-medium">DogeTrader</div>
                                        <p class="text-sm">Just went long at $69,200. Bullish divergence on RSI</p>
                                    </div>
                                </div>
                                
                                <!-- Message 2 -->
                                <div class="flex items-start space-x-2 justify-end">
                                    <div class="message-self p-2 max-w-xs">
                                        <div class="text-xs font-medium text-right">You</div>
                                        <p class="text-sm">I'm waiting for a retest of $69,000 support</p>
                                    </div>
                                    <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-8 h-8 rounded-full">
                                </div>
                                
                                <!-- Message 3 -->
                                <div class="flex items-start space-x-2">
                                    <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-8 h-8 rounded-full">
                                    <div class="message-other p-2 max-w-xs">
                                        <div class="text-xs font-medium">CryptoWolf</div>
                                        <p class="text-sm">Volume picking up, breakout incoming</p>
                                    </div>
                                </div>
                                
                                <!-- Message 4 -->
                                <div class="flex items-start space-x-2">
                                    <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-8 h-8 rounded-full">
                                    <div class="message-other p-2 max-w-xs">
                                        <div class="text-xs font-medium">MoonLambo</div>
                                        <p class="text-sm">Just added to my position at $69,300 🚀</p>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="p-3 border-t border-gray-800">
                                <div class="flex items-center space-x-2">
                                    <input type="text" class="flex-1 bg-gray-800 text-white p-2 rounded-lg text-sm" placeholder="Type a message...">
                                    <button class="text-yellow-500 hover:text-yellow-400 p-2">
                                        <i class="fas fa-paper-plane"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Video Chat Feed -->
                    <div id="video-feed" class="hidden-feed">
                        <div class="mb-6">
                            <div class="video-chat mb-3">
                                <div class="video-box video-active">
                                    <div class="video-content">
                                        <i class="fas fa-user fa-2x"></i>
                                        <div class="video-user">You</div>
                                    </div>
                                </div>
                                <div class="video-box">
                                    <div class="video-content">
                                        <i class="fas fa-user fa-2x"></i>
                                        <div class="video-user">DogeTrader</div>
                                    </div>
                                </div>
                                <div class="video-box">
                                    <div class="video-content">
                                        <i class="fas fa-user fa-2x"></i>
                                        <div class="video-user">CryptoWolf</div>
                                    </div>
                                </div>
                                <div class="video-box">
                                    <div class="video-content">
                                        <i class="fas fa-user fa-2x"></i>
                                        <div class="video-user">MoonLambo</div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="flex justify-center space-x-4">
                                <button class="bg-gray-800 text-white p-2 rounded-full hover:bg-gray-700">
                                    <i class="fas fa-microphone"></i>
                                </button>
                                <button class="bg-red-500 text-white p-2 rounded-full hover:bg-red-600">
                                    <i class="fas fa-phone"></i>
                                </button>
                                <button class="bg-gray-800 text-white p-2 rounded-full hover:bg-gray-700">
                                    <i class="fas fa-video"></i>
                                </button>
                            </div>
                        </div>
                        
                        <!-- Chat integrated with video -->
                        <div class="terminal-bg rounded-lg">
                            <div class="flex-1 overflow-y-auto p-3 space-y-3 max-h-64">
                                <!-- Message 1 -->
                                <div class="flex items-start space-x-2">
                                    <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-6 h-6 rounded-full">
                                    <div class="message-other p-2 max-w-xs">
                                        <div class="text-xs font-medium">DogeTrader</div>
                                        <p class="text-sm">Just went long at $69,200. Bullish divergence on RSI</p>
                                    </div>
                                </div>
                                
                                <!-- Message 2 -->
                                <div class="flex items-start space-x-2 justify-end">
                                    <div class="message-self p-2 max-w-xs">
                                        <div class="text-xs font-medium text-right">You</div>
                                        <p class="text-sm">I'm waiting for a retest of $69,000 support</p>
                                    </div>
                                    <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-6 h-6 rounded-full">
                                </div>
                                
                                <!-- Message 3 -->
                                <div class="flex items-start space-x-2">
                                    <img src="https://i.imgur.com/9eeDlQY.png" alt="User" class="w-6 h-6 rounded-full">
                                    <div class="message-other p-2 max-w-xs">
                                        <div class="text-xs font-medium">CryptoWolf</div>
                                        <p class="text-sm">Volume picking up, breakout incoming</p>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="p-3 border-t border-gray-800">
                                <div class="flex items-center space-x-2">
                                    <input type="text" class="flex-1 bg-gray-800 text-white p-2 rounded-lg text-sm" placeholder="Type a message...">
                                    <button class="text-yellow-500 hover:text-yellow-400 p-2">
                                        <i class="fas fa-paper-plane"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script>
        // Initialize charts
        let priceChart;
        let candleChart;
        
        document.addEventListener('DOMContentLoaded', function() {
            // Price Chart
            const priceCtx = document.getElementById('priceChart').getContext('2d');
            priceChart = new Chart(priceCtx, {
                type: 'line',
                data: {
                    labels: Array.from({length: 24}, (_, i) => i + ':00'),
                    datasets: [{
                        label: 'BTC/USDT',
                        data: [69000, 69120, 69250, 69300, 69200, 69150, 69250, 69350, 
                               69420, 69350, 69300, 69250, 69200, 69150, 69100, 69050, 
                               69000, 69050, 69100, 69150, 69200, 69250, 69300, 69420],
                        borderColor: '#f59e0b',
                        borderWidth: 2,
                        fill: false,
                        tension: 0.1
                    },
                    {
                        label: 'SMA 20',
                        data: [68900, 68950, 69000, 69050, 69100, 69120, 69150, 69180, 
                              69200, 69220, 69230, 69240, 69250, 69260, 69270, 69280, 
                              69290, 69300, 69310, 69320, 69330, 69340, 69350, 69400],
                        borderColor: '#3b82f6',
                        borderWidth: 1,
                        fill: false,
                        tension: 0.1
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            display: false
                        }
                    },
                    scales: {
                        x: {
                            grid: {
                                color: 'rgba(255, 255, 255, 0.05)'
                            },
                            ticks: {
                                color: '#94a3b8'
                            }
                        },
                        y: {
                            grid: {
                                color: 'rgba(255, 255, 255, 0.05)'
                            },
                            ticks: {
                                color: '#94a3b8'
                            }
                        }
                    }
                }
            });
            
            // Buy/Sell button functionality
            const buyBtn = document.getElementById('buy-btn');
            const sellBtn = document.getElementById('sell-btn');
            const placeOrderBtn = document.getElementById('place-order-btn');
            
            buyBtn.addEventListener('click', function() {
                buyBtn.classList.add('bg-green-600', 'text-white');
                buyBtn.classList.remove('bg-green-900', 'bg-opacity-30', 'text-green-400');
                sellBtn.classList.add('bg-red-900', 'bg-opacity-30', 'text-red-400');
                sellBtn.classList.remove('bg-red-600', 'text-white');
                placeOrderBtn.classList.add('bg-green-600');
                placeOrderBtn.classList.remove('bg-red-600');
                placeOrderBtn.textContent = 'Buy BTC';
            });
            
            sellBtn.addEventListener('click', function() {
                sellBtn.classList.add('bg-red-600', 'text-white');
                sellBtn.classList.remove('bg-red-900', 'bg-opacity-30', 'text-red-400');
                buyBtn.classList.add('bg-green-900', 'bg-opacity-30', 'text-green-400');
                buyBtn.classList.remove('bg-green-600', 'text-white');
                placeOrderBtn.classList.add('bg-red-600');
                placeOrderBtn.classList.remove('bg-green-600');
                placeOrderBtn.textContent = 'Sell BTC';
            });
        });
        
        // Confetti effect
        function createConfetti() {
            const colors = ['#FFD700', '#FFA500', '#FF6347', '#FF69B4', '#9370DB', '#00FF7F', '#1E90FF'];
            
            for (let i = 0; i < 100; i++) {
                const confetti = document.createElement('div');
                confetti.className = 'confetti';
                confetti.style.left = Math.random() * window.innerWidth + 'px';
                confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
                confetti.style.transform = 'rotate(' + Math.random() * 360 + 'deg)';
                
                document.body.appendChild(confetti);
                
                const animationDuration = Math.random() * 3 + 2;
                
                confetti.style.animation = `fall ${animationDuration}s linear forwards`;
                
                // Create keyframes for falling animation
                const style = document.createElement('style');
                style.innerHTML = `
                    @keyframes fall {
                        0% {
                            transform: translateY(-100vh) rotate(0deg);
                            opacity: 1;
                        }
                        100% {
                            transform: translateY(100vh) rotate(360deg);
                            opacity: 0;
                        }
                    }
                `;
                document.head.appendChild(style);
                
                // Remove confetti after animation
                setTimeout(() => {
                    confetti.remove();
                    style.remove();
                }, animationDuration * 1000);
            }
            
            // Play doge sound
            const audio = new Audio('https://www.myinstants.com/media/sounds/doge-sound.mp3');
            audio.play().catch(e => console.log("Audio play failed:", e));
        }
        
        // Make DOGE logo spin on hover
        document.addEventListener('DOMContentLoaded', () => {
            const dogeLogo = document.querySelector('header img');
            if (dogeLogo) {
                dogeLogo.addEventListener('mouseenter', () => {
                    dogeLogo.classList.add('coin-spin');
                });
                dogeLogo.addEventListener('mouseleave', () => {
                    dogeLogo.classList.remove('coin-spin');
                });
            }
        });
        
        // Feed switching functionality
        function switchFeed(feedType) {
            // Hide all feeds
            document.getElementById('posts-feed').classList.add('hidden-feed');
            document.getElementById('chat-feed').classList.add('hidden-feed');
            document.getElementById('video-feed').classList.add('hidden-feed');
            
            // Show selected feed
            document.getElementById(feedType + '-feed').classList.remove('hidden-feed');
            
            // Update active button
            const buttons = document.querySelectorAll('.feed-switch-btn');
            buttons.forEach(btn => {
                btn.classList.remove('active');
                if (btn.textContent.toLowerCase() === feedType) {
                    btn.classList.add('active');
                }
            });
        }
        
        // Update chart based on indicator selection
        function updateChart(indicator) {
            const priceCtx = document.getElementById('priceChart').getContext('2d');
            
            // Reset all indicator buttons
            document.querySelectorAll('.indicator-active').forEach(btn => {
                btn.classList.remove('indicator-active');
            });
            
            // Set active indicator
            document.getElementById(indicator + '-btn').classList.add('indicator-active');
            
            // Destroy existing chart
            if (priceChart) {
                priceChart.destroy();
            }
            
            // Create new chart based on indicator
            if (indicator === 'bollinger') {
                // Create candle chart with Bollinger Bands
                priceChart = new Chart(priceCtx, {
                    type: 'candlestick',
                    data: {
                        labels: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'],
                        datasets: [
                            {
                                label: 'BTC/USDT',
                                data: [
                                    {o: 69000, h: 69200, l: 68950, c: 69150},
                                    {o: 69150, h: 69300, l: 69050, c: 69250},
                                    {o: 69250, h: 69350, l: 69100, c: 69300},
                                    {o: 69300, h: 69400, l: 69150, c: 69200},
                                    {o: 69200, h: 69300, l: 69100, c: 69250},
                                    {o: 69250, h: 69420, l: 69150, c: 69350},
                                    {o: 69350, h: 69450, l: 69200, c: 69300},
                                    {o: 69300, h: 69400, l: 69150, c: 69250},
                                    {o: 69250, h: 69350, l: 69100, c: 69200},
                                    {o: 69200, h: 69300, l: 69050, c: 69150},
                                    {o: 69150, h: 69250, l: 69000, c: 69100},
                                    {o: 69100, h: 69200, l: 68950, c: 69050},
                                    {o: 69050, h: 69150, l: 68900, c: 69000},
                                    {o: 69000, h: 69100, l: 68850, c: 68950},
                                    {o: 68950, h: 69050, l: 68800, c: 68900},
                                    {o: 68900, h: 69000, l: 68750, c: 68850},
                                    {o: 68850, h: 68950, l: 68700, c: 68800},
                                    {o: 68800, h: 68900, l: 68650, c: 68750},
                                    {o: 68750, h: 68850, l: 68600, c: 68700},
                                    {o: 68700, h: 68800
</html>