<?php
$domain = $_SERVER['HTTP_HOST'] ?? 'your site';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome - <?= htmlspecialchars($domain) ?></title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a2332 100%);
            color: #c9d1d9;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .container {
            text-align: center;
            padding: 60px 40px;
            max-width: 600px;
        }
        .logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 30px;
            background: linear-gradient(135deg, #58a6ff, #238636);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            box-shadow: 0 8px 32px rgba(88, 166, 255, 0.3);
            animation: pulse 2s ease-in-out infinite;
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        h1 {
            font-size: 2.2em;
            background: linear-gradient(135deg, #58a6ff, #79c0ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 12px;
        }
        .subtitle {
            font-size: 1.1em;
            color: #8b949e;
            margin-bottom: 40px;
        }
        .info {
            background: rgba(88, 166, 255, 0.08);
            border: 1px solid rgba(88, 166, 255, 0.2);
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 30px;
        }
        .info-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .info-row:last-child { border-bottom: none; }
        .info-label { color: #8b949e; }
        .info-value { color: #58a6ff; font-weight: 600; }
        .features {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .features span {
            background: rgba(35, 134, 54, 0.15);
            border: 1px solid rgba(35, 134, 54, 0.3);
            color: #3fb950;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.9em;
        }
        .footer {
            margin-top: 40px;
            color: #484f58;
            font-size: 0.85em;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo">&#9775;</div>
        <h1>Welcome to LeePanel</h1>
        <p class="subtitle">Your powerful SSH server management companion</p>
        <div class="info">
            <div class="info-row">
                <span class="info-label">Domain</span>
                <span class="info-value"><?= htmlspecialchars($domain) ?></span>
            </div>
            <div class="info-row">
                <span class="info-label">PHP Version</span>
                <span class="info-value"><?= PHP_VERSION ?></span>
            </div>
            <div class="info-row">
                <span class="info-label">Server Software</span>
                <span class="info-value"><?= $_SERVER['SERVER_SOFTWARE'] ?? 'Nginx' ?></span>
            </div>
        </div>
        <div class="features">
            <span>&#10003; Secure Connections</span>
            <span>&#10003; File Management</span>
            <span>&#10003; Server Control</span>
        </div>
        <p class="footer">Powered by LeePanel</p>
    </div>
</body>
</html>
