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
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>DMIM - Performance Art Trend Explorer</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">
    
    <link rel="stylesheet" href="styles.css"> 
    
    </head>
<body class="bg-gray-50 font-sans text-gray-800">
    <div class="max-w-md mx-auto bg-white min-h-screen flex flex-col">
        <header class="dmim-bg p-4 shadow-sm">
            <div class="flex items-center justify-between">
                <h1 class="text-white text-xl font-bold">DMIM</h1>
                <div class="flex items-center space-x-3">
                    <button class="text-white" id="explainerBtn">
                        <i class="fas fa-info-circle"></i>
                    </button>
                    <button class="text-white" id="dmimBalanceBtn">
                        <span id="dmimBalanceDisplay">0 DMIM</span>
                    </button>
                </div>
            </div>
        </header>
        
        <main class="flex-1 overflow-y-auto p-4" id="mainContent">
            <div id="homeTab">
                <div class="mb-6">
                    <h2 class="text-lg font-semibold mb-4">Performance Art Trends</h2>
                    
                    <div class="grid grid-cols-1 gap-4" id="trendingCardsContainer">
                        </div>
                </div>
                
                <div class="mt-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-lg font-semibold">Your Saved Trends</h2>
                        <button id="stakeInfoBtn" class="text-xs text-dmim-bg font-medium flex items-center">
                            <i class="fas fa-question-circle mr-1"></i> How staking works
                        </button>
                    </div>
                    <div class="space-y-3" id="savedTrendsContainer">
                        </div>
                </div>
            </div>
            
            <div id="searchTab" class="hidden">
                <div class="mb-4">
                    <div class="relative">
                        <input type="text" id="trendSearchInput" placeholder="Search performance art trends..." 

                               class="w-full py-3 px-4 rounded-lg bg-gray-100 focus:outline-none focus:ring-2 focus:ring-dmim-bg">
                        <button id="searchTrendBtn" class="absolute right-3 top-3 text-gray-500 hover:text-dmim-bg">
                            <i class="fas fa-search"></i>
                        </button>
                    </div>
                </div>
                
                <div class="grid grid-cols-1 gap-4" id="searchResultsContainer">
                    </div>
            </div>
        </main>
        
        <nav class="bg-white border-t border-gray-200 p-2">
            <div class="flex justify-around">
                <button class="tab-button active flex flex-col items-center text-dmim-bg" data-tab="homeTab">
                    <i class="fas fa-home text-lg"></i>
                    <span class="text-xs mt-1">Home</span>
                </button>
                
                <button class="tab-button flex flex-col items-center text-gray-500" data-tab="searchTab">
                    <i class="fas fa-search text-lg"></i>
                    <span class="text-xs mt-1">Search</span>
                </button>
                
                <button class="flex flex-col items-center text-gray-500" id="addTrendBtn">
                    <i class="fas fa-plus-circle text-lg"></i>
                    <span class="text-xs mt-1">Add</span>
                </button>
            </div>
        </nav>
        
        <div class="floating-btn" id="sentimentHelpBtn">
            <i class="fas fa-smile-beam"></i>
        </div>
        
        <div id="addTrendModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
            <div class="bg-white rounded-lg w-full max-w-md mx-4">
                <div class="p-4 border-b border-gray-200">
                    <h3 class="font-semibold text-lg">Add New Performance Trend</h3>
                </div>
                
                <div class="p-4">
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Hashtag</label>
                        <input type="text" id="newHashtag" placeholder="#trend" 

                               class="w-full py-2 px-4 rounded-lg bg-gray-100 focus:outline-none focus:ring-2 focus:ring-dmim-bg">
                    </div>
                    
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Performance Category</label>
                        <div class="grid grid-cols-2 gap-2">
                            <button class="platform-btn bg-gray-200 text-gray-700 py-2 px-3 rounded text-sm" data-platform="music">
                                <i class="fas fa-music mr-1 text-purple-500"></i> Music
                            </button>
                            <button class="platform-btn bg-gray-200 text-gray-700 py-2 px-3 rounded text-sm" data-platform="theater">
                                <i class="fas fa-theater-masks mr-1 text-yellow-500"></i> Theater
                            </button>
                            <button class="platform-btn bg-gray-200 text-gray-700 py-2 px-3 rounded text-sm" data-platform="dance">
                                <i class="fas fa-child mr-1 text-pink-500"></i> Dance
                            </button>
                            <button class="platform-btn bg-gray-200 text-gray-700 py-2 px-3 rounded text-sm" data-platform="comedy">
                                <i class="fas fa-laugh-squint mr-1 text-blue-500"></i> Comedy
                            </button>
                            <button class="platform-btn bg-gray-200 text-gray-700 py-2 px-3 rounded text-sm" data-platform="emerging">
                                <i class="fas fa-star mr-1 text-green-500"></i> Emerging
                            </button>
                        </div>
                    </div>
                </div>
                
                <div class="p-4 border-t border-gray-200 flex justify-end space-x-3">
                    <button id="cancelAddTrend" class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700">
                        Cancel
                    </button>
                    <button id="saveTrend" class="px-4 py-2 dmim-bg text-white rounded-md text-sm font-medium">
                        Save Trend
                    </button>
                </div>
            </div>
        </div>
        
        <div id="dmimModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
            <div class="bg-white rounded-lg w-full max-w-md mx-4">
                <div class="p-4 border-b border-gray-200 flex justify-between items-center">
                    <h3 class="font-semibold text-lg">DMIM Token</h3>
                    <span class="inline-flex items-center bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">
                        <i class="fas fa-check-circle mr-1"></i> Verified
                    </span>
                </div>
                
                <div class="p-4">
                    <div class="flex items-center mb-4">
                        <div class="w-12 h-12 rounded-full dmim-bg text-white flex items-center justify-center mr-3">
                            <i class="fas fa-coins text-xl"></i>
                        </div>
                        <div>
                            <h4 class="font-medium">Bitcoin Cash CHIP Protocol</h4>
                            <p class="text-sm text-gray-500">0.3% APY Yield Farming</p>
                        </div>
                    </div>
                    
                    <div class="mb-4">
                        <p class="text-sm text-gray-700 mb-3">
                            DMIM is a private cryptocurrency token on the Bitcoin Cash network using the CHIP protocol.
                            Stake DMIM to your saved trends to earn yield.
                        </p>
                        
                        <div class="space-y-2">
                            <a href="https://tokenexplorer.cash/?tokenId=81fd176d7e3769aad00bc21539082cc3345f9cd613623fa281e6726f451f32f9" target="_blank" class="flex items-center text-blue-500 text-sm">
                                <i class="fas fa-external-link-alt mr-2"></i> View on Token Explorer
                            </a>
                            <a href="https://app.cauldron.quest/swap/81fd176d7e3769aad00bc21539082cc3345f9cd613623fa281e6726f451f32f9" target="_blank" class="flex items-center text-blue-500 text-sm">
                                <i class="fas fa-exchange-alt mr-2"></i> Swap on Cauldron
                            </a>
                            <a href="https://blockchair.com/bitcoin-cash/transaction/81fd176d7e3769aad00bc21539082cc3345f9cd613623fa281e6726f451f32f9" target="_blank" class="flex items-center text-blue-500 text-sm">
                                <i class="fas fa-link mr-2"></i> View Transaction
                            </a>
                        </div>
                    </div>
                    
                    <div class="bg-gray-100 rounded-lg p-3 mb-4">
                        <h4 class="font-medium text-sm mb-2">Your DMIM Balance</h4>
                        <div class="flex justify-between items-center">
                            <span class="font-medium" id="dmimBalance">0 DMIM</span>
                            <button id="addDmimBtn" class="text-sm text-dmim-bg font-medium">
                                <i class="fas fa-plus-circle mr-1"></i> Add DMIM
                            </button>
                        </div>
                    </div>
                    
                    <div class="bg-gray-100 rounded-lg p-3">
                        <h4 class="font-medium text-sm mb-2">Stake DMIM to Trend</h4>
                        <div class="mb-2">
                            <select id="trendSelect" class="w-full p-2 rounded border border-gray-300 text-sm">
                                <option value="">-- Select a saved trend --</option>
                            </select>
                        </div>
                        <div class="mb-2">
                            <input type="number" id="stakeAmount" placeholder="DMIM amount" class="w-full p-2 rounded border border-gray-300 text-sm">
                        </div>
                        <button id="stakeBtn" class="w-full py-2 dmim-bg text-white rounded-lg text-sm font-medium">
                            Stake & Farm Yield
                        </button>
                    </div>
                </div>
                
                <div class="p-4 border-t border-gray-200 flex justify-center">
                    <button id="closeDmimModal" class="px-4 py-2 dmim-bg text-white rounded-md text-sm font-medium">
                        Close
                    </button>
                </div>
            </div>
        </div>
        
        <div id="explainerModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
            <div class="bg-white rounded-lg w-full max-w-md mx-4 explainer-animate">
                <div class="p-4 border-b border-gray-200 flex justify-between items-center">
                    <h3 class="font-semibold text-lg">Performance Art Trends</h3>
                    <button id="closeExplainerModal" class="text-gray-500 hover:text-dmim-bg">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                
                <div class="p-4 overflow-y-auto max-h-[70vh]">
                    <div class="mb-6">
                        <div class="flex items-start mb-4">
                            <div class="w-10 h-10 rounded-full dmim-bg text-white flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fas fa-chart-pie"></i>
                            </div>
                            <div>
                                <h4 class="font-medium mb-1">Market Share Algorithm</h4>
                                <p class="text-sm text-gray-700">
                                    Our algorithm calculates the percentage of total performance art searches that each hashtag represents.
                                    The percentage shows the trend's market share compared to all performance art categories.
                                </p>
                            </div>
                        </div>
                        
                        <div class="flex items-start mb-4">
                            <div class="w-10 h-10 rounded-full dmim-bg text-white flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fas fa-percentage"></i>
                            </div>
                            <div>
                                <h4 class="font-medium mb-1">Percentage Indicators</h4>
                                <p class="text-sm text-gray-700">
                                    <span class="percentage-up">Green percentages</span> indicate increasing popularity.
                                    <span class="percentage-down">Red percentages</span> show declining interest.
                                    <span class="percentage-neutral">Gray percentages</span> represent stable trends.
                                </p>
                            </div>
                        </div>
                        
                        <div class="flex items-start mb-4">
                            <div class="w-10 h-10 rounded-full dmim-bg text-white flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fas fa-tags"></i>
                            </div>
                            <div>
                                <h4 class="font-medium mb-1">Performance Categories</h4>
                                <p class="text-sm text-gray-700">
                                    We track five main performance art categories: Music, Theater, Dance, Comedy, and Emerging Art.
                                    Each hashtag is classified into one of these categories for market share calculation.
                                </p>
                            </div>
                        </div>
                        
                        <div class="flex items-start mb-4">
                            <div class="w-10 h-10 rounded-full dmim-bg text-white flex items-center justify-center mr-3 flex-shrink-0">
                                <i class="fas fa-smile"></i>
                            </div>
                            <div>
                                <h4 class="font-medium mb-1">Sentiment Analysis</h4>
                                <p class="text-sm text-gray-700">
                                    Our sentiment analysis adjusts trend percentages based on public perception.
                                    Positive sentiment boosts growth rates, while negative sentiment reduces them.
                                    You can adjust sentiment ratings for each trend.
                                </p>
                            </div>
                        </div>
                        
                        <div class="bg-blue-50 border border-blue-100 rounded-lg p-3">
                            <div class="flex">
                                <div class="text-blue-500 mr-2">
                                    <i class="fas fa-lightbulb””></i>

                                </div>

                                <p class="text-sm text-blue-800">
                                    <strong>Pro Tip:</strong> Look for emerging trends with small but rapidly increasing percentages.
                                    These often provide the best staking opportunities.
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="p-4 border-t border-gray-200 flex justify-center">
                    <button id="closeExplainerBtn" class="px-4 py-2 dmim-bg text-white rounded-md text-sm font-medium">
                        Got It!
                    </button>
                </div>
            </div>
        </div>
        
        <div id="sentimentModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
            <div class="bg-white rounded-lg w-full max-w-md mx-4">
                <div class="p-4 border-b border-gray-200">
                    <h3 class="font-semibold text-lg">Adjust Trend Sentiment</h3>
                </div>
                
                <div class="p-4">
                    <div class="mb-4">
                        <h4 class="font-medium mb-2" id="sentimentTrendName">#TaylorSwift</h4>
                        <p class="text-sm text-gray-600 mb-4">Adjust the sentiment slider to reflect current public perception of this trend.</p>
                        
                        <div class="flex items-center justify-between mb-2">
                            <span class="text-sm font-medium text-red-500">Negative</span>
                            <span class="text-sm font-medium text-gray-500">Neutral</span>
                            <span class="text-sm font-medium text-green-500">Positive</span>
                        </div>
 <input type="range" min="-100" max="100" value="0" class="w-full sentiment-slider neutral" id="sentimentSlider">
                        
                        <div class="flex justify-between mt-1">
                            <span class="text-xs text-gray-500">-100</span>
                            <span class="text-xs text-gray-500">0</span>
                            <span class="text-xs text-gray-500">100</span>
                        </div>
                    </div>
                    
                    <div class="mb-4">
                        <label class="block text-sm font-medium text-gray-700 mb-1">Recent News Headline</label>
                        <input type="text" id="sentimentHeadline" placeholder="Enter recent news headline..." 

                               class="w-full py-2 px-4 rounded-lg bg-gray-100 focus:outline-none focus:ring-2 focus:ring-dmim-bg">
                    </div>
                    
                    <div class="bg-gray-100 rounded-lg p-3 mb-4">
                        <h4 class="font-medium text-sm mb-2">Current Impact</h4>
                        <p class="text-sm" id="sentimentImpactText">Neutral sentiment will not affect trend growth.</p>
                    </div>
                </div>
                
                <div class="p-4 border-t border-gray-200 flex justify-end space-x-3">
                    <button id="cancelSentiment" class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700">
                        Cancel
                    </button>
                    <button id="saveSentiment" class="px-4 py-2 dmim-bg text-white rounded-md text-sm font-medium">
                        Save Sentiment
                    </button>
                </div>
    
        </div>
        </div>
