CSNET commited on
Commit
d38f61d
·
verified ·
1 Parent(s): 1768b13

ทำต่อให้จบ

Browse files
Files changed (4) hide show
  1. README.md +7 -4
  2. index.html +1050 -19
  3. script.js +1335 -0
  4. style.css +1 -28
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Wellness Journey Platform
3
- emoji: 🚀
4
  colorFrom: pink
5
- colorTo: yellow
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Wellness Journey Platform 🌟
 
3
  colorFrom: pink
4
+ colorTo: purple
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
index.html CHANGED
@@ -1,19 +1,1050 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="th">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>WP WELLNET - แพลตฟอร์มฟื้นฟูสุขภาพ</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
12
+ <script>
13
+ tailwind.config = {
14
+ theme: {
15
+ extend: {
16
+ colors: {
17
+ 'health-green': '#10b981',
18
+ 'health-blue': '#06b6d4',
19
+ 'health-light': '#e0f2fe',
20
+ 'health-dark': '#0f766e',
21
+ },
22
+ fontFamily: {
23
+ 'thai': ['Prompt', 'sans-serif'],
24
+ },
25
+ }
26
+ }
27
+ }
28
+ </script>
29
+ <style>
30
+ * {
31
+ font-family: 'Prompt', sans-serif;
32
+ }
33
+ .tab-content {
34
+ display: none;
35
+ }
36
+ .tab-content.active {
37
+ display: block;
38
+ }
39
+ .progress-bar {
40
+ background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
41
+ transition: width 0.3s ease;
42
+ }
43
+ .health-card {
44
+ background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
45
+ }
46
+ .chart-bar {
47
+ transition: height 0.5s ease;
48
+ }
49
+ @keyframes pulse {
50
+ 0%, 100% { transform: scale(1); }
51
+ 50% { transform: scale(1.05); }
52
+ }
53
+ .pulse-animation {
54
+ animation: pulse 2s infinite;
55
+ }
56
+ .scroll-hidden::-webkit-scrollbar {
57
+ display: none;
58
+ }
59
+ .scroll-hidden {
60
+ -ms-overflow-style: none;
61
+ scrollbar-width: none;
62
+ }
63
+ </style>
64
+ </head>
65
+ <body class="bg-gray-50 font-thai">
66
+ <!-- Header -->
67
+ <header class="bg-white shadow-sm sticky top-0 z-50">
68
+ <div class="px-4 py-3 flex items-center justify-between">
69
+ <div class="flex items-center space-x-2">
70
+ <div class="w-10 h-10 bg-gradient-to-r from-health-green to-health-blue rounded-lg flex items-center justify-center">
71
+ <span class="text-white font-bold text-sm">WP</span>
72
+ </div>
73
+ <span class="font-semibold text-gray-800">WELLNET</span>
74
+ </div>
75
+ <div class="flex items-center space-x-3">
76
+ <button class="relative p-2 rounded-full hover:bg-gray-100 transition">
77
+ <i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
78
+ <span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
79
+ </button>
80
+ <button class="w-10 h-10 rounded-full overflow-hidden hover:ring-2 hover:ring-health-blue transition">
81
+ <img src="https://static.photos/people/100x100/85" alt="Profile" class="w-full h-full object-cover">
82
+ </button>
83
+ </div>
84
+ </div>
85
+ </header>
86
+
87
+ <!-- Main Content -->
88
+ <main class="pb-20">
89
+ <!-- Tab 1: Dashboard -->
90
+ <div id="tab1" class="tab-content active px-4 py-6 space-y-6">
91
+ <!-- Welcome Message -->
92
+ <div class="bg-gradient-to-r from-health-green to-health-blue text-white rounded-2xl p-6">
93
+ <h1 class="text-xl font-semibold mb-2">ยินดีต้อนรับกลับ!</h1>
94
+ <p class="text-sm opacity-90">คุณอยู่ในแผนฟื้นฟู: 30-Day Restore Plan</p>
95
+ <div class="mt-3 flex items-center space-x-4">
96
+ <div class="flex-1 bg-white/20 rounded-full h-2">
97
+ <div class="bg-white rounded-full h-2" style="width: 40%"></div>
98
+ </div>
99
+ <span class="text-xs">วันที่ 12/30</span>
100
+ </div>
101
+ </div>
102
+
103
+ <!-- Today's Goals -->
104
+ <div class="bg-white rounded-xl p-4 shadow-sm">
105
+ <h2 class="font-semibold text-gray-800 mb-4 flex items-center">
106
+ <i data-feather="target" class="w-4 h-4 mr-2 text-health-green"></i>
107
+ เป้าหมายวันนี้
108
+ </h2>
109
+ <div class="space-y-3">
110
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
111
+ <div class="flex items-center space-x-3">
112
+ <span class="text-2xl">🧬</span>
113
+ <div>
114
+ <p class="text-sm font-medium">HRV</p>
115
+ <p class="text-xs text-gray-500">ค่าปกติ 60-100</p>
116
+ </div>
117
+ </div>
118
+ <span class="text-lg font-semibold text-health-green">62/100</span>
119
+ </div>
120
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
121
+ <div class="flex items-center space-x-3">
122
+ <span class="text-2xl">🔴</span>
123
+ <div>
124
+ <p class="text-sm font-medium">ความดัน</p>
125
+ <p class="text-xs text-gray-500">เป้าหมาย &lt;125/80</p>
126
+ </div>
127
+ </div>
128
+ <div class="text-right">
129
+ <span class="text-lg font-semibold text-orange-500">134/90</span>
130
+ <i data-feather="trending-down" class="w-3 h-3 inline text-health-green"></i>
131
+ </div>
132
+ </div>
133
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
134
+ <div class="flex items-center space-x-3">
135
+ <span class="text-2xl">⚖️</span>
136
+ <div>
137
+ <p class="text-sm font-medium">น้ำหนัก</p>
138
+ <p class="text-xs text-gray-500">เป้าหมาย 70 กก.</p>
139
+ </div>
140
+ </div>
141
+ <span class="text-lg font-semibold text-gray-700">71.2 กก.</span>
142
+ </div>
143
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
144
+ <div class="flex items-center space-x-3">
145
+ <span class="text-2xl">🧪</span>
146
+ <div>
147
+ <p class="text-sm font-medium">pH ปัสสาวะ</p>
148
+ <p class="text-xs text-gray-500">เป้าหมาย 6.8</p>
149
+ </div>
150
+ </div>
151
+ <div class="text-right">
152
+ <span class="text-lg font-semibold text-red-500">5.5</span>
153
+ <span class="text-xs text-gray-500 ml-1">(กรด)</span>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </div>
158
+
159
+ <!-- Supplement Status -->
160
+ <div class="bg-white rounded-xl p-4 shadow-sm">
161
+ <h2 class="font-semibold text-gray-800 mb-4 flex items-center">
162
+ <i data-feather="package" class="w-4 h-4 mr-2 text-health-blue"></i>
163
+ สถานะอาหารเสริมวันนี้
164
+ </h2>
165
+ <div class="space-y-3">
166
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
167
+ <div class="flex items-center space-x-3">
168
+ <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
169
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
170
+ </div>
171
+ <div>
172
+ <p class="text-sm font-medium">BS</p>
173
+ <p class="text-xs text-gray-500">รับประทานแล้ว (07:30)</p>
174
+ </div>
175
+ </div>
176
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full">เช้า</span>
177
+ </div>
178
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
179
+ <div class="flex items-center space-x-3">
180
+ <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
181
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
182
+ </div>
183
+ <div>
184
+ <p class="text-sm font-medium">LS</p>
185
+ <p class="text-xs text-gray-500">รับประทานแล้ว (12:15)</p>
186
+ </div>
187
+ </div>
188
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full">กลางวัน</span>
189
+ </div>
190
+ <div class="flex items-center justify-between p-3 bg-red-50 rounded-lg border border-red-200 pulse-animation">
191
+ <div class="flex items-center space-x-3">
192
+ <div class="w-8 h-8 bg-red-500 rounded-full flex items-center justify-center">
193
+ <i data-feather="x" class="w-4 h-4 text-white"></i>
194
+ </div>
195
+ <div>
196
+ <p class="text-sm font-medium">PHK</p>
197
+ <p class="text-xs text-red-600">ยังไม่ได้รับประทาน!</p>
198
+ </div>
199
+ </div>
200
+ <span class="text-xs bg-red-100 text-red-700 px-2 py-1 rounded-full">เย็น</span>
201
+ </div>
202
+ </div>
203
+ </div>
204
+
205
+ <!-- 30-Day Progress -->
206
+ <div class="bg-white rounded-xl p-4 shadow-sm">
207
+ <h2 class="font-semibold text-gray-800 mb-4">ความคืบหน้า 30 วัน</h2>
208
+ <div class="relative h-32 bg-gray-100 rounded-lg overflow-hidden">
209
+ <div class="absolute bottom-0 left-0 right-0 flex items-end justify-around h-full pb-2">
210
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 30%"></div>
211
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 45%"></div>
212
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 50%"></div>
213
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 60%"></div>
214
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 55%"></div>
215
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 65%"></div>
216
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 70%"></div>
217
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 75%"></div>
218
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 80%"></div>
219
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 78%"></div>
220
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 82%"></div>
221
+ <div class="chart-bar w-2 bg-health-green rounded-t" style="height: 85%"></div>
222
+ </div>
223
+ </div>
224
+ <div class="mt-3 flex justify-between text-xs text-gray-500">
225
+ <span>วันที่ 1</span>
226
+ <span class="font-semibold text-health-green">40% เสร็จสิ้น</span>
227
+ <span>วันที่ 30</span>
228
+ </div>
229
+ </div>
230
+ </div>
231
+
232
+ <!-- Tab 2: Today's Health -->
233
+ <div id="tab2" class="tab-content px-4 py-6 space-y-6">
234
+ <div class="text-center mb-6">
235
+ <h1 class="text-2xl font-bold text-gray-800">สุขภาพของฉันวันนี้</h1>
236
+ <p class="text-sm text-gray-500 mt-1">วันที่ 12 ธันวาคม 2567</p>
237
+ </div>
238
+
239
+ <!-- Smart Band Data -->
240
+ <div class="bg-gradient-to-br from-health-blue to-health-green text-white rounded-2xl p-6">
241
+ <h2 class="text-lg font-semibold mb-4">ข้อมูลจาก Smart Band & MyScale</h2>
242
+ <div class="grid grid-cols-2 gap-4">
243
+ <div class="bg-white/20 backdrop-blur rounded-lg p-3">
244
+ <div class="flex items-center space-x-2 mb-1">
245
+ <i data-feather="moon" class="w-4 h-4"></i>
246
+ <span class="text-xs">การนอน</span>
247
+ </div>
248
+ <p class="text-xl font-bold">6.3 ชม.</p>
249
+ <p class="text-xs opacity-90">คุณภาพ: ปานกลาง</p>
250
+ </div>
251
+ <div class="bg-white/20 backdrop-blur rounded-lg p-3">
252
+ <div class="flex items-center space-x-2 mb-1">
253
+ <i data-feather="heart" class="w-4 h-4"></i>
254
+ <span class="text-xs">Heart Rate</span>
255
+ </div>
256
+ <p class="text-xl font-bold">82 bpm</p>
257
+ <p class="text-xs text-yellow-200">สูง</p>
258
+ </div>
259
+ <div class="bg-white/20 backdrop-blur rounded-lg p-3">
260
+ <div class="flex items-center space-x-2 mb-1">
261
+ <i data-feather="activity" class="w-4 h-4"></i>
262
+ <span class="text-xs">HRV</span>
263
+ </div>
264
+ <p class="text-xl font-bold">61 ms</p>
265
+ <p class="text-xs opacity-90">ปกติ</p>
266
+ </div>
267
+ <div class="bg-white/20 backdrop-blur rounded-lg p-3">
268
+ <div class="flex items-center space-x-2 mb-1">
269
+ <i data-feather="zap" class="w-4 h-4"></i>
270
+ <span class="text-xs">Stress Index</span>
271
+ </div>
272
+ <p class="text-xl font-bold">78</p>
273
+ <p class="text-xs text-red-200">สูง</p>
274
+ </div>
275
+ </div>
276
+ </div>
277
+
278
+ <!-- Health Score -->
279
+ <div class="bg-white rounded-xl p-6 shadow-sm text-center">
280
+ <div class="relative inline-block">
281
+ <svg class="w-32 h-32 transform -rotate-90">
282
+ <circle cx="64" cy="64" r="56" stroke="#e5e7eb" stroke-width="12" fill="none"></circle>
283
+ <circle cx="64" cy="64" r="56" stroke="url(#gradient)" stroke-width="12" fill="none"
284
+ stroke-dasharray="351.86" stroke-dashoffset="112.6" stroke-linecap="round"></circle>
285
+ <defs>
286
+ <linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%">
287
+ <stop offset="0%" stop-color="#10b981"></stop>
288
+ <stop offset="100%" stop-color="#06b6d4"></stop>
289
+ </linearGradient>
290
+ </defs>
291
+ </svg>
292
+ <div class="absolute inset-0 flex flex-col items-center justify-center">
293
+ <span class="text-3xl font-bold text-gray-800">68</span>
294
+ <span class="text-xs text-gray-500">/ 100</span>
295
+ </div>
296
+ </div>
297
+ <h3 class="text-lg font-semibold text-gray-800 mt-4">คะแนนสุขภาพวันนี้</h3>
298
+ <p class="text-sm text-gray-500 mt-1">อยู่ในเกณฑ์ดี สามารถปรับปรุงได้</p>
299
+ </div>
300
+
301
+ <!-- Recommendations -->
302
+ <div class="bg-white rounded-xl p-4 shadow-sm">
303
+ <h2 class="font-semibold text-gray-800 mb-4 flex items-center">
304
+ <i data-feather="info" class="w-4 h-4 mr-2 text-health-blue"></i>
305
+ คำแนะนำสำหรับวันนี้
306
+ </h2>
307
+ <div class="space-y-3">
308
+ <div class="flex items-start space-x-3">
309
+ <div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center flex-shrink-0">
310
+ <i data-feather="droplet" class="w-4 h-4 text-blue-600"></i>
311
+ </div>
312
+ <div class="flex-1">
313
+ <p class="text-sm font-medium text-gray-800">ดื่มน้ำมากขึ้น</p>
314
+ <p class="text-xs text-gray-500">เป้าหมาย 2.5 ลิตร ตอนนี้ดื่มไป 1.2 ลิตร</p>
315
+ </div>
316
+ </div>
317
+ <div class="flex items-start space-x-3">
318
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center flex-shrink-0">
319
+ <i data-feather="trending-up" class="w-4 h-4 text-green-600"></i>
320
+ </div>
321
+ <div class="flex-1">
322
+ <p class="text-sm font-medium text-gray-800">เดินเพิ่มอีก</p>
323
+ <p class="text-xs text-gray-500">เป้าหมาย 6,000 ก้าว ตอนนี้เดินไป 3,247 ก้าว</p>
324
+ </div>
325
+ </div>
326
+ <div class="flex items-start space-x-3">
327
+ <div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center flex-shrink-0">
328
+ <i data-feather="coffee" class="w-4 h-4 text-orange-600"></i>
329
+ </div>
330
+ <div class="flex-1">
331
+ <p class="text-sm font-medium text-gray-800">หลีกเลี่ยงคาเฟอีน</p>
332
+ <p class="text-xs text-gray-500">Stress Index สูง ควรหลีกเลี่ยงเครื่องดื่มกระตุ้น</p>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </div>
337
+ </div>
338
+
339
+ <!-- Tab 3: 30-Day Recovery Plan -->
340
+ <div id="tab3" class="tab-content px-4 py-6 space-y-6">
341
+ <div class="text-center mb-6">
342
+ <h1 class="text-2xl font-bold text-gray-800">แผน���ารฟื้นฟู 30 วัน</h1>
343
+ <p class="text-sm text-gray-500 mt-1">วันที่ 12 ธันวาคม 2567</p>
344
+ </div>
345
+
346
+ <!-- Progress Overview -->
347
+ <div class="bg-gradient-to-r from-health-green to-health-blue text-white rounded-2xl p-6">
348
+ <div class="flex justify-between items-center mb-3">
349
+ <h2 class="text-lg font-semibold">ความคืบหน้าทั้งหมด</h2>
350
+ <span class="bg-white/20 px-3 py-1 rounded-full text-sm">10/12 วัน</span>
351
+ </div>
352
+ <div class="bg-white/20 rounded-full h-3">
353
+ <div class="bg-white rounded-full h-3" style="width: 83%"></div>
354
+ </div>
355
+ <p class="text-sm mt-3 opacity-90">สำเร็จ 83% ของภารกิจที่กำหนด</p>
356
+ </div>
357
+
358
+ <!-- Today's Tasks -->
359
+ <div class="bg-white rounded-xl p-4 shadow-sm">
360
+ <h2 class="font-semibold text-gray-800 mb-4 flex items-center">
361
+ <i data-feather="check-square" class="w-4 h-4 mr-2 text-health-green"></i>
362
+ ภารกิจวันนี้
363
+ </h2>
364
+ <div class="space-y-3">
365
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
366
+ <div class="flex items-center space-x-3">
367
+ <span class="text-sm font-medium text-gray-600">08:00</span>
368
+ <div class="flex-1">
369
+ <p class="text-sm font-medium text-gray-800">กิน BS 1 เม็ด</p>
370
+ <p class="text-xs text-gray-500">หลังอาหารเช้า</p>
371
+ </div>
372
+ </div>
373
+ <div class="w-6 h-6 bg-green-500 rounded-full flex items-center justify-center">
374
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
375
+ </div>
376
+ </div>
377
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
378
+ <div class="flex items-center space-x-3">
379
+ <span class="text-sm font-medium text-gray-600">12:00</span>
380
+ <div class="flex-1">
381
+ <p class="text-sm font-medium text-gray-800">ดื่มน้ำ 1 ลิตร + LS</p>
382
+ <p class="text-xs text-gray-500">ก่อนอาหารกลางวัน</p>
383
+ </div>
384
+ </div>
385
+ <div class="w-6 h-6 bg-green-500 rounded-full flex items-center justify-center">
386
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
387
+ </div>
388
+ </div>
389
+ <div class="flex items-center justify-between p-3 bg-red-50 rounded-lg border border-red-200">
390
+ <div class="flex items-center space-x-3">
391
+ <span class="text-sm font-medium text-gray-600">18:00</span>
392
+ <div class="flex-1">
393
+ <p class="text-sm font-medium text-gray-800">ทาน PHK ก่อนอาหาร</p>
394
+ <p class="text-xs text-red-600">ยังไม่ทำ!</p>
395
+ </div>
396
+ </div>
397
+ <div class="w-6 h-6 bg-gray-300 rounded-full flex items-center justify-center">
398
+ <i data-feather="clock" class="w-4 h-4 text-white"></i>
399
+ </div>
400
+ </div>
401
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
402
+ <div class="flex items-center space-x-3">
403
+ <span class="text-sm font-medium text-gray-600">All Day</span>
404
+ <div class="flex-1">
405
+ <p class="text-sm font-medium text-gray-800">เดินให้ครบ 5,000 ก้าว</p>
406
+ <p class="text-xs text-green-600">สำเร็จ 5,247 ก้าว</p>
407
+ </div>
408
+ </div>
409
+ <div class="w-6 h-6 bg-green-500 rounded-full flex items-center justify-center">
410
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
411
+ </div>
412
+ </div>
413
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg border border-gray-200">
414
+ <div class="flex items-center space-x-3">
415
+ <span class="text-sm font-medium text-gray-600">Before bed</span>
416
+ <div class="flex-1">
417
+ <p class="text-sm font-medium text-gray-800">วัด HRV ก่อนนอน</p>
418
+ <p class="text-xs text-gray-500">รอดำเนินการ</p>
419
+ </div>
420
+ </div>
421
+ <div class="w-6 h-6 bg-gray-300 rounded-full flex items-center justify-center">
422
+ <i data-feather="clock" class="w-4 h-4 text-white"></i>
423
+ </div>
424
+ </div>
425
+ </div>
426
+ </div>
427
+
428
+ <!-- Weekly Chart -->
429
+ <div class="bg-white rounded-xl p-4 shadow-sm">
430
+ <h2 class="font-semibold text-gray-800 mb-4">สถิติ 7 วันล่าสุด</h2>
431
+ <div class="space-y-3">
432
+ <div>
433
+ <div class="flex justify-between text-xs text-gray-500 mb-1">
434
+ <span>ความสำเร็จภารกิจ</span>
435
+ <span>83%</span>
436
+ </div>
437
+ <div class="flex space-x-1">
438
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
439
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
440
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
441
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
442
+ <div class="flex-1 bg-yellow-500 h-2 rounded"></div>
443
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
444
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
445
+ </div>
446
+ </div>
447
+ </div>
448
+ </div>
449
+ </div>
450
+
451
+ <!-- Tab 4: Recovery Products -->
452
+ <div id="tab4" class="tab-content px-4 py-6 space-y-6">
453
+ <div class="text-center mb-6">
454
+ <h1 class="text-2xl font-bold text-gray-800">ผลิตภัณฑ์ฟื้นฟูสุขภาพ</h1>
455
+ <p class="text-sm text-gray-500 mt-1">แนะนำสำหรับคุณโดยเฉพาะ</p>
456
+ </div>
457
+
458
+ <!-- Product Pack 1 -->
459
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
460
+ <div class="bg-gradient-to-r from-red-500 to-pink-500 p-4">
461
+ <h3 class="text-white font-semibold text-lg">📦 แพ็ก 1: Deep Blood Flow</h3>
462
+ </div>
463
+ <div class="p-4">
464
+ <ul class="space-y-2 mb-4">
465
+ <li class="flex items-center text-sm text-gray-700">
466
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
467
+ BS 30 เม็ด
468
+ </li>
469
+ <li class="flex items-center text-sm text-gray-700">
470
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
471
+ เหมาะสำหรับ: ความดันสูง, ชาเท้า
472
+ </li>
473
+ <li class="flex items-center text-sm text-gray-700">
474
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
475
+ ปรับปรุงการไหลเวียนโลหิต
476
+ </li>
477
+ </ul>
478
+ <div class="flex items-center justify-between">
479
+ <div>
480
+ <p class="text-2xl font-bold text-gray-800">990 บ.</p>
481
+ <p class="text-xs text-gray-500 line-through">1,290 บ.</p>
482
+ </div>
483
+ <button class="bg-health-green text-white px-6 py-2 rounded-lg font-medium hover:bg-green-600 transition">
484
+ เพิ่มลงตะกร้า
485
+ </button>
486
+ </div>
487
+ </div>
488
+ </div>
489
+
490
+ <!-- Product Pack 2 -->
491
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
492
+ <div class="bg-gradient-to-r from-blue-500 to-cyan-500 p-4">
493
+ <h3 class="text-white font-semibold text-lg">📦 แพ็ก 2: Detox + Recovery</h3>
494
+ </div>
495
+ <div class="p-4">
496
+ <ul class="space-y-2 mb-4">
497
+ <li class="flex items-center text-sm text-gray-700">
498
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
499
+ LS + PHK ครบเซ็ต
500
+ </li>
501
+ <li class="flex items-center text-sm text-gray-700">
502
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
503
+ ล้างพิษ + ปรับสมดุลเลือด
504
+ </li>
505
+ <li class="flex items-center text-sm text-gray-700">
506
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
507
+ ฟื้นฟูระบบขับถ่าย
508
+ </li>
509
+ </ul>
510
+ <div class="flex items-center justify-between">
511
+ <div>
512
+ <p class="text-2xl font-bold text-gray-800">1,290 บ.</p>
513
+ <p class="text-xs text-red-500">ลดพิเศษ -23%</p>
514
+ </div>
515
+ <button class="bg-health-blue text-white px-6 py-2 rounded-lg font-medium hover:bg-blue-600 transition">
516
+ ซื้อซ้ำ
517
+ </button>
518
+ </div>
519
+ </div>
520
+ </div>
521
+
522
+ <!-- Product Pack 3 -->
523
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
524
+ <div class="bg-gradient-to-r from-green-500 to-teal-500 p-4">
525
+ <h3 class="text-white font-semibold text-lg">📦 แพ็ก 3: 30-Day Full Plan</h3>
526
+ </div>
527
+ <div class="p-4">
528
+ <ul class="space-y-2 mb-4">
529
+ <li class="flex items-center text-sm text-gray-700">
530
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
531
+ BS + LS + PHK ครบเซ็ต
532
+ </li>
533
+ <li class="flex items-center text-sm text-gray-700">
534
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
535
+ คู่มือ Meal Plan 30 วัน
536
+ </li>
537
+ <li class="flex items-center text-sm text-gray-700">
538
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
539
+ ปรึกษาโค้ช 2 ครั้ง
540
+ </li>
541
+ </ul>
542
+ <div class="flex items-center justify-between">
543
+ <div>
544
+ <p class="text-2xl font-bold text-gray-800">2,790 บ.</p>
545
+ <p class="text-xs text-green-600">Subscription ลด 20%</p>
546
+ </div>
547
+ <button class="bg-gradient-to-r from-green-500 to-teal-500 text-white px-6 py-2 rounded-lg font-medium hover:opacity-90 transition">
548
+ สมัครแบบรายเดือน
549
+ </button>
550
+ </div>
551
+ </div>
552
+ </div>
553
+
554
+ <!-- Special Offer -->
555
+ <div class="bg-gradient-to-r from-purple-500 to-indigo-500 text-white rounded-xl p-4">
556
+ <div class="flex items-center justify-between">
557
+ <div>
558
+ <h4 class="font-semibold">🎁 ข้อเสนอพิเศษ!</h4>
559
+ <p class="text-sm opacity-90 mt-1">ซื้อครบ 2,500 บ. จัดส่งฟรี!</p>
560
+ </div>
561
+ <span class="bg-white/20 px-3 py-1 rounded-full text-sm">จำกัดเวลา</span>
562
+ </div>
563
+ </div>
564
+ </div>
565
+
566
+ <!-- Tab 5: Historical Results -->
567
+ <div id="tab5" class="tab-content px-4 py-6 space-y-6">
568
+ <div class="text-center mb-6">
569
+ <h1 class="text-2xl font-bold text-gray-800">ผลลัพธ์ย้อนหลัง</h1>
570
+ <p class="text-sm text-gray-500 mt-1">ติดตามความก้าวหน้าของคุณ</p>
571
+ </div>
572
+
573
+ <!-- Time Range Selector -->
574
+ <div class="flex justify-center space-x-2">
575
+ <button class="px-4 py-2 bg-gray-200 text-gray-600 rounded-lg text-sm font-medium">7 วัน</button>
576
+ <button class="px-4 py-2 bg-gray-200 text-gray-600 rounded-lg text-sm font-medium">14 วัน</button>
577
+ <button class="px-4 py-2 bg-health-green text-white rounded-lg text-sm font-medium">30 วัน</button>
578
+ </div>
579
+
580
+ <!-- HRV Chart -->
581
+ <div class="bg-white rounded-xl p-4 shadow-sm">
582
+ <h3 class="font-semibold text-gray-800 mb-4">HRV (ms)</h3>
583
+ <div class="relative h-32 bg-gray-50 rounded-lg p-2">
584
+ <svg class="w-full h-full">
585
+ <polyline points="0,100 20,95 40,90 60,85 80,75 100,70 120,72 140,68 160,65 180,60 200,58 220,55 240,52 260,50 280,48 300,45"
586
+ fill="none" stroke="#10b981" stroke-width="2"></polyline>
587
+ </svg>
588
+ </div>
589
+ <div class="mt-3 flex justify-between text-xs text-gray-500">
590
+ <span>48 ms</span>
591
+ <span class="text-health-green font-medium">↑ 27%</span>
592
+ <span>61 ms</span>
593
+ </div>
594
+ </div>
595
+
596
+ <!-- Blood Pressure Chart -->
597
+ <div class="bg-white rounded-xl p-4 shadow-sm">
598
+ <h3 class="font-semibold text-gray-800 mb-4">ความดันโลหิต (Systolic)</h3>
599
+ <div class="relative h-32 bg-gray-50 rounded-lg p-2">
600
+ <svg class="w-full h-full">
601
+ <polyline points="0,20 20,25 40,28 60,35 80,40 100,42 120,45 140,48 160,50 180,52 200,55 220,58 240,60 260,62 280,65 300,68"
602
+ fill="none" stroke="#ef4444" stroke-width="2"></polyline>
603
+ </svg>
604
+ </div>
605
+ <div class="mt-3 flex justify-between text-xs text-gray-500">
606
+ <span>145</span>
607
+ <span class="text-health-green font-medium">↓ 12%</span>
608
+ <span>128</span>
609
+ </div>
610
+ </div>
611
+
612
+ <!-- Weight Progress -->
613
+ <div class="bg-white rounded-xl p-4 shadow-sm">
614
+ <h3 class="font-semibold text-gray-800 mb-4">น้ำหนัก (กก.)</h3>
615
+ <div class="flex items-center justify-between">
616
+ <div class="text-center">
617
+ <p class="text-2xl font-bold text-gray-400">72.4</p>
618
+ <p class="text-xs text-gray-500">เริ่มต้น</p>
619
+ </div>
620
+ <div class="flex-1 mx-4">
621
+ <div class="bg-gray-200 rounded-full h-3 relative">
622
+ <div class="progress-bar bg-gradient-to-r from-health-green to-health-blue rounded-full h-3" style="width: 65%"></div>
623
+ </div>
624
+ </div>
625
+ <div class="text-center">
626
+ <p class="text-2xl font-bold text-health-green">71.2</p>
627
+ <p class="text-xs text-gray-500">ปัจจุบัน</p>
628
+ </div>
629
+ </div>
630
+ <p class="text-center text-sm text-green-600 mt-2 font-medium">ลดลง 1.2 กก. ✨</p>
631
+ </div>
632
+
633
+ <!-- pH Level -->
634
+ <div class="bg-white rounded-xl p-4 shadow-sm">
635
+ <h3 class="font-semibold text-gray-800 mb-4">pH ปัสสาวะ</h3>
636
+ <div class="flex items-center justify-between">
637
+ <div class="text-center">
638
+ <p class="text-2xl font-bold text-red-500">5.1</p>
639
+ <p class="text-xs text-gray-500">เริ่มต้น</p>
640
+ </div>
641
+ <div class="flex-1 mx-4">
642
+ <div class="bg-gradient-to-r from-red-500 via-yellow-500 to-green-500 rounded-full h-3 relative">
643
+ <div class="absolute w-3 h-3 bg-white border-2 border-gray-800 rounded-full" style="left: 75%; top: -2px"></div>
644
+ </div>
645
+ </div>
646
+ <div class="text-center">
647
+ <p class="text-2xl font-bold text-yellow-500">6.6</p>
648
+ <p class="text-xs text-gray-500">ปัจจุบัน</p>
649
+ </div>
650
+ </div>
651
+ <p class="text-center text-sm text-yellow-600 mt-2 font-medium">ดีขึ้นมาก ใกล้เป้าหมาย! 🎯</p>
652
+ </div>
653
+
654
+ <!-- Summary -->
655
+ <div class="bg-gradient-to-r from-health-green to-health-blue text-white rounded-xl p-4">
656
+ <h3 class="font-semibold mb-2">สรุป 30 วัน</h3>
657
+ <div class="space-y-1 text-sm">
658
+ <p>✅ HRV ดีขึ้น 27%</p>
659
+ <p>✅ ความดันลดลง 12%</p>
660
+ <p>✅ น้ำหนักลด 1.2 กก.</p>
661
+ <p>🎯 pH เข้าใกล้เป้าหมาย</p>
662
+ </div>
663
+ </div>
664
+ </div>
665
+
666
+ <!-- Tab 6: Your Consultant -->
667
+ <div id="tab6" class="tab-content px-4 py-6 space-y-6">
668
+ <div class="text-center mb-6">
669
+ <h1 class="text-2xl font-bold text-gray-800">ที่ปรึกษาของคุณ</h1>
670
+ <p class="text-sm text-gray-500 mt-1">ผู้เชี่ยวชาญดูแลสุขภาพของคุณ</p>
671
+ </div>
672
+
673
+ <!-- Consultant Profile -->
674
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
675
+ <div class="bg-gradient-to-r from-health-green to-health-blue p-6 text-center">
676
+ <div class="w-24 h-24 mx-auto rounded-full overflow-hidden border-4 border-white mb-3">
677
+ <img src="https://static.photos/people/200x200/90" alt="Consultant" class="w-full h-full object-cover">
678
+ </div>
679
+ <h3 class="text-xl font-semibold text-white">กัลยาณี สุขใจดี</h3>
680
+ <p class="text-white/90 text-sm">Certified Wellness Consultant</p>
681
+ </div>
682
+ <div class="p-4">
683
+ <div class="grid grid-cols-2 gap-3 mb-4">
684
+ <div class="text-center p-3 bg-gray-50 rounded-lg">
685
+ <i data-feather="award" class="w-6 h-6 mx-auto text-health-green mb-1"></i>
686
+ <p class="text-xs text-gray-500">ระดับ</p>
687
+ <p class="text-sm font-semibold">WP-CWC</p>
688
+ </div>
689
+ <div class="text-center p-3 bg-gray-50 rounded-lg">
690
+ <i data-feather="users" class="w-6 h-6 mx-auto text-health-blue mb-1"></i>
691
+ <p class="text-xs text-gray-500">ดูแลผู้ใช้</p>
692
+ <p class="text-sm font-semibold">57 คน</p>
693
+ </div>
694
+ </div>
695
+ <div class="space-y-3 text-sm">
696
+ <div class="flex items-center space-x-2">
697
+ <i data-feather="calendar" class="w-4 h-4 text-gray-500"></i>
698
+ <span class="text-gray-700">นัด Video Call ได้ทุกพฤหัสบดี</span>
699
+ </div>
700
+ <div class="flex items-center space-x-2">
701
+ <i data-feather="clock" class="w-4 h-4 text-gray-500"></i>
702
+ <span class="text-gray-700">ตอบกลับภายใน 2 ชม.</span>
703
+ </div>
704
+ <div class="flex items-center space-x-2">
705
+ <i data-feather="star" class="w-4 h-4 text-yellow-500"></i>
706
+ <span class="text-gray-700">คะแนน: 4.9/5.0 (23 รีวิว)</span>
707
+ </div>
708
+ </div>
709
+ </div>
710
+ </div>
711
+
712
+ <!-- Contact Options -->
713
+ <div class="bg-white rounded-xl p-4 shadow-sm">
714
+ <h3 class="font-semibold text-gray-800 mb-4">ติดต่อที่ปรึกษา</h3>
715
+ <div class="space-y-3">
716
+ <button class="w-full flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200 hover:bg-green-100 transition">
717
+ <div class="flex items-center space-x-3">
718
+ <i data-feather="message-circle" class="w-5 h-5 text-green-600"></i>
719
+ <span class="text-sm font-medium text-gray-800">แชททาง LINE</span>
720
+ </div>
721
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full">Online</span>
722
+ </button>
723
+ <button class="w-full flex items-center justify-between p-3 bg-blue-50 rounded-lg border border-blue-200 hover:bg-blue-100 transition">
724
+ <div class="flex items-center space-x-3">
725
+ <i data-feather="send" class="w-5 h-5 text-blue-600"></i>
726
+ <span class="text-sm font-medium text-gray-800">ส่งรายงานสุขภาพ</span>
727
+ </div>
728
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
729
+ </button>
730
+ <button class="w-full flex items-center justify-between p-3 bg-purple-50 rounded-lg border border-purple-200 hover:bg-purple-100 transition">
731
+ <div class="flex items-center space-x-3">
732
+ <i data-feather="video" class="w-5 h-5 text-purple-600"></i>
733
+ <span class="text-sm font-medium text-gray-800">นัด Video Call</span>
734
+ </div>
735
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
736
+ </button>
737
+ </div>
738
+ </div>
739
+
740
+ <!-- Recent Messages -->
741
+ <div class="bg-white rounded-xl p-4 shadow-sm">
742
+ <h3 class="font-semibold text-gray-800 mb-4">ข้อความล่าสุด</h3>
743
+ <div class="space-y-3">
744
+ <div class="flex space-x-3">
745
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center flex-shrink-0">
746
+ <span class="text-xs font-semibold text-green-600">ก</span>
747
+ </div>
748
+ <div class="flex-1">
749
+ <p class="text-sm text-gray-700">สวัสดีครับ ผลการวัดวันนี้ HRV ดีขึ้นนะครับ แนะนำให้ดื่มน้ำเพิ่มครับ</p>
750
+ <p class="text-xs text-gray-500 mt-1">2 ชม.ที่แล้ว</p>
751
+ </div>
752
+ </div>
753
+ <div class="flex space-x-3">
754
+ <div class="w-8 h-8 bg-blue-500 rounded-full flex items-center justify-center flex-shrink-0">
755
+ <span class="text-xs font-semibold text-white">ฉ</span>
756
+ </div>
757
+ <div class="flex-1">
758
+ <p class="text-sm text-gray-700">ขอบคุณครับ วันนี้จะพยายามดื่มน้ำให้ครบ 2.5 ลิตรครับ</p>
759
+ <p class="text-xs text-gray-500 mt-1">1 ชม.ที่แล้ว</p>
760
+ </div>
761
+ </div>
762
+ </div>
763
+ </div>
764
+ </div>
765
+
766
+ <!-- Tab 7: Mission & Rewards -->
767
+ <div id="tab7" class="tab-content px-4 py-6 space-y-6">
768
+ <div class="text-center mb-6">
769
+ <h1 class="text-2xl font-bold text-gray-800">ระบบภารกิจ & รางวัล</h1>
770
+ <p class="text-sm text-gray-500 mt-1">สะสมแต้มรับรางวัล</p>
771
+ </div>
772
+
773
+ <!-- WP Coin Summary -->
774
+ <div class="bg-gradient-to-r from-yellow-400 to-orange-500 text-white rounded-xl p-6">
775
+ <div class="text-center">
776
+ <p class="text-sm opacity-90 mb-2">WP Coin ที่สะสม</p>
777
+ <p class="text-4xl font-bold mb-3">415</p>
778
+ <div class="flex justify-center space-x-4 text-sm">
779
+ <div>
780
+ <p class="opacity-90">วันนี้ได้</p>
781
+ <p class="font-semibold">+12</p>
782
+ </div>
783
+ <div class="w-px bg-white/30"></div>
784
+ <div>
785
+ <p class="opacity-90">อันดับ</p>
786
+ <p class="font-semibold">#42</p>
787
+ </div>
788
+ </div>
789
+ </div>
790
+ </div>
791
+
792
+ <!-- Daily Missions -->
793
+ <div class="bg-white rounded-xl p-4 shadow-sm">
794
+ <h3 class="font-semibold text-gray-800 mb-4 flex items-center">
795
+ <i data-feather="target" class="w-4 h-4 mr-2 text-health-green"></i>
796
+ ภารกิจประจำวัน
797
+ </h3>
798
+ <div class="space-y-3">
799
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg">
800
+ <div class="flex items-center space-x-3">
801
+ <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
802
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
803
+ </div>
804
+ <div>
805
+ <p class="text-sm font-medium text-gray-800">วัด HRV</p>
806
+ <p class="text-xs text-gray-500">ได้ 3 แต้ม</p>
807
+ </div>
808
+ </div>
809
+ <span class="text-sm font-semibold text-green-600">✅</span>
810
+ </div>
811
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg">
812
+ <div class="flex items-center space-x-3">
813
+ <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
814
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
815
+ </div>
816
+ <div>
817
+ <p class="text-sm font-medium text-gray-800">กินผลิตภัณฑ์ครบ</p>
818
+ <p class="text-xs text-gray-500">ได้ 5 แต้ม</p>
819
+ </div>
820
+ </div>
821
+ <span class="text-sm font-semibold text-green-600">✅</span>
822
+ </div>
823
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
824
+ <div class="flex items-center space-x-3">
825
+ <div class="w-8 h-8 bg-gray-300 rounded-full flex items-center justify-center">
826
+ <i data-feather="clock" class="w-4 h-4 text-white"></i>
827
+ </div>
828
+ <div>
829
+ <p class="text-sm font-medium text-gray-800">เดินครบ 6,000 ก้าว</p>
830
+ <p class="text-xs text-gray-500">รอ 4 แต้ม</p>
831
+ </div>
832
+ </div>
833
+ <span class="text-sm font-semibold text-gray-400">0/6,000</span>
834
+ </div>
835
+ </div>
836
+ </div>
837
+
838
+ <!-- Weekly Challenges -->
839
+ <div class="bg-white rounded-xl p-4 shadow-sm">
840
+ <h3 class="font-semibold text-gray-800 mb-4 flex items-center">
841
+ <i data-feather="zap" class="w-4 h-4 mr-2 text-orange-500"></i>
842
+ ภารกิจประจำสัปดาห์
843
+ </h3>
844
+ <div class="space-y-3">
845
+ <div class="p-3 bg-orange-50 rounded-lg">
846
+ <div class="flex justify-between items-start mb-2">
847
+ <div>
848
+ <p class="text-sm font-medium text-gray-800">7 วันติดต่อกัน!</p>
849
+ <p class="text-xs text-gray-500">ทำภารกิจครบติดต่อกัน 7 วัน</p>
850
+ </div>
851
+ <span class="text-xs bg-orange-100 text-orange-700 px-2 py-1 rounded-full">50 แต้ม</span>
852
+ </div>
853
+ <div class="bg-orange-200 rounded-full h-2">
854
+ <div class="bg-orange-500 rounded-full h-2" style="width: 71%"></div>
855
+ </div>
856
+ <p class="text-xs text-gray-600 mt-1">5/7 วัน</p>
857
+ </div>
858
+ <div class="p-3 bg-purple-50 rounded-lg">
859
+ <div class="flex justify-between items-start mb-2">
860
+ <div>
861
+ <p class="text-sm font-medium text-gray-800">สุขภาพดีเด่น</p>
862
+ <p class="text-xs text-gray-500">คะแนนสุขภาพเฉลี่ย > 80</p>
863
+ </div>
864
+ <span class="text-xs bg-purple-100 text-purple-700 px-2 py-1 rounded-full">100 แต้ม</span>
865
+ </div>
866
+ <div class="bg-purple-200 rounded-full h-2">
867
+ <div class="bg-purple-500 rounded-full h-2" style="width: 68%"></div>
868
+ </div>
869
+ <p class="text-xs text-gray-600 mt-1">เฉลี่ย 68/100</p>
870
+ </div>
871
+ </div>
872
+ </div>
873
+
874
+ <!-- Rewards -->
875
+ <div class="bg-white rounded-xl p-4 shadow-sm">
876
+ <h3 class="font-semibold text-gray-800 mb-4 flex items-center">
877
+ <i data-feather="gift" class="w-4 h-4 mr-2 text-red-500"></i>
878
+ แลกรางวัล
879
+ </h3>
880
+ <div class="grid grid-cols-2 gap-3">
881
+ <div class="p-3 border border-gray-200 rounded-lg text-center">
882
+ <span class="text-2xl">🎯</span>
883
+ <p class="text-xs font-medium mt-1">ส่วนลด 10%</p>
884
+ <p class="text-xs text-gray-500">200 แต้ม</p>
885
+ </div>
886
+ <div class="p-3 border border-gray-200 rounded-lg text-center">
887
+ <span class="text-2xl">📦</span>
888
+ <p class="text-xs font-medium mt-1">ผลิตภัณฑ์ฟรี</p>
889
+ <p class="text-xs text-gray-500">500 แต้ม</p>
890
+ </div>
891
+ <div class="p-3 border border-gray-200 rounded-lg text-center">
892
+ <span class="text-2xl">👨‍⚕️</span>
893
+ <p class="text-xs font-medium mt-1">ปรึกษาโค้ช</p>
894
+ <p class="text-xs text-gray-500">150 แต้ม</p>
895
+ </div>
896
+ <div class="p-3 border border-gray-200 rounded-lg text-center">
897
+ <span class="text-2xl">🏆</span>
898
+ <p class="text-xs font-medium mt-1">VIP 1 เดือน</p>
899
+ <p class="text-xs text-gray-500">1000 แต้ม</p>
900
+ </div>
901
+ </div>
902
+ </div>
903
+ </div>
904
+
905
+ <!-- Tab 8: Profile -->
906
+ <div id="tab8" class="tab-content px-4 py-6 space-y-6">
907
+ <div class="text-center mb-6">
908
+ <div class="w-24 h-24 mx-auto rounded-full overflow-hidden border-4 border-health-green mb-3">
909
+ <img src="https://static.photos/people/200x200/85" alt="Profile" class="w-full h-full object-cover">
910
+ </div>
911
+ <h1 class="text-2xl font-bold text-gray-800">พรชัย วัฒนะ</h1>
912
+ <p class="text-sm text-gray-500 mt-1">สมาชิกตั้งแต่ 15 ตุลาคม 2567</p>
913
+ </div>
914
+
915
+ <!-- Profile Information -->
916
+ <div class="bg-white rounded-xl p-4 shadow-sm">
917
+ <h3 class="font-semibold text-gray-800 mb-4">ข้อมูลส่วนตัว</h3>
918
+ <div class="space-y-3">
919
+ <div class="flex justify-between py-2 border-b border-gray-100">
920
+ <span class="text-sm text-gray-500">อายุ</span>
921
+ <span class="text-sm font-medium text-gray-800">47 ปี</span>
922
+ </div>
923
+ <div class="flex justify-between py-2 border-b border-gray-100">
924
+ <span class="text-sm text-gray-500">ส่วนสูง</span>
925
+ <span class="text-sm font-medium text-gray-800">170 ซม.</span>
926
+ </div>
927
+ <div class="flex justify-between py-2 border-b border-gray-100">
928
+ <span class="text-sm text-gray-500">เป้าหมาย</span>
929
+ <span class="text-sm font-medium text-gray-800">ลดไขมันสะสมในช่องท้อง</span>
930
+ </div>
931
+ <div class="flex justify-between py-2 border-b border-gray-100">
932
+ <span class="text-sm text-gray-500">โรคประจำตัว</span>
933
+ <span class="text-sm font-medium text-gray-800">ความดัน, ภูมิแพ้</span>
934
+ </div>
935
+ <div class="flex justify-between py-2 border-b border-gray-100">
936
+ <span class="text-sm text-gray-500">สินค้าที่ใช้</span>
937
+ <span class="text-sm font-medium text-gray-800">BS, LS</span>
938
+ </div>
939
+ </div>
940
+ </div>
941
+
942
+ <!-- Recovery Index -->
943
+ <div class="bg-gradient-to-r from-health-green to-health-blue text-white rounded-xl p-6">
944
+ <h3 class="text-lg font-semibold mb-4">คะแนนฟื้นฟู (Recovery Index)</h3>
945
+ <div class="relative inline-block">
946
+ <svg class="w-40 h-40 transform -rotate-90">
947
+ <circle cx="80" cy="80" r="70" stroke="rgba(255,255,255,0.3)" stroke-width="14" fill="none"></circle>
948
+ <circle cx="80" cy="80" r="70" stroke="white" stroke-width="14" fill="none"
949
+ stroke-dasharray="439.82" stroke-dashoffset="123.15" stroke-linecap="round"></circle>
950
+ </svg>
951
+ <div class="absolute inset-0 flex flex-col items-center justify-center">
952
+ <span class="text-4xl font-bold">72</span>
953
+ <span class="text-sm opacity-90">/ 100</span>
954
+ </div>
955
+ </div>
956
+ <p class="text-center mt-3 text-sm">อยู่ในเกณฑ์ดี รักษาต่อไป!</p>
957
+ </div>
958
+
959
+ <!-- Achievements -->
960
+ <div class="bg-white rounded-xl p-4 shadow-sm">
961
+ <h3 class="font-semibold text-gray-800 mb-4 flex items-center">
962
+ <i data-feather="award" class="w-4 h-4 mr-2 text-yellow-500"></i>
963
+ ความสำเร็จ
964
+ </h3>
965
+ <div class="grid grid-cols-3 gap-3">
966
+ <div class="text-center">
967
+ <div class="w-16 h-16 mx-auto bg-yellow-100 rounded-full flex items-center justify-center mb-1">
968
+ <span class="text-2xl">🏅</span>
969
+ </div>
970
+ <p class="text-xs text-gray-600">7 วันแรก</p>
971
+ </div>
972
+ <div class="text-center">
973
+ <div class="w-16 h-16 mx-auto bg-blue-100 rounded-full flex items-center justify-center mb-1">
974
+ <span class="text-2xl">💧</span>
975
+ </div>
976
+ <p class="text-xs text-gray-600">ดื่มน้ำดี</p>
977
+ </div>
978
+ <div class="text-center">
979
+ <div class="w-16 h-16 mx-auto bg-green-100 rounded-full flex items-center justify-center mb-1">
980
+ <span class="text-2xl">🎯</span>
981
+ </div>
982
+ <p class="text-xs text-gray-600">เป้าหมาย HRV</p>
983
+ </div>
984
+ </div>
985
+ </div>
986
+
987
+ <!-- Settings -->
988
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
989
+ <button class="w-full flex items-center justify-between p-4 hover:bg-gray-50 transition">
990
+ <div class="flex items-center space-x-3">
991
+ <i data-feather="settings" class="w-5 h-5 text-gray-600"></i>
992
+ <span class="text-sm font-medium text-gray-800">ตั้งค่า</span>
993
+ </div>
994
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
995
+ </button>
996
+ <button class="w-full flex items-center justify-between p-4 hover:bg-gray-50 transition border-t border-gray-100">
997
+ <div class="flex items-center space-x-3">
998
+ <i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
999
+ <span class="text-sm font-medium text-gray-800">การแจ้งเตือน</span>
1000
+ </div>
1001
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
1002
+ </button>
1003
+ <button class="w-full flex items-center justify-between p-4 hover:bg-gray-50 transition border-t border-gray-100">
1004
+ <div class="flex items-center space-x-3">
1005
+ <i data-feather="help-circle" class="w-5 h-5 text-gray-600"></i>
1006
+ <span class="text-sm font-medium text-gray-800">ช่วยเหลือ</span>
1007
+ </div>
1008
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
1009
+ </button>
1010
+ <button class="w-full flex items-center justify-between p-4 hover:bg-red-50 transition border-t border-gray-100">
1011
+ <div class="flex items-center space-x-3">
1012
+ <i data-feather="log-out" class="w-5 h-5 text-red-600"></i>
1013
+ <span class="text-sm font-medium text-red-600">ออกจากระบบ</span>
1014
+ </div>
1015
+ </button>
1016
+ </div>
1017
+ </div>
1018
+ </main>
1019
+
1020
+ <!-- Bottom Navigation -->
1021
+ <nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-40">
1022
+ <div class="flex justify-around py-2">
1023
+ <button onclick="switchTab('tab1')" class="nav-btn flex flex-col items-center py-2 px-3 text-health-green" data-tab="tab1">
1024
+ <i data-feather="home" class="w-5 h-5"></i>
1025
+ <span class="text-xs mt-1">หน้าหลัก</span>
1026
+ </button>
1027
+ <button onclick="switchTab('tab2')" class="nav-btn flex flex-col items-center py-2 px-3 text-gray-400" data-tab="tab2">
1028
+ <i data-feather="activity" class="w-5 h-5"></i>
1029
+ <span class="text-xs mt-1">สุขภาพวันนี้</span>
1030
+ </button>
1031
+ <button onclick="switchTab('tab5')" class="nav-btn flex flex-col items-center py-2 px-3 text-gray-400" data-tab="tab5">
1032
+ <i data-feather="trending-up" class="w-5 h-5"></i>
1033
+ <span class="text-xs mt-1">ผลย้อนหลัง</span>
1034
+ </button>
1035
+ <button onclick="switchTab('tab4')" class="nav-btn flex flex-col items-center py-2 px-3 text-gray-400" data-tab="tab4">
1036
+ <i data-feather="shopping-bag" class="w-5 h-5"></i>
1037
+ <span class="text-xs mt-1">สั่งซื้อ</span>
1038
+ </button>
1039
+ <button onclick="switchTab('tab8')" class="nav-btn flex flex-col items-center py-2 px-3 text-gray-400" data-tab="tab8">
1040
+ <i data-feather="user" class="w-5 h-5"></i>
1041
+ <span class="text-xs mt-1">โปรไฟล์</span>
1042
+ </button>
1043
+ </div>
1044
+ </nav>
1045
+
1046
+ <script src="script.js"></script>
1047
+ <script>feather.replace();</script>
1048
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
1049
+ </body>
1050
+ </html>
script.js ADDED
@@ -0,0 +1,1335 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ // Tab switching functionality
3
+ function switchTab(tabId) {
4
+ // Hide all tabs
5
+ const allTabs = document.querySelectorAll('.tab-content');
6
+ allTabs.forEach(tab => {
7
+ tab.classList.remove('active');
8
+ });
9
+
10
+ // Show selected tab
11
+ const selectedTab = document.getElementById(tabId);
12
+ if (selectedTab) {
13
+ selectedTab.classList.add('active');
14
+ }
15
+
16
+ // Update navigation buttons
17
+ const allNavButtons = document.querySelectorAll('.nav-btn');
18
+ allNavButtons.forEach(btn => {
19
+ btn.classList.remove('text-health-green');
20
+ btn.classList.add('text-gray-400');
21
+ });
22
+
23
+ // Highlight active nav button
24
+ const activeNavBtn = document.querySelector(`[data-tab="${tabId}"]`);
25
+ if (activeNavBtn) {
26
+ activeNavBtn.classList.remove('text-gray-400');
27
+ activeNavBtn.classList.add('text-health-green');
28
+ }
29
+
30
+ // Reinitialize feather icons
31
+ feather.replace();
32
+ }
33
+
34
+ // Initialize page
35
+ document.addEventListener('DOMContentLoaded', function() {
36
+ // Initialize feather icons
37
+ feather.replace();
38
+
39
+ // Animate progress bars on load
40
+ setTimeout(() => {
41
+ const progressBars = document.querySelectorAll('.progress-bar');
42
+ progressBars.forEach(bar => {
43
+ bar.style.transition = 'width 1s ease';
44
+ });
45
+ }, 500);
46
+
47
+ // Simulate real-time updates
48
+ setInterval(() => {
49
+ // Update time
50
+ const now = new Date();
51
+ const timeString = now.toLocaleTimeString('th-TH', {
52
+ hour: '2-digit',
53
+ minute: '2-digit'
54
+ });
55
+
56
+ // Update heart rate animation
57
+ const heartIcons = document.querySelectorAll('[data-feather="heart"]');
58
+ heartIcons.forEach(icon => {
59
+ icon.parentElement.classList.add('pulse-animation');
60
+ setTimeout(() => {
61
+ icon.parentElement.classList.remove('pulse-animation');
62
+ }, 2000);
63
+ });
64
+ }, 10000);
65
+ });
66
+
67
+ // Handle supplement status clicks
68
+ document.querySelectorAll('.bg-red-50.border-red-200').forEach(item => {
69
+ item.addEventListener('click', function() {
70
+ this.classList.remove('bg-red-50', 'border-red-200');
71
+ this.classList.add('bg-green-50', 'border-green-200');
72
+
73
+ const icon = this.querySelector('[data-feather="x"]');
74
+ if (icon) {
75
+ icon.setAttribute('data-feather', 'check');
76
+ feather.replace();
77
+ }
78
+
79
+ const text = this.querySelector('.text-red-600');
80
+ if (text) {
81
+ text.textContent = 'รับประทานแล้ว!';
82
+ text.classList.remove('text-red-600');
83
+ text.classList.add('text-green-600');
84
+ }
85
+
86
+ // Show success notification
87
+ showNotification('บันทึกสำเร็จ! รับประทานผลิตภัณฑ์แล้ว');
88
+ });
89
+ });
90
+
91
+ // Handle task completion
92
+ document.querySelectorAll('.w-6.h-6.bg-gray-300').forEach(item => {
93
+ item.addEventListener('click', function() {
94
+ this.classList.remove('bg-gray-300');
95
+ this.classList.add('bg-green-500');
96
+
97
+ const icon = this.querySelector('[data-feather="clock"]');
98
+ if (icon) {
99
+ icon.setAttribute('data-feather', 'check');
100
+ feather.replace();
101
+ }
102
+
103
+ // Show success notification
104
+ showNotification('ภารกิจเสร็จสิ้น! +3 แต้ม');
105
+ });
106
+ });
107
+
108
+ // Notification system
109
+ function showNotification(message) {
110
+ const notification = document.createElement('div');
111
+ notification.className = 'fixed top-20 left-1/2 transform -translate-x-1/2 bg-green-500 text-white px-6 py-3 rounded-lg shadow-lg z-50 transition-all duration-300';
112
+ notification.textContent = message;
113
+ document.body.appendChild(notification);
114
+
115
+ setTimeout(() => {
116
+ notification.style.opacity = '0';
117
+ setTimeout(() => {
118
+ document.body.removeChild(notification);
119
+ }, 300);
120
+ }, 2000);
121
+ }
122
+
123
+ // Handle purchase buttons
124
+ document.querySelectorAll('button').forEach(button => {
125
+ if (button.textContent.includes('เพิ่มลงตะกร้า') ||
126
+ button.textContent.includes('ซื้อซ้ำ') ||
127
+ button.textContent.includes('สมัครแบบรายเดือน')) {
128
+ button.addEventListener('click', function() {
129
+ showNotification('เพิ่มสินค้าลงตะกร้าแล้ว!');
130
+ });
131
+ }
132
+ });
133
+
134
+ // Handle time range selector buttons
135
+ document.querySelectorAll('button').forEach(button => {
136
+ if (button.textContent.includes('7 วัน') ||
137
+ button.textContent.includes('14 วัน') ||
138
+ button.textContent.includes('30 วัน')) {
139
+ button.addEventListener('click', function() {
140
+ // Remove active state from all buttons
141
+ this.parentElement.querySelectorAll('button').forEach(btn => {
142
+ btn.classList.remove('bg-health-green', 'text-white');
143
+ btn.classList.add('bg-gray-200', 'text-gray-600');
144
+ });
145
+
146
+ // Add active state to clicked button
147
+ this.classList.remove('bg-gray-200', 'text-gray-600');
148
+ this.classList.add('bg-health-green', 'text-white');
149
+
150
+ showNotification(`เปลี่ยนช่วงเวลาเป็น ${this.textContent}`);
151
+ });
152
+ }
153
+ });
154
+
155
+ // Handle contact buttons
156
+ document.querySelectorAll('button').forEach(button => {
157
+ if (button.textContent.includes('แชททาง LINE') ||
158
+ button.textContent.includes('ส่งรายงานสุขภาพ') ||
159
+ button.textContent.includes('นัด Video Call')) {
160
+ button.addEventListener('click', function() {
161
+ showNotification('เปิดหน้าต่างใหม่...');
162
+ });
163
+ }
164
+ });
165
+
166
+ // Handle reward redemption
167
+ document.querySelectorAll('.border-gray-200.rounded-lg').forEach(item => {
168
+ if (item.textContent.includes('แต้ม')) {
169
+ item.addEventListener('click', function() {
170
+ const pointsText = this.querySelector('.text-gray-500').textContent;
171
+ const points = parseInt(pointsText.match(/\d+/)[0]);
172
+
173
+ if (points <= 415) { // User has 415 coins
174
+ showNotification(`แลกรางวัลสำเร็จ! ใช้ ${points} แต้ม`);
175
+ } else {
176
+ showNotification('แต้มไม่พอ! สะสมแต้มเพิ่ม');
177
+ }
178
+ });
179
+ }
180
+ });
181
+
182
+ // Smooth scroll for internal navigation
183
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
184
+ anchor.addEventListener('click', function (e) {
185
+ e.preventDefault();
186
+ const target = document.querySelector(this.getAttribute('href'));
187
+ if (target) {
188
+ target.scrollIntoView({
189
+ behavior: 'smooth',
190
+ block: 'start'
191
+ });
192
+ }
193
+ });
194
+ });
195
+
196
+ // Pull to refresh functionality
197
+ let startY = 0;
198
+ let isPulling = false;
199
+
200
+ document.addEventListener('touchstart', function(e) {
201
+ if (window.scrollY === 0) {
202
+ startY = e.touches[0].pageY;
203
+ isPulling = true;
204
+ }
205
+ });
206
+
207
+ document.addEventListener('touchmove', function(e) {
208
+ if (!isPulling) return;
209
+
210
+ const currentY = e.touches[0].pageY;
211
+ const diff = currentY - startY;
212
+
213
+ if (diff > 100) {
214
+ document.body.style.transform = `translateY(${Math.min(diff * 0.5, 100)}px)`;
215
+ }
216
+ });
217
+
218
+ document.addEventListener('touchend', function() {
219
+ if (isPulling) {
220
+ document.body.style.transform = '';
221
+ document.body.style.transition = 'transform 0.3s ease';
222
+
223
+ setTimeout(() => {
224
+ document.body.style.transition = '';
225
+ showNotification('อัปเดตข้อมูลล่าสุด');
226
+ }, 300);
227
+
228
+ isPulling = false;
229
+ }
230
+ });
231
+
232
+ // Add haptic feedback for mobile (if supported)
233
+ if ('vibrate' in navigator) {
234
+ document.querySelectorAll('button').forEach(button => {
235
+ button.addEventListener('click', function() {
236
+ navigator.vibrate(50);
237
+ });
238
+ });
239
+ }
240
+
241
+ // Handle offline/online status
242
+ window.addEventListener('online', function() {
243
+ showNotification('เชื่อมต่ออินเทอร์เน็ตแล้ว');
244
+ });
245
+
246
+ window.addEventListener('offline', function() {
247
+ showNotification('ขาดการเชื่อมต่ออินเทอร์เน็ต');
248
+ });
249
+
250
+ // Local storage for user preferences
251
+ const saveUserPreference = (key, value) => {
252
+ localStorage.setItem(`wp_${key}`, JSON.stringify(value));
253
+ };
254
+
255
+ const getUserPreference = (key) => {
256
+ const value = localStorage.getItem(`wp_${key}`);
257
+ return value ? JSON.parse(value) : null;
258
+ };
259
+
260
+ // Save tab preference
261
+ const originalSwitchTab = switchTab;
262
+ switchTab = function(tabId) {
263
+ originalSwitchTab(tabId);
264
+ saveUserPreference('lastTab', tabId);
265
+ };
266
+
267
+ // Restore last active tab on page load
268
+ const lastTab = getUserPreference('lastTab');
269
+ if (lastTab && document.getElementById(lastTab)) {
270
+ switchTab(lastTab);
271
+ }
272
+
273
+ // Add animations for chart bars
274
+ const observerOptions = {
275
+ threshold: 0.5,
276
+ rootMargin: '0px'
277
+ };
278
+
279
+ const observer = new IntersectionObserver((entries) => {
280
+ entries.forEach(entry => {
281
+ if (entry.isIntersecting) {
282
+ entry.target.style.height = entry.target.getAttribute('data-height');
283
+ }
284
+ });
285
+ }, observerOptions);
286
+
287
+ document.querySelectorAll('.chart-bar').forEach(bar => {
288
+ const height = bar.style.height;
289
+ bar.setAttribute('data-height', height);
290
+ bar.style.height = '0';
291
+ observer.observe(bar);
292
+ });
293
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
294
+ <script src="https://cdn.tailwindcss.com"></script>
295
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
296
+ <script src="https://unpkg.com/feather-icons"></script>
297
+ <link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
298
+ <script>
299
+ tailwind.config = {
300
+ theme: {
301
+ extend: {
302
+ colors: {
303
+ 'health-green': '#10b981',
304
+ 'health-blue': '#06b6d4',
305
+ 'health-light': '#e0f2fe',
306
+ 'health-dark': '#0f766e',
307
+ },
308
+ fontFamily: {
309
+ 'thai': ['Prompt', 'sans-serif'],
310
+ },
311
+ }
312
+ }
313
+ }
314
+ </script>
315
+ <style>
316
+ * {
317
+ font-family: 'Prompt', sans-serif;
318
+ }
319
+ .tab-content {
320
+ display: none;
321
+ }
322
+ .tab-content.active {
323
+ display: block;
324
+ }
325
+ .progress-bar {
326
+ background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
327
+ transition: width 0.3s ease;
328
+ }
329
+ .health-card {
330
+ background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
331
+ }
332
+ .chart-bar {
333
+ transition: height 0.5s ease;
334
+ }
335
+ @keyframes pulse {
336
+ 0%, 100% { transform: scale(1); }
337
+ 50% { transform: scale(1.05); }
338
+ }
339
+ .pulse-animation {
340
+ animation: pulse 2s infinite;
341
+ }
342
+ .scroll-hidden::-webkit-scrollbar {
343
+ display: none;
344
+ }
345
+ .scroll-hidden {
346
+ -ms-overflow-style: none;
347
+ scrollbar-width: none;
348
+ }
349
+ </style>
350
+ </head>
351
+ <body class="bg-gray-50 font-thai">
352
+ <!-- Header -->
353
+ <header class="bg-white shadow-sm sticky top-0 z-50">
354
+ <div class="px-4 py-3 flex items-center justify-between">
355
+ <div class="flex items-center space-x-2">
356
+ <div class="w-10 h-10 bg-gradient-to-r from-health-green to-health-blue rounded-lg flex items-center justify-center">
357
+ <span class="text-white font-bold text-sm">WP</span>
358
+ </div>
359
+ <span class="font-semibold text-gray-800">WELLNET</span>
360
+ </div>
361
+ <div class="flex items-center space-x-3">
362
+ <button class="relative p-2 rounded-full hover:bg-gray-100 transition">
363
+ <i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
364
+ <span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
365
+ </button>
366
+ <button class="w-10 h-10 rounded-full overflow-hidden hover:ring-2 hover:ring-health-blue transition">
367
+ <img src="https://static.photos/people/100x100/85" alt="Profile" class="w-full h-full object-cover">
368
+ </button>
369
+ </div>
370
+ </div>
371
+ </header>
372
+
373
+ <!-- Main Content -->
374
+ <main class="pb-20">
375
+ <!-- Tab 1: Dashboard -->
376
+ <div id="tab1" class="tab-content active px-4 py-6 space-y-6">
377
+ <!-- Welcome Message -->
378
+ <div class="bg-gradient-to-r from-health-green to-health-blue text-white rounded-2xl p-6">
379
+ <h1 class="text-xl font-semibold mb-2">ยินดีต้อนรับกลับ!</h1>
380
+ <p class="text-sm opacity-90">คุณอยู่ในแผนฟื้นฟู: 30-Day Restore Plan</p>
381
+ <div class="mt-3 flex items-center space-x-4">
382
+ <div class="flex-1 bg-white/20 rounded-full h-2">
383
+ <div class="bg-white rounded-full h-2" style="width: 40%"></div>
384
+ </div>
385
+ <span class="text-xs">วันที่ 12/30</span>
386
+ </div>
387
+ </div>
388
+
389
+ <!-- Today's Goals -->
390
+ <div class="bg-white rounded-xl p-4 shadow-sm">
391
+ <h2 class="font-semibold text-gray-800 mb-4 flex items-center">
392
+ <i data-feather="target" class="w-4 h-4 mr-2 text-health-green"></i>
393
+ เป้าหมายวันนี้
394
+ </h2>
395
+ <div class="space-y-3">
396
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
397
+ <div class="flex items-center space-x-3">
398
+ <span class="text-2xl">🧬</span>
399
+ <div>
400
+ <p class="text-sm font-medium">HRV</p>
401
+ <p class="text-xs text-gray-500">ค่าปกติ 60-100</p>
402
+ </div>
403
+ </div>
404
+ <span class="text-lg font-semibold text-health-green">62/100</span>
405
+ </div>
406
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
407
+ <div class="flex items-center space-x-3">
408
+ <span class="text-2xl">🔴</span>
409
+ <div>
410
+ <p class="text-sm font-medium">ความดัน</p>
411
+ <p class="text-xs text-gray-500">เป้าหมาย &lt;125/80</p>
412
+ </div>
413
+ </div>
414
+ <div class="text-right">
415
+ <span class="text-lg font-semibold text-orange-500">134/90</span>
416
+ <i data-feather="trending-down" class="w-3 h-3 inline text-health-green"></i>
417
+ </div>
418
+ </div>
419
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
420
+ <div class="flex items-center space-x-3">
421
+ <span class="text-2xl">⚖️</span>
422
+ <div>
423
+ <p class="text-sm font-medium">น้ำหนัก</p>
424
+ <p class="text-xs text-gray-500">เป้าหมาย 70 กก.</p>
425
+ </div>
426
+ </div>
427
+ <span class="text-lg font-semibold text-gray-700">71.2 กก.</span>
428
+ </div>
429
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
430
+ <div class="flex items-center space-x-3">
431
+ <span class="text-2xl">🧪</span>
432
+ <div>
433
+ <p class="text-sm font-medium">pH ปัสสาวะ</p>
434
+ <p class="text-xs text-gray-500">เป้าหมาย 6.8</p>
435
+ </div>
436
+ </div>
437
+ <div class="text-right">
438
+ <span class="text-lg font-semibold text-red-500">5.5</span>
439
+ <span class="text-xs text-gray-500 ml-1">(กรด)</span>
440
+ </div>
441
+ </div>
442
+ </div>
443
+ </div>
444
+
445
+ <!-- Supplement Status -->
446
+ <div class="bg-white rounded-xl p-4 shadow-sm">
447
+ <h2 class="font-semibold text-gray-800 mb-4 flex items-center">
448
+ <i data-feather="package" class="w-4 h-4 mr-2 text-health-blue"></i>
449
+ สถานะอาหารเสริมวันนี้
450
+ </h2>
451
+ <div class="space-y-3">
452
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
453
+ <div class="flex items-center space-x-3">
454
+ <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
455
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
456
+ </div>
457
+ <div>
458
+ <p class="text-sm font-medium">BS</p>
459
+ <p class="text-xs text-gray-500">รับประทานแล้ว (07:30)</p>
460
+ </div>
461
+ </div>
462
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full">เช้า</span>
463
+ </div>
464
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
465
+ <div class="flex items-center space-x-3">
466
+ <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
467
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
468
+ </div>
469
+ <div>
470
+ <p class="text-sm font-medium">LS</p>
471
+ <p class="text-xs text-gray-500">รับประทานแล้ว (12:15)</p>
472
+ </div>
473
+ </div>
474
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full">กลางวัน</span>
475
+ </div>
476
+ <div class="flex items-center justify-between p-3 bg-red-50 rounded-lg border border-red-200 pulse-animation">
477
+ <div class="flex items-center space-x-3">
478
+ <div class="w-8 h-8 bg-red-500 rounded-full flex items-center justify-center">
479
+ <i data-feather="x" class="w-4 h-4 text-white"></i>
480
+ </div>
481
+ <div>
482
+ <p class="text-sm font-medium">PHK</p>
483
+ <p class="text-xs text-red-600">ยังไม่ได้รับประทาน!</p>
484
+ </div>
485
+ </div>
486
+ <span class="text-xs bg-red-100 text-red-700 px-2 py-1 rounded-full">เ��็น</span>
487
+ </div>
488
+ </div>
489
+ </div>
490
+
491
+ <!-- 30-Day Progress -->
492
+ <div class="bg-white rounded-xl p-4 shadow-sm">
493
+ <h2 class="font-semibold text-gray-800 mb-4">ความคืบหน้า 30 วัน</h2>
494
+ <div class="relative h-32 bg-gray-100 rounded-lg overflow-hidden">
495
+ <div class="absolute bottom-0 left-0 right-0 flex items-end justify-around h-full pb-2">
496
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 30%"></div>
497
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 45%"></div>
498
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 50%"></div>
499
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 60%"></div>
500
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 55%"></div>
501
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 65%"></div>
502
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 70%"></div>
503
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 75%"></div>
504
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 80%"></div>
505
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 78%"></div>
506
+ <div class="chart-bar w-2 bg-gray-300 rounded-t" style="height: 82%"></div>
507
+ <div class="chart-bar w-2 bg-health-green rounded-t" style="height: 85%"></div>
508
+ </div>
509
+ </div>
510
+ <div class="mt-3 flex justify-between text-xs text-gray-500">
511
+ <span>วันที่ 1</span>
512
+ <span class="font-semibold text-health-green">40% เสร็จสิ้น</span>
513
+ <span>วันที่ 30</span>
514
+ </div>
515
+ </div>
516
+ </div>
517
+
518
+ <!-- Tab 2: Today's Health -->
519
+ <div id="tab2" class="tab-content px-4 py-6 space-y-6">
520
+ <div class="text-center mb-6">
521
+ <h1 class="text-2xl font-bold text-gray-800">สุขภาพของฉันวันนี้</h1>
522
+ <p class="text-sm text-gray-500 mt-1">วันที่ 12 ธันวาคม 2567</p>
523
+ </div>
524
+
525
+ <!-- Smart Band Data -->
526
+ <div class="bg-gradient-to-br from-health-blue to-health-green text-white rounded-2xl p-6">
527
+ <h2 class="text-lg font-semibold mb-4">ข้อมูลจาก Smart Band & MyScale</h2>
528
+ <div class="grid grid-cols-2 gap-4">
529
+ <div class="bg-white/20 backdrop-blur rounded-lg p-3">
530
+ <div class="flex items-center space-x-2 mb-1">
531
+ <i data-feather="moon" class="w-4 h-4"></i>
532
+ <span class="text-xs">การนอน</span>
533
+ </div>
534
+ <p class="text-xl font-bold">6.3 ชม.</p>
535
+ <p class="text-xs opacity-90">คุณภาพ: ปานกลาง</p>
536
+ </div>
537
+ <div class="bg-white/20 backdrop-blur rounded-lg p-3">
538
+ <div class="flex items-center space-x-2 mb-1">
539
+ <i data-feather="heart" class="w-4 h-4"></i>
540
+ <span class="text-xs">Heart Rate</span>
541
+ </div>
542
+ <p class="text-xl font-bold">82 bpm</p>
543
+ <p class="text-xs text-yellow-200">สูง</p>
544
+ </div>
545
+ <div class="bg-white/20 backdrop-blur rounded-lg p-3">
546
+ <div class="flex items-center space-x-2 mb-1">
547
+ <i data-feather="activity" class="w-4 h-4"></i>
548
+ <span class="text-xs">HRV</span>
549
+ </div>
550
+ <p class="text-xl font-bold">61 ms</p>
551
+ <p class="text-xs opacity-90">ปกติ</p>
552
+ </div>
553
+ <div class="bg-white/20 backdrop-blur rounded-lg p-3">
554
+ <div class="flex items-center space-x-2 mb-1">
555
+ <i data-feather="zap" class="w-4 h-4"></i>
556
+ <span class="text-xs">Stress Index</span>
557
+ </div>
558
+ <p class="text-xl font-bold">78</p>
559
+ <p class="text-xs text-red-200">สูง</p>
560
+ </div>
561
+ </div>
562
+ </div>
563
+
564
+ <!-- Health Score -->
565
+ <div class="bg-white rounded-xl p-6 shadow-sm text-center">
566
+ <div class="relative inline-block">
567
+ <svg class="w-32 h-32 transform -rotate-90">
568
+ <circle cx="64" cy="64" r="56" stroke="#e5e7eb" stroke-width="12" fill="none"></circle>
569
+ <circle cx="64" cy="64" r="56" stroke="url(#gradient)" stroke-width="12" fill="none"
570
+ stroke-dasharray="351.86" stroke-dashoffset="112.6" stroke-linecap="round"></circle>
571
+ <defs>
572
+ <linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%">
573
+ <stop offset="0%" stop-color="#10b981"></stop>
574
+ <stop offset="100%" stop-color="#06b6d4"></stop>
575
+ </linearGradient>
576
+ </defs>
577
+ </svg>
578
+ <div class="absolute inset-0 flex flex-col items-center justify-center">
579
+ <span class="text-3xl font-bold text-gray-800">68</span>
580
+ <span class="text-xs text-gray-500">/ 100</span>
581
+ </div>
582
+ </div>
583
+ <h3 class="text-lg font-semibold text-gray-800 mt-4">คะแนนสุขภาพวันนี้</h3>
584
+ <p class="text-sm text-gray-500 mt-1">อยู่ในเกณฑ์ดี สามารถปรับปรุงได้</p>
585
+ </div>
586
+
587
+ <!-- Recommendations -->
588
+ <div class="bg-white rounded-xl p-4 shadow-sm">
589
+ <h2 class="font-semibold text-gray-800 mb-4 flex items-center">
590
+ <i data-feather="info" class="w-4 h-4 mr-2 text-health-blue"></i>
591
+ คำแนะนำสำหรับวันนี้
592
+ </h2>
593
+ <div class="space-y-3">
594
+ <div class="flex items-start space-x-3">
595
+ <div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center flex-shrink-0">
596
+ <i data-feather="droplet" class="w-4 h-4 text-blue-600"></i>
597
+ </div>
598
+ <div class="flex-1">
599
+ <p class="text-sm font-medium text-gray-800">ดื่มน้ำมากขึ้น</p>
600
+ <p class="text-xs text-gray-500">เป้าหมาย 2.5 ลิตร ตอนนี้ดื่มไป 1.2 ลิตร</p>
601
+ </div>
602
+ </div>
603
+ <div class="flex items-start space-x-3">
604
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center flex-shrink-0">
605
+ <i data-feather="trending-up" class="w-4 h-4 text-green-600"></i>
606
+ </div>
607
+ <div class="flex-1">
608
+ <p class="text-sm font-medium text-gray-800">เดินเพิ่มอีก</p>
609
+ <p class="text-xs text-gray-500">เป้าหมาย 6,000 ก้าว ตอนนี้เดินไป 3,247 ก้าว</p>
610
+ </div>
611
+ </div>
612
+ <div class="flex items-start space-x-3">
613
+ <div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center flex-shrink-0">
614
+ <i data-feather="coffee" class="w-4 h-4 text-orange-600"></i>
615
+ </div>
616
+ <div class="flex-1">
617
+ <p class="text-sm font-medium text-gray-800">หลีกเลี่ยงคาเฟอีน</p>
618
+ <p class="text-xs text-gray-500">Stress Index สูง ควรหลีกเลี่ยงเครื่องดื่มกระตุ้น</p>
619
+ </div>
620
+ </div>
621
+ </div>
622
+ </div>
623
+ </div>
624
+
625
+ <!-- Tab 3: 30-Day Recovery Plan -->
626
+ <div id="tab3" class="tab-content px-4 py-6 space-y-6">
627
+ <div class="text-center mb-6">
628
+ <h1 class="text-2xl font-bold text-gray-800">แผนการฟื้นฟู 30 วัน</h1>
629
+ <p class="text-sm text-gray-500 mt-1">วันที่ 12 ธันวาคม 2567</p>
630
+ </div>
631
+
632
+ <!-- Progress Overview -->
633
+ <div class="bg-gradient-to-r from-health-green to-health-blue text-white rounded-2xl p-6">
634
+ <div class="flex justify-between items-center mb-3">
635
+ <h2 class="text-lg font-semibold">ความคืบหน้าทั้งหมด</h2>
636
+ <span class="bg-white/20 px-3 py-1 rounded-full text-sm">10/12 วัน</span>
637
+ </div>
638
+ <div class="bg-white/20 rounded-full h-3">
639
+ <div class="bg-white rounded-full h-3" style="width: 83%"></div>
640
+ </div>
641
+ <p class="text-sm mt-3 opacity-90">สำเร็จ 83% ของภารกิจที่กำหนด</p>
642
+ </div>
643
+
644
+ <!-- Today's Tasks -->
645
+ <div class="bg-white rounded-xl p-4 shadow-sm">
646
+ <h2 class="font-semibold text-gray-800 mb-4 flex items-center">
647
+ <i data-feather="check-square" class="w-4 h-4 mr-2 text-health-green"></i>
648
+ ภารกิจวันนี้
649
+ </h2>
650
+ <div class="space-y-3">
651
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
652
+ <div class="flex items-center space-x-3">
653
+ <span class="text-sm font-medium text-gray-600">08:00</span>
654
+ <div class="flex-1">
655
+ <p class="text-sm font-medium text-gray-800">กิน BS 1 เม็ด</p>
656
+ <p class="text-xs text-gray-500">หลังอาหารเช้า</p>
657
+ </div>
658
+ </div>
659
+ <div class="w-6 h-6 bg-green-500 rounded-full flex items-center justify-center">
660
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
661
+ </div>
662
+ </div>
663
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
664
+ <div class="flex items-center space-x-3">
665
+ <span class="text-sm font-medium text-gray-600">12:00</span>
666
+ <div class="flex-1">
667
+ <p class="text-sm font-medium text-gray-800">ดื่มน้ำ 1 ลิตร + LS</p>
668
+ <p class="text-xs text-gray-500">ก่อนอาหารกลางวัน</p>
669
+ </div>
670
+ </div>
671
+ <div class="w-6 h-6 bg-green-500 rounded-full flex items-center justify-center">
672
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
673
+ </div>
674
+ </div>
675
+ <div class="flex items-center justify-between p-3 bg-red-50 rounded-lg border border-red-200">
676
+ <div class="flex items-center space-x-3">
677
+ <span class="text-sm font-medium text-gray-600">18:00</span>
678
+ <div class="flex-1">
679
+ <p class="text-sm font-medium text-gray-800">ทาน PHK ก่อนอาหาร</p>
680
+ <p class="text-xs text-red-600">ยังไม่ทำ!</p>
681
+ </div>
682
+ </div>
683
+ <div class="w-6 h-6 bg-gray-300 rounded-full flex items-center justify-center">
684
+ <i data-feather="clock" class="w-4 h-4 text-white"></i>
685
+ </div>
686
+ </div>
687
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200">
688
+ <div class="flex items-center space-x-3">
689
+ <span class="text-sm font-medium text-gray-600">All Day</span>
690
+ <div class="flex-1">
691
+ <p class="text-sm font-medium text-gray-800">เดินให้ครบ 5,000 ก้าว</p>
692
+ <p class="text-xs text-green-600">สำเร็จ 5,247 ก้าว</p>
693
+ </div>
694
+ </div>
695
+ <div class="w-6 h-6 bg-green-500 rounded-full flex items-center justify-center">
696
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
697
+ </div>
698
+ </div>
699
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg border border-gray-200">
700
+ <div class="flex items-center space-x-3">
701
+ <span class="text-sm font-medium text-gray-600">Before bed</span>
702
+ <div class="flex-1">
703
+ <p class="text-sm font-medium text-gray-800">วัด HRV ก่อนนอน</p>
704
+ <p class="text-xs text-gray-500">รอดำเนินการ</p>
705
+ </div>
706
+ </div>
707
+ <div class="w-6 h-6 bg-gray-300 rounded-full flex items-center justify-center">
708
+ <i data-feather="clock" class="w-4 h-4 text-white"></i>
709
+ </div>
710
+ </div>
711
+ </div>
712
+ </div>
713
+
714
+ <!-- Weekly Chart -->
715
+ <div class="bg-white rounded-xl p-4 shadow-sm">
716
+ <h2 class="font-semibold text-gray-800 mb-4">สถิติ 7 วันล่าสุด</h2>
717
+ <div class="space-y-3">
718
+ <div>
719
+ <div class="flex justify-between text-xs text-gray-500 mb-1">
720
+ <span>ความสำเร็จภารกิจ</span>
721
+ <span>83%</span>
722
+ </div>
723
+ <div class="flex space-x-1">
724
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
725
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
726
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
727
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
728
+ <div class="flex-1 bg-yellow-500 h-2 rounded"></div>
729
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
730
+ <div class="flex-1 bg-green-500 h-2 rounded"></div>
731
+ </div>
732
+ </div>
733
+ </div>
734
+ </div>
735
+ </div>
736
+
737
+ <!-- Tab 4: Recovery Products -->
738
+ <div id="tab4" class="tab-content px-4 py-6 space-y-6">
739
+ <div class="text-center mb-6">
740
+ <h1 class="text-2xl font-bold text-gray-800">ผลิตภัณฑ์ฟื้นฟูสุขภาพ</h1>
741
+ <p class="text-sm text-gray-500 mt-1">แนะนำสำหรับคุณโดยเฉพาะ</p>
742
+ </div>
743
+
744
+ <!-- Product Pack 1 -->
745
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
746
+ <div class="bg-gradient-to-r from-red-500 to-pink-500 p-4">
747
+ <h3 class="text-white font-semibold text-lg">📦 แพ็ก 1: Deep Blood Flow</h3>
748
+ </div>
749
+ <div class="p-4">
750
+ <ul class="space-y-2 mb-4">
751
+ <li class="flex items-center text-sm text-gray-700">
752
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
753
+ BS 30 เม็ด
754
+ </li>
755
+ <li class="flex items-center text-sm text-gray-700">
756
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
757
+ เหมาะสำหรับ: ความดันสูง, ชาเท้า
758
+ </li>
759
+ <li class="flex items-center text-sm text-gray-700">
760
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
761
+ ปรับปรุงการไหลเวียนโลหิต
762
+ </li>
763
+ </ul>
764
+ <div class="flex items-center justify-between">
765
+ <div>
766
+ <p class="text-2xl font-bold text-gray-800">990 บ.</p>
767
+ <p class="text-xs text-gray-500 line-through">1,290 บ.</p>
768
+ </div>
769
+ <button class="bg-health-green text-white px-6 py-2 rounded-lg font-medium hover:bg-green-600 transition">
770
+ เพิ่มลงตะกร้า
771
+ </button>
772
+ </div>
773
+ </div>
774
+ </div>
775
+
776
+ <!-- Product Pack 2 -->
777
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
778
+ <div class="bg-gradient-to-r from-blue-500 to-cyan-500 p-4">
779
+ <h3 class="text-white font-semibold text-lg">📦 แพ็ก 2: Detox + Recovery</h3>
780
+ </div>
781
+ <div class="p-4">
782
+ <ul class="space-y-2 mb-4">
783
+ <li class="flex items-center text-sm text-gray-700">
784
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
785
+ LS + PHK ครบเซ็ต
786
+ </li>
787
+ <li class="flex items-center text-sm text-gray-700">
788
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
789
+ ล้างพิษ + ปรับสมดุลเลือด
790
+ </li>
791
+ <li class="flex items-center text-sm text-gray-700">
792
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
793
+ ฟื้นฟูระบบขับถ่าย
794
+ </li>
795
+ </ul>
796
+ <div class="flex items-center justify-between">
797
+ <div>
798
+ <p class="text-2xl font-bold text-gray-800">1,290 บ.</p>
799
+ <p class="text-xs text-red-500">ลดพิเศษ -23%</p>
800
+ </div>
801
+ <button class="bg-health-blue text-white px-6 py-2 rounded-lg font-medium hover:bg-blue-600 transition">
802
+ ซื้อซ้ำ
803
+ </button>
804
+ </div>
805
+ </div>
806
+ </div>
807
+
808
+ <!-- Product Pack 3 -->
809
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
810
+ <div class="bg-gradient-to-r from-green-500 to-teal-500 p-4">
811
+ <h3 class="text-white font-semibold text-lg">📦 แพ็ก 3: 30-Day Full Plan</h3>
812
+ </div>
813
+ <div class="p-4">
814
+ <ul class="space-y-2 mb-4">
815
+ <li class="flex items-center text-sm text-gray-700">
816
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
817
+ BS + LS + PHK ครบเซ็ต
818
+ </li>
819
+ <li class="flex items-center text-sm text-gray-700">
820
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
821
+ คู่มือ Meal Plan 30 วัน
822
+ </li>
823
+ <li class="flex items-center text-sm text-gray-700">
824
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mr-2"></i>
825
+ ปรึกษาโค้ช 2 ครั้ง
826
+ </li>
827
+ </ul>
828
+ <div class="flex items-center justify-between">
829
+ <div>
830
+ <p class="text-2xl font-bold text-gray-800">2,790 บ.</p>
831
+ <p class="text-xs text-green-600">Subscription ลด 20%</p>
832
+ </div>
833
+ <button class="bg-gradient-to-r from-green-500 to-teal-500 text-white px-6 py-2 rounded-lg font-medium hover:opacity-90 transition">
834
+ สมัครแบบรายเดือน
835
+ </button>
836
+ </div>
837
+ </div>
838
+ </div>
839
+
840
+ <!-- Special Offer -->
841
+ <div class="bg-gradient-to-r from-purple-500 to-indigo-500 text-white rounded-xl p-4">
842
+ <div class="flex items-center justify-between">
843
+ <div>
844
+ <h4 class="font-semibold">🎁 ข้อเสนอพิเศษ!</h4>
845
+ <p class="text-sm opacity-90 mt-1">ซื้อครบ 2,500 บ. จัดส่งฟรี!</p>
846
+ </div>
847
+ <span class="bg-white/20 px-3 py-1 rounded-full text-sm">จำกัดเวลา</span>
848
+ </div>
849
+ </div>
850
+ </div>
851
+
852
+ <!-- Tab 5: Historical Results -->
853
+ <div id="tab5" class="tab-content px-4 py-6 space-y-6">
854
+ <div class="text-center mb-6">
855
+ <h1 class="text-2xl font-bold text-gray-800">ผลลัพธ์ย้อนหลัง</h1>
856
+ <p class="text-sm text-gray-500 mt-1">ติดตามความก้าวหน้าของคุณ</p>
857
+ </div>
858
+
859
+ <!-- Time Range Selector -->
860
+ <div class="flex justify-center space-x-2">
861
+ <button class="px-4 py-2 bg-gray-200 text-gray-600 rounded-lg text-sm font-medium">7 วัน</button>
862
+ <button class="px-4 py-2 bg-gray-200 text-gray-600 rounded-lg text-sm font-medium">14 วัน</button>
863
+ <button class="px-4 py-2 bg-health-green text-white rounded-lg text-sm font-medium">30 วัน</button>
864
+ </div>
865
+
866
+ <!-- HRV Chart -->
867
+ <div class="bg-white rounded-xl p-4 shadow-sm">
868
+ <h3 class="font-semibold text-gray-800 mb-4">HRV (ms)</h3>
869
+ <div class="relative h-32 bg-gray-50 rounded-lg p-2">
870
+ <svg class="w-full h-full">
871
+ <polyline points="0,100 20,95 40,90 60,85 80,75 100,70 120,72 140,68 160,65 180,60 200,58 220,55 240,52 260,50 280,48 300,45"
872
+ fill="none" stroke="#10b981" stroke-width="2"></polyline>
873
+ </svg>
874
+ </div>
875
+ <div class="mt-3 flex justify-between text-xs text-gray-500">
876
+ <span>48 ms</span>
877
+ <span class="text-health-green font-medium">↑ 27%</span>
878
+ <span>61 ms</span>
879
+ </div>
880
+ </div>
881
+
882
+ <!-- Blood Pressure Chart -->
883
+ <div class="bg-white rounded-xl p-4 shadow-sm">
884
+ <h3 class="font-semibold text-gray-800 mb-4">ความดันโลหิต (Systolic)</h3>
885
+ <div class="relative h-32 bg-gray-50 rounded-lg p-2">
886
+ <svg class="w-full h-full">
887
+ <polyline points="0,20 20,25 40,28 60,35 80,40 100,42 120,45 140,48 160,50 180,52 200,55 220,58 240,60 260,62 280,65 300,68"
888
+ fill="none" stroke="#ef4444" stroke-width="2"></polyline>
889
+ </svg>
890
+ </div>
891
+ <div class="mt-3 flex justify-between text-xs text-gray-500">
892
+ <span>145</span>
893
+ <span class="text-health-green font-medium">↓ 12%</span>
894
+ <span>128</span>
895
+ </div>
896
+ </div>
897
+
898
+ <!-- Weight Progress -->
899
+ <div class="bg-white rounded-xl p-4 shadow-sm">
900
+ <h3 class="font-semibold text-gray-800 mb-4">น้ำหนัก (กก.)</h3>
901
+ <div class="flex items-center justify-between">
902
+ <div class="text-center">
903
+ <p class="text-2xl font-bold text-gray-400">72.4</p>
904
+ <p class="text-xs text-gray-500">เริ่มต้น</p>
905
+ </div>
906
+ <div class="flex-1 mx-4">
907
+ <div class="bg-gray-200 rounded-full h-3 relative">
908
+ <div class="progress-bar bg-gradient-to-r from-health-green to-health-blue rounded-full h-3" style="width: 65%"></div>
909
+ </div>
910
+ </div>
911
+ <div class="text-center">
912
+ <p class="text-2xl font-bold text-health-green">71.2</p>
913
+ <p class="text-xs text-gray-500">ปัจจุบัน</p>
914
+ </div>
915
+ </div>
916
+ <p class="text-center text-sm text-green-600 mt-2 font-medium">ลดลง 1.2 กก. ✨</p>
917
+ </div>
918
+
919
+ <!-- pH Level -->
920
+ <div class="bg-white rounded-xl p-4 shadow-sm">
921
+ <h3 class="font-semibold text-gray-800 mb-4">pH ปัสสาวะ</h3>
922
+ <div class="flex items-center justify-between">
923
+ <div class="text-center">
924
+ <p class="text-2xl font-bold text-red-500">5.1</p>
925
+ <p class="text-xs text-gray-500">เริ่มต้น</p>
926
+ </div>
927
+ <div class="flex-1 mx-4">
928
+ <div class="bg-gradient-to-r from-red-500 via-yellow-500 to-green-500 rounded-full h-3 relative">
929
+ <div class="absolute w-3 h-3 bg-white border-2 border-gray-800 rounded-full" style="left: 75%; top: -2px"></div>
930
+ </div>
931
+ </div>
932
+ <div class="text-center">
933
+ <p class="text-2xl font-bold text-yellow-500">6.6</p>
934
+ <p class="text-xs text-gray-500">ปัจจุบัน</p>
935
+ </div>
936
+ </div>
937
+ <p class="text-center text-sm text-yellow-600 mt-2 font-medium">ดีขึ้นมาก ใกล้เป้าหมาย! 🎯</p>
938
+ </div>
939
+
940
+ <!-- Summary -->
941
+ <div class="bg-gradient-to-r from-health-green to-health-blue text-white rounded-xl p-4">
942
+ <h3 class="font-semibold mb-2">สรุป 30 วัน</h3>
943
+ <div class="space-y-1 text-sm">
944
+ <p>✅ HRV ดีขึ้น 27%</p>
945
+ <p>✅ ความดันลดลง 12%</p>
946
+ <p>✅ น้ำหนักลด 1.2 กก.</p>
947
+ <p>🎯 pH เข้าใกล้เป้าหมาย</p>
948
+ </div>
949
+ </div>
950
+ </div>
951
+
952
+ <!-- Tab 6: Your Consultant -->
953
+ <div id="tab6" class="tab-content px-4 py-6 space-y-6">
954
+ <div class="text-center mb-6">
955
+ <h1 class="text-2xl font-bold text-gray-800">ที่ปรึกษาของคุณ</h1>
956
+ <p class="text-sm text-gray-500 mt-1">ผู้เชี่ยวชาญดูแลสุขภาพของคุณ</p>
957
+ </div>
958
+
959
+ <!-- Consultant Profile -->
960
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
961
+ <div class="bg-gradient-to-r from-health-green to-health-blue p-6 text-center">
962
+ <div class="w-24 h-24 mx-auto rounded-full overflow-hidden border-4 border-white mb-3">
963
+ <img src="https://static.photos/people/200x200/90" alt="Consultant" class="w-full h-full object-cover">
964
+ </div>
965
+ <h3 class="text-xl font-semibold text-white">กัลยาณี สุขใจดี</h3>
966
+ <p class="text-white/90 text-sm">Certified Wellness Consultant</p>
967
+ </div>
968
+ <div class="p-4">
969
+ <div class="grid grid-cols-2 gap-3 mb-4">
970
+ <div class="text-center p-3 bg-gray-50 rounded-lg">
971
+ <i data-feather="award" class="w-6 h-6 mx-auto text-health-green mb-1"></i>
972
+ <p class="text-xs text-gray-500">ระดับ</p>
973
+ <p class="text-sm font-semibold">WP-CWC</p>
974
+ </div>
975
+ <div class="text-center p-3 bg-gray-50 rounded-lg">
976
+ <i data-feather="users" class="w-6 h-6 mx-auto text-health-blue mb-1"></i>
977
+ <p class="text-xs text-gray-500">ดูแลผู้ใช้</p>
978
+ <p class="text-sm font-semibold">57 คน</p>
979
+ </div>
980
+ </div>
981
+ <div class="space-y-3 text-sm">
982
+ <div class="flex items-center space-x-2">
983
+ <i data-feather="calendar" class="w-4 h-4 text-gray-500"></i>
984
+ <span class="text-gray-700">นัด Video Call ได้ทุกพฤหัสบดี</span>
985
+ </div>
986
+ <div class="flex items-center space-x-2">
987
+ <i data-feather="clock" class="w-4 h-4 text-gray-500"></i>
988
+ <span class="text-gray-700">ตอบกลับภายใน 2 ชม.</span>
989
+ </div>
990
+ <div class="flex items-center space-x-2">
991
+ <i data-feather="star" class="w-4 h-4 text-yellow-500"></i>
992
+ <span class="text-gray-700">คะแนน: 4.9/5.0 (23 รีวิว)</span>
993
+ </div>
994
+ </div>
995
+ </div>
996
+ </div>
997
+
998
+ <!-- Contact Options -->
999
+ <div class="bg-white rounded-xl p-4 shadow-sm">
1000
+ <h3 class="font-semibold text-gray-800 mb-4">ติดต่อที่ปรึกษา</h3>
1001
+ <div class="space-y-3">
1002
+ <button class="w-full flex items-center justify-between p-3 bg-green-50 rounded-lg border border-green-200 hover:bg-green-100 transition">
1003
+ <div class="flex items-center space-x-3">
1004
+ <i data-feather="message-circle" class="w-5 h-5 text-green-600"></i>
1005
+ <span class="text-sm font-medium text-gray-800">แชททาง LINE</span>
1006
+ </div>
1007
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full">Online</span>
1008
+ </button>
1009
+ <button class="w-full flex items-center justify-between p-3 bg-blue-50 rounded-lg border border-blue-200 hover:bg-blue-100 transition">
1010
+ <div class="flex items-center space-x-3">
1011
+ <i data-feather="send" class="w-5 h-5 text-blue-600"></i>
1012
+ <span class="text-sm font-medium text-gray-800">ส่งรายงานสุขภาพ</span>
1013
+ </div>
1014
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
1015
+ </button>
1016
+ <button class="w-full flex items-center justify-between p-3 bg-purple-50 rounded-lg border border-purple-200 hover:bg-purple-100 transition">
1017
+ <div class="flex items-center space-x-3">
1018
+ <i data-feather="video" class="w-5 h-5 text-purple-600"></i>
1019
+ <span class="text-sm font-medium text-gray-800">นัด Video Call</span>
1020
+ </div>
1021
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
1022
+ </button>
1023
+ </div>
1024
+ </div>
1025
+
1026
+ <!-- Recent Messages -->
1027
+ <div class="bg-white rounded-xl p-4 shadow-sm">
1028
+ <h3 class="font-semibold text-gray-800 mb-4">ข้อความล่าสุด</h3>
1029
+ <div class="space-y-3">
1030
+ <div class="flex space-x-3">
1031
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center flex-shrink-0">
1032
+ <span class="text-xs font-semibold text-green-600">ก</span>
1033
+ </div>
1034
+ <div class="flex-1">
1035
+ <p class="text-sm text-gray-700">สวัสดีครับ ผลการวัดวันนี้ HRV ดีขึ้นนะครับ แนะนำให้ดื่มน้ำเพิ่มครับ</p>
1036
+ <p class="text-xs text-gray-500 mt-1">2 ชม.ที่แล้ว</p>
1037
+ </div>
1038
+ </div>
1039
+ <div class="flex space-x-3">
1040
+ <div class="w-8 h-8 bg-blue-500 rounded-full flex items-center justify-center flex-shrink-0">
1041
+ <span class="text-xs font-semibold text-white">ฉ</span>
1042
+ </div>
1043
+ <div class="flex-1">
1044
+ <p class="text-sm text-gray-700">ขอบคุณครับ วันนี้จะพยายามดื่มน้ำให้ครบ 2.5 ลิตรครับ</p>
1045
+ <p class="text-xs text-gray-500 mt-1">1 ชม.ที่แล้ว</p>
1046
+ </div>
1047
+ </div>
1048
+ </div>
1049
+ </div>
1050
+ </div>
1051
+
1052
+ <!-- Tab 7: Mission & Rewards -->
1053
+ <div id="tab7" class="tab-content px-4 py-6 space-y-6">
1054
+ <div class="text-center mb-6">
1055
+ <h1 class="text-2xl font-bold text-gray-800">ระบบภารกิจ & รางวัล</h1>
1056
+ <p class="text-sm text-gray-500 mt-1">สะสมแต้มรับรางวัล</p>
1057
+ </div>
1058
+
1059
+ <!-- WP Coin Summary -->
1060
+ <div class="bg-gradient-to-r from-yellow-400 to-orange-500 text-white rounded-xl p-6">
1061
+ <div class="text-center">
1062
+ <p class="text-sm opacity-90 mb-2">WP Coin ที่สะสม</p>
1063
+ <p class="text-4xl font-bold mb-3">415</p>
1064
+ <div class="flex justify-center space-x-4 text-sm">
1065
+ <div>
1066
+ <p class="opacity-90">วันนี้ได้</p>
1067
+ <p class="font-semibold">+12</p>
1068
+ </div>
1069
+ <div class="w-px bg-white/30"></div>
1070
+ <div>
1071
+ <p class="opacity-90">อันดับ</p>
1072
+ <p class="font-semibold">#42</p>
1073
+ </div>
1074
+ </div>
1075
+ </div>
1076
+ </div>
1077
+
1078
+ <!-- Daily Missions -->
1079
+ <div class="bg-white rounded-xl p-4 shadow-sm">
1080
+ <h3 class="font-semibold text-gray-800 mb-4 flex items-center">
1081
+ <i data-feather="target" class="w-4 h-4 mr-2 text-health-green"></i>
1082
+ ภารกิจประจำวัน
1083
+ </h3>
1084
+ <div class="space-y-3">
1085
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg">
1086
+ <div class="flex items-center space-x-3">
1087
+ <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
1088
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
1089
+ </div>
1090
+ <div>
1091
+ <p class="text-sm font-medium text-gray-800">วัด HRV</p>
1092
+ <p class="text-xs text-gray-500">ได้ 3 แต้ม</p>
1093
+ </div>
1094
+ </div>
1095
+ <span class="text-sm font-semibold text-green-600">✅</span>
1096
+ </div>
1097
+ <div class="flex items-center justify-between p-3 bg-green-50 rounded-lg">
1098
+ <div class="flex items-center space-x-3">
1099
+ <div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
1100
+ <i data-feather="check" class="w-4 h-4 text-white"></i>
1101
+ </div>
1102
+ <div>
1103
+ <p class="text-sm font-medium text-gray-800">กินผลิตภัณฑ์ครบ</p>
1104
+ <p class="text-xs text-gray-500">ได้ 5 แต้ม</p>
1105
+ </div>
1106
+ </div>
1107
+ <span class="text-sm font-semibold text-green-600">✅</span>
1108
+ </div>
1109
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
1110
+ <div class="flex items-center space-x-3">
1111
+ <div class="w-8 h-8 bg-gray-300 rounded-full flex items-center justify-center">
1112
+ <i data-feather="clock" class="w-4 h-4 text-white"></i>
1113
+ </div>
1114
+ <div>
1115
+ <p class="text-sm font-medium text-gray-800">เดินครบ 6,000 ก้าว</p>
1116
+ <p class="text-xs text-gray-500">รอ 4 แต้ม</p>
1117
+ </div>
1118
+ </div>
1119
+ <span class="text-sm font-semibold text-gray-400">0/6,000</span>
1120
+ </div>
1121
+ </div>
1122
+ </div>
1123
+
1124
+ <!-- Weekly Challenges -->
1125
+ <div class="bg-white rounded-xl p-4 shadow-sm">
1126
+ <h3 class="font-semibold text-gray-800 mb-4 flex items-center">
1127
+ <i data-feather="zap" class="w-4 h-4 mr-2 text-orange-500"></i>
1128
+ ภารกิจประจำสัปดาห์
1129
+ </h3>
1130
+ <div class="space-y-3">
1131
+ <div class="p-3 bg-orange-50 rounded-lg">
1132
+ <div class="flex justify-between items-start mb-2">
1133
+ <div>
1134
+ <p class="text-sm font-medium text-gray-800">7 วันติดต่อกัน!</p>
1135
+ <p class="text-xs text-gray-500">ทำภาร��ิจครบติดต่อกัน 7 วัน</p>
1136
+ </div>
1137
+ <span class="text-xs bg-orange-100 text-orange-700 px-2 py-1 rounded-full">50 แต้ม</span>
1138
+ </div>
1139
+ <div class="bg-orange-200 rounded-full h-2">
1140
+ <div class="bg-orange-500 rounded-full h-2" style="width: 71%"></div>
1141
+ </div>
1142
+ <p class="text-xs text-gray-600 mt-1">5/7 วัน</p>
1143
+ </div>
1144
+ <div class="p-3 bg-purple-50 rounded-lg">
1145
+ <div class="flex justify-between items-start mb-2">
1146
+ <div>
1147
+ <p class="text-sm font-medium text-gray-800">สุขภาพดีเด่น</p>
1148
+ <p class="text-xs text-gray-500">คะแนนสุขภาพเฉลี่ย > 80</p>
1149
+ </div>
1150
+ <span class="text-xs bg-purple-100 text-purple-700 px-2 py-1 rounded-full">100 แต้ม</span>
1151
+ </div>
1152
+ <div class="bg-purple-200 rounded-full h-2">
1153
+ <div class="bg-purple-500 rounded-full h-2" style="width: 68%"></div>
1154
+ </div>
1155
+ <p class="text-xs text-gray-600 mt-1">เฉลี่ย 68/100</p>
1156
+ </div>
1157
+ </div>
1158
+ </div>
1159
+
1160
+ <!-- Rewards -->
1161
+ <div class="bg-white rounded-xl p-4 shadow-sm">
1162
+ <h3 class="font-semibold text-gray-800 mb-4 flex items-center">
1163
+ <i data-feather="gift" class="w-4 h-4 mr-2 text-red-500"></i>
1164
+ แลกรางวัล
1165
+ </h3>
1166
+ <div class="grid grid-cols-2 gap-3">
1167
+ <div class="p-3 border border-gray-200 rounded-lg text-center">
1168
+ <span class="text-2xl">🎯</span>
1169
+ <p class="text-xs font-medium mt-1">ส่วนลด 10%</p>
1170
+ <p class="text-xs text-gray-500">200 แต้ม</p>
1171
+ </div>
1172
+ <div class="p-3 border border-gray-200 rounded-lg text-center">
1173
+ <span class="text-2xl">📦</span>
1174
+ <p class="text-xs font-medium mt-1">ผลิตภัณฑ์ฟรี</p>
1175
+ <p class="text-xs text-gray-500">500 แต้ม</p>
1176
+ </div>
1177
+ <div class="p-3 border border-gray-200 rounded-lg text-center">
1178
+ <span class="text-2xl">👨‍⚕️</span>
1179
+ <p class="text-xs font-medium mt-1">ปรึกษาโค้ช</p>
1180
+ <p class="text-xs text-gray-500">150 แต้ม</p>
1181
+ </div>
1182
+ <div class="p-3 border border-gray-200 rounded-lg text-center">
1183
+ <span class="text-2xl">🏆</span>
1184
+ <p class="text-xs font-medium mt-1">VIP 1 เดือน</p>
1185
+ <p class="text-xs text-gray-500">1000 แต้ม</p>
1186
+ </div>
1187
+ </div>
1188
+ </div>
1189
+ </div>
1190
+
1191
+ <!-- Tab 8: Profile -->
1192
+ <div id="tab8" class="tab-content px-4 py-6 space-y-6">
1193
+ <div class="text-center mb-6">
1194
+ <div class="w-24 h-24 mx-auto rounded-full overflow-hidden border-4 border-health-green mb-3">
1195
+ <img src="https://static.photos/people/200x200/85" alt="Profile" class="w-full h-full object-cover">
1196
+ </div>
1197
+ <h1 class="text-2xl font-bold text-gray-800">พรชัย วัฒนะ</h1>
1198
+ <p class="text-sm text-gray-500 mt-1">สมาชิกตั้งแต่ 15 ตุลาคม 2567</p>
1199
+ </div>
1200
+
1201
+ <!-- Profile Information -->
1202
+ <div class="bg-white rounded-xl p-4 shadow-sm">
1203
+ <h3 class="font-semibold text-gray-800 mb-4">ข้อมูลส่วนตัว</h3>
1204
+ <div class="space-y-3">
1205
+ <div class="flex justify-between py-2 border-b border-gray-100">
1206
+ <span class="text-sm text-gray-500">อายุ</span>
1207
+ <span class="text-sm font-medium text-gray-800">47 ปี</span>
1208
+ </div>
1209
+ <div class="flex justify-between py-2 border-b border-gray-100">
1210
+ <span class="text-sm text-gray-500">ส่วนสูง</span>
1211
+ <span class="text-sm font-medium text-gray-800">170 ซม.</span>
1212
+ </div>
1213
+ <div class="flex justify-between py-2 border-b border-gray-100">
1214
+ <span class="text-sm text-gray-500">เป้าหมาย</span>
1215
+ <span class="text-sm font-medium text-gray-800">ล��ไขมันสะสมในช่องท้อง</span>
1216
+ </div>
1217
+ <div class="flex justify-between py-2 border-b border-gray-100">
1218
+ <span class="text-sm text-gray-500">โรคประจำตัว</span>
1219
+ <span class="text-sm font-medium text-gray-800">ความดัน, ภูมิแพ้</span>
1220
+ </div>
1221
+ <div class="flex justify-between py-2 border-b border-gray-100">
1222
+ <span class="text-sm text-gray-500">สินค้าที่ใช้</span>
1223
+ <span class="text-sm font-medium text-gray-800">BS, LS</span>
1224
+ </div>
1225
+ </div>
1226
+ </div>
1227
+
1228
+ <!-- Recovery Index -->
1229
+ <div class="bg-gradient-to-r from-health-green to-health-blue text-white rounded-xl p-6">
1230
+ <h3 class="text-lg font-semibold mb-4">คะแนนฟื้นฟู (Recovery Index)</h3>
1231
+ <div class="relative inline-block">
1232
+ <svg class="w-40 h-40 transform -rotate-90">
1233
+ <circle cx="80" cy="80" r="70" stroke="rgba(255,255,255,0.3)" stroke-width="14" fill="none"></circle>
1234
+ <circle cx="80" cy="80" r="70" stroke="white" stroke-width="14" fill="none"
1235
+ stroke-dasharray="439.82" stroke-dashoffset="123.15" stroke-linecap="round"></circle>
1236
+ </svg>
1237
+ <div class="absolute inset-0 flex flex-col items-center justify-center">
1238
+ <span class="text-4xl font-bold">72</span>
1239
+ <span class="text-sm opacity-90">/ 100</span>
1240
+ </div>
1241
+ </div>
1242
+ <p class="text-center mt-3 text-sm">อยู่ในเกณฑ์ดี รักษาต่อไป!</p>
1243
+ </div>
1244
+
1245
+ <!-- Achievements -->
1246
+ <div class="bg-white rounded-xl p-4 shadow-sm">
1247
+ <h3 class="font-semibold text-gray-800 mb-4 flex items-center">
1248
+ <i data-feather="award" class="w-4 h-4 mr-2 text-yellow-500"></i>
1249
+ ความสำเร็จ
1250
+ </h3>
1251
+ <div class="grid grid-cols-3 gap-3">
1252
+ <div class="text-center">
1253
+ <div class="w-16 h-16 mx-auto bg-yellow-100 rounded-full flex items-center justify-center mb-1">
1254
+ <span class="text-2xl">🏅</span>
1255
+ </div>
1256
+ <p class="text-xs text-gray-600">7 วันแรก</p>
1257
+ </div>
1258
+ <div class="text-center">
1259
+ <div class="w-16 h-16 mx-auto bg-blue-100 rounded-full flex items-center justify-center mb-1">
1260
+ <span class="text-2xl">💧</span>
1261
+ </div>
1262
+ <p class="text-xs text-gray-600">ดื่มน้ำดี</p>
1263
+ </div>
1264
+ <div class="text-center">
1265
+ <div class="w-16 h-16 mx-auto bg-green-100 rounded-full flex items-center justify-center mb-1">
1266
+ <span class="text-2xl">🎯</span>
1267
+ </div>
1268
+ <p class="text-xs text-gray-600">เป้าหมาย HRV</p>
1269
+ </div>
1270
+ </div>
1271
+ </div>
1272
+
1273
+ <!-- Settings -->
1274
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
1275
+ <button class="w-full flex items-center justify-between p-4 hover:bg-gray-50 transition">
1276
+ <div class="flex items-center space-x-3">
1277
+ <i data-feather="settings" class="w-5 h-5 text-gray-600"></i>
1278
+ <span class="text-sm font-medium text-gray-800">ตั้งค่า</span>
1279
+ </div>
1280
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
1281
+ </button>
1282
+ <button class="w-full flex items-center justify-between p-4 hover:bg-gray-50 transition border-t border-gray-100">
1283
+ <div class="flex items-center space-x-3">
1284
+ <i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
1285
+ <span class="text-sm font-medium text-gray-800">การแจ้งเตือน</span>
1286
+ </div>
1287
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
1288
+ </button>
1289
+ <button class="w-full flex items-center justify-between p-4 hover:bg-gray-50 transition border-t border-gray-100">
1290
+ <div class="flex items-center space-x-3">
1291
+ <i data-feather="help-circle" class="w-5 h-5 text-gray-600"></i>
1292
+ <span class="text-sm font-medium text-gray-800">ช่วยเหลือ</span>
1293
+ </div>
1294
+ <i data-feather="chevron-right" class="w-4 h-4 text-gray-400"></i>
1295
+ </button>
1296
+ <button class="w-full flex items-center justify-between p-4 hover:bg-red-50 transition border-t border-gray-100">
1297
+ <div class="flex items-center space-x-3">
1298
+ <i data-feather="log-out" class="w-5 h-5 text-red-600"></i>
1299
+ <span class="text-sm font-medium text-red-600">ออกจากระบบ</span>
1300
+ </div>
1301
+ </button>
1302
+ </div>
1303
+ </div>
1304
+ </main>
1305
+
1306
+ <!-- Bottom Navigation -->
1307
+ <nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-40">
1308
+ <div class="flex justify-around py-2">
1309
+ <button onclick="switchTab('tab1')" class="nav-btn flex flex-col items-center py-2 px-3 text-health-green" data-tab="tab1">
1310
+ <i data-feather="home" class="w-5 h-5"></i>
1311
+ <span class="text-xs mt-1">หน้าหลัก</span>
1312
+ </button>
1313
+ <button onclick="switchTab('tab2')" class="nav-btn flex flex-col items-center py-2 px-3 text-gray-400" data-tab="tab2">
1314
+ <i data-feather="activity" class="w-5 h-5"></i>
1315
+ <span class="text-xs mt-1">สุขภาพวันนี้</span>
1316
+ </button>
1317
+ <button onclick="switchTab('tab5')" class="nav-btn flex flex-col items-center py-2 px-3 text-gray-400" data-tab="tab5">
1318
+ <i data-feather="trending-up" class="w-5 h-5"></i>
1319
+ <span class="text-xs mt-1">ผลย้อนหลัง</span>
1320
+ </button>
1321
+ <button onclick="switchTab('tab4')" class="nav-btn flex flex-col items-center py-2 px-3 text-gray-400" data-tab="tab4">
1322
+ <i data-feather="shopping-bag" class="w-5 h-5"></i>
1323
+ <span class="text-xs mt-1">สั่งซื้อ</span>
1324
+ </button>
1325
+ <button onclick="switchTab('tab8')" class="nav-btn flex flex-col items-center py-2 px-3 text-gray-400" data-tab="tab8">
1326
+ <i data-feather="user" class="w-5 h-5"></i>
1327
+ <span class="text-xs mt-1">โปรไฟล์</span>
1328
+ </button>
1329
+ </div>
1330
+ </nav>
1331
+
1332
+ <script src="script.js"></script>
1333
+ <script>feather.replace();</script>
1334
+ </body>
1335
+ </html>
style.css CHANGED
@@ -1,28 +1 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
1
+ /* Additional custom styles if needed */