File size: 29,536 Bytes
0e61b0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="th">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>WP WELLNET - แพลตฟอร์มอายุสุขภาพ</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body class="font-prompt bg-gray-50 min-h-screen">
    <!-- Header -->
    <header class="bg-white shadow-sm fixed top-0 left-0 right-0 z-50">
        <div class="flex items-center justify-between px-4 py-3">
            <div class="flex items-center space-x-2">
                <div class="w-8 h-8 bg-green-400 rounded-lg flex items-center justify-center">
                    <span class="text-white font-bold text-sm">WP</span>
                </div>
                <span class="font-semibold text-gray-800">WELLNET</span>
            </div>
            <div class="flex items-center space-x-4">
                <button class="relative">
                    <i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
                    <span class="absolute -top-1 -right-1 w-2 h-2 bg-red-500 rounded-full"></span>
                </button>
                <button class="w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center">
                    <i data-feather="user" class="w-4 h-4 text-gray-600"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="pt-14 pb-20 px-4">
        <!-- Dashboard View -->
        <div id="dashboard-view" class="view">
            <!-- Age Display -->
            <div class="bg-gradient-to-r from-green-400 to-green-500 rounded-2xl p-6 mt-4 text-white shadow-lg">
                <h2 class="text-lg font-semibold mb-2">อายุจริงของคุณ</h2>
                <div class="flex items-baseline space-x-3">
                    <span class="text-3xl font-bold">42</span>
                    <span class="text-lg">ปี</span>
                </div>
                <div class="mt-3 flex items-center space-x-2">
                    <i data-feather="trending-down" class="w-4 h-4"></i>
                    <span class="text-sm">อายุสุขภาพ: 46 ปี</span>
                </div>
            </div>

            <!-- Progress Circle -->
            <div class="bg-white rounded-2xl p-6 mt-4 shadow-md">
                <div class="flex items-center justify-between">
                    <div class="relative w-32 h-32">
                        <svg class="transform -rotate-90 w-32 h-32">
                            <circle cx="64" cy="64" r="56" stroke="#E5E7EB" stroke-width="12" fill="none"></circle>
                            <circle cx="64" cy="64" r="56" stroke="#A5D6A7" stroke-width="12" fill="none"
                                    stroke-dasharray="351.86" stroke-dashoffset="88" stroke-linecap="round"></circle>
                        </svg>
                        <div class="absolute inset-0 flex flex-col items-center justify-center">
                            <span class="text-2xl font-bold text-gray-800">75%</span>
                            <span class="text-xs text-gray-500">ความสำเร็จ</span>
                        </div>
                    </div>
                    <div>
                        <h3 class="font-semibold text-gray-800">เป้าหมาย</h3>
                        <p class="text-sm text-gray-600 mt-1">อายุสุขภาพ 38 ปี</p>
                        <p class="text-xs text-green-500 mt-1">สำเร็จ 8 ปีแล้ว</p>
                    </div>
                </div>
            </div>

            <!-- Health Metrics Cards -->
            <div class="grid grid-cols-2 gap-3 mt-4">
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-xs text-gray-500">HRV</span>
                        <i data-feather="activity" class="w-4 h-4 text-green-500"></i>
                    </div>
                    <span class="text-xl font-semibold text-gray-800">47</span>
                    <span class="text-xs text-gray-500 ml-1">ms</span>
                </div>
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-xs text-gray-500">คุณภาพการนอน</span>
                        <i data-feather="moon" class="w-4 h-4 text-blue-500"></i>
                    </div>
                    <span class="text-xl font-semibold text-gray-800">78</span>
                    <span class="text-xs text-gray-500 ml-1">%</span>
                </div>
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-xs text-gray-500">ความเครียด</span>
                        <i data-feather="alert-circle" class="w-4 h-4 text-yellow-500"></i>
                    </div>
                    <span class="text-lg font-semibold text-gray-800">ปานกลาง</span>
                </div>
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-xs text-gray-500">% ไขมัน</span>
                        <i data-feather="trending-down" class="w-4 h-4 text-green-500"></i>
                    </div>
                    <span class="text-xl font-semibold text-gray-800">27</span>
                    <span class="text-xs text-gray-500 ml-1">%</span>
                </div>
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-xs text-gray-500">กล้ามเนื้อ</span>
                        <i data-feather="zap" class="w-4 h-4 text-orange-500"></i>
                    </div>
                    <span class="text-xl font-semibold text-gray-800">32.5</span>
                    <span class="text-xs text-gray-500 ml-1">กก.</span>
                </div>
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-xs text-gray-500">น้ำหนัก</span>
                        <i data-feather="monitor" class="w-4 h-4 text-purple-500"></i>
                    </div>
                    <span class="text-xl font-semibold text-gray-800">72.3</span>
                    <span class="text-xs text-gray-500 ml-1">กก.</span>
                </div>
                <div class="bg-white rounded-xl p-4 shadow-sm col-span-2">
                    <div class="flex items-center justify-between mb-2">
                        <span class="text-xs text-gray-500">BMR</span>
                        <i data-feather="flame" class="w-4 h-4 text-red-500"></i>
                    </div>
                    <span class="text-xl font-semibold text-gray-800">1,520</span>
                    <span class="text-xs text-gray-500 ml-1">kcal/วัน</span>
                </div>
            </div>

            <!-- Analyze Button -->
            <button class="w-full bg-green-500 text-white rounded-xl py-4 mt-6 font-semibold shadow-lg hover:bg-green-600 transition">
                วิเคราะห์สุขภาพอัตโนมัติใหม่
            </button>
        </div>

        <!-- Plan View -->
        <div id="plan-view" class="view hidden">
            <h2 class="text-xl font-bold text-gray-800 mt-4 mb-4">แผนย้อนวัย 90 วัน</h2>
            
            <!-- Progress Bar -->
            <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
                <div class="flex justify-between text-sm mb-2">
                    <span class="text-gray-600">ความคืบหน้า</span>
                    <span class="font-semibold text-green-600">23/90 วัน</span>
                </div>
                <div class="w-full bg-gray-200 rounded-full h-3">
                    <div class="bg-gradient-to-r from-green-400 to-green-500 h-3 rounded-full" style="width: 25.6%"></div>
                </div>
            </div>

            <!-- Calendar Tasks -->
            <div class="space-y-3">
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-3">
                        <h3 class="font-semibold text-gray-800">จันทร์ที่ผ่านมา</h3>
                        <span class="text-xs bg-green-100 text-green-600 px-2 py-1 rounded-full">เสร็จสิ้น</span>
                    </div>
                    <div class="space-y-2">
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" checked class="w-4 h-4 text-green-500">
                            <span class="text-sm text-gray-600 line-through">ADEK เช้า</span>
                        </div>
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" checked class="w-4 h-4 text-green-500">
                            <span class="text-sm text-gray-600 line-through">งดกาแฟ</span>
                        </div>
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" checked class="w-4 h-4 text-green-500">
                            <span class="text-sm text-gray-600 line-through">6,000 ก้าว ✅</span>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-3">
                        <h3 class="font-semibold text-gray-800">อังคารที่ผ่านมา</h3>
                        <span class="text-xs bg-green-100 text-green-600 px-2 py-1 rounded-full">เสร็จสิ้น</span>
                    </div>
                    <div class="space-y-2">
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" checked class="w-4 h-4 text-green-500">
                            <span class="text-sm text-gray-600 line-through">NMN ครึ่งเช้า</span>
                        </div>
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" checked class="w-4 h-4 text-green-500">
                            <span class="text-sm text-gray-600 line-through">นอน 7 ชม.</span>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <div class="flex items-center justify-between mb-3">
                        <h3 class="font-semibold text-gray-800">วันนี้ - พุธ</h3>
                        <span class="text-xs bg-yellow-100 text-yellow-600 px-2 py-1 rounded-full">กำลังทำ</span>
                    </div>
                    <div class="space-y-2">
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" class="w-4 h-4 text-green-500">
                            <span class="text-sm text-gray-600">เดินเร็ว 20 นาที</span>
                        </div>
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" class="w-4 h-4 text-green-500">
                            <span class="text-sm text-gray-600">Magnesium เย็น</span>
                        </div>
                        <div class="flex items-center space-x-2">
                            <input type="checkbox" class="w-4 h-4 text-green-500">
                            <span class="text-sm text-gray-600">อ่านหนังสือ 30 นาที</span>
                        </div>
                    </div>
                    <button class="w-full bg-green-500 text-white rounded-lg py-2 mt-3 text-sm font-medium">
                        ทำภารกิจแล้ว
                    </button>
                </div>
            </div>
        </div>

        <!-- Graph View -->
        <div id="graph-view" class="view hidden">
            <h2 class="text-xl font-bold text-gray-800 mt-4 mb-4">กราฟสุขภาพ</h2>
            
            <!-- Time Period Selector -->
            <div class="flex space-x-2 mb-4">
                <button class="flex-1 bg-green-500 text-white py-2 rounded-lg text-sm font-medium">7 วัน</button>
                <button class="flex-1 bg-white text-gray-600 py-2 rounded-lg text-sm font-medium border">30 วัน</button>
                <button class="flex-1 bg-white text-gray-600 py-2 rounded-lg text-sm font-medium border">90 วัน</button>
            </div>

            <!-- HRV Graph -->
            <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
                <h3 class="font-semibold text-gray-800 mb-3 flex items-center">
                    <i data-feather="activity" class="w-4 h-4 mr-2 text-green-500"></i>
                    HRV (ms)
                </h3>
                <canvas id="hrvChart" width="300" height="150"></canvas>
            </div>

            <!-- Sleep Quality Graph -->
            <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
                <h3 class="font-semibold text-gray-800 mb-3 flex items-center">
                    <i data-feather="moon" class="w-4 h-4 mr-2 text-blue-500"></i>
                    คุณภาพการนอน (%)
                </h3>
                <canvas id="sleepChart" width="300" height="150"></canvas>
            </div>

            <!-- Weight Graph -->
            <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
                <h3 class="font-semibold text-gray-800 mb-3 flex items-center">
                    <i data-feather="monitor" class="w-4 h-4 mr-2 text-purple-500"></i>
                    น้ำหนัก (กก.)
                </h3>
                <canvas id="weightChart" width="300" height="150"></canvas>
            </div>

            <!-- Body Fat Graph -->
            <div class="bg-white rounded-xl p-4 shadow-sm">
                <h3 class="font-semibold text-gray-800 mb-3 flex items-center">
                    <i data-feather="trending-down" class="w-4 h-4 mr-2 text-orange-500"></i>
                    % ไขมัน
                </h3>
                <canvas id="fatChart" width="300" height="150"></canvas>
            </div>
        </div>

        <!-- Products View -->
        <div id="products-view" class="view hidden">
            <h2 class="text-xl font-bold text-gray-800 mt-4 mb-4">แนะนำสินค้าเฉพาะบุคคล</h2>
            
            <!-- Recommendation -->
            <div class="bg-gradient-to-r from-green-50 to-blue-50 rounded-xl p-4 mb-4">
                <p class="text-sm text-gray-700">จากข้อมูลสุขภาพของคุณ เราขอแนะนำแพ็กเสริม</p>
            </div>

            <!-- Product Cards -->
            <div class="space-y-4">
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-4">
                        <div class="flex justify-between items-start mb-2">
                            <h3 class="font-semibold text-gray-800">แพ็ก BioAge+</h3>
                            <span class="text-lg font-bold text-green-600">฿1,590</span>
                        </div>
                        <div class="space-y-1 mb-3">
                            <p class="text-sm text-gray-600">• NMN - ย้อนวัยระดับเซลล์</p>
                            <p class="text-sm text-gray-600">• ADEK - วิตามินหลัก</p>
                            <p class="text-sm text-gray-600">• MAG-5 - ผ่อนคลายประสาท</p>
                        </div>
                        <div class="flex space-x-2">
                            <button class="flex-1 bg-gray-100 text-gray-700 py-2 rounded-lg text-sm font-medium">
                                ดูรายละเอียด
                            </button>
                            <button class="flex-1 bg-green-500 text-white py-2 rounded-lg text-sm font-medium">
                                เพิ่มลงตะกร้า
                            </button>
                        </div>
                    </div>
                </div>

                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-4">
                        <div class="flex justify-between items-start mb-2">
                            <h3 class="font-semibold text-gray-800">แพ็ก Sleep Deep</h3>
                            <span class="text-lg font-bold text-green-600">฿990</span>
                        </div>
                        <div class="space-y-1 mb-3">
                            <p class="text-sm text-gray-600">• Magnesium - ผ่อนคลายกล้ามเนื้อ</p>
                            <p class="text-sm text-gray-600">• GABA - สารหลับ</p>
                            <p class="text-sm text-gray-600">• Reishi - ลดความเครียด</p>
                        </div>
                        <div class="flex space-x-2">
                            <button class="flex-1 bg-gray-100 text-gray-700 py-2 rounded-lg text-sm font-medium">
                                ดูรายละเอียด
                            </button>
                            <button class="flex-1 bg-green-500 text-white py-2 rounded-lg text-sm font-medium">
                                เพิ่มลงตะกร้า
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Auto-purchase Section -->
            <div class="mt-6">
                <h3 class="font-semibold text-gray-800 mb-3">ระบบซื้อซ้ำอัตโนมัติ</h3>
                <div class="bg-white rounded-xl p-4 shadow-sm">
                    <p class="text-sm text-gray-600 mb-3">คุณสั่ง NMN 30 เม็ด ครั้งล่าสุด: 15 วันก่อน</p>
                    <button class="w-full bg-blue-500 text-white rounded-lg py-2 mb-3 text-sm font-medium">
                        ซื้อซ้ำใน 1 คลิก
                    </button>
                    <div class="flex items-center justify-between">
                        <span class="text-sm text-gray-600">ตั้งเตือนซื้อใหม่</span>
                        <select class="bg-gray-100 rounded-lg px-3 py-1 text-sm">
                            <option>30 วัน</option>
                            <option>45 วัน</option>
                            <option>60 วัน</option>
                            <option>ปิด</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <!-- Profile View -->
        <div id="profile-view" class="view hidden">
            <h2 class="text-xl font-bold text-gray-800 mt-4 mb-4">โปรไฟล์ของฉัน</h2>
            
            <!-- User Info -->
            <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
                <div class="flex items-center space-x-4 mb-4">
                    <div class="w-16 h-16 bg-gradient-to-r from-green-400 to-green-500 rounded-full flex items-center justify-center">
                        <span class="text-white font-bold text-xl">ส</span>
                    </div>
                    <div>
                        <h3 class="font-semibold text-gray-800">สุภาพร</h3>
                        <p class="text-sm text-gray-600">อายุ 42 ปี</p>
                        <p class="text-xs text-green-600">คะแนนสะสม: 1,250 แต้ม</p>
                    </div>
                </div>
                <div class="space-y-2">
                    <div class="flex justify-between py-2 border-b">
                        <span class="text-sm text-gray-600">เป้าหมาย</span>
                        <span class="text-sm font-medium">อายุสุขภาพ &lt;40 ปี</span>
                    </div>
                    <div class="flex justify-between py-2 border-b">
                        <span class="text-sm text-gray-600">น้ำหนักเป้าหมาย</span>
                        <span class="text-sm font-medium">68 กก.</span>
                    </div>
                    <div class="flex justify-between py-2">
                        <span class="text-sm text-gray-600">สถานะ</span>
                        <span class="text-sm font-medium text-green-600">Bio-Warrior 🎖️</span>
                    </div>
                </div>
            </div>

            <!-- Leaderboard -->
            <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
                <h3 class="font-semibold text-gray-800 mb-3">อันดับเดือนนี้</h3>
                <div class="text-center mb-3">
                    <span class="text-2xl font-bold text-green-600">12</span>
                    <p class="text-xs text-gray-600">ของทั้งหมด</p>
                </div>
                <div class="space-y-2">
                    <div class="flex items-center space-x-3">
                        <span class="text-sm font-bold text-gray-400 w-4">1</span>
                        <div class="flex-1">
                            <p class="text-sm font-medium">คุณ A</p>
                            <p class="text-xs text-gray-500">ลดอายุสุขภาพ 5 ปี</p>
                        </div>
                        <span class="text-xs bg-yellow-100 text-yellow-600 px-2 py-1 rounded">🏆</span>
                    </div>
                    <div class="flex items-center space-x-3">
                        <span class="text-sm font-bold text-gray-400 w-4">2</span>
                        <div class="flex-1">
                            <p class="text-sm font-medium">คุณ B</p>
                            <p class="text-xs text-gray-500">ลด % ไขมัน 3.4%</p>
                        </div>
                        <span class="text-xs bg-gray-100 text-gray-600 px-2 py-1 rounded">🥈</span>
                    </div>
                    <div class="flex items-center space-x-3">
                        <span class="text-sm font-bold text-gray-400 w-4">3</span>
                        <div class="flex-1">
                            <p class="text-sm font-medium">คุณ C</p>
                            <p class="text-xs text-gray-500">นอนครบ 7 ชม. 28 วัน</p>
                        </div>
                        <span class="text-xs bg-orange-100 text-orange-600 px-2 py-1 rounded">🥉</span>
                    </div>
                </div>
            </div>

            <!-- Badges -->
            <div class="bg-white rounded-xl p-4 shadow-sm mb-4">
                <h3 class="font-semibold text-gray-800 mb-3">เหรียญรางวัล</h3>
                <div class="flex flex-wrap gap-2">
                    <span class="bg-yellow-100 text-yellow-700 px-3 py-1 rounded-full text-xs font-medium">🎖️ Bio-Warrior</span>
                    <span class="bg-blue-100 text-blue-700 px-3 py-1 rounded-full text-xs font-medium">🌙 Sleep Master</span>
                    <span class="bg-red-100 text-red-700 px-3 py-1 rounded-full text-xs font-medium">🔥 Fat Burner</span>
                    <span class="bg-purple-100 text-purple-700 px-3 py-1 rounded-full text-xs font-medium">💪 Strong 30</span>
                    <span class="bg-green-100 text-green-700 px-3 py-1 rounded-full text-xs font-medium">🥗 Healthy Eater</span>
                </div>
            </div>

            <!-- BioCoach -->
            <div class="bg-gradient-to-r from-green-500 to-green-600 rounded-xl p-4 text-white">
                <h3 class="font-semibold mb-2">ติดต่อ BioCoach</h3>
                <div class="flex items-center space-x-3 mb-3">
                    <div class="w-12 h-12 bg-white/20 rounded-full flex items-center justify-center">
                        <i data-feather="user" class="w-6 h-6"></i>
                    </div>
                    <div>
                        <p class="font-medium">โค้ชจูน</p>
                        <p class="text-xs opacity-90">Certified BioCoach (WP L2)</p>
                    </div>
                </div>
                <div class="flex space-x-2">
                    <button class="flex-1 bg-white/20 backdrop-blur rounded-lg py-2 text-sm font-medium">
                        <i data-feather="message-circle" class="w-4 h-4 inline mr-1"></i>
                        แชท
                    </button>
                    <button class="flex-1 bg-white text-green-600 rounded-lg py-2 text-sm font-medium">
                        <i data-feather="video" class="w-4 h-4 inline mr-1"></i>
                        นัดคอล
                    </button>
                </div>
            </div>

            <!-- Purchase History -->
            <div class="mt-4">
                <h3 class="font-semibold text-gray-800 mb-3">ประวัติการสั่งซื้อ</h3>
                <div class="space-y-2">
                    <div class="bg-white rounded-lg p-3 shadow-sm">
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-sm font-medium">ADEK</p>
                                <p class="text-xs text-gray-500">30 เม็ด • 3 กล่อง</p>
                            </div>
                            <span class="text-xs text-gray-500">15 ก.ย.</span>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg p-3 shadow-sm">
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-sm font-medium">MAG-5</p>
                                <p class="text-xs text-gray-500">2 กล่อง</p>
                            </div>
                            <span class="text-xs text-gray-500">10 ส.ค.</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- Bottom Navigation -->
    <nav class="fixed bottom-0 left-0 right-0 bg-white border-t z-50">
        <div class="flex justify-around items-center py-2">
            <button class="nav-item flex flex-col items-center p-2 text-green-600" data-view="dashboard-view">
                <i data-feather="home" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">หน้าหลัก</span>
            </button>
            <button class="nav-item flex flex-col items-center p-2 text-gray-400" data-view="plan-view">
                <i data-feather="calendar" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">แผนย้อนวัย</span>
            </button>
            <button class="nav-item flex flex-col items-center p-2 text-gray-400" data-view="graph-view">
                <i data-feather="trending-up" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">กราฟสุขภาพ</span>
            </button>
            <button class="nav-item flex flex-col items-center p-2 text-gray-400" data-view="products-view">
                <i data-feather="shopping-bag" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">สินค้า</span>
            </button>
            <button class="nav-item flex flex-col items-center p-2 text-gray-400" data-view="profile-view">
                <i data-feather="user" class="w-5 h-5 mb-1"></i>
                <span class="text-xs">โปรไฟล์</span>
            </button>
        </div>
    </nav>

    <script src="script.js"></script>
    <script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>