<div id="sentimentLegendModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
            <div class="bg-white rounded-lg w-full max-w-md mx-4">
                <div class="p-4 border-b border-gray-200 flex justify-between items-center">
                    <h3 class="font-semibold text-lg">Sentiment & Icon Legend</h3>
                    <button id="closeLegendModal" class="text-gray-500 hover:text-dmim-bg">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                
                <div class="p-4 overflow-y-auto max-h-[70vh]">
                    <div class="mb-6">
                        <h4 class="font-medium mb-3">Sentiment Indicators</h4>
                        
                        <div class="legend-item">
                            <div class="legend-icon text-green-500">
                                <i class="fas fa-smile text-xl"></i>
                            </div>
                            <div>
                                <p class="font-medium">Positive Sentiment</p>
                                <p class="text-sm text-gray-600">Boosts trend growth rate</p>
                            </div>
                        </div>
                        <div class="legend-item">
                            <div class="legend-icon text-yellow-500">
                                <i class="fas fa-theater-masks text-xl"></i>
                            </div>
                            <div>
                                <p class="font-medium">Theater</p>
                                <p class="text-sm text-gray-600">Stage plays and theatrical performances</p>
                            </div>
                        </div>
                        
                        <div class="legend-item">
                            <div class="legend-icon text-pink-500">
                                <i class="fas fa-child text-xl"></i>
                            </div>
                            <div>
                                <p class="font-medium">Dance</p>
                                <p class="text-sm text-gray-600">Dance performances and shows</p>
                            </div>
                        </div>
                        
                        <div class="legend-item">
                            <div class="legend-icon text-blue-500">
                                <i class="fas fa-laugh-squint text-xl"></i>
                            </div>
                            <div>
                                <p class="font-medium">Comedy</p>
                                <p class="text-sm text-gray-600">Stand-up and comedy performances</p>
                            </div>
                        </div>
                       <div class="legend-item">
                            <div class="legend-icon text-red-500">
                                <i class="fas fa-arrow-down text-xl"></i>
                            </div>
                            <div>
                                <p class="font-medium">Declining Trend</p>
                                <p class="text-sm text-gray-600">Decreasing in popularity</p>
                            </div>
                        </div>
                        
                        <div class="legend-item">
                            <div class="legend-icon text-gray-500">
                                <i class="fas fa-arrows-alt-h text-xl"></i>
                            </div>
                            <div>
                                <p class="font-medium">Stable Trend</p>
                                <p class="text-sm text-gray-600">Consistent popularity</p>
                            </div>
                        </div>
                        
                        <div class="legend-item">
                            <div class="legend-icon text-blue-500">
                                <i class="fas fa-check-circle text-xl"></i>
                            </div>
                            <div>
                                <p class="font-medium">Staked Trend</p>
                                <p class="text-sm text-gray-600">You have DMIM staked to this trend</p>
                            </div>
                        </div>
                    </div>
                </div>
<div class="p-4 border-t border-gray-200 flex justify-center">
                    <button id="closeLegendBtn" class="px-4 py-2 dmim-bg text-white rounded-md text-sm font-medium">
                        Got It!
                    </button>
                </div>
            </div>
        </div>
        
        <div id="toast" class="fixed bottom-20 left-1/2 transform -translate-x-1/2 bg-gray-800 text-white px-4 py-2 rounded-md shadow-lg hidden z-50">
            <div class="flex items-center">
                <span id="toastMessage">Trend saved successfully</span>
            </div>
        </div>
    </div>
    <script src="script.js"></script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=privateuserh/privdmi2-01pa" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>