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
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
"use client"

import type React from "react"

import { useState } from "react"
import { Button } from "@/components/ui/button"
import {
  Download,
  Monitor,
  Smartphone,
  Apple,
  Copy,
  CheckCircle,
  Key,
  Check,
  ExternalLink,
  Menu,
  X,
  Palette,
  MessageCircle,
} from "lucide-react"
import { cn } from "@/lib/utils"

const platforms = [
  { id: "windows", name: "Windows", icon: Monitor },
  { id: "ios", name: "iOS", icon: Smartphone },
  { id: "android", name: "Android", icon: Smartphone },
  { id: "macos", name: "macOS", icon: Apple },
]

const scripts = [
  {
    id: "bloxfruits",
    name: "Blox Fruits",
    code: 'loadstring(game:HttpGet("https://raw.githubusercontent.com/Overgustx2/Main/refs/heads/main/BloxFruits_25.html"))()',
    image: "/images/blox-fruits.png",
    available: true,
  },
  {
    id: "garden",
    name: "Grow a Garden",
    code: "",
    image: "/images/grow-garden.png",
    available: false,
  },
  {
    id: "brainrot",
    name: "Steal a Brainrot",
    code: "",
    image: "/images/brainrot.png",
    available: false,
  },
]

const navigationItems = [
  { id: "download", label: "Download" },
  { id: "script", label: "Script" },
  { id: "getkey", label: "GetKey" },
  { id: "premiums", label: "Premiums" },
]

const themes = [
  { id: "red", name: "Red", primary: "#ff0000", secondary: "#dc2626", accent: "#ff6666" },
  { id: "blue", name: "Blue", primary: "#0066ff", secondary: "#0052cc", accent: "#3399ff" },
  { id: "purple", name: "Purple", primary: "#8b5cf6", secondary: "#7c3aed", accent: "#a78bfa" },
  { id: "green", name: "Green", primary: "#10b981", secondary: "#059669", accent: "#34d399" },
  { id: "orange", name: "Orange", primary: "#f97316", secondary: "#ea580c", accent: "#fb923c" },
  { id: "pink", name: "Pink", primary: "#ec4899", secondary: "#db2777", accent: "#f472b6" },
  { id: "cyan", name: "Cyan", primary: "#06b6d4", secondary: "#0891b2", accent: "#22d3ee" },
  { id: "yellow", name: "Yellow", primary: "#eab308", secondary: "#ca8a04", accent: "#facc15" },
]

