<?php
session_start();

if (!isset($_SESSION['logged_in']) || !$_SESSION['logged_in']) {
    header('Location: index.php');
    exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PANEL SURYA VIP | SURYA HOST</title>
    <link rel="canonical" href="https://x-tools.my.id">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Ramabhadra&family=Tilt+Neon&display=swap" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.16/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">

    <style>
        body {
            margin: 0;
            padding: 0;
            height: 100vh;
            font-family: 'Tilt Neon', sans-serif;
            background: url('https://files.catbox.moe/mbew77.jpg') no-repeat center center fixed;
            background-size: cover;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        /* Layer gelap transparan */
        body::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(6px);
            z-index: 0;
        }

        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(10, 10, 10, 0.85);
            backdrop-filter: blur(12px);
            text-align: center;
            padding: 15px 0;
            z-index: 10;
            box-shadow: 0 0 25px rgba(128, 0, 255, 0.4);
        }

        .navbar-brand {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(90deg, #b26eff, #6b21a8, #9b59b6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 1px;
        }

        .container {
            position: relative;
            z-index: 2;
            background: rgba(20, 20, 20, 0.9);
            border: 2px solid rgba(138, 43, 226, 0.5);
            border-radius: 20px;
            padding: 40px 30px;
            max-width: 420px;
            width: 90%;
            text-align: center;
            box-shadow: 0 0 35px rgba(128, 0, 255, 0.4);
            animation: fadeIn 1.2s ease-in-out;
        }

        .card-title {
            font-size: 26px;
            font-weight: bold;
            background: linear-gradient(to right, #c084fc, #9333ea, #7e22ce);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 25px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .form-control {
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 10px;
            color: #fff;
            padding: 12px;
            width: 100%;
            margin-bottom: 20px;
            font-size: 16px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: #a855f7;
            box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
            background: rgba(255, 255, 255, 0.18);
        }

        .btn-custom {
            background: linear-gradient(90deg, #7e22ce, #a855f7, #9333ea);
            border: none;
            color: #fff;
            font-weight: 700;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 12px 20px;
            width: 100%;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
        }

        .btn-custom:hover {
            transform: scale(1.05);
            background: linear-gradient(90deg, #a855f7, #7e22ce);
            box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
    </style>
</head>
<body>
    <audio autoplay loop>
        <source src="audio/1.mp3" type="audio/mp3">
    </audio>

    <nav class="navbar">
        <a class="navbar-brand" href="#">HENDRA HOST</a>
    </nav>

    <div class="container">
        <h2 class="card-title">Buat Panel Murni</h2>
        <form method="post" action="panel.php">
            <input type="text" name="WEB" id="WEB" class="form-control" placeholder="Nama Panel" required>
            <button type="submit" class="btn-custom">
                <i class="fas fa-magic"></i> Buat Panel
            </button>
        </form>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            Swal.fire({
                title: 'Selamat Datang',
                text: 'Buat Panel Seperlunya Saja',
                icon: 'info',
                confirmButtonColor: '#a855f7',
                confirmButtonText: 'Lanjutkan'
            });
        });
    </script>
</body>
</html>