-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
567 lines (534 loc) · 44.8 KB
/
index.html
File metadata and controls
567 lines (534 loc) · 44.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BrandPreview - Social Media Brand Preview & Username Checker</title>
<meta name="description" content="Preview how your brand looks across Instagram, TikTok, X, YouTube, Threads and LinkedIn. Check username availability instantly.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<style>
:root {
--bg: #111110;
--surface: #1a1914;
--surface-2: #211f19;
--surface-3: #2a2820;
--border: rgba(255,240,200,0.07);
--border-hover: rgba(255,240,200,0.14);
--text: #f2efe6;
--text-2: #a8a393;
--text-3: #6b665a;
--accent: #e8734a;
--accent-soft: rgba(232,115,74,0.12);
--accent-2: #f5a572;
--green: #7ecf8b;
--green-bg: rgba(126,207,139,0.1);
--red: #e85d5d;
--red-bg: rgba(232,93,93,0.1);
--yellow: #e8c95d;
--yellow-bg: rgba(232,201,93,0.1);
--radius: 14px;
--radius-sm: 8px;
--sidebar-w: 380px;
--main-header-bg: rgba(17,17,16,0.92);
--card-shadow: rgba(0,0,0,0.3);
--shimmer-color: rgba(255,255,255,0.06);
--font: 'Outfit', sans-serif;
--mono: 'JetBrains Mono', monospace;
}
[data-theme="light"] {
--bg: #f5f3ee;
--surface: #ffffff;
--surface-2: #f0ede6;
--surface-3: #e5e1d8;
--border: rgba(60,50,30,0.1);
--border-hover: rgba(60,50,30,0.2);
--text: #1a1810;
--text-2: #6b665a;
--text-3: #9e9888;
--accent: #d4612e;
--accent-soft: rgba(212,97,46,0.1);
--accent-2: #c05020;
--green: #2e8a3e;
--green-bg: rgba(46,138,62,0.1);
--red: #c93c3c;
--red-bg: rgba(201,60,60,0.1);
--yellow: #b89520;
--yellow-bg: rgba(184,149,32,0.1);
--main-header-bg: rgba(245,243,238,0.92);
--card-shadow: rgba(0,0,0,0.08);
--shimmer-color: rgba(0,0,0,0.06);
}
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:var(--font);background:var(--bg);color:var(--text);height:100vh;overflow:hidden;}
body::before{content:'';position:fixed;inset:0;opacity:0.03;pointer-events:none;z-index:9999;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");background-repeat:repeat;background-size:256px;}
[data-theme="light"] body::before{opacity:0.015;}
/* ===== SPLIT LAYOUT ===== */
.app{display:flex;height:100vh;}
/* LEFT SIDEBAR */
.sidebar{
width:var(--sidebar-w);min-width:var(--sidebar-w);
height:100vh;overflow-y:auto;overflow-x:hidden;
border-right:1px solid var(--border);
background:var(--surface);
display:flex;flex-direction:column;
scrollbar-width:thin;scrollbar-color:var(--surface-3) transparent;
}
.sidebar::-webkit-scrollbar{width:5px;}
.sidebar::-webkit-scrollbar-track{background:transparent;}
.sidebar::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:10px;}
.sidebar-header{
padding:24px 20px 20px;
border-bottom:1px solid var(--border);
position:sticky;top:0;background:var(--surface);z-index:10;
}
.sidebar-header h1{font-size:22px;font-weight:800;letter-spacing:-1px;margin-bottom:4px;}
.sidebar-header h1 span{color:var(--accent);}
.sidebar-header p{font-size:12px;color:var(--text-3);letter-spacing:-0.1px;}
.sidebar-header-top{display:flex;align-items:center;justify-content:space-between;}
.theme-toggle{
background:var(--bg);border:1px solid var(--border);border-radius:100px;
width:34px;height:34px;display:flex;align-items:center;justify-content:center;
cursor:pointer;color:var(--text-2);transition:all 0.2s;flex-shrink:0;
}
.theme-toggle:hover{border-color:var(--accent);color:var(--accent-2);background:var(--accent-soft);}
.sidebar-section{padding:16px 20px;border-bottom:1px solid var(--border);}
.sidebar-section-title{
font-size:10px;font-weight:700;text-transform:uppercase;
letter-spacing:1px;color:var(--text-3);font-family:var(--mono);
margin-bottom:12px;
}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.field{display:flex;flex-direction:column;gap:4px;}
.field.full{grid-column:1/-1;}
.field label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.6px;color:var(--text-3);font-family:var(--mono);}
.field input,.field textarea{
background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);
padding:9px 12px;color:var(--text);font-size:13px;font-family:var(--font);outline:none;transition:all 0.2s;
}
.field input:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft);}
.field textarea{resize:vertical;min-height:56px;font-size:13px;}
.logo-row{display:flex;align-items:center;gap:12px;cursor:pointer;padding:4px 0;}
.logo-circle{
width:44px;height:44px;border-radius:50%;background:var(--surface-3);
display:flex;align-items:center;justify-content:center;overflow:hidden;
flex-shrink:0;border:2px dashed var(--border-hover);transition:all 0.25s;
}
.logo-circle:hover{border-color:var(--accent);}
.logo-circle img{width:100%;height:100%;object-fit:cover;}
.logo-circle svg{width:16px;height:16px;color:var(--text-3);}
.logo-text{font-size:12px;color:var(--text-3);line-height:1.4;}
.logo-text strong{color:var(--accent-2);font-weight:500;}
.toggles{display:flex;flex-wrap:wrap;gap:6px;}
.toggle-chip{
display:flex;align-items:center;gap:5px;padding:5px 10px;
background:var(--bg);border:1px solid var(--border);border-radius:100px;
font-size:11px;font-weight:500;color:var(--text-2);cursor:pointer;transition:all 0.2s;user-select:none;
}
.toggle-chip:hover{border-color:var(--border-hover);}
.toggle-chip.active{background:var(--accent-soft);border-color:rgba(232,115,74,0.25);color:var(--accent-2);}
.toggle-chip input{display:none;}
.toggle-dot{width:6px;height:6px;border-radius:50%;background:var(--text-3);transition:background 0.2s;}
.toggle-chip.active .toggle-dot{background:var(--accent);}
/* AVAILABILITY */
.avail-search{display:flex;gap:6px;margin-bottom:12px;}
.avail-search input{
flex:1;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);
padding:9px 12px;color:var(--text);font-size:13px;font-family:var(--mono);font-weight:500;outline:none;transition:all 0.2s;
}
.avail-search input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft);}
.avail-search button{
background:var(--accent);color:white;border:none;border-radius:var(--radius-sm);
padding:9px 14px;font-size:12px;font-weight:600;font-family:var(--font);cursor:pointer;transition:all 0.2s;white-space:nowrap;
}
.avail-search button:hover{filter:brightness(1.1);}
.avail-summary-bar{display:flex;gap:10px;margin-bottom:10px;}
.avail-pill{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600;font-family:var(--mono);color:var(--text-2);}
.avail-pill .dot{width:6px;height:6px;border-radius:50%;}
.avail-row{display:flex;align-items:center;padding:7px 0;gap:8px;}
.platform-icon{
width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;
flex-shrink:0;font-size:9px;font-weight:800;font-family:var(--mono);
}
.avail-row .pname{font-size:13px;font-weight:500;color:var(--text);flex:1;}
.status-badge{font-size:9px;font-weight:700;font-family:var(--mono);padding:3px 8px;border-radius:100px;text-transform:uppercase;letter-spacing:0.4px;flex-shrink:0;}
.status-available{background:var(--green-bg);color:var(--green);}
.status-taken{background:var(--red-bg);color:var(--red);}
.status-unknown{background:var(--yellow-bg);color:var(--yellow);}
.status-checking{background:var(--surface-3);color:var(--text-3);position:relative;overflow:hidden;}
.status-checking::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,var(--shimmer-color),transparent);animation:shimmer 1.5s infinite;}
@keyframes shimmer{to{left:100%;}}
.link-btn{
font-size:10px;color:var(--accent-2);text-decoration:none;padding:3px 8px;border-radius:100px;
background:var(--accent-soft);border:1px solid rgba(232,115,74,0.12);transition:all 0.2s;
flex-shrink:0;cursor:pointer;font-family:var(--font);font-weight:500;
}
.link-btn:hover{background:rgba(232,115,74,0.18);}
.mark-btns{display:flex;gap:2px;flex-shrink:0;}
.mark-btn{
width:22px;height:22px;display:flex;align-items:center;justify-content:center;
border-radius:5px;cursor:pointer;border:1px solid var(--border);background:var(--bg);
color:var(--text-3);font-size:11px;transition:all 0.15s;
}
.mark-btn:hover{border-color:var(--border-hover);background:var(--surface-3);}
.mark-btn.mark-available{border-color:var(--green);color:var(--green);background:var(--green-bg);}
.mark-btn.mark-taken{border-color:var(--red);color:var(--red);background:var(--red-bg);}
.avail-hint{font-size:11px;color:var(--text-3);line-height:1.5;margin-top:10px;padding-top:10px;border-top:1px solid var(--border);}
/* ===== RIGHT PANEL ===== */
.main-panel{
flex:1;height:100vh;overflow-y:auto;overflow-x:hidden;
scrollbar-width:thin;scrollbar-color:var(--surface-3) transparent;
}
.main-panel::-webkit-scrollbar{width:6px;}
.main-panel::-webkit-scrollbar-track{background:transparent;}
.main-panel::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:10px;}
.main-header{
display:flex;align-items:center;justify-content:space-between;
padding:20px 28px;border-bottom:1px solid var(--border);
position:sticky;top:0;background:var(--main-header-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:10;
}
.main-header h2{font-size:16px;font-weight:700;letter-spacing:-0.3px;display:flex;align-items:center;gap:8px;}
.main-header h2::before{content:'';width:3px;height:18px;background:var(--accent);border-radius:2px;}
.shuffle-btn{
background:var(--surface-2);border:1px solid var(--border);color:var(--text-2);
border-radius:100px;padding:6px 14px;font-size:11px;font-weight:500;
cursor:pointer;font-family:var(--font);display:flex;align-items:center;gap:5px;transition:all 0.2s;
}
.shuffle-btn:hover{border-color:var(--accent);color:var(--accent-2);background:var(--accent-soft);}
.previews{
display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
gap:20px;padding:24px 28px 60px;
}
.preview-card{
background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
overflow:hidden;transition:all 0.3s ease;animation:cardIn 0.4s ease both;
}
.preview-card:hover{transform:translateY(-3px);border-color:var(--border-hover);box-shadow:0 20px 60px var(--card-shadow);}
@keyframes cardIn{from{opacity:0;transform:translateY(16px) scale(0.98);}to{opacity:1;transform:translateY(0) scale(1);}}
.preview-card:nth-child(1){animation-delay:.05s;}.preview-card:nth-child(2){animation-delay:.1s;}
.preview-card:nth-child(3){animation-delay:.15s;}.preview-card:nth-child(4){animation-delay:.2s;}
.preview-card:nth-child(5){animation-delay:.25s;}.preview-card:nth-child(6){animation-delay:.3s;}
.preview-label{
padding:11px 16px;font-size:10px;font-weight:700;font-family:var(--mono);
text-transform:uppercase;letter-spacing:1.2px;display:flex;align-items:center;gap:7px;
border-bottom:1px solid var(--border);color:var(--text-2);
}
.preview-label svg{opacity:0.7;}
.hidden{display:none !important;}
/* ===== PLATFORM MOCKS ===== */
.ig-mock{background:#000;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}
.ig-header-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid #262626;}
.ig-header-bar .username{font-size:16px;font-weight:700;color:#f5f5f5;display:flex;align-items:center;gap:4px;}
.ig-verified{display:inline-flex;width:14px;height:14px;background:#3897f0;border-radius:50%;align-items:center;justify-content:center;}
.ig-verified::after{content:'\2713';font-size:9px;color:white;font-weight:700;}
.ig-profile-section{padding:16px;display:flex;align-items:center;gap:28px;}
.ig-avatar{width:86px;height:86px;border-radius:50%;background:#262626;flex-shrink:0;overflow:hidden;}
.ig-avatar.has-story{border:3px solid transparent;background-image:linear-gradient(#000,#000),linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);background-origin:border-box;background-clip:content-box,border-box;}
.ig-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.ig-stats{display:flex;gap:20px;flex:1;justify-content:center;}
.ig-stat{text-align:center;color:#f5f5f5;}
.ig-stat-num{font-size:16px;font-weight:700;display:block;}
.ig-stat-label{font-size:13px;color:#a8a8a8;}
.ig-bio-section{padding:0 16px 12px;color:#f5f5f5;}
.ig-displayname{font-size:14px;font-weight:600;margin-bottom:2px;}
.ig-category{font-size:13px;color:#a8a8a8;margin-bottom:4px;}
.ig-bio-text{font-size:14px;line-height:1.4;white-space:pre-wrap;}
.ig-bio-text a{color:#e0f1ff;text-decoration:none;}
.ig-action-btns{display:flex;gap:6px;padding:0 16px 12px;}
.ig-btn{flex:1;padding:8px;border-radius:8px;border:none;font-size:13px;font-weight:600;cursor:default;font-family:inherit;}
.ig-btn-primary{background:#0095f6;color:white;}
.ig-btn-secondary{background:#262626;color:#f5f5f5;}
.ig-btn-icon{width:34px;flex:none;background:#262626;color:#f5f5f5;font-size:11px;}
.ig-tabs{display:flex;border-top:1px solid #262626;}
.ig-tab{flex:1;padding:12px;text-align:center;font-size:11px;color:#a8a8a8;border-top:1px solid transparent;margin-top:-1px;}
.ig-tab.active{color:#f5f5f5;border-top-color:#f5f5f5;}
.ig-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;}
.ig-grid-item{aspect-ratio:1;background:#1a1a1a;}
.tt-mock{background:#000;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}
.tt-header-bar{display:flex;align-items:center;justify-content:center;padding:10px 16px;}
.tt-header-bar .username{font-size:16px;font-weight:700;color:#fff;}
.tt-profile-section{display:flex;flex-direction:column;align-items:center;padding:12px 16px 16px;}
.tt-avatar{width:96px;height:96px;border-radius:50%;background:#1a1a1a;overflow:hidden;margin-bottom:12px;}
.tt-avatar img{width:100%;height:100%;object-fit:cover;}
.tt-handle{font-size:15px;color:#a8a8a8;margin-bottom:16px;}
.tt-stats{display:flex;gap:24px;margin-bottom:16px;}
.tt-stat{text-align:center;}.tt-stat-num{font-size:17px;font-weight:700;color:#fff;display:block;}
.tt-stat-label{font-size:12px;color:#a8a8a8;}
.tt-action-btns{display:flex;gap:6px;margin-bottom:12px;}
.tt-btn-follow{background:#fe2c55;color:white;border:none;border-radius:4px;padding:10px 48px;font-size:15px;font-weight:600;cursor:default;font-family:inherit;}
.tt-btn-icon{background:#2f2f2f;color:white;border:none;border-radius:4px;padding:10px 14px;font-size:14px;cursor:default;}
.tt-bio{text-align:center;font-size:14px;color:#fff;padding:0 32px 16px;line-height:1.4;white-space:pre-wrap;}
.tt-tabs{display:flex;border-bottom:1px solid #2f2f2f;}
.tt-tab{flex:1;padding:12px;text-align:center;font-size:14px;color:#a8a8a8;border-bottom:2px solid transparent;margin-bottom:-1px;}
.tt-tab.active{color:#fff;border-bottom-color:#fff;}
.tt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding-top:2px;}
.tt-grid-item{aspect-ratio:9/16;background:#1a1a1a;position:relative;}
.tt-grid-views{position:absolute;bottom:6px;left:6px;font-size:12px;color:#fff;display:flex;align-items:center;gap:4px;}
.x-mock{background:#000;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}
.x-banner{height:120px;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);}
.x-profile-area{padding:0 16px;}
.x-avatar-wrapper{margin-top:-40px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:flex-end;}
.x-avatar{width:80px;height:80px;border-radius:50%;background:#333;border:4px solid #000;overflow:hidden;}
.x-avatar img{width:100%;height:100%;object-fit:cover;}
.x-btn-follow{background:#fff;color:#000;border:none;border-radius:20px;padding:8px 20px;font-size:14px;font-weight:700;cursor:default;font-family:inherit;}
.x-name-section{margin-bottom:12px;}
.x-displayname{font-size:20px;font-weight:800;color:#e7e9ea;display:flex;align-items:center;gap:4px;}
.x-verified{display:inline-flex;width:18px;height:18px;background:#1d9bf0;border-radius:50%;align-items:center;justify-content:center;}
.x-verified::after{content:'\2713';font-size:10px;color:white;font-weight:700;}
.x-handle{font-size:15px;color:#71767b;}
.x-bio{font-size:15px;color:#e7e9ea;line-height:1.4;margin-bottom:12px;white-space:pre-wrap;}
.x-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:14px;color:#71767b;margin-bottom:12px;}
.x-meta-item{display:flex;align-items:center;gap:4px;}
.x-follow-counts{display:flex;gap:16px;font-size:14px;color:#71767b;padding-bottom:16px;}
.x-follow-counts strong{color:#e7e9ea;}
.x-tabs{display:flex;border-bottom:1px solid #2f3336;}
.x-tab{flex:1;padding:14px 0;text-align:center;font-size:14px;font-weight:500;color:#71767b;border-bottom:2px solid transparent;margin-bottom:-1px;}
.x-tab.active{color:#e7e9ea;border-bottom-color:#1d9bf0;}
.x-empty-feed{padding:40px 16px;text-align:center;color:#71767b;font-size:14px;}
.yt-mock{background:#0f0f0f;font-family:'Roboto',-apple-system,sans-serif;}
.yt-banner{height:80px;background:linear-gradient(135deg,#1a1a2e,#2d1b69);}
.yt-channel-header{display:flex;align-items:center;gap:16px;padding:16px;}
.yt-avatar{width:72px;height:72px;border-radius:50%;background:#272727;overflow:hidden;flex-shrink:0;}
.yt-avatar img{width:100%;height:100%;object-fit:cover;}
.yt-channel-info{flex:1;}
.yt-channel-name{font-size:20px;font-weight:600;color:#f1f1f1;margin-bottom:4px;display:flex;align-items:center;gap:6px;}
.yt-verified{display:inline-flex;width:14px;height:14px;background:#aaa;border-radius:50%;align-items:center;justify-content:center;}
.yt-verified::after{content:'\2713';font-size:8px;color:#0f0f0f;font-weight:700;}
.yt-channel-meta{font-size:13px;color:#aaa;display:flex;gap:4px;flex-wrap:wrap;}
.yt-subscribe-row{padding:0 16px 16px;display:flex;gap:8px;}
.yt-btn-subscribe{background:#fff;color:#0f0f0f;border:none;border-radius:20px;padding:10px 20px;font-size:14px;font-weight:500;cursor:default;font-family:inherit;}
.yt-tabs{display:flex;border-bottom:1px solid #272727;padding:0 16px;overflow-x:auto;}
.yt-tab{padding:12px 16px;font-size:14px;font-weight:500;color:#aaa;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px;}
.yt-tab.active{color:#f1f1f1;border-bottom-color:#f1f1f1;}
.yt-empty{padding:40px 16px;text-align:center;color:#aaa;font-size:14px;}
.threads-mock{background:#101010;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}
.threads-header{display:flex;align-items:center;justify-content:center;padding:12px 16px;}
.threads-header .logo{font-size:22px;font-weight:800;color:#fff;}
.threads-profile{padding:16px;}
.threads-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px;}
.threads-info{flex:1;}
.threads-displayname{font-size:22px;font-weight:700;color:#f5f5f5;display:flex;align-items:center;gap:6px;}
.threads-handle{font-size:15px;color:#777;margin-top:2px;}
.threads-avatar{width:68px;height:68px;border-radius:50%;background:#262626;overflow:hidden;flex-shrink:0;}
.threads-avatar img{width:100%;height:100%;object-fit:cover;}
.threads-bio{font-size:15px;color:#f5f5f5;line-height:1.4;margin-bottom:12px;white-space:pre-wrap;}
.threads-followers{font-size:15px;color:#777;margin-bottom:16px;}
.threads-actions{display:flex;gap:8px;}
.threads-btn{flex:1;padding:8px;border-radius:10px;border:1px solid #333;background:transparent;color:#fff;font-size:14px;font-weight:600;cursor:default;font-family:inherit;text-align:center;}
.threads-btn-primary{background:#fff;color:#000;border-color:#fff;}
.threads-tabs{display:flex;border-bottom:1px solid #262626;margin-top:8px;}
.threads-tab{flex:1;padding:14px 0;text-align:center;font-size:14px;font-weight:600;color:#555;border-bottom:1px solid transparent;margin-bottom:-1px;}
.threads-tab.active{color:#f5f5f5;border-bottom-color:#f5f5f5;}
.threads-empty{padding:40px 16px;text-align:center;color:#555;font-size:14px;}
.li-mock{background:#1b1f23;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}
.li-banner{height:80px;background:linear-gradient(135deg,#0a66c2,#004182);}
.li-profile-area{padding:0 16px;}
.li-avatar-row{margin-top:-40px;margin-bottom:12px;}
.li-avatar{width:80px;height:80px;border-radius:50%;background:#38434f;border:4px solid #1b1f23;overflow:hidden;}
.li-avatar img{width:100%;height:100%;object-fit:cover;}
.li-name{font-size:20px;font-weight:700;color:rgba(255,255,255,0.9);margin-bottom:4px;}
.li-headline{font-size:14px;color:rgba(255,255,255,0.6);margin-bottom:8px;line-height:1.4;}
.li-location{font-size:13px;color:rgba(255,255,255,0.45);margin-bottom:8px;}
.li-connections{font-size:13px;color:#71b7fb;font-weight:600;margin-bottom:14px;}
.li-actions{display:flex;gap:8px;padding-bottom:16px;}
.li-btn{padding:6px 18px;border-radius:20px;font-size:14px;font-weight:600;cursor:default;font-family:inherit;border:none;}
.li-btn-primary{background:#71b7fb;color:#000;}
.li-btn-secondary{background:transparent;color:#71b7fb;border:1px solid #71b7fb;}
.li-section{border-top:1px solid #38434f;padding:16px;}
.li-section-title{font-size:16px;font-weight:700;color:rgba(255,255,255,0.9);margin-bottom:8px;}
.li-section-text{font-size:14px;color:rgba(255,255,255,0.6);line-height:1.5;white-space:pre-wrap;}
@media(max-width:860px){
.app{flex-direction:column;}
.sidebar{width:100%;min-width:100%;height:auto;max-height:50vh;border-right:none;border-bottom:1px solid var(--border);}
.main-panel{height:auto;flex:1;min-height:50vh;}
.previews{grid-template-columns:1fr;}
body{overflow:auto;}
}
</style>
</head>
<body>
<div class="app">
<!-- LEFT SIDEBAR -->
<aside class="sidebar">
<div class="sidebar-header">
<div class="sidebar-header-top">
<h1>Brand<span>Preview</span></h1>
<button class="theme-toggle" id="themeToggle" title="Toggle light/dark theme">
<svg id="themeIcon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</button>
</div>
<p>Preview your brand across social media</p>
</div>
<div class="sidebar-section">
<div class="sidebar-section-title">Brand Details</div>
<div class="fields">
<div class="field"><label>Brand Name</label><input type="text" id="brandName" placeholder="The Grand Invite"></div>
<div class="field"><label>Username</label><input type="text" id="username" placeholder="thegrandinvite"></div>
<div class="field full"><label>Bio</label><textarea id="bioText" rows="2" placeholder="Your brand description..."></textarea></div>
<div class="field"><label>Category</label><input type="text" id="category" placeholder="Invitations & Stationery"></div>
<div class="field"><label>Website</label><input type="text" id="website" placeholder="thegrandinvite.com"></div>
</div>
<div class="logo-row" onclick="document.getElementById('logoInput').click()" style="margin-top:12px;">
<div class="logo-circle" id="logoPreview"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4v16m8-8H4"/></svg></div>
<div class="logo-text"><strong>Upload logo</strong> (PNG, JPG)<br><span style="font-size:11px">Used as profile picture on all platforms</span></div>
<input type="file" id="logoInput" accept="image/*" style="display:none">
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-section-title">Platforms</div>
<div class="toggles">
<label class="toggle-chip active"><input type="checkbox" id="showVerified" checked><span class="toggle-dot"></span>Verified</label>
<label class="toggle-chip active"><input type="checkbox" id="showIG" checked><span class="toggle-dot"></span>Instagram</label>
<label class="toggle-chip active"><input type="checkbox" id="showTT" checked><span class="toggle-dot"></span>TikTok</label>
<label class="toggle-chip active"><input type="checkbox" id="showX" checked><span class="toggle-dot"></span>X</label>
<label class="toggle-chip active"><input type="checkbox" id="showYT" checked><span class="toggle-dot"></span>YouTube</label>
<label class="toggle-chip active"><input type="checkbox" id="showThreads" checked><span class="toggle-dot"></span>Threads</label>
<label class="toggle-chip active"><input type="checkbox" id="showLinkedIn" checked><span class="toggle-dot"></span>LinkedIn</label>
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-section-title">Username Availability</div>
<div class="avail-search">
<input type="text" id="checkName" placeholder="enter username...">
<button onclick="runAvailabilityCheck()">Check</button>
</div>
<div class="avail-summary-bar" id="availSummary"></div>
<div id="socialResults">
<div style="text-align:center;color:var(--text-3);font-size:12px;padding:8px 0">Enter a username and click "Check"</div>
</div>
</div>
</aside>
<!-- RIGHT PANEL -->
<main class="main-panel">
<div class="main-header">
<h2>Previews</h2>
<button class="shuffle-btn" onclick="shuffleNumbers()">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 4v6h6M23 20v-6h-6"/><path d="M20.49 9A9 9 0 005.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 013.51 15"/></svg>
Shuffle Stats
</button>
</div>
<div class="previews" id="previewsContainer"></div>
</main>
</div>
<script>
/* Theme toggle */
(function(){
const saved=localStorage.getItem('theme');
if(saved)document.documentElement.setAttribute('data-theme',saved);
})();
function toggleTheme(){
const html=document.documentElement;
const current=html.getAttribute('data-theme');
const next=current==='light'?'dark':'light';
if(next==='dark'){html.removeAttribute('data-theme');}else{html.setAttribute('data-theme',next);}
localStorage.setItem('theme',next);
updateThemeIcon(next);
}
function updateThemeIcon(theme){
const icon=document.getElementById('themeIcon');
if(!icon)return;
if(theme==='light'){
icon.innerHTML='<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/>';
}else{
icon.innerHTML='<circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>';
}
}
document.getElementById('themeToggle').addEventListener('click',toggleTheme);
updateThemeIcon(document.documentElement.getAttribute('data-theme')||'dark');
/* Toggle chips */
document.querySelectorAll('.toggle-chip').forEach(chip=>{chip.addEventListener('change',function(){this.classList.toggle('active',this.querySelector('input').checked);generatePreviews();});});
let logoDataUrl=null;
document.getElementById('logoInput').addEventListener('change',function(e){const file=e.target.files[0];if(!file)return;const reader=new FileReader();reader.onload=function(ev){logoDataUrl=ev.target.result;document.getElementById('logoPreview').innerHTML='<img src="'+logoDataUrl+'" alt="logo">';generatePreviews();};reader.readAsDataURL(file);});
document.getElementById('brandName').addEventListener('input',function(){const v=this.value.toLowerCase().replace(/[^a-z0-9]/g,'');document.getElementById('username').value=v;document.getElementById('checkName').value=v;generatePreviews();});
['username','bioText','category','website'].forEach(id=>{document.getElementById(id).addEventListener('input',generatePreviews);});
document.getElementById('showVerified').addEventListener('change',generatePreviews);
function rand(a,b){return Math.floor(Math.random()*(b-a+1))+a;}
function formatNum(n){if(n>=1e6)return(n/1e6).toFixed(1).replace('.0','')+'M';if(n>=1e4)return(n/1e3).toFixed(1).replace('.0','')+'K';if(n>=1e3)return(n/1e3).toFixed(1)+'K';return n+'';}
function escHtml(s){return s.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');}
function bioHtml(t,c){return escHtml(t).replace(/(https?:\/\/[^\s]+|[a-zA-Z0-9.-]+\.(com|net|org|io|co|tr)[^\s]*)/g,'<a style="color:'+c+';text-decoration:none">$1</a>');}
let stats={};
function generateStats(){stats={ig:{posts:rand(24,380),followers:rand(1200,85000),following:rand(120,900)},tt:{following:rand(30,400),followers:rand(800,120000),likes:rand(5000,500000)},x:{following:rand(80,600),followers:rand(500,45000)},yt:{subscribers:rand(200,65000),videos:rand(8,150)},threads:{followers:rand(400,35000)},li:{connections:rand(120,2500),followers:rand(300,18000)}};}
generateStats();
function shuffleNumbers(){generateStats();generatePreviews();}
function avatarHtml(sz){
if(logoDataUrl)return'<img src="'+logoDataUrl+'" alt="" style="width:100%;height:100%;object-fit:cover">';
const n=document.getElementById('brandName').value||'B';
const i=n.split(' ').map(w=>w[0]).join('').toUpperCase().slice(0,2);
return'<div style="width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8734a,#f5a572);font-size:'+sz+'px;font-weight:700;color:#fff">'+i+'</div>';
}
/* AVAILABILITY */
let socialStatuses={};
function markSocial(k,s){
socialStatuses[k]=s;
const b=document.getElementById('soc-'+k);
if(b){b.className='status-badge '+(s==='available'?'status-available':'status-taken');b.textContent=s==='available'?'available':'taken';}
const ab=document.getElementById('ma-'+k),tb=document.getElementById('mt-'+k);
if(ab)ab.classList.toggle('mark-available',s==='available');
if(tb)tb.classList.toggle('mark-taken',s==='taken');
updateSummary();
}
function updateSummary(){
let a=0,t=0,u=0;
Object.values(socialStatuses).forEach(s=>{if(s==='available')a++;else if(s==='taken')t++;});
document.querySelectorAll('[id^="soc-"]').forEach(el=>{if(el.id.startsWith('soc-')){const k=el.id.slice(4);if(!socialStatuses[k])u++;}});
document.getElementById('availSummary').innerHTML=
'<div class="avail-pill"><div class="dot" style="background:var(--green)"></div>'+a+'</div>'+
'<div class="avail-pill"><div class="dot" style="background:var(--red)"></div>'+t+'</div>'+
'<div class="avail-pill"><div class="dot" style="background:var(--text-3)"></div>'+u+'</div>';
}
async function checkGitHub(n){try{const r=await fetch('https://api.github.com/users/'+encodeURIComponent(n));return r.status===200?'taken':'available';}catch(e){return null;}}
async function runAvailabilityCheck(){
const name=document.getElementById('checkName').value.trim().toLowerCase().replace(/[^a-z0-9._-]/g,'');
if(!name)return;socialStatuses={};
const S=[
{n:'GitHub',k:'gh',c:'#8b949e',bg:'rgba(139,148,158,0.12)',u:'https://github.com/'+name,auto:1},
{n:'Instagram',k:'ig',c:'#e1306c',bg:'rgba(225,48,108,0.12)',u:'https://instagram.com/'+name},
{n:'TikTok',k:'tt',c:'#fe2c55',bg:'rgba(254,44,85,0.12)',u:'https://tiktok.com/@'+name},
{n:'X / Twitter',k:'x',c:'#1d9bf0',bg:'rgba(29,155,240,0.12)',u:'https://x.com/'+name},
{n:'YouTube',k:'yt',c:'#ff0000',bg:'rgba(255,0,0,0.12)',u:'https://youtube.com/@'+name},
{n:'Threads',k:'th',c:'#999',bg:'rgba(153,153,153,0.12)',u:'https://threads.net/@'+name},
{n:'LinkedIn',k:'li',c:'#0a66c2',bg:'rgba(10,102,194,0.12)',u:'https://linkedin.com/company/'+name},
{n:'Pinterest',k:'pi',c:'#e60023',bg:'rgba(230,0,35,0.12)',u:'https://pinterest.com/'+name},
];
let h='';
S.forEach(s=>{
h+='<div class="avail-row" id="row-'+s.k+'">'+
'<div class="platform-icon" style="background:'+s.bg+';color:'+s.c+'">'+s.k.toUpperCase()+'</div>'+
'<span class="pname">'+s.n+'</span>'+
'<span class="status-badge '+(s.auto?'status-checking':'status-unknown')+'" id="soc-'+s.k+'">'+(s.auto?'checking':'pending')+'</span>'+
'<a class="link-btn" href="'+s.u+'" target="_blank" rel="noopener" onclick="handleClick(\''+s.k+'\')">Open</a>'+
'<div class="mark-btns">'+
'<button class="mark-btn" id="ma-'+s.k+'" onclick="event.stopPropagation();markSocial(\''+s.k+'\',\'available\')" title="Available">✓</button>'+
'<button class="mark-btn" id="mt-'+s.k+'" onclick="event.stopPropagation();markSocial(\''+s.k+'\',\'taken\')" title="Taken">✗</button>'+
'</div></div>';
});
h+='<div class="avail-hint"><strong>GitHub</strong> is auto-checked. For other platforms, click "Open" and mark the result with ✓ or ✗.</div>';
document.getElementById('socialResults').innerHTML=h;updateSummary();
const gh=await checkGitHub(name);
if(gh){socialStatuses.gh=gh;const b=document.getElementById('soc-gh');if(b){b.className='status-badge '+(gh==='taken'?'status-taken':'status-available');b.textContent=gh;}
const ab=document.getElementById('ma-gh'),tb=document.getElementById('mt-gh');
if(ab)ab.classList.toggle('mark-available',gh==='available');if(tb)tb.classList.toggle('mark-taken',gh==='taken');}
updateSummary();
}
function handleClick(k){setTimeout(()=>{const r=document.getElementById('row-'+k);if(r&&!socialStatuses[k]){r.style.background='var(--surface-2)';const b=document.getElementById('soc-'+k);if(b){b.className='status-badge status-unknown';b.textContent='mark result';}}},400);}
/* PREVIEWS */
function generatePreviews(){
const B=document.getElementById('brandName').value||'Brand',U=document.getElementById('username').value||'brand',
bio=document.getElementById('bioText').value||'',cat=document.getElementById('category').value||'',
web=document.getElementById('website').value||'',V=document.getElementById('showVerified').checked;
const sIG=document.getElementById('showIG').checked,sTT=document.getElementById('showTT').checked,
sX=document.getElementById('showX').checked,sYT=document.getElementById('showYT').checked,
sTH=document.getElementById('showThreads').checked,sLI=document.getElementById('showLinkedIn').checked;
let h='';
if(sIG){h+='<div class="preview-card"><div class="preview-label" style="color:#e1306c"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg>Instagram</div><div class="ig-mock"><div class="ig-header-bar"><div class="username">'+escHtml(U)+' '+(V?'<span class="ig-verified"></span>':'')+'</div><span style="color:#f5f5f5;font-size:18px">☰</span></div><div class="ig-profile-section"><div class="ig-avatar'+(V?' has-story':'')+'">'+avatarHtml(28)+'</div><div class="ig-stats"><div class="ig-stat"><span class="ig-stat-num">'+formatNum(stats.ig.posts)+'</span><span class="ig-stat-label">posts</span></div><div class="ig-stat"><span class="ig-stat-num">'+formatNum(stats.ig.followers)+'</span><span class="ig-stat-label">followers</span></div><div class="ig-stat"><span class="ig-stat-num">'+formatNum(stats.ig.following)+'</span><span class="ig-stat-label">following</span></div></div></div><div class="ig-bio-section"><div class="ig-displayname">'+escHtml(B)+'</div>'+(cat?'<div class="ig-category">'+escHtml(cat)+'</div>':'')+'<div class="ig-bio-text">'+bioHtml(bio,'#e0f1ff')+'</div>'+(web?'<div class="ig-bio-text" style="margin-top:2px"><a style="color:#e0f1ff;text-decoration:none;font-weight:500">'+escHtml(web)+'</a></div>':'')+'</div><div class="ig-action-btns"><button class="ig-btn ig-btn-primary">Follow</button><button class="ig-btn ig-btn-secondary">Message</button><button class="ig-btn ig-btn-secondary ig-btn-icon">▾</button></div><div class="ig-tabs"><div class="ig-tab active">▦</div><div class="ig-tab">▶</div><div class="ig-tab">📎</div></div><div class="ig-grid"><div class="ig-grid-item"></div><div class="ig-grid-item"></div><div class="ig-grid-item"></div><div class="ig-grid-item"></div><div class="ig-grid-item"></div><div class="ig-grid-item"></div></div></div></div>';}
if(sTT){h+='<div class="preview-card"><div class="preview-label" style="color:#fe2c55"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1v-3.5a6.37 6.37 0 00-.79-.05A6.34 6.34 0 003.15 15.2a6.34 6.34 0 0010.86 4.44 6.3 6.3 0 001.86-4.48V8.73a8.26 8.26 0 004.84 1.56v-3.4a4.85 4.85 0 01-1.12-.2z"/></svg>TikTok</div><div class="tt-mock"><div class="tt-header-bar"><span class="username">'+escHtml(U)+'</span></div><div class="tt-profile-section"><div class="tt-avatar">'+avatarHtml(32)+'</div><div class="tt-handle">@'+escHtml(U)+'</div><div class="tt-stats"><div class="tt-stat"><span class="tt-stat-num">'+formatNum(stats.tt.following)+'</span><span class="tt-stat-label">Following</span></div><div class="tt-stat"><span class="tt-stat-num">'+formatNum(stats.tt.followers)+'</span><span class="tt-stat-label">Followers</span></div><div class="tt-stat"><span class="tt-stat-num">'+formatNum(stats.tt.likes)+'</span><span class="tt-stat-label">Likes</span></div></div><div class="tt-action-btns"><button class="tt-btn-follow">Follow</button><button class="tt-btn-icon">✉</button></div></div><div class="tt-bio">'+bioHtml(bio,'#fff')+'</div><div class="tt-tabs"><div class="tt-tab active">Videos</div><div class="tt-tab">Liked</div></div><div class="tt-grid">'+[1,2,3,4,5,6].map(()=>'<div class="tt-grid-item"><div class="tt-grid-views">▶ '+formatNum(rand(800,95000))+'</div></div>').join('')+'</div></div></div>';}
if(sX){const jm=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'][rand(0,11)];h+='<div class="preview-card"><div class="preview-label" style="color:#1d9bf0"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>X / Twitter</div><div class="x-mock"><div class="x-banner"></div><div class="x-profile-area"><div class="x-avatar-wrapper"><div class="x-avatar">'+avatarHtml(28)+'</div><button class="x-btn-follow">Follow</button></div><div class="x-name-section"><div class="x-displayname">'+escHtml(B)+' '+(V?'<span class="x-verified"></span>':'')+'</div><div class="x-handle">@'+escHtml(U)+'</div></div><div class="x-bio">'+bioHtml(bio,'#1d9bf0')+'</div><div class="x-meta">'+(cat?'<span class="x-meta-item">💼 '+escHtml(cat)+'</span>':'')+(web?'<span class="x-meta-item" style="color:#1d9bf0">🔗 '+escHtml(web)+'</span>':'')+'<span class="x-meta-item">📅 Joined '+jm+' '+rand(2020,2025)+'</span></div><div class="x-follow-counts"><span><strong>'+formatNum(stats.x.following)+'</strong> Following</span><span><strong>'+formatNum(stats.x.followers)+'</strong> Followers</span></div></div><div class="x-tabs"><div class="x-tab active">Posts</div><div class="x-tab">Replies</div><div class="x-tab">Media</div><div class="x-tab">Likes</div></div><div class="x-empty-feed">No posts yet</div></div></div>';}
if(sYT){h+='<div class="preview-card"><div class="preview-label" style="color:#ff0000"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>YouTube</div><div class="yt-mock"><div class="yt-banner"></div><div class="yt-channel-header"><div class="yt-avatar">'+avatarHtml(24)+'</div><div class="yt-channel-info"><div class="yt-channel-name">'+escHtml(B)+' '+(V?'<span class="yt-verified"></span>':'')+'</div><div class="yt-channel-meta"><span>@'+escHtml(U)+'</span><span>·</span><span>'+formatNum(stats.yt.subscribers)+' subscribers</span><span>·</span><span>'+stats.yt.videos+' videos</span></div><div class="yt-channel-meta" style="margin-top:4px">'+(bio?escHtml(bio.split('\n')[0]):'')+'</div></div></div><div class="yt-subscribe-row"><button class="yt-btn-subscribe">Subscribe</button></div><div class="yt-tabs"><div class="yt-tab active">Home</div><div class="yt-tab">Videos</div><div class="yt-tab">Shorts</div><div class="yt-tab">Community</div></div><div class="yt-empty">This channel hasn\'t uploaded any videos yet</div></div></div>';}
if(sTH){h+='<div class="preview-card"><div class="preview-label" style="color:#ccc"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.773.793c-1.017-3.662-3.394-5.49-7.065-5.432-2.387.04-4.254.79-5.548 2.228-1.337 1.487-2.04 3.734-2.09 6.685v.127c.06 5.699 2.777 8.557 8.077 8.496 2.084-.024 3.775-.628 5.026-1.793 1.095-1.02 1.782-2.394 1.996-3.966H17.35c-.638 0-1.179-.076-1.607-.227-.416-.146-.747-.361-.984-.638a2.173 2.173 0 01-.484-.89 3.823 3.823 0 01-.12-1.03v-.078c.023-1.236.476-2.193 1.344-2.84.847-.632 1.997-.936 3.416-.903 1.166.027 2.136.27 2.882.72.76.46 1.325 1.1 1.678 1.9.336.76.497 1.636.478 2.603-.02 1.095-.257 2.075-.702 2.91a4.838 4.838 0 01-1.878 1.958c-1.378.84-3.187 1.396-5.373 1.655-.438.052-.888.08-1.34.086h-.29z"/></svg>Threads</div><div class="threads-mock"><div class="threads-header"><span class="logo">@'+escHtml(U)+'</span></div><div class="threads-profile"><div class="threads-top"><div class="threads-info"><div class="threads-displayname">'+escHtml(B)+' '+(V?'<span class="ig-verified"></span>':'')+'</div><div class="threads-handle">'+escHtml(U)+'</div></div><div class="threads-avatar">'+avatarHtml(24)+'</div></div><div class="threads-bio">'+bioHtml(bio,'#ccc')+'</div><div class="threads-followers">'+formatNum(stats.threads.followers)+' followers</div><div class="threads-actions"><button class="threads-btn threads-btn-primary">Follow</button><button class="threads-btn">Mention</button></div></div><div class="threads-tabs"><div class="threads-tab active">Threads</div><div class="threads-tab">Replies</div><div class="threads-tab">Reposts</div></div><div class="threads-empty">No threads yet</div></div></div>';}
if(sLI){h+='<div class="preview-card"><div class="preview-label" style="color:#0a66c2"><svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>LinkedIn</div><div class="li-mock"><div class="li-banner"></div><div class="li-profile-area"><div class="li-avatar-row"><div class="li-avatar">'+avatarHtml(28)+'</div></div><div class="li-name">'+escHtml(B)+'</div><div class="li-headline">'+escHtml(bio.split('\n')[0]||cat)+'</div><div class="li-location">Worldwide</div><div class="li-connections">'+formatNum(stats.li.connections)+'+ connections · '+formatNum(stats.li.followers)+' followers</div><div class="li-actions"><button class="li-btn li-btn-primary">Follow</button><button class="li-btn li-btn-secondary">Message</button></div></div><div class="li-section"><div class="li-section-title">About</div><div class="li-section-text">'+bioHtml(bio,'#71b7fb')+'</div></div></div></div>';}
document.getElementById('previewsContainer').innerHTML=h;
}
generatePreviews();
</script>
</body>
</html>