File size: 73,711 Bytes
af4672d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ClassiFied - Uganda Classified Ads Platform</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">
    <style>
        /* Custom CSS for elements that need more styling */
        .gradient-bg {
            background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%);
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        .status-pending {
            background-color: #f59e0b;
        }
        .status-approved {
            background-color: #10b981;
        }
        .status-rejected {
            background-color: #ef4444;
        }
        .sidebar-link.active {
            background-color: #e0e7ff;
            color: #4f46e5;
            border-left: 4px solid #4f46e5;
        }
        .mobile-money-option:hover {
            border-color: #4f46e5;
        }
        #imagePreviewContainer {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        .preview-image {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            position: relative;
        }
        .remove-image {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ef4444;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
        }
        .selected-payment {
            border-color: #4f46e5;
            background-color: #e0e7ff;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Navigation -->
    <nav class="gradient-bg text-white shadow-lg">
        <div class="container mx-auto px-4 py-3">
            <div class="flex justify-between items-center">
                <div class="flex items-center space-x-4">
                    <a href="#" class="text-2xl font-bold flex items-center">
                        <i class="fas fa-ad mr-2"></i>
                        ClassiFied
                    </a>
                    <div class="hidden md:flex space-x-6">
                        <a href="#" class="hover:text-gray-200">Home</a>
                        <a href="#" class="hover:text-gray-200">Categories</a>
                        <a href="#" class="hover:text-gray-200">How It Works</a>
                        <a href="#" class="hover:text-gray-200">Contact</a>
                    </div>
                </div>
                <div class="flex items-center space-x-4">
                    <button id="loginBtn" class="bg-white text-indigo-600 px-4 py-2 rounded-lg font-medium hover:bg-gray-100">
                        Login / Register
                    </button>
                    <button id="sellBtn" class="hidden md:block bg-yellow-400 text-gray-900 px-4 py-2 rounded-lg font-medium hover:bg-yellow-300">
                        <i class="fas fa-plus mr-1"></i> Sell Item
                    </button>
                    <button id="mobileMenuBtn" class="md:hidden text-white">
                        <i class="fas fa-bars text-xl"></i>
                    </button>
                </div>
            </div>
        </div>
    </nav>

    <!-- Mobile Menu (Hidden by default) -->
    <div id="mobileMenu" class="hidden md:hidden bg-gray-800 text-white">
        <div class="container mx-auto px-4 py-2">
            <div class="flex flex-col space-y-3 py-3">
                <a href="#" class="hover:text-gray-300">Home</a>
                <a href="#" class="hover:text-gray-300">Categories</a>
                <a href="#" class="hover:text-gray-300">How It Works</a>
                <a href="#" class="hover:text-gray-300">Contact</a>
                <button id="mobileSellBtn" class="bg-yellow-400 text-gray-900 px-4 py-2 rounded-lg font-medium hover:bg-yellow-300 w-full text-left">
                    <i class="fas fa-plus mr-1"></i> Sell Item
                </button>
            </div>
        </div>
    </div>

    <!-- Hero Section -->
    <section class="gradient-bg text-white py-16">
        <div class="container mx-auto px-4 text-center">
            <h1 class="text-4xl md:text-5xl font-bold mb-6">Buy & Sell Locally in Uganda</h1>
            <p class="text-xl mb-8 max-w-2xl mx-auto">Find great deals on used phones, furniture, electronics and more. Or list your items for sale in minutes!</p>
            
            <div class="max-w-2xl mx-auto bg-white rounded-lg shadow-lg p-2 flex">
                <input type="text" placeholder="Search for items..." class="flex-grow px-4 py-3 rounded-l-lg focus:outline-none text-gray-800">
                <select class="border-l border-gray-200 px-3 py-3 bg-gray-100 text-gray-700 focus:outline-none">
                    <option>All Categories</option>
                    <option>Phones</option>
                    <option>Furniture</option>
                    <option>Electronics</option>
                    <option>Vehicles</option>
                    <option>Property</option>
                </select>
                <button class="bg-indigo-600 text-white px-6 py-3 rounded-r-lg hover:bg-indigo-700">
                    <i class="fas fa-search"></i>
                </button>
            </div>
        </div>
    </section>

    <!-- Categories Section -->
    <section class="py-12 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">Popular Categories</h2>
            <div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-6">
                <a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
                    <div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                        <i class="fas fa-mobile-alt text-indigo-600 text-2xl"></i>
                    </div>
                    <h3 class="font-medium">Phones</h3>
                    <p class="text-sm text-gray-500 mt-1">1,245 listings</p>
                </a>
                <a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
                    <div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                        <i class="fas fa-couch text-green-600 text-2xl"></i>
                    </div>
                    <h3 class="font-medium">Furniture</h3>
                    <p class="text-sm text-gray-500 mt-1">892 listings</p>
                </a>
                <a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
                    <div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                        <i class="fas fa-laptop text-blue-600 text-2xl"></i>
                    </div>
                    <h3 class="font-medium">Electronics</h3>
                    <p class="text-sm text-gray-500 mt-1">1,532 listings</p>
                </a>
                <a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
                    <div class="bg-red-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                        <i class="fas fa-car text-red-600 text-2xl"></i>
                    </div>
                    <h3 class="font-medium">Vehicles</h3>
                    <p class="text-sm text-gray-500 mt-1">456 listings</p>
                </a>
                <a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
                    <div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                        <i class="fas fa-home text-purple-600 text-2xl"></i>
                    </div>
                    <h3 class="font-medium">Property</h3>
                    <p class="text-sm text-gray-500 mt-1">321 listings</p>
                </a>
                <a href="#" class="category-card bg-gray-50 rounded-lg p-6 text-center hover:shadow-md transition-all">
                    <div class="bg-yellow-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
                        <i class="fas fa-tshirt text-yellow-600 text-2xl"></i>
                    </div>
                    <h3 class="font-medium">Fashion</h3>
                    <p class="text-sm text-gray-500 mt-1">1,089 listings</p>
                </a>
            </div>
        </div>
    </section>

    <!-- Featured Listings -->
    <section class="py-12 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center mb-8">
                <h2 class="text-3xl font-bold">Featured Listings</h2>
                <a href="#" class="text-indigo-600 hover:text-indigo-800 font-medium">View All <i class="fas fa-arrow-right ml-1"></i></a>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- Product Card 1 -->
                <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8aXBob25lfGVufDB8fDB8fHww&auto=format&fit=crop&w=500&q=60" alt="iPhone 12 Pro" class="w-full h-48 object-cover">
                        <div class="absolute top-2 right-2 bg-indigo-600 text-white text-xs px-2 py-1 rounded">New</div>
                    </div>
                    <div class="p-4">
                        <div class="flex justify-between items-start">
                            <div>
                                <h3 class="font-bold text-lg">iPhone 12 Pro</h3>
                                <p class="text-gray-500 text-sm">Kampala, Central</p>
                            </div>
                            <span class="text-indigo-600 font-bold">UGX 1,200,000</span>
                        </div>
                        <p class="text-gray-600 mt-2 text-sm">128GB, Space Gray, Excellent condition with box and accessories.</p>
                        <div class="mt-4 flex justify-between items-center">
                            <div class="flex items-center text-yellow-400">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                                <span class="text-gray-500 text-sm ml-1">(24)</span>
                            </div>
                            <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium contact-btn" data-item="iPhone 12 Pro">
                                <i class="fas fa-phone-alt mr-1"></i> Contact
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- Product Card 2 -->
                <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8ZnVybml0dXJlfGVufDB8fDB8fHww&auto=format&fit=crop&w=500&q=60" alt="Sofa Set" class="w-full h-48 object-cover">
                    </div>
                    <div class="p-4">
                        <div class="flex justify-between items-start">
                            <div>
                                <h3 class="font-bold text-lg">Leather Sofa Set</h3>
                                <p class="text-gray-500 text-sm">Entebbe, Central</p>
                            </div>
                            <span class="text-indigo-600 font-bold">UGX 850,000</span>
                        </div>
                        <p class="text-gray-600 mt-2 text-sm">3-seater + 2 armchairs, genuine leather, barely used. Great condition.</p>
                        <div class="mt-4 flex justify-between items-center">
                            <div class="flex items-center text-yellow-400">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="far fa-star"></i>
                                <span class="text-gray-500 text-sm ml-1">(12)</span>
                            </div>
                            <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium contact-btn" data-item="Leather Sofa Set">
                                <i class="fas fa-phone-alt mr-1"></i> Contact
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- Product Card 3 -->
                <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1560343090-f0409e92791a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8dHZ8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=500&q=60" alt="Smart TV" class="w-full h-48 object-cover">
                        <div class="absolute top-2 right-2 bg-red-500 text-white text-xs px-2 py-1 rounded">Discount</div>
                    </div>
                    <div class="p-4">
                        <div class="flex justify-between items-start">
                            <div>
                                <h3 class="font-bold text-lg">Samsung 55" Smart TV</h3>
                                <p class="text-gray-500 text-sm">Jinja, Eastern</p>
                            </div>
                            <span class="text-indigo-600 font-bold">UGX 1,500,000</span>
                        </div>
                        <p class="text-gray-600 mt-2 text-sm">4K UHD, HDR, Smart features. 1 year warranty remaining.</p>
                        <div class="mt-4 flex justify-between items-center">
                            <div class="flex items-center text-yellow-400">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <span class="text-gray-500 text-sm ml-1">(8)</span>
                            </div>
                            <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium contact-btn" data-item="Samsung 55\" Smart TV">
                                <i class="fas fa-phone-alt mr-1"></i> Contact
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- How It Works Section -->
    <section class="py-12 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">How It Works</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="text-center p-6 rounded-lg bg-gray-50">
                    <div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <span class="text-indigo-600 text-2xl font-bold">1</span>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Browse or List</h3>
                    <p class="text-gray-600">Find what you need or list items for sale in minutes. No registration needed to browse.</p>
                </div>
                <div class="text-center p-6 rounded-lg bg-gray-50">
                    <div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <span class="text-indigo-600 text-2xl font-bold">2</span>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Connect</h3>
                    <p class="text-gray-600">Contact sellers directly via call, SMS or email. Sellers get approved listings after payment.</p>
                </div>
                <div class="text-center p-6 rounded-lg bg-gray-50">
                    <div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
                        <span class="text-indigo-600 text-2xl font-bold">3</span>
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Complete Transaction</h3>
                    <p class="text-gray-600">Meet safely or arrange delivery. We recommend public meetups for safety.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Mobile Money Payment Section -->
    <section class="py-12 bg-indigo-50">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-8 md:mb-0 md:pr-8">
                    <h2 class="text-3xl font-bold mb-4">Easy Mobile Money Payments</h2>
                    <p class="text-gray-700 mb-6">Sellers can pay listing fees securely via MTN Mobile Money or Airtel Money. Our system verifies payments instantly before your listing goes live.</p>
                    <div class="flex space-x-4">
                        <div class="bg-white p-4 rounded-lg shadow-sm flex items-center">
                            <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Mtn-logo.svg/1200px-Mtn-logo.svg.png" alt="MTN" class="h-8">
                        </div>
                        <div class="bg-white p-4 rounded-lg shadow-sm flex items-center">
                            <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Airtel_Logo.svg/2560px-Airtel_Logo.svg.png" alt="Airtel" class="h-8">
                        </div>
                    </div>
                </div>
                <div class="md:w-1/2 bg-white p-8 rounded-lg shadow-lg">
                    <h3 class="text-xl font-semibold mb-4">Listing Fee Calculator</h3>
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Select Category</label>
                        <select id="feeCategory" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                            <option value="5000">Phones & Tablets</option>
                            <option value="5000">Furniture & Home</option>
                            <option value="6000">Electronics</option>
                            <option value="8000">Vehicles</option>
                            <option value="10000">Property</option>
                            <option value="4000">Fashion</option>
                        </select>
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Item Price (UGX)</label>
                        <input type="number" id="itemPrice" placeholder="Enter item price" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    <div class="bg-indigo-50 p-4 rounded-lg">
                        <div class="flex justify-between mb-2">
                            <span class="text-gray-700">Listing Fee:</span>
                            <span id="listingFee" class="font-semibold">UGX 5,000</span>
                        </div>
                        <div class="flex justify-between mb-2">
                            <span class="text-gray-700">Service Fee (2%):</span>
                            <span id="serviceFee" class="font-semibold">UGX 0</span>
                        </div>
                        <div class="flex justify-between pt-2 border-t border-gray-200">
                            <span class="text-gray-700 font-medium">Total:</span>
                            <span id="totalFee" class="text-indigo-600 font-bold">UGX 5,000</span>
                        </div>
                    </div>
                    <button id="proceedPaymentBtn" class="w-full mt-4 bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
                        Proceed to Payment
                    </button>
                </div>
            </div>
        </div>
    </section>

    <!-- Testimonials -->
    <section class="py-12 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">What Our Users Say</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="bg-gray-50 p-6 rounded-lg">
                    <div class="flex items-center mb-4">
                        <div class="flex items-center text-yellow-400 mr-2">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                        </div>
                        <span class="text-gray-500 text-sm">2 days ago</span>
                    </div>
                    <p class="text-gray-700 mb-4">"Sold my old iPhone in just one day! The payment system was so easy to use with Mobile Money."</p>
                    <div class="flex items-center">
                        <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Sarah K." class="w-10 h-10 rounded-full mr-3">
                        <div>
                            <h4 class="font-medium">Sarah K.</h4>
                            <p class="text-gray-500 text-sm">Kampala</p>
                        </div>
                    </div>
                </div>
                <div class="bg-gray-50 p-6 rounded-lg">
                    <div class="flex items-center mb-4">
                        <div class="flex items-center text-yellow-400 mr-2">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star-half-alt"></i>
                        </div>
                        <span class="text-gray-500 text-sm">1 week ago</span>
                    </div>
                    <p class="text-gray-700 mb-4">"Found the perfect sofa for my new apartment at half the price of a new one. Seller was very professional."</p>
                    <div class="flex items-center">
                        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="James M." class="w-10 h-10 rounded-full mr-3">
                        <div>
                            <h4 class="font-medium">James M.</h4>
                            <p class="text-gray-500 text-sm">Entebbe</p>
                        </div>
                    </div>
                </div>
                <div class="bg-gray-50 p-6 rounded-lg">
                    <div class="flex items-center mb-4">
                        <div class="flex items-center text-yellow-400 mr-2">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="far fa-star"></i>
                        </div>
                        <span class="text-gray-500 text-sm">3 weeks ago</span>
                    </div>
                    <p class="text-gray-700 mb-4">"As a small business, this platform has helped me reach more customers than my shop alone. Worth every shilling!"</p>
                    <div class="flex items-center">
                        <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Grace N." class="w-10 h-10 rounded-full mr-3">
                        <div>
                            <h4 class="font-medium">Grace N.</h4>
                            <p class="text-gray-500 text-sm">Jinja</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Call to Action -->
    <section class="py-16 gradient-bg text-white">
        <div class="container mx-auto px-4 text-center">
            <h2 class="text-3xl md:text-4xl font-bold mb-6">Ready to Sell Your Items?</h2>
            <p class="text-xl mb-8 max-w-2xl mx-auto">Join thousands of Ugandans buying and selling locally. List your first item today!</p>
            <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4">
                <button id="ctaSellBtn" class="bg-white text-indigo-600 px-8 py-4 rounded-lg font-bold hover:bg-gray-100 text-lg">
                    <i class="fas fa-plus mr-2"></i> Start Selling
                </button>
                <button id="learnMoreBtn" class="bg-transparent border-2 border-white text-white px-8 py-4 rounded-lg font-bold hover:bg-white hover:text-indigo-600 text-lg">
                    <i class="fas fa-question-circle mr-2"></i> Learn More
                </button>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white pt-12 pb-6">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
                <div>
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <i class="fas fa-ad mr-2"></i> ClassiFied
                    </h3>
                    <p class="text-gray-400">Uganda's premier classified ads platform connecting buyers and sellers nationwide.</p>
                    <div class="flex space-x-4 mt-4">
                        <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f"></i></a>
                        <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a>
                        <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a>
                    </div>
                </div>
                <div>
                    <h4 class="font-bold text-lg mb-4">Quick Links</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white">Home</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">About Us</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">How It Works</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Pricing</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Contact</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="font-bold text-lg mb-4">Categories</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white">Phones & Tablets</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Furniture</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Electronics</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Vehicles</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Property</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="font-bold text-lg mb-4">Contact Us</h4>
                    <ul class="space-y-2">
                        <li class="flex items-center text-gray-400">
                            <i class="fas fa-map-marker-alt mr-2"></i> Kampala, Uganda
                        </li>
                        <li class="flex items-center text-gray-400">
                            <i class="fas fa-phone-alt mr-2"></i> +256 700 123456
                        </li>
                        <li class="flex items-center text-gray-400">
                            <i class="fas fa-envelope mr-2"></i> info@classified.ug
                        </li>
                    </ul>
                </div>
            </div>
            <div class="pt-6 border-t border-gray-800 text-center text-gray-400 text-sm">
                <p>© 2023 ClassiFied Uganda. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <!-- Login Modal -->
    <div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-md">
            <div class="p-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-2xl font-bold">Welcome Back</h3>
                    <button id="closeLoginModal" class="text-gray-500 hover:text-gray-700">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                
                <div class="flex mb-6 border-b">
                    <button id="loginTabBtn" class="px-4 py-2 font-medium border-b-2 border-indigo-600 text-indigo-600">Login</button>
                    <button id="registerTabBtn" class="px-4 py-2 font-medium text-gray-500 hover:text-gray-700">Register</button>
                </div>
                
                <!-- Login Form -->
                <div id="loginForm">
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Email or Phone</label>
                        <input type="text" placeholder="Enter your email or phone" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Password</label>
                        <input type="password" placeholder="Enter your password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    <div class="flex justify-between items-center mb-6">
                        <div class="flex items-center">
                            <input type="checkbox" id="remember" class="mr-2">
                            <label for="remember" class="text-gray-700">Remember me</label>
                        </div>
                        <a href="#" class="text-indigo-600 hover:text-indigo-800">Forgot password?</a>
                    </div>
                    <button id="loginSubmitBtn" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700 mb-4">
                        Login
                    </button>
                    <div class="text-center text-gray-500">
                        Or login with
                    </div>
                    <div class="flex justify-center space-x-4 mt-4">
                        <button class="bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center">
                            <i class="fab fa-facebook-f mr-2"></i> Facebook
                        </button>
                        <button class="bg-red-500 text-white px-4 py-2 rounded-lg flex items-center">
                            <i class="fab fa-google mr-2"></i> Google
                        </button>
                    </div>
                </div>
                
                <!-- Register Form -->
                <div id="registerForm" class="hidden">
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Full Name</label>
                        <input type="text" placeholder="Enter your full name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Email</label>
                        <input type="email" placeholder="Enter your email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Phone Number</label>
                        <input type="tel" placeholder="Enter your phone number" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Password</label>
                        <input type="password" placeholder="Create a password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    <div class="mb-6">
                        <label class="block text-gray-700 mb-2">Confirm Password</label>
                        <input type="password" placeholder="Confirm your password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    <div class="flex items-center mb-6">
                        <input type="checkbox" id="terms" class="mr-2">
                        <label for="terms" class="text-gray-700">I agree to the <a href="#" class="text-indigo-600">Terms & Conditions</a></label>
                    </div>
                    <button id="registerSubmitBtn" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
                        Create Account
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- Sell Item Modal -->
    <div id="sellModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden overflow-y-auto">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-4xl my-8">
            <div class="p-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-2xl font-bold">List Your Item for Sale</h3>
                    <button id="closeSellModal" class="text-gray-500 hover:text-gray-700">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                    <div class="md:col-span-2">
                        <div class="mb-6">
                            <h4 class="font-semibold text-lg mb-3">Item Details</h4>
                            <div class="space-y-4">
                                <div>
                                    <label class="block text-gray-700 mb-1">Category</label>
                                    <select id="sellCategory" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                        <option value="">Select a category</option>
                                        <option value="Phones & Tablets">Phones & Tablets</option>
                                        <option value="Furniture & Home">Furniture & Home</option>
                                        <option value="Electronics">Electronics</option>
                                        <option value="Vehicles">Vehicles</option>
                                        <option value="Property">Property</option>
                                        <option value="Fashion">Fashion</option>
                                    </select>
                                </div>
                                <div>
                                    <label class="block text-gray-700 mb-1">Title</label>
                                    <input type="text" id="sellTitle" placeholder="e.g. iPhone 12 Pro 128GB" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                </div>
                                <div>
                                    <label class="block text-gray-700 mb-1">Description</label>
                                    <textarea id="sellDescription" rows="4" placeholder="Describe your item in detail..." class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"></textarea>
                                </div>
                                <div>
                                    <label class="block text-gray-700 mb-1">Price (UGX)</label>
                                    <input type="number" id="sellPrice" placeholder="Enter price" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                </div>
                                <div>
                                    <label class="block text-gray-700 mb-1">Location</label>
                                    <select id="sellLocation" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                        <option value="">Select location</option>
                                        <option value="Kampala">Kampala</option>
                                        <option value="Entebbe">Entebbe</option>
                                        <option value="Jinja">Jinja</option>
                                        <option value="Mbarara">Mbarara</option>
                                        <option value="Gulu">Gulu</option>
                                        <option value="Other">Other</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        
                        <div class="mb-6">
                            <h4 class="font-semibold text-lg mb-3">Upload Photos (Max 8)</h4>
                            <div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center">
                                <input type="file" id="imageUpload" multiple accept="image/*" class="hidden">
                                <label for="imageUpload" class="cursor-pointer">
                                    <div class="flex flex-col items-center justify-center">
                                        <i class="fas fa-cloud-upload-alt text-4xl text-indigo-500 mb-2"></i>
                                        <p class="text-gray-600">Drag & drop photos here or click to browse</p>
                                        <p class="text-sm text-gray-500 mt-1">JPEG or PNG, at least 800x600px</p>
                                    </div>
                                </label>
                            </div>
                            <div id="imagePreviewContainer" class="mt-4"></div>
                        </div>
                    </div>
                    
                    <div class="md:col-span-1">
                        <div class="bg-gray-50 p-4 rounded-lg sticky top-4">
                            <h4 class="font-semibold text-lg mb-4">Pricing Summary</h4>
                            <div class="space-y-3">
                                <div class="flex justify-between">
                                    <span class="text-gray-600">Listing Duration:</span>
                                    <span class="font-medium">30 days</span>
                                </div>
                                <div class="flex justify-between">
                                    <span class="text-gray-600">Category Fee:</span>
                                    <span id="sellListingFee" class="font-medium">UGX 0</span>
                                </div>
                                <div class="flex justify-between">
                                    <span class="text-gray-600">Service Fee (2%):</span>
                                    <span id="sellServiceFee" class="font-medium">UGX 0</span>
                                </div>
                                <div class="pt-3 border-t border-gray-200 flex justify-between">
                                    <span class="text-gray-700 font-medium">Total:</span>
                                    <span id="sellTotalFee" class="text-indigo-600 font-bold">UGX 0</span>
                                </div>
                            </div>
                            
                            <div class="mt-6">
                                <h4 class="font-semibold text-lg mb-3">Payment Method</h4>
                                <div class="space-y-3">
                                    <div class="mobile-money-option payment-option flex items-center p-3 border rounded-lg cursor-pointer" data-method="MTN">
                                        <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Mtn-logo.svg/1200px-Mtn-logo.svg.png" alt="MTN" class="h-6 mr-3">
                                        <span>MTN Mobile Money</span>
                                    </div>
                                    <div class="mobile-money-option payment-option flex items-center p-3 border rounded-lg cursor-pointer" data-method="Airtel">
                                        <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Airtel_Logo.svg/2560px-Airtel_Logo.svg.png" alt="Airtel" class="h-6 mr-3">
                                        <span>Airtel Money</span>
                                    </div>
                                </div>
                            </div>
                            
                            <button id="submitListingBtn" class="w-full mt-6 bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
                                Pay & Publish Listing
                            </button>
                            
                            <p class="text-xs text-gray-500 mt-3">
                                By clicking "Pay & Publish Listing", you agree to our <a href="#" class="text-indigo-600">Terms of Service</a> and confirm this item complies with our <a href="#" class="text-indigo-600">Listing Policies</a>.
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Contact Seller Modal -->
    <div id="contactModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-md">
            <div class="p-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-bold" id="contactItemTitle">Contact Seller</h3>
                    <button id="closeContactModal" class="text-gray-500 hover:text-gray-700">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                
                <p class="mb-4">You're contacting the seller about: <span class="font-semibold" id="contactItemName"></span></p>
                
                <div class="mb-4">
                    <label class="block text-gray-700 mb-2">Your Name</label>
                    <input type="text" id="contactName" placeholder="Enter your name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                </div>
                
                <div class="mb-4">
                    <label class="block text-gray-700 mb-2">Your Phone Number</label>
                    <input type="tel" id="contactPhone" placeholder="Enter your phone number" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                </div>
                
                <div class="mb-4">
                    <label class="block text-gray-700 mb-2">Message (Optional)</label>
                    <textarea id="contactMessage" rows="3" placeholder="Enter your message to the seller" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"></textarea>
                </div>
                
                <button id="sendContactBtn" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
                    Send Message
                </button>
            </div>
        </div>
    </div>

    <!-- Payment Confirmation Modal -->
    <div id="paymentModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-md">
            <div class="p-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-bold">Complete Payment</h3>
                    <button id="closePaymentModal" class="text-gray-500 hover:text-gray-700">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                
                <div class="mb-6">
                    <div class="bg-indigo-50 p-4 rounded-lg mb-4">
                        <div class="flex justify-between mb-2">
                            <span class="text-gray-700">Item:</span>
                            <span class="font-semibold" id="paymentItemName">iPhone 12 Pro</span>
                        </div>
                        <div class="flex justify-between mb-2">
                            <span class="text-gray-700">Total Amount:</span>
                            <span class="font-semibold" id="paymentAmount">UGX 6,000</span>
                        </div>
                        <div class="flex justify-between">
                            <span class="text-gray-700">Payment Method:</span>
                            <span class="font-semibold" id="paymentMethod">MTN Mobile Money</span>
                        </div>
                    </div>
                    
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">Mobile Money Number</label>
                        <input type="tel" id="mobileNumber" placeholder="Enter your mobile money number" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                    
                    <div class="mb-4">
                        <label class="block text-gray-700 mb-2">PIN (For verification)</label>
                        <input type="password" id="mobilePin" placeholder="Enter your mobile money PIN" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                    </div>
                </div>
                
                <button id="confirmPaymentBtn" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700 mb-2">
                    Confirm Payment
                </button>
                
                <p class="text-xs text-gray-500 text-center">
                    Your payment will be processed securely. We never store your PIN.
                </p>
            </div>
        </div>
    </div>

    <!-- Success Modal -->
    <div id="successModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-md text-center p-8">
            <div class="mb-6">
                <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto">
                    <i class="fas fa-check text-green-600 text-3xl"></i>
                </div>
            </div>
            <h3 class="text-2xl font-bold mb-4" id="successTitle">Success!</h3>
            <p class="text-gray-600 mb-6" id="successMessage">Your listing has been submitted for approval. You'll receive a confirmation shortly.</p>
            <button id="closeSuccessModal" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-medium hover:bg-indigo-700">
                Continue
            </button>
        </div>
    </div>

    <!-- Seller Dashboard (Hidden by default) -->
    <div id="sellerDashboard" class="hidden">
        <div class="flex h-screen bg-gray-100">
            <!-- Sidebar -->
            <div class="bg-white w-64 shadow-md">
                <div class="p-4 border-b">
                    <h2 class="text-xl font-bold mb-4 flex items-center">
                        <i class="fas fa-user-circle mr-2 text-indigo-600"></i> Seller Dashboard
                    </h2>
                </div>
                <nav class="mt-4">
                    <a href="#" class="sidebar-link active flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-tachometer-alt mr-3"></i> Dashboard
                    </a>
                    <a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-plus-circle mr-3"></i> Add New Listing
                    </a>
                    <a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-list mr-3"></i> My Listings
                    </a>
                    <a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-money-bill-wave mr-3"></i> Payments
                    </a>
                    <a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-chart-line mr-3"></i> Statistics
                    </a>
                    <a href="#" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-cog mr-3"></i> Settings
                    </a>
                    <a href="#" id="logoutBtn" class="sidebar-link flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-sign-out-alt mr-3"></i> Logout
                    </a>
                </nav>
            </div>
            
            <!-- Main Content -->
            <div class="flex-1 overflow-auto">
                <header class="bg-white shadow-sm p-4">
                    <div class="flex justify-between items-center">
                        <h1 class="text-2xl font-semibold text-gray-800">Dashboard Overview</h1>
                        <div class="flex items-center space-x-4">
                            <button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700">
                                <i class="fas fa-plus mr-1"></i> New Listing
                            </button>
                            <div class="relative">
                                <button class="text-gray-600 hover:text-gray-900">
                                    <i class="fas fa-bell text-xl"></i>
                                    <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
                                </button>
                            </div>
                            <div class="flex items-center">
                                <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-8 h-8 rounded-full mr-2">
                                <span class="font-medium">Sarah K.</span>
                            </div>
                        </div>
                    </div>
                </header>
                
                <main class="p-6">
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
                        <div class="bg-white p-6 rounded-lg shadow-sm">
                            <div class="flex justify-between items-start">
                                <div>
                                    <p class="text-gray-500">Total Listings</p>
                                    <h3 class="text-2xl font-bold mt-1">24</h3>
                                </div>
                                <div class="bg-indigo-100 p-3 rounded-lg">
                                    <i class="fas fa-list text-indigo-600 text-xl"></i>
                                </div>
                            </div>
                        </div>
                        <div class="bg-white p-6 rounded-lg shadow-sm">
                            <div class="flex justify-between items-start">
                                <div>
                                    <p class="text-gray-500">Active Listings</p>
                                    <h3 class="text-2xl font-bold mt-1">18</h3>
                                </div>
                                <div class="bg-green-100 p-3 rounded-lg">
                                    <i class="fas fa-check-circle text-green-600 text-xl"></i>
                                </div>
                            </div>
                        </div>
                        <div class="bg-white p-6 rounded-lg shadow-sm">
                            <div class="flex justify-between items-start">
                                <div>
                                    <p class="text-gray-500">Total Revenue</p>
                                    <h3 class="text-2xl font-bold mt-1">UGX 1,240,000</h3>
                                </div>
                                <div class="bg-yellow-100 p-3 rounded-lg">
                                    <i class="fas fa-money-bill-wave text-yellow-600 text-xl"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white p-6 rounded-lg shadow-sm mb-6">
                        <div class="flex justify-between items-center mb-6">
                            <h2 class="text-xl font-semibold">Recent Listings</h2>
                            <a href="#" class="text-indigo-600 hover:text-indigo-800">View All</a>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Item</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Views</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="flex items-center">
                                                <div class="flex-shrink-0 h-10 w-10">
                                                    <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8aXBob25lfGVufDB8fDB8fHww&auto=format&fit=crop&w=100&q=60" alt="">
                                                </div>
                                                <div class="ml-4">
                                                    <div class="text-sm font-medium text-gray-900">iPhone 12 Pro</div>
                                                    <div class="text-sm text-gray-500">Phones</div>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm text-gray-900">UGX 1,200,000</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800 status-approved">
                                                Approved
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            245
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                            <a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Edit</a>
                                            <a href="#" class="text-red-600 hover:text-red-900">Delete</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="flex items-center">
                                                <div class="flex-shrink-0 h-10 w-10">
                                                    <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8ZnVybml0dXJlfGVufDB8fDB8fHww&auto=format&fit=crop&w=100&q=60" alt="">
                                                </div>
                                                <div class="ml-4">
                                                    <div class="text-sm font-medium text-gray-900">Leather Sofa Set</div>
                                                    <div class="text-sm text-gray-500">Furniture</div>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm text-gray-900">UGX 850,000</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800 status-pending">
                                                Pending
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            78
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                            <a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Edit</a>
                                            <a href="#" class="text-red-600 hover:text-red-900">Delete</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="flex items-center">
                                                <div class="flex-shrink-0 h-10 w-10">
                                                    <img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1560343090-f0409e92791a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8dHZ8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=100&q=60" alt="">
                                                </div>
                                                <div class="ml-4">
                                                    <div class="text-sm font-medium text-gray-900">Samsung 55" Smart TV</div>
                                                    <div class="text-sm text-gray-500">Electronics</div>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm text-gray-900">UGX 1,500,000</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800 status-rejected">
                                                Rejected
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            32
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                            <a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Edit</a>
                                            <a href="#" class="text-red-600 hover:text-red-900">Delete</a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    
                    <div class="bg-white p-6 rounded-lg shadow-sm">
                        <div class="flex justify-between items-center mb-6">
                            <h2 class="text-xl font-semibold">Recent Payments</h2>
                            <a href="#" class="text-indigo-600 hover:text-indigo-800">View All</a>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Transaction ID</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Method</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            12 Oct 2023
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
                                            #TX-78945612
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
                                            UGX 6,000
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            MTN Mobile Money
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                                                Completed
                                            </span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            05 Oct 2023
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
                                            #TX-32165498
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
                                            UGX 12,000
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            Airtel Money
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                                                Completed
                                            </span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            28 Sep 2023
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
                                            #TX-98712365
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
                                            UGX 8,000
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            MTN Mobile Money
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                                                Completed
                                            </span>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </main>
            </div>
        </div>
    </div>

    <!-- Admin Panel (Hidden by default) -->
    <div id="adminPanel" class="hidden">
        <div class="flex h-screen bg-gray-100">
            <!-- Sidebar -->
            <div class="bg-gray-800 w-64 shadow-md">
                <div class="p-4 border-b border-gray-700">
                    <h2 class="text-xl font-semibold text-white flex items-center">
                        <i class="fas fa-shield-alt mr-2 text-indigo-400"></i> Admin Panel
                    </h2>
                </div>
                <nav class="mt-4">
                    <a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
                        <i class="fas fa-tachometer-alt mr-3"></i> Dashboard
                    </a>
                    <a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
                        <i class="fas fa-check-circle mr-3"></i> Approve Listings
                    </a>
                    <a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
                        <i class="fas fa-users mr-3"></i> Manage Sellers
                    </a>
                    <a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
                        <i class="fas fa-tags mr-3"></i> Categories
                    </a>
                    <a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
                        <i class="fas fa-money-bill-wave mr-3"></i> Payments
                    </a>
                    <a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
                        <i class="fas fa-flag mr-3"></i> Reported Content
                    </a>
                    <a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
                        <i class="fas fa-cog mr-3"></i> Settings
                    </a>
                    <a href="#" id="adminLogoutBtn" class="flex items-center px-4 py-3 text-gray-300 hover:bg-gray-700 hover:text-white">
                        <i class="fas fa-sign-out-alt mr-3"></i> Logout
                    </a>
                </nav>
            </div>
            
            <!-- Main Content -->
            <div class="flex-1 overflow-auto">
                <header class="bg-white shadow-sm p-4">
                    <div class="flex justify-between items-center">
                        <h1 class="text-2xl font-semibold text-gray-800">Pending Listings Approval</h1>
                        <div class="flex items-center space-x-4">
                            <div class="relative">
                                <button class="text-gray-600 hover:text-gray-900">
                                    <i class="fas fa-bell text-xl"></i>
                                    <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
                                </button>
                            </div>
                            <div class="flex items-center">
                                <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full mr-2">
                                <span class="font-medium">Admin User</span>
                            </div>
                        </div>
                    </div>
                </header>
                
                <main class="p-6">
                    <div class="bg-white p-6 rounded-lg shadow-sm mb-6">
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Item</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Seller</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Category</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
                                        <th class="px-6 py-
</html>