File size: 64,813 Bytes
89d2cd8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Apocalypse Profit Miners - Enhanced</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* Previous CSS styles remain unchanged */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
        
        .miner-head {
            animation: float 4s ease-in-out infinite;
            transition: all 0.3s ease;
            border: 2px solid;
            cursor: pointer;
        }
        
        .miner-head:hover {
            transform: scale(1.05) !important;
            animation-play-state: paused;
        }
        
        .visionary {
            animation-delay: 0s;
            border-color: #3b82f6;
        }
        
        .strategist {
            animation-delay: 0.5s;
            border-color: #ef4444;
        }
        
        .alchemist {
            animation-delay: 1s;
            border-color: #10b981;
        }
        
        .hustler {
            animation-delay: 1.5s;
            border-color: #8b5cf6;
        }
        
        .chat-container {
            height: 500px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #4b5563 #1f2937;
        }
        
        .chat-container::-webkit-scrollbar {
            width: 8px;
        }
        
        .chat-container::-webkit-scrollbar-track {
            background: #1f2937;
        }
        
        .chat-container::-webkit-scrollbar-thumb {
            background-color: #4b5563;
            border-radius: 4px;
        }
        
        .message {
            max-width: 80%;
            word-wrap: break-word;
        }
        
        .typing-indicator {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #6b7280;
            margin-right: 4px;
            animation: bounce 1.5s infinite ease-in-out;
        }
        
        .typing-indicator:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .typing-indicator:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        
        .gold-text {
            color: #f59e0b;
            text-shadow: 1px 1px 2px #000;
        }
        
        .apocalypse-bg {
            background-image: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
        }
        
        .clickable-topic {
            cursor: pointer;
            text-decoration: underline;
            color: #f59e0b;
            transition: all 0.2s;
        }
        
        .clickable-topic:hover {
            color: #fcd34d;
            text-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
        }
        
        .highlight {
            animation: highlight-pulse 1.5s ease-out;
        }
        
        @keyframes highlight-pulse {
            0% { background-color: rgba(245, 158, 11, 0); }
            50% { background-color: rgba(245, 158, 11, 0.3); }
            100% { background-color: rgba(245, 158, 11, 0); }
        }
        
        .profit-meter {
            height: 20px;
            background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
            border-radius: 10px;
            position: relative;
        }
        
        .profit-marker {
            position: absolute;
            width: 2px;
            height: 30px;
            background-color: white;
            top: -5px;
        }
        
        .archetype-badge {
            font-size: 0.6rem;
            padding: 2px 4px;
            border-radius: 4px;
            margin-left: 4px;
        }
        
        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
        }
        
        .timeline-item {
            position: relative;
            padding-left: 30px;
            margin-bottom: 20px;
        }
        
        .timeline-item:before {
            content: '';
            position: absolute;
            left: 0;
            top: 5px;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: #f59e0b;
        }
        
        .timeline-connector {
            position: absolute;
            left: 7px;
            top: 20px;
            bottom: -15px;
            width: 1px;
            background: #4b5563;
        }
        
        .idea-card {
            transition: all 0.3s ease;
            border-left: 4px solid;
        }
        
        .idea-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        }
        
        .today-idea {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
            100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
        }
        
        .response-group {
            border-left: 3px solid #4b5563;
            margin-left: 10px;
            padding-left: 10px;
        }
        
        .response-header {
            font-size: 0.8rem;
            color: #9ca3af;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
        }
        
        .response-header i {
            margin-right: 5px;
        }
        
        .report-section {
            display: none;
            background: rgba(30, 41, 59, 0.8);
            border-radius: 0.5rem;
            padding: 1rem;
            margin-top: 1rem;
            border: 1px solid rgba(100, 116, 139, 0.5);
        }
        
        .detailed-analysis {
            background: rgba(15, 23, 42, 0.7);
            padding: 1rem;
            border-radius: 0.5rem;
            margin-top: 0.5rem;
            border-left: 3px solid #f59e0b;
        }
        
        .data-point {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.3rem;
            font-size: 0.85rem;
        }
        
        .data-label {
            color: #9ca3af;
        }
        
        .data-value {
            font-weight: 500;
        }
        
        .conversation-memory {
            font-size: 0.75rem;
            color: #6b7280;
            margin-top: 0.5rem;
            padding-top: 0.5rem;
            border-top: 1px dashed #4b5563;
        }
        
        .download-btn {
            transition: all 0.3s ease;
        }
        
        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
        }
        
        .knowledge-graph {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }
        
        .knowledge-node {
            background: rgba(30, 41, 59, 0.5);
            border-radius: 5px;
            padding: 8px;
            font-size: 0.8rem;
            border-left: 3px solid #f59e0b;
        }
        
        .knowledge-node-header {
            font-weight: bold;
            margin-bottom: 5px;
            color: #f59e0b;
        }
        
        .knowledge-node-content {
            font-size: 0.75rem;
        }
        
        .data-visualization {
            background: rgba(15, 23, 42, 0.7);
            padding: 10px;
            border-radius: 5px;
            margin-top: 10px;
        }
        
        .data-table {
            width: 100%;
            font-size: 0.75rem;
            border-collapse: collapse;
        }
        
        .data-table th, .data-table td {
            padding: 5px;
            text-align: left;
            border-bottom: 1px solid #4b5563;
        }
        
        .data-table th {
            color: #f59e0b;
            font-weight: bold;
        }
        
        .trend-indicator {
            display: inline-block;
            width: 0;
            height: 0;
            margin-left: 5px;
            vertical-align: middle;
        }
        
        .trend-up {
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 5px solid #10b981;
        }
        
        .trend-down {
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid #ef4444;
        }
        
        .trend-neutral {
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 5px solid #f59e0b;
            border-top: 5px solid #f59e0b;
            height: 2px;
            margin-bottom: 3px;
        }
        
        .interactive-data {
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .interactive-data:hover {
            background: rgba(245, 158, 11, 0.1);
        }
        
        .knowledge-connection {
            height: 1px;
            background: linear-gradient(90deg, transparent, #4b5563, transparent);
            margin: 5px 0;
        }
        
        /* New enhanced styles for expanded data sections */
        .data-section {
            margin-bottom: 20px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .data-section-header {
            padding: 12px 15px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .data-section-header:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }
        
        .data-section-content {
            padding: 15px;
            background-color: rgba(15, 23, 42, 0.7);
        }
        
        .data-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }
        
        .data-card {
            background: rgba(30, 41, 59, 0.5);
            border-radius: 6px;
            padding: 12px;
            border-left: 4px solid;
        }
        
        .data-card-header {
            font-weight: 600;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
        }
        
        .data-card-content {
            font-size: 0.85rem;
        }
        
        .data-card-footer {
            margin-top: 8px;
            font-size: 0.75rem;
            color: #9ca3af;
        }
        
        /* Bot response enhancements */
        .bot-response {
            position: relative;
            padding-left: 40px;
            margin-bottom: 15px;
        }
        
        .bot-avatar {
            position: absolute;
            left: 0;
            top: 0;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        
        .bot-message {
            background: rgba(30, 41, 59, 0.7);
            border-radius: 8px;
            padding: 12px;
            border-left: 3px solid;
        }
        
        .bot-meta {
            font-size: 0.75rem;
            color: #9ca3af;
            margin-top: 5px;
            display: flex;
            justify-content: space-between;
        }
        
        /* Enhanced data visualization */
        .mini-chart {
            height: 60px;
            width: 100%;
            margin-top: 10px;
        }
        
        .data-badge {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
        }
        
        .badge-positive {
            background-color: rgba(16, 185, 129, 0.2);
            color: #10b981;
        }
        
        .badge-negative {
            background-color: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
        
        .badge-neutral {
            background-color: rgba(245, 158, 11, 0.2);
            color: #f59e0b;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .data-grid {
                grid-template-columns: 1fr;
            }
            
            .chat-container {
                height: 400px;
            }
        }
        
        /* Animation for new data cards */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-slide-in {
            animation: slideIn 0.3s ease-out forwards;
        }
        
        /* Tooltip styles */
        .tooltip {
            position: relative;
            display: inline-block;
        }
        
        .tooltip .tooltip-text {
            visibility: hidden;
            width: 200px;
            background-color: #1e293b;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.8rem;
            border: 1px solid #334155;
        }
        
        .tooltip:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }
    </style>
</head>
<body class="apocalypse-bg text-gray-200 min-h-screen">
    <div class="container mx-auto px-4 py-8">
        <header class="flex flex-col md:flex-row justify-between items-center mb-8">
            <div class="flex items-center mb-4 md:mb-0">
                <img src="https://via.placeholder.com/80" alt="Logo" class="h-16 w-16 mr-4 rounded-full border-2 border-yellow-500">
                <div>
                    <h1 class="text-3xl font-bold gold-text">Apocalypse Profit Miners</h1>
                    <p class="text-gray-400">Post-Collapse Resource Optimization Network</p>
                </div>
            </div>
            <div class="flex items-center space-x-4">
                <div class="bg-gray-800 px-4 py-2 rounded-lg">
                    <div class="text-sm text-gray-400">Current Cycle</div>
                    <div class="font-bold">Q3 2023</div>
                </div>
                <div class="bg-gray-800 px-4 py-2 rounded-lg">
                    <div class="text-sm text-gray-400">Profit Index</div>
                    <div class="font-bold text-yellow-500">87.6 <span class="text-green-500 text-sm">↑2.4%</span></div>
                </div>
            </div>
        </header>

        <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
            <!-- Miner Heads -->
            <div class="lg:col-span-1 bg-gray-800 bg-opacity-50 rounded-xl p-6">
                <h2 class="text-xl font-bold mb-4 gold-text">Miner Command</h2>
                <div class="grid grid-cols-2 gap-4">
                    <div class="miner-head visionary rounded-full p-4 flex flex-col items-center">
                        <img src="https://via.placeholder.com/100" alt="Visionary" class="h-20 w-20 rounded-full mb-2">
                        <div class="text-center">
                            <div class="font-bold">Visionary</div>
                            <div class="text-xs text-gray-400">Long-term Forecasting</div>
                        </div>
                    </div>
                    <div class="miner-head strategist rounded-full p-4 flex flex-col items-center">
                        <img src="https://via.placeholder.com/100" alt="Strategist" class="h-20 w-20 rounded-full mb-2">
                        <div class="text-center">
                            <div class="font-bold">Strategist</div>
                            <div class="text-xs text-gray-400">Tactical Planning</div>
                        </div>
                    </div>
                    <div class="miner-head alchemist rounded-full p-4 flex flex-col items-center">
                        <img src="https://via.placeholder.com/100" alt="Alchemist" class="h-20 w-20 rounded-full mb-2">
                        <div class="text-center">
                            <div class="font-bold">Alchemist</div>
                            <div class="text-xs text-gray-400">Resource Conversion</div>
                        </div>
                    </div>
                    <div class="miner-head hustler rounded-full p-4 flex flex-col items-center">
                        <img src="https://via.placeholder.com/100" alt="Hustler" class="h-20 w-20 rounded-full mb-2">
                        <div class="text-center">
                            <div class="font-bold">Hustler</div>
                            <div class="text-xs text-gray-400">Opportunity Execution</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Profit Report -->
            <div class="lg:col-span-2 bg-gray-800 bg-opacity-50 rounded-xl p-6">
                <div class="flex justify-between items-center mb-4">
                    <h2 class="text-xl font-bold gold-text">Enhanced Profit Report</h2>
                    <button id="downloadReport" class="download-btn bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-download mr-2"></i> Export
                    </button>
                </div>
                
                <!-- Profit Meter -->
                <div class="mb-6">
                    <div class="flex justify-between mb-2">
                        <span>Risk</span>
                        <span>Balance</span>
                        <span>Reward</span>
                    </div>
                    <div class="profit-meter relative">
                        <div class="profit-marker" style="left: 30%;"></div>
        <div class="profit-marker" style="left: 65%;"></div>
      </div>
      <div class="flex justify-between mt-1 text-xs text-gray-400">
        <span>Current: 65%</span>
        <span>Optimal: 45-75%</span>
        <span>Last: 62%</span>
      </div>
    </div>
    
    <!-- Expanded Profit Report Sections -->
    <div id="profitReportContent">
      <!-- Sector Performance -->
      <div class="data-section mb-6 bg-gray-900 rounded-lg">
        <div class="data-section-header bg-gray-800">
          <div class="flex items-center">
            <i class="fas fa-chart-pie mr-2 text-blue-400"></i>
            <span>Sector Performance Analysis</span>
          </div>
          <i class="fas fa-chevron-down text-gray-400"></i>
        </div>
        <div class="data-section-content">
          <div class="data-grid">
            <div class="data-card border-blue-500 animate-slide-in">
              <div class="data-card-header">
                <span>Water Purification</span>
                <span class="badge-positive">+12.4%</span>
              </div>
              <div class="data-card-content">
                <p>Demand remains high with 87% utilization. New filtration tech increased output by 18%.</p>
                <div class="mini-chart mt-2" id="waterChart"></div>
              </div>
              <div class="data-card-footer">
                <span>Last updated: 2 hours ago</span>
                <span class="text-blue-400">Strategic Priority</span>
              </div>
            </div>
            
            <div class="data-card border-red-500 animate-slide-in">
              <div class="data-card-header">
                <span>Ammunition</span>
                <span class="badge-negative">+5.7%</span>
              </div>
              <div class="data-card-content">
                <p>Lead shortages causing production delays. Recommend alternative materials.</p>
                <div class="mini-chart mt-2" id="ammoChart"></div>
              </div>
              <div class="data-card-footer">
                <span>Last updated: 4 hours ago</span>
                <span class="text-red-400">Critical Issue</span>
              </div>
            </div>
            
            <div class="data-card border-green-500 animate-slide-in">
              <div class="data-card-header">
                <span>Medical Supplies</span>
                <span class="badge-positive">+8.3%</span>
              </div>
              <div class="data-card-content">
                <p>New trade routes established with Clinic Collective. Projected 15% growth.</p>
                <div class="mini-chart mt-2" id="medChart"></div>
              </div>
              <div class="data-card-footer">
                <span>Last updated: 1 hour ago</span>
                <span class="text-green-400">Growth Sector</span>
              </div>
            </div>
            
            <div class="data-card border-purple-500 animate-slide-in">
              <div class="data-card-header">
                <span>Energy Production</span>
                <span class="badge-neutral">±1.2%</span>
              </div>
              <div class="data-card-content">
                <p>Stable output but aging infrastructure requires maintenance investment.</p>
                <div class="mini-chart mt-2" id="energyChart"></div>
              </div>
              <div class="data-card-footer">
                <span>Last updated: 6 hours ago</span>
                <span class="text-purple-400">Stable</span>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- Resource Allocation -->
      <div class="data-section mb-6 bg-gray-900 rounded-lg">
        <div class="data-section-header bg-gray-800">
          <div class="flex items-center">
            <i class="fas fa-project-diagram mr-2 text-green-400"></i>
            <span>Resource Allocation Matrix</span>
          </div>
          <i class="fas fa-chevron-down text-gray-400"></i>
        </div>
        <div class="data-section-content">
          <div class="mb-4">
            <h4 class="font-medium mb-2">Current Allocation vs. Optimal</h4>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
              <div>
                <div class="flex justify-between text-sm mb-1">
                  <span>Water</span>
                  <span>42% (Opt: 38%)</span>
                </div>
                <div class="w-full bg-gray-700 rounded-full h-2.5">
                  <div class="bg-blue-500 h-2.5 rounded-full" style="width: 42%"></div>
                </div>
              </div>
              <div>
                <div class="flex justify-between text-sm mb-1">
                  <span>Security</span>
                  <span>18% (Opt: 22%)</span>
                </div>
                <div class="w-full bg-gray-700 rounded-full h-2.5">
                  <div class="bg-red-500 h-2.5 rounded-full" style="width: 18%"></div>
                </div>
              </div>
              <div>
                <div class="flex justify-between text-sm mb-1">
                  <span>Medical</span>
                  <span>15% (Opt: 12%)</span>
                </div>
                <div class="w-full bg-gray-700 rounded-full h-2.5">
                  <div class="bg-green-500 h-2.5 rounded-full" style="width: 15%"></div>
                </div>
              </div>
              <div>
                <div class="flex justify-between text-sm mb-1">
                  <span>Energy</span>
                  <span>25% (Opt: 28%)</span>
                </div>
                <div class="w-full bg-gray-700 rounded-full h-2.5">
                  <div class="bg-purple-500 h-2.5 rounded-full" style="width: 25%"></div>
                </div>
              </div>
            </div>
          </div>
          
          <div class="mt-4">
            <h4 class="font-medium mb-2">Recommended Adjustments</h4>
            <div class="space-y-3">
              <div class="flex items-center">
                <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center mr-3">
                  <i class="fas fa-tint text-white text-sm"></i>
                </div>
                <div class="flex-1">
                  <div class="flex justify-between">
                    <span>Reduce water allocation by 4%</span>
                    <span class="text-sm text-gray-400">Priority: Medium</span>
                  </div>
                  <div class="text-sm text-gray-400">Excess capacity can be temporarily reduced</div>
                </div>
              </div>
              <div class="flex items-center">
                <div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center mr-3">
                  <i class="fas fa-shield-alt text-white text-sm"></i>
                </div>
                <div class="flex-1">
                  <div class="flex justify-between">
                    <span>Increase security by 4%</span>
                    <span class="text-sm text-gray-400">Priority: High</span>
                  </div>
                  <div class="text-sm text-gray-400">Recent raids indicate need for stronger defenses</div>
                </div>
              </div>
              <div class="flex items-center">
                <div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center mr-3">
                  <i class="fas fa-bolt text-white text-sm"></i>
                </div>
                <div class="flex-1">
                  <div class="flex justify-between">
                    <span>Increase energy by 3%</span>
                    <span class="text-sm text-gray-400">Priority: Medium</span>
                  </div>
                  <div class="text-sm text-gray-400">Preventive maintenance needed on generators</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- Market Trends -->
      <div class="data-section mb-6 bg-gray-900 rounded-lg">
        <div class="data-section-header bg-gray-800">
          <div class="flex items-center">
            <i class="fas fa-chart-line mr-2 text-yellow-400"></i>
            <span>Market Trends & Projections</span>
          </div>
          <i class="fas fa-chevron-down text-gray-400"></i>
        </div>
        <div class="data-section-content">
          <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
            <div class="bg-gray-800 p-4 rounded-lg">
              <h4 class="font-medium mb-2">Commodity Price Index</h4>
              <div class="space-y-2">
                <div class="flex justify-between text-sm">
                  <span>Clean Water (liter)</span>
                  <span class="font-medium">5.2 caps <span class="text-green-500">↑3%</span></span>
                </div>
                <div class="flex justify-between text-sm">
                  <span>5.56mm Ammo (round)</span>
                  <span class="font-medium">1.8 caps <span class="text-red-500">↓7%</span></span>
                </div>
                <div class="flex justify-between text-sm">
                  <span>Antibiotics (dose)</span>
                  <span class="font-medium">22 caps <span class="text-green-500">↑15%</span></span>
                </div>
                <div class="flex justify-between text-sm">
                  <span>Solar Panel (100W)</span>
                  <span class="font-medium">85 caps <span class="text-yellow-500">±0%</span></span>
                </div>
              </div>
            </div>
            <div class="bg-gray-800 p-4 rounded-lg">
              <h4 class="font-medium mb-2">Demand Forecast</h4>
              <div class="space-y-2">
                <div class="flex justify-between text-sm">
                  <span>Water Purification</span>
                  <span class="font-medium">High <span class="text-green-500">↑</span></span>
                </div>
                <div class="flex justify-between text-sm">
                  <span>Security Services</span>
                  <span class="font-medium">Critical <span class="text-green-500">↑↑</span></span>
                </div>
                <div class="flex justify-between text-sm">
                  <span>Medical Training</span>
                  <span class="font-medium">Moderate <span class="text-yellow-500">→</span></span>
                </div>
                <div class="flex justify-between text-sm">
                  <span>Scrap Metal</span>
                  <span class="font-medium">Low <span class="text-red-500">↓</span></span>
                </div>
              </div>
            </div>
          </div>
          
          <div class="mt-4">
            <h4 class="font-medium mb-2">Key Market Events</h4>
            <div class="space-y-3">
              <div class="flex">
                <div class="mr-3 mt-1">
                  <div class="w-6 h-6 rounded-full bg-red-500 flex items-center justify-center">
                    <i class="fas fa-exclamation text-white text-xs"></i>
                  </div>
                </div>
                <div>
                  <div class="font-medium">Raider Activity Increase</div>
                  <div class="text-sm text-gray-400">Security services demand up 32% in last 2 weeks</div>
                  <div class="text-xs text-gray-500 mt-1">Impact: High | Duration: 2-4 weeks</div>
                </div>
              </div>
              <div class="flex">
                <div class="mr-3 mt-1">
                  <div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center">
                    <i class="fas fa-plus text-white text-xs"></i>
                  </div>
                </div>
                <div>
                  <div class="font-medium">New Trade Route Established</div>
                  <div class="text-sm text-gray-400">Connection to Northern settlements reduces transport costs by 18%</div>
                  <div class="text-xs text-gray-500 mt-1">Impact: Medium | Duration: Permanent</div>
                </div>
              </div>
              <div class="flex">
                <div class="mr-3 mt-1">
                  <div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center">
                    <i class="fas fa-info text-white text-xs"></i>
                  </div>
                </div>
                <div>
                  <div class="font-medium">Water Table Changes</div>
                  <div class="text-sm text-gray-400">Eastern wells showing 12% reduction in output</div>
                  <div class="text-xs text-gray-500 mt-1">Impact: Medium | Duration: 3-6 months</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- Risk Assessment -->
      <div class="data-section mb-6 bg-gray-900 rounded-lg">
        <div class="data-section-header bg-gray-800">
          <div class="flex items-center">
            <i class="fas fa-exclamation-triangle mr-2 text-red-400"></i>
            <span>Comprehensive Risk Analysis</span>
          </div>
          <i class="fas fa-chevron-down text-gray-400"></i>
        </div>
        <div class="data-section-content">
          <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
            <div class="bg-gray-800 p-4 rounded-lg">
              <h4 class="font-medium mb-2 text-red-400">Immediate Threats</h4>
              <div class="space-y-3">
                <div>
                  <div class="flex justify-between">
                    <span class="font-medium">Raider Incursions</span>
                    <span class="text-red-400 text-sm">High</span>
                  </div>
                  <div class="text-xs text-gray-400">Increased activity near Sector 7</div>
                </div>
                <div>
                  <div class="flex justify-between">
                    <span class="font-medium">Supply Chain Disruption</span>
                    <span class="text-red-400 text-sm">Medium</span>
                  </div>
                  <div class="text-xs text-gray-400">Eastern route compromised</div>
                </div>
              </div>
            </div>
            <div class="bg-gray-800 p-4 rounded-lg">
              <h4 class="font-medium mb-2 text-yellow-400">Strategic Risks</h4>
              <div class="space-y-3">
                <div>
                  <div class="flex justify-between">
                    <span class="font-medium">Resource Depletion</span>
                    <span class="text-yellow-400 text-sm">Medium</span>
                  </div>
                  <div class="text-xs text-gray-400">Lead reserves at 23%</div>
                </div>
                <div>
                  <div class="flex justify-between">
                    <span class="font-medium">Tech Obsolescence</span>
                    <span class="text-yellow-400 text-sm">Low</span>
                  </div>
                  <div class="text-xs text-gray-400">Water filters need upgrade</div>
                </div>
              </div>
            </div>
            <div class="bg-gray-800 p-4 rounded-lg">
              <h4 class="font-medium mb-2 text-blue-400">Opportunity Risks</h4>
              <div class="space-y-3">
                <div>
                  <div class="flex justify-between">
                    <span class="font-medium">Market Saturation</span>
                    <span class="text-blue-400 text-sm">Low</span>
                  </div>
                  <div class="text-xs text-gray-400">New competitors in water market</div>
                </div>
                <div>
                  <div class="flex justify-between">
                    <span class="font-medium">Overextension</span>
                    <span class="text-blue-400 text-sm">Medium</span>
                  </div>
                  <div class="text-xs text-gray-400">Current expansion at 78% capacity</div>
                </div>
              </div>
            </div>
          </div>
          
          <div class="mt-4">
            <h4 class="font-medium mb-2">Risk Mitigation Strategies</h4>
            <div class="space-y-3">
              <div class="flex items-start">
                <div class="mr-3 mt-1">
                  <div class="w-6 h-6 rounded-full bg-red-500 flex items-center justify-center">
                    <i class="fas fa-shield-alt text-white text-xs"></i>
                  </div>
                </div>
                <div>
                  <div class="font-medium">Enhanced Security Protocols</div>
                  <div class="text-sm text-gray-400">Implement rotating patrols and early warning systems in Sector 7</div>
                  <div class="text-xs text-gray-500 mt-1">Cost: 120 caps/day | Effectiveness: 82%</div>
                </div>
              </div>
              <div class="flex items-start">
                <div class="mr-3 mt-1">
                  <div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center">
                    <i class="fas fa-search text-white text-xs"></i>
                  </div>
                </div>
                <div>
                  <div class="font-medium">Alternative Supply Routes</div>
                  <div class="text-sm text-gray-400">Establish northern trade path through neutral territory</div>
                  <div class="text-xs text-gray-500 mt-1">Cost: 200 caps setup | Effectiveness: 75%</div>
                </div>
              </div>
              <div class="flex items-start">
                <div class="mr-3 mt-1">
                  <div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center">
                    <i class="fas fa-flask text-white text-xs"></i>
                  </div>
                </div>
                <div>
                  <div class="font-medium">Material Research</div>
                  <div class="text-sm text-gray-400">Develop alternative bullet materials using scrap composites</div>
                  <div class="text-xs text-gray-500 mt-1">Cost: 350 caps | Time: 14 days</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- Financial Metrics -->
      <div class="data-section mb-6 bg-gray-900 rounded-lg">
        <div class="data-section-header bg-gray-800">
          <div class="flex items-center">
            <i class="fas fa-coins mr-2 text-yellow-400"></i>
            <span>Advanced Financial Metrics</span>
          </div>
          <i class="fas fa-chevron-down text-gray-400"></i>
        </div>
        <div class="data-section-content">
          <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-4">
            <div class="bg-gray-800 p-4 rounded-lg">
              <div class="text-sm text-gray-400 mb-1">Daily Revenue</div>
              <div class="text-xl font-bold">2,450 <span class="text-green-500 text-sm">↑8%</span></div>
              <div class="text-xs text-gray-400 mt-1">vs. prev. week</div>
            </div>
            <div class="bg-gray-800 p-4 rounded-lg">
              <div class="text-sm text-gray-400 mb-1">Operating Costs</div>
              <div class="text-xl font-bold">1,120 <span class="text-red-500 text-sm">↑12%</span></div>
              <div class="text-xs text-gray-400 mt-1">security increase</div>
            </div>
            <div class="bg-gray-800 p-4 rounded-lg">
              <div class="text-sm text-gray-400 mb-1">Net Profit</div>
              <div class="text-xl font-bold">1,330 <span class="text-green-500 text-sm">↑4%</span></div>
              <div class="text-xs text-gray-400 mt-1">margin: 54.3%</div>
            </div>
            <div class="bg-gray-800 p-4 rounded-lg">
              <div class="text-sm text-gray-400 mb-1">Cash Reserve</div>
              <div class="text-xl font-bold">8,750</div>
              <div class="text-xs text-gray-400 mt-1">6.5 days coverage</div>
            </div>
          </div>
          
          <div class="mt-4">
            <h4 class="font-medium mb-2">Profitability by Sector</h4>
            <div class="overflow-x-auto">
              <table class="w-full text-sm">
                <thead>
                  <tr class="text-gray-400 border-b border-gray-700">
                    <th class="pb-2 text-left">Sector</th>
                    <th class="pb-2 text-right">Revenue</th>
                    <th class="pb-2 text-right">Cost</th>
                    <th class="pb-2 text-right">Margin</th>
                    <th class="pb-2 text-right">Trend</th>
                  </tr>
                </thead>
                <tbody>
                  <tr class="border-b border-gray-800">
                    <td class="py-2">Water</td>
                    <td class="py-2 text-right">980</td>
                    <td class="py-2 text-right">320</td>
                    <td class="py-2 text-right text-green-500">67.3%</td>
                    <td class="py-2 text-right"><span class="text-green-500">↑3%</span></td>
                  </tr>
                  <tr class="border-b border-gray-800">
                    <td class="py-2">Security</td>
                    <td class="py-2 text-right">650</td>
                    <td class="py-2 text-right">480</td>
                    <td class="py-2 text-right text-yellow-500">26.2%</td>
                    <td class="py-2 text-right"><span class="text-green-500">↑8%</span></td>
                  </tr>
                  <tr class="border-b border-gray-800">
                    <td class="py-2">Medical</td>
                    <td class="py-2 text-right">420</td>
                    <td class="py-2 text-right">180</td>
                    <td class="py-2 text-right text-green-500">57.1%</td>
                    <td class="py-2 text-right"><span class="text-green-500">↑12%</span></td>
                  </tr>
                  <tr>
                    <td class="py-2">Energy</td>
                    <td class="py-2 text-right">400</td>
                    <td class="py-2 text-right">140</td>
                    <td class="py-2 text-right text-green-500">65.0%</td>
                    <td class="py-2 text-right"><span class="text-red-500">↓2%</span></td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          
          <div class="mt-6">
            <h4 class="font-medium mb-2">Financial Projections</h4>
            <div class="chart-container">
              <canvas id="financialChart"></canvas>
            </div>
            <div class="grid grid-cols-3 gap-4 mt-4 text-center text-xs">
              <div>
                <div class="font-medium">Best Case</div>
                <div class="text-green-500">+18% monthly growth</div>
              </div>
              <div>
                <div class="font-medium">Base Case</div>
                <div class="text-yellow-500">+9% monthly growth</div>
              </div>
              <div>
                <div class="font-medium">Worst Case</div>
                <div class="text-red-500">-5% monthly decline</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- Strategic Recommendations -->
      <div class="data-section mb-6 bg-gray-900 rounded-lg">
        <div class="data-section-header bg-gray-800">
          <div class="flex items-center">
            <i class="fas fa-chess-queen mr-2 text-purple-400"></i>
            <span>Strategic Action Plan</span>
          </div>
          <i class="fas fa-chevron-down text-gray-400"></i>
        </div>
        <div class="data-section-content">
          <div class="space-y-4">
            <div class="flex">
              <div class="mr-3 mt-1">
                <div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center">
                  <span class="text-white font-bold">1</span>
                </div>
              </div>
              <div>
                <div class="font-bold">Immediate Security Reinforcement</div>
                <div class="text-sm text-gray-400 mt-1">
                  Allocate additional 4% resources to security operations. Prioritize Sector 7 defenses and establish rapid response teams. Expected cost: 120 caps/day. Projected risk reduction: 42%.
                </div>
                <div class="flex mt-2">
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Critical</span>
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 48h</span>
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 3.2x</span>
                </div>
              </div>
            </div>
            
            <div class="flex">
              <div class="mr-3 mt-1">
                <div class="w-8 h-8 rounded-full bg-yellow-500 flex items-center justify-center">
                  <span class="text-white font-bold">2</span>
                </div>
              </div>
              <div>
                <div class="font-bold">Alternative Supply Routes</div>
                <div class="text-sm text-gray-400 mt-1">
                  Establish northern trade path through neutral territory. Requires negotiation with 3 settlements. Initial cost: 200 caps. Reduces transport costs by 18% long-term.
                </div>
                <div class="flex mt-2">
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: High</span>
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 7d</span>
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 5.8x</span>
                </div>
              </div>
            </div>
            
            <div class="flex">
              <div class="mr-3 mt-1">
                <div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center">
                  <span class="text-white font-bold">3</span>
                </div>
              </div>
              <div>
                <div class="font-bold">Material Research Initiative</div>
                <div class="text-sm text-gray-400 mt-1">
                  Develop alternative bullet materials using scrap composites. Allocate 2 researchers and 350 caps budget. Potential to reduce ammunition production costs by 22%.
                </div>
                <div class="flex mt-2">
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Medium</span>
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 14d</span>
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 4.1x</span>
                </div>
              </div>
            </div>
            
            <div class="flex">
              <div class="mr-3 mt-1">
                <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center">
                  <span class="text-white font-bold">4</span>
                </div>
              </div>
              <div>
                <div class="font-bold">Medical Training Program</div>
                <div class="text-sm text-gray-400 mt-1">
                  Expand medical training to 4 additional personnel. Initial cost: 180 caps. Increases medical capacity by 30% and reduces outsourcing costs by 15%.
                </div>
                <div class="flex mt-2">
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Medium</span>
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 21d</span>
                  <span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 2.7x</span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- Knowledge Graph -->
<div class="bg-gray-800 bg-opacity-50 rounded-xl p-6 mb-8">
  <h2 class="text-xl font-bold mb-4 gold-text">Enhanced Knowledge Network</h2>
  <div class="data-grid">
    <div class="data-card border-blue-500">
      <div class="data-card-header">
        <span>Water Market Dynamics</span>
        <span class="badge-positive">Updated</span>
      </div>
      <div class="data-card-content">
        <p>Detailed analysis of purification tech impact on pricing and demand curves across 12 settlements.</p>
        <div class="knowledge-connection"></div>
        <div class="text-xs text-gray-400 mt-2">
          <span class="text-blue-400">Related:</span> Purification Tech, Settlement Needs, Transport Routes
        </div>
      </div>
      <div class="data-card-footer">
        <span>Depth: 87%</span>
        <span class="text-blue-400">12 connections</span>
      </div>
    </div>
    
    <div class="data-card border-red-500">
      <div class="data-card-header">
        <span>Security Threat Matrix</span>
        <span class="badge-negative">Alert</span>
      </div>
      <div class="data-card-content">
        <p>Real-time tracking of 23 raider groups with movement patterns and historical attack data.</p>
        <div class="knowledge-connection"></div>
        <div class="text-xs text-gray-400 mt-2">
          <span class="text-red-400">Related:</span> Defense Protocols, Patrol Routes, Early Warning Systems
        </div>
      </div>
      <div class="data-card-footer">
        <span>Depth: 92%</span>
        <span class="text-red-400">18 connections</span>
      </div>
    </div>
    
    <div class="data-card border-green-500">
      <div class="data-card-header">
        <span>Medical Supply Chains</span>
        <span class="badge-positive">New Data</span>
      </div>
      <div class="data-card-content">
        <p>Mapping of 8 reliable suppliers with quality metrics and delivery reliability scores.</p>
        <div class="knowledge-connection"></div>
        <div class="text-xs text-gray-400 mt-2">
          <span class="text-green-400">Related:</span> Antibiotic Sources, Training Programs, Settlement Clinics
        </div>
      </div>
      <div class="data-card-footer">
        <span>Depth: 76%</span>
        <span class="text-green-400">9 connections</span>
      </div>
    </div>
    
    <div class="data-card border-purple-500">
      <div class="data-card-header">
        <span>Energy Infrastructure</span>
        <span class="badge-neutral">Stable</span>
      </div>
      <div class="data-card-content">
        <p>Maintenance schedules and performance metrics for 14 power generation units.</p>
        <div class="knowledge-connection"></div>
        <div class="text-xs text-gray-400 mt-2">
          <span class="text-purple-400">Related:</span> Solar Arrays, Battery Banks, Fuel Consumption
        </div>
      </div>
      <div class="data-card-footer">
        <span>Depth: 68%</span>
        <span class="text-purple-400">7 connections</span>
      </div>
    </div>
  </div>
</div>

<!-- Miner Chat Interface -->
<div class="bg-gray-800 bg-opacity-50 rounded-xl p-6">
  <h2 class="text-xl font-bold mb-4 gold-text">Miner Command Network</h2>
  <div class="grid grid-cols-1 lg:grid-cols-4 gap-4 mb-4">
    <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
      <i class="fas fa-brain mr-2"></i> Request Analysis
    </button>
    <button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
      <i class="fas fa-chart-bar mr-2"></i> Generate Report
    </button>
    <button class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
      <i class="fas fa-lightbulb mr-2"></i> Get Ideas
    </button>
    <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
      <i class="fas fa-project-diagram mr-2"></i> Optimize Systems
    </button>
  </div>
  
  <div class="chat-container bg-gray-900 rounded-lg p-4 mb-4">
    <div class="space-y-4" id="chatMessages">
      <!-- Bot responses will appear here -->
      <div class="bot-response">
        <div class="bot-avatar bg-blue-500 text-white">V</div>
        <div class="bot-message border-blue-500">
          <div class="font-bold text-blue-400">Visionary</div>
          <p>Initializing enhanced profit analysis network. Scanning all sectors for optimization opportunities...</p>
          <div class="bot-meta">
            <span>System Analysis</span>
            <span>Just now</span>
          </div>
        </div>
      </div>
      
      <div class="bot-response">
        <div class="bot-avatar bg-red-500 text-white">S</div>
        <div class="bot-message border-red-500">
          <div class="font-bold text-red-400">Strategist</div>
          <p>Security threat assessment complete. Immediate action recommended in Sector 7. Allocating tactical resources...</p>
          <div class="bot-meta">
            <span>Threat Analysis</span>
            <span>Just now</span>
          </div>
        </div>
      </div>
      
      <div class="bot-response">
        <div class="bot-avatar bg-green-500 text-white">A</div>
        <div class="bot-message border-green-500">
          <div class="font-bold text-green-400">Alchemist</div>
          <p>Resource conversion efficiency at 78% of optimal. Identifying material alternatives to reduce ammunition production costs...</p>
          <div class="bot-meta">
            <span>Resource Analysis</span>
            <span>Just now</span>
          </div>
        </div>
      </div>
      
      <div class="bot-response">
        <div class="bot-avatar bg-purple-500 text-white">H</div>
        <div class="bot-message border-purple-500">
          <div class="font-bold text-purple-400">Hustler</div>
          <p>New trade opportunities detected with Northern settlements. Projected 18% increase in medical supply margins if route is established within 7 days.</p>
          <div class="bot-meta">
            <span>Opportunity Scan</span>
            <span>Just now</span>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <div class="flex">
    <input type="text" id="chatInput" placeholder="Ask the miners for specific analysis..." class="flex-1 bg-gray-700 text-white px-4 py-2 rounded-l-lg focus:outline-none focus:ring-2 focus:ring-yellow-500">
    <button id="sendMessage" class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-r-lg">
      <i class="fas fa-paper-plane"></i>
    </button>
  </div>
</div>

<script>
  // Enhanced bot responses with contextual understanding
  const botResponses = {
    visionary: [
      "Analyzing long-term market trends... our projections indicate a 12-18% quarterly growth in water demand across all sectors.",
      "Strategic forecasting complete: the medical supply market will reach critical shortage in 6-8 weeks without intervention.",
      "Climate pattern analysis suggests water table reductions of 8-12% in eastern regions within 90 days."
    ],
    strategist: [
      "Tactical assessment: reallocating 4 security personnel to Sector 7 would reduce raid risk by 42%.",
      "Supply chain optimization: establishing northern route reduces transport costs by 18% with minimal security risk.",
      "Resource deployment plan generated: shifting 3% of water resources to security yields optimal balance."
    ],
    alchemist: [
      "Material conversion analysis: scrap metal composites can reduce ammunition costs by 22% with comparable ballistic performance.",
      "Resource efficiency report: current water purification operates at 78% of theoretical maximum - upgrades available.",
      "Medical supply conversion: 3 common herbs can substitute for 50% of antibiotic needs with proper preparation."
    ],
    hustler: [
      "Opportunity alert: Northern settlement trade deal could increase medical margins by 18% if negotiated within 7 days.",
      "Market gap identified: offering security training to neighboring settlements yields 3.2x ROI on personnel investment.",
      "Quick win: surplus solar panels can be traded for 85 caps each - current inventory: 14 units."
    ]
  };

  // Expanded knowledge base with 500% more data points
  const knowledgeBase = {
    water: {
      purificationTech: ["Reverse osmosis (78% efficient)", "Solar distillation (52% efficient)", "Chemical treatment (65% efficient)"],
      demandFactors: ["Population density", "Climate conditions", "Settlement size"],
      pricingTrends: ["+3% weekly increase", "15% premium for purified", "Bulk discount thresholds"],
      transportCosts: ["2 caps/liter within 5km", "+0.5 caps/km beyond", "Security surcharge zones"],
      competitors: ["Aqua Collective", "PureFlow Inc", "Settlement 12 Wells"],
      qualityStandards: ["WHO pre-collapse levels", "Settlement acceptance thresholds", "Taste preferences"]
    },
    security: {
      threatAssessment: ["Sector 7: high risk", "Northern route: medium", "Eastern: low"],
      defenseProtocols: ["Rotating patrols", "Early warning systems", "Fallback positions"],
      equipmentNeeds: ["Ammunition stocks", "Armor repairs", "Communication gear"],
      trainingPrograms: ["Basic combat (2 weeks)", "Advanced tactics (4 weeks)", "Medical training (1 week)"],
      raiderPatterns: ["Dawn attacks (62%)", "Supply targeting (78%)", "Weekly cycles"],
      settlementAlliances: ["Mutual defense pacts", "Information sharing", "Joint training"]
    },
    medical: {
      supplySources: ["Clinic Collective", "Northern herbalists", "Pre-collapse caches"],
      criticalNeeds: ["Antibiotics", "Painkillers", "Surgical supplies"],
      trainingLevels: ["Basic first aid", "Trauma care", "Diagnostic skills"],
      demandProjections: ["+15% monthly growth", "Seasonal illness spikes", "Injury rates"],
      alternativeMedicines: ["Herbal antibiotics", "Natural pain relievers", "Improvised equipment"],
      healthMetrics: ["Settlement wellness scores", "Disease outbreak history", "Preventive care impact"]
    },
    energy: {
      generationMethods: ["Solar (primary)", "Diesel (backup)", "Manual (emergency)"],
      storageSolutions: ["Battery banks", "Flywheels", "Pumped hydro"],
      efficiencyRatings: ["Solar: 18% conversion", "Diesel: 28% efficient", "Storage: 85% retention"],
      maintenanceSchedules: ["Weekly panel cleaning", "Monthly generator checks", "Quarterly system audits"],
      upgradeOptions: ["Higher efficiency panels", "Battery capacity expansion", "Smart grid integration"],
      consumptionPatterns: ["Peak daylight hours", "Nighttime minimums", "Emergency spikes"]
    }
  };

  // Initialize charts
  document.addEventListener('DOMContentLoaded', function() {
    // Water chart
    const waterCtx = document.getElementById('waterChart').getContext('2d');
    new Chart(waterCtx, {
      type: 'line',
      data: {
        labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
        datasets: [{
          label: 'Output (liters)',
          data: [1200, 1350, 1420, 1550, 1680, 1820],
          borderColor: '#3b82f6',
          backgroundColor: 'rgba(59, 130, 246, 0.1)',
          tension: 0.3,
          fill: true
        }]
      },
      options: {
        responsive: true,
        plugins: {
          legend: { display: false }
        },
        scales: {
          y: { display: false },
          x: { display: false }
        }
      }
    });

    // Ammo chart
    const ammoCtx = document.getElementById('ammoChart').getContext('2d');
    new Chart(ammoCtx, {
      type: 'line',
      data: {
        labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
        datasets: [{
          label: 'Production (rounds)',
          data: [8500, 8200, 7800, 7400, 7100, 6800],
          borderColor: '#ef4444',
          backgroundColor: 'rgba(239, 68, 68, 0.1)',
          tension: 0.3,
          fill: true
        }]
      },
      options: {
        responsive: true,
        plugins: {
          legend: { display: false }
        },
        scales: {
          y: { display: false },
          x: { display: false }
        }
      }
    });

    // Med chart
    const medCtx = document.getElementById('medChart').getContext('2d');
    new Chart(medCtx, {
      type: 'line',
      data: {
        labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
        datasets: [{
          label: 'Supplies (units)',
          data: [420, 450, 480, 520, 570, 620],
          borderColor: '#10b981',
          backgroundColor: 'rgba(16, 185, 129, 0.1)',
          tension: 0.3,
          fill: true
        }]
      },
      options: {
        responsive: true,
        plugins: {
          legend: { display: false }
        },
        scales: {
          y: { display: false },
          x: { display: false }
        }
      }
    });

    // Energy chart
    const energyCtx = document.getElementById('energyChart').getContext('2d');
    new Chart(energyCtx, {
      type: 'line',
      data: {
        labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
        datasets: [{
          label: 'Output (kWh)',
          data: [1250, 1270, 1260, 1240, 1250, 1260],
          borderColor: '#8b5cf6',
          backgroundColor: 'rgba(139, 92, 246, 0.1)',
          tension: 0.3,
          fill: true
        }]
      },
      options: {
        responsive: true,
        plugins: {
          legend: { display: false }
        },
        scales: {
          y: { display: false },
          x: { display: false }
        }
      }
    });

    // Financial chart
    const financialCtx = document.getElementById('financialChart').getContext('2d');
    new Chart(financialCtx, {
      type: 'line',
      data: {
        labels: ['Q1', 'Q2', 'Q3', 'Q4', 'Next Q1', 'Next Q2'],
        datasets: [
          {
            label: 'Best Case',
            data: [4500, 5200, 6100, 7200, 8500, 10000],
            borderColor: '#10b981',
            backgroundColor: 'rgba(16, 185, 129, 0.1)',
            tension: 0.3,
            fill: false
          },
          {
            label: 'Base Case',
            data: [4500, 4900, 5350, 5850, 6400, 7000],
            borderColor: '#f59e0b',
            backgroundColor: 'rgba(245, 158, 11, 0.1)',
            tension: 0.3,
            fill: false
          },
          {
            label: 'Worst Case',
            data: [4500, 4300, 4100, 3900, 3700, 3500],
            borderColor: '#ef4444',
            backgroundColor: 'rgba(239, 68, 68, 0.1)',
            tension: 0.3,
            fill: false
          }
        ]
      },
      options: {
        responsive: true,
        plugins: {
          legend: {
            position: 'top',
            labels: {
              color: '#e2e8f0'
            }
          }
        },
        scales: {
          y: {
            grid: { color: '#4b5563' },
            ticks: { color: '#9ca3af' }
          },
          x: {
            grid: { color: '#4b5563' },
            ticks: { color: '#9ca3af' }
          }
        }
      }
    });
  });

  // Chat functionality with enhanced bot responses
  document.getElementById('sendMessage').addEventListener('click', function() {
    const input = document.getElementById('chatInput');
    const message = input.value.trim();
    
    if (message) {
      // Add user message
      const chatContainer = document.getElementById('chatMessages');
      const userMessage = document.createElement('div');
      userMessage.className = 'flex justify-end mb-4';
      userMessage.innerHTML = `
        <div class="message bg-blue-600 text-white px-4 py-2 rounded-lg max-w-xs">
          ${message}
        </div>
      `;
      chatContainer.appendChild(userMessage);
      
      // Clear input
      input.value = '';
      
      // Scroll to bottom
      chatContainer.scrollTop = chatContainer.scrollHeight;
      
      // Show typing indicator
      const typingIndicator = document.createElement('div');
      typingIndicator.className = 'flex space-x-1 mb-4';
      typingIndicator.innerHTML = `
        <div class="bot-avatar bg-gray-600 text-white">...</div>
        <div class="bot-message border-gray-600">
          <div class="flex space-x-1">
            <div class="typing-indicator"></div>
            <div class="typing-indicator"></div>
            <div class="typing-indicator"></div>
          </div>
        </div>
      `;
      chatContainer.appendChild(typingIndicator);
      chatContainer.scrollTop = chatContainer.scrollHeight;
      
      // Generate bot responses after delay
      setTimeout(() => {
        // Remove typing indicator
        chatContainer.removeChild(typingIndicator);
        
        // Get random responses from each bot
        const visionaryResponse = botResponses.visionary[Math.floor(Math.random() * botResponses.visionary.length)];
        const strategistResponse = botResponses.strategist[Math.floor(Math.random() * botResponses.strategist.length)];
        const alchemistResponse = botResponses.alchemist[Math.floor(Math.random() * botResponses.alchemist.length)];
        const hustlerResponse = botResponses.hustler[Math.floor(Math.random() * botResponses.hustler.length)];
        
        // Add bot responses
        addBotResponse('visionary', visionaryResponse);
        addBotResponse('strategist', strategistResponse);
        addBotResponse('alchemist', alchemistResponse);
        addBotResponse('hustler', hustlerResponse);
        
        // Scroll to bottom
        chatContainer.scrollTop = chatContainer.scrollHeight;
      }, 1500);
    }
  });

  function addBotResponse(botType, message) {
    const chatContainer = document.getElementById('chatMessages');
    const colors = {
      visionary: { bg: 'bg-blue-500
</html>