export default function VortexExecutor() {
  const [currentPage, setCurrentPage] = useState("download")
  const [selectedPlatform, setSelectedPlatform] = useState<string | null>(null)
  const [copiedScript, setCopiedScript] = useState<string | null>(null)
  const [menuOpen, setMenuOpen] = useState(false)
  const [themeMenuOpen, setThemeMenuOpen] = useState(false)
  const [currentTheme, setCurrentTheme] = useState(themes[0])

  const copyToClipboard = async (code: string, scriptId: string) => {
    try {
      await navigator.clipboard.writeText(code)
      setCopiedScript(scriptId)
      setTimeout(() => setCopiedScript(null), 2000)
    } catch (err) {
      console.error("Failed to copy:", err)
    }
  }

  const handleNavigation = (pageId: string) => {
    setCurrentPage(pageId)
    setMenuOpen(false)
    setSelectedPlatform(null)
  }

  const handleThemeChange = (theme: (typeof themes)[0]) => {
    setCurrentTheme(theme)
    setThemeMenuOpen(false)

    // Update CSS custom properties
    document.documentElement.style.setProperty("--theme-primary", theme.primary)
    document.documentElement.style.setProperty("--theme-secondary", theme.secondary)
    document.documentElement.style.setProperty("--theme-accent", theme.accent)
  }

  const openDiscord = () => {
    window.open("https://discord.gg/3gGZCs7tPt", "_blank", "noopener,noreferrer")
  }

  const renderPage = () => {
    switch (currentPage) {
      case "download":
        return (
          <div className="page-container">
            <div className="page-header">
              <h1 className="page-title">Download Vortex</h1>
            </div>

            <div className="download-center">
              <div className="platform-dropdown">
                <button
                  className="dropdown-toggle"
                  onClick={() => setSelectedPlatform(selectedPlatform ? null : "dropdown")}
                >
                  <div className="dropdown-content">
                    <span className="dropdown-text">
                      {selectedPlatform && selectedPlatform !== "dropdown"
                        ? platforms.find((p) => p.id === selectedPlatform)?.name
                        : "Select Platform"}
                    </span>
                    <div className={`dropdown-arrow ${selectedPlatform === "dropdown" ? "dropdown-arrow-up" : ""}`}>

                    </div>
                  </div>
                </button>

                {selectedPlatform === "dropdown" && (
                  <div className="dropdown-menu">
                    {platforms.map((platform) => {
                      const IconComponent = platform.icon
                      return (
                        <button
                          key={platform.id}
                          className="dropdown-item"
                          onClick={() => setSelectedPlatform(platform.id)}
                        >
                          <IconComponent className="dropdown-icon" />
                          <span>{platform.name}</span>
                        </button>
                      )
                    })}
                  </div>
                )}
              </div>

              <Button className="main-download-button" disabled={!selectedPlatform || selectedPlatform === "dropdown"}>
                <Download className="w-5 h-5 mr-2" />
                Download
              </Button>
            </div>
          </div>
        )

      case "script":
        return (
          <div className="page-container">
            <div className="page-header">
              <h1 className="page-title">Script Library</h1>
            </div>

            <div className="scripts-container">
              {scripts.map((script) => (
                <div key={script.id} className={cn("script-item", !script.available && "script-disabled")}>
                  <div className="script-image-small">
                    <img src={script.image || "/placeholder.svg"} alt={script.name} />
                    {!script.available && (
                      <div className="coming-soon-badge">
                        <span>In Development</span>
                      </div>
                    )}
                  </div>

                  <div className="script-info">
                    <h3 className="script-title">{script.name}</h3>

                    {script.available ? (
                      <div className="script-status-available">
                        <div className="keyless-indicator">
                          <Key className="w-4 h-4" />
                          <span>Keyless</span>
                        </div>
                      </div>
                    ) : (
                      <div className="script-status-unavailable">
                        <span>In Development</span>
                      </div>
                    )}
                  </div>

                  <div className="script-actions-inline">
                    {script.available ? (
                      <Button
                        onClick={() => copyToClipboard(script.code, script.id)}
                        className="copy-btn-small"
                        size="sm"
                      >
                        {copiedScript === script.id ? (
                          <>
                            <CheckCircle className="w-4 h-4 mr-1" />
                            Copied!
                          </>
                        ) : (
                          <>
                            <Copy className="w-4 h-4 mr-1" />
                            Copy
                          </>
                        )}
                      </Button>
                    ) : (
                      <Button className="development-btn-small" size="sm" disabled>
                        In Development
                      </Button>
                    )}
                  </div>
                </div>
              ))}
            </div>
          </div>
        )

      case "getkey":
        return (
          <div className="page-container">
            <div className="page-header">
              <h1 className="page-title">How to Get a Key</h1>
            </div>

            <div className="steps-container">
              <div className="step-card">
                <div className="step-number">1</div>
                <div className="step-content">
                  <h3 className="step-title">Join Our Discord</h3>
                  <p className="step-description">Connect with our community and get the latest updates.</p>
                </div>
              </div>

              <div className="step-card">
                <div className="step-number">2</div>
                <div className="step-content">
                  <h3 className="step-title">Complete Verification</h3>
                  <p className="step-description">Follow the verification process in our Discord server.</p>
                </div>
              </div>

              <div className="step-card">
                <div className="step-number">3</div>
                <div className="step-content">
                  <h3 className="step-title">Get Your Key</h3>
                  <p className="step-description">Receive your unique access key and start using Vortex.</p>
                </div>
              </div>
            </div>

            <div className="key-info">
              <div className="info-card">
                <Key className="w-8 h-8 text-yellow-400" />
                <h3>Key System Status</h3>
                <p>Our key system is currently being developed. Most scripts are keyless for now!</p>
              </div>
            </div>
          </div>
        )

      case "premiums":
        return (
          <div className="page-container">
            <div className="page-header">
              <h1 className="page-title">Vortex Premium Features</h1>
            </div>

            <div className="premium-grid">
              <div className="premium-card">
                <div className="premium-header">
                  <h3 className="premium-tier">Free</h3>
                  <div className="premium-price">$0</div>
                </div>

                <div className="premium-features">
                  <div className="feature-item">
                    <Check className="w-5 h-5 theme-primary-text" />
                    <span>Basic Scripts</span>
                  </div>
                  <div className="feature-item">
                    <Check className="w-5 h-5 theme-primary-text" />
                    <span>Community Support</span>
                  </div>
                  <div className="feature-item">
                    <Check className="w-5 h-5 theme-primary-text" />
                    <span>Regular Updates</span>
                  </div>
                </div>

                <Button variant="outline" className="premium-button bg-transparent">
                  Current Plan
                </Button>
              </div>

              <div className="premium-card premium-featured">
                <div className="premium-header">
                  <h3 className="premium-tier">Premium</h3>
                  <div className="premium-price">$9.99</div>
                </div>

                <div className="premium-features">
                  <div className="feature-item">
                    <Check className="w-5 h-5 theme-primary-text" />
                    <span>Early Access Scripts</span>
                  </div>
                  <div className="feature-item">
                    <Check className="w-5 h-5 theme-primary-text" />
                    <span>No Key System</span>
                  </div>
                  <div className="feature-item">
                    <Check className="w-5 h-5 theme-primary-text" />
                    <span>Priority Support</span>
                  </div>
                  <div className="feature-item">
                    <Check className="w-5 h-5 theme-primary-text" />
                    <span>Exclusive Features</span>
                  </div>
                  <div className="feature-item">
                    <Check className="w-5 h-5 theme-primary-text" />
                    <span>Beta Access</span>
                  </div>
                </div>

                <Button className="premium-button premium-upgrade">Upgrade Now</Button>
              </div>
            </div>
          </div>
        )

      default:
        return null
    }
  }

  return (
    <div className="app">
      {/* Background Effects */}
      <div className="background-effects">
        <div className="red-particles"></div>
        <div className="gradient-orb orb-1"></div>
        <div className="gradient-orb orb-2"></div>
      </div>

      {/* Top Navigation */}
      <nav className="navbar">
        <div className="nav-container">
          <div className="nav-logo">
            <span className="logo-text">VORTEX</span>
          </div>

          <div className="nav-buttons">
            {/* Discord Button */}
            <button className="discord-button" onClick={openDiscord} title="Join Discord">
              <MessageCircle className="w-5 h-5" />
            </button>

            {/* Theme Button */}
            <button className="theme-button" onClick={() => setThemeMenuOpen(!themeMenuOpen)} title="Change Theme">
              <Palette className="w-5 h-5" />
            </button>

            {/* Menu Button */}
            <button className="menu-button" onClick={() => setMenuOpen(!menuOpen)} title="Open Menu">
              {menuOpen ? <X className="w-6 h-6" /> : <Menu className="w-6 h-6" />}
            </button>
          </div>
        </div>
      </nav>

      {/* Theme Menu */}
      {themeMenuOpen && (
        <div className="theme-overlay">
          <div className="theme-content">
            <div className="theme-header">
              <h2 className="theme-title">Choose Theme</h2>
              <button className="theme-close" onClick={() => setThemeMenuOpen(false)}>
                <X className="w-6 h-6" />
              </button>
            </div>

            <div className="theme-grid">
              {themes.map((theme) => (
                <button
                  key={theme.id}
                  className={cn("theme-option", currentTheme.id === theme.id && "theme-option-active")}
                  onClick={() => handleThemeChange(theme)}
                  style={
                    {
                      "--preview-primary": theme.primary,
                      "--preview-secondary": theme.secondary,
                      "--preview-accent": theme.accent,
                    } as React.CSSProperties
                  }
                >
                  <div className="theme-preview">
                    <div className="theme-preview-primary"></div>
                    <div className="theme-preview-secondary"></div>
                    <div className="theme-preview-accent"></div>
                  </div>
                  <span className="theme-name">{theme.name}</span>
                </button>
              ))}
            </div>
          </div>
        </div>
      )}

      {/* Navigation Menu */}
      {menuOpen && (
        <div className="menu-overlay">
          <div className="menu-content">
            <div className="menu-header">
              <h2 className="menu-title">Navigation</h2>
              <button className="menu-close" onClick={() => setMenuOpen(false)}>
                <X className="w-8 h-8" />
              </button>
            </div>

            <div className="menu-items">
              {navigationItems.map((item) => (
                <button
                  key={item.id}
                  onClick={() => handleNavigation(item.id)}
                  className={cn("menu-item", currentPage === item.id && "menu-item-active")}
                >
                  {item.label}
                </button>
              ))}
            </div>
          </div>
        </div>
      )}

      {/* Main Content */}
      <main className="main-content">{renderPage()}</main>

      {/* Footer */}
      <footer className="footer">
        <div className="footer-content">
          <div className="footer-left">
            <p>Copyright © Vortex 2025</p>
          </div>
          <div className="footer-right">
            <p>Join our Discord:</p>
            <a href="https://discord.gg/3gGZCs7tPt" className="discord-link" target="_blank" rel="noopener noreferrer">
              <ExternalLink className="w-4 h-4 mr-1" />
              https://discord.gg/3gGZCs7tPt
            </a>
          </div>
        </div>
      </footer>
    </div>
  )
}