* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
    background: #000;
}

.galaxy-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #000428, #004e92);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite alternate;
}

.stars2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 200px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 100px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 50px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 200px 100px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 250px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 300px 200px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: twinkle 7s infinite alternate;
    opacity: 0.7;
}

.stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 250px 50px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 350px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 450px 100px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 550px 200px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 650px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 750px 150px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 500px 500px;
    animation: twinkle 10s infinite alternate;
    opacity: 0.5;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.nebula {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(103, 58, 183, 0.3) 0%, rgba(33, 150, 243, 0.2) 30%, rgba(0, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    animation: rotate 120s linear infinite;
    border-radius: 50%;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.comet {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8);
    animation: comet 20s linear infinite;
}

@keyframes comet {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-1500px, 800px);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.message-box {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-box h1 {
    font-size: 8rem;
    margin-bottom: 10px;
    color: #ff4757;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.7);
    letter-spacing: 5px;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(20px, 9999px, 25px, 0); }
    5% { clip: rect(15px, 9999px, 30px, 0); }
    10% { clip: rect(40px, 9999px, 45px, 0); }
    15% { clip: rect(70px, 9999px, 80px, 0); }
    20% { clip: rect(90px, 9999px, 100px, 0); }
    100% { clip: rect(0, 9999px, 0, 0); }
}

@keyframes glitch-2 {
    0% { clip: rect(60px, 9999px, 70px, 0); }
    5% { clip: rect(80px, 9999px, 85px, 0); }
    10% { clip: rect(100px, 9999px, 110px, 0); }
    15% { clip: rect(130px, 9999px, 140px, 0); }
    20% { clip: rect(160px, 9999px, 170px, 0); }
    100% { clip: rect(0, 9999px, 0, 0); }
}

.message-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffa502;
}

.message-box p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #ddd;
    line-height: 1.6;
}

.access-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
    font-size: 1.3rem;
    color: #ff4757;
}

.access-denied i {
    font-size: 1.8rem;
    margin-right: 10px;
}

.hint {
    font-size: 1rem;
    color: #aaa;
    font-style: italic;
    margin-top: 30px;
}

.panel {
    width: 90%;
    max-width: 1000px;
    background: rgba(10, 15, 30, 0.85);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.2);
    animation: slideIn 0.8s ease;
    display: none;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(64, 224, 208, 0.3);
}

.panel-header h1 {
    font-size: 2.8rem;
    color: #40e0d0;
    margin-bottom: 10px;
}

.panel-header h1 i {
    margin-right: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(20, 25, 45, 0.7);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(64, 224, 208, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(64, 224, 208, 0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #40e0d0, #20b2aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 2rem;
}

.stat-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ddd;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #40e0d0;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.9rem;
    color: #aaa;
}

.webhook-status {
    background: rgba(20, 25, 45, 0.7);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(64, 224, 208, 0.1);
}

.webhook-status h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ddd;
    display: flex;
    align-items: center;
}

.webhook-status h3 i {
    margin-right: 10px;
    color: #40e0d0;
}

.status-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-indicator {
    display: flex;
    align-items: center;
}

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
    background: #777;
}

.status-dot.active {
    background: #2ed573;
    box-shadow: 0 0 10px #2ed573;
}

.status-dot.inactive {
    background: #ff4757;
    box-shadow: 0 0 10px #ff4757;
}

.status-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.status-info p {
    margin-bottom: 5px;
    color: #ddd;
}

.small-text {
    font-size: 0.9rem;
    color: #aaa;
}

.current-visitor {
    background: rgba(20, 25, 45, 0.7);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(64, 224, 208, 0.1);
}

.current-visitor h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ddd;
    display: flex;
    align-items: center;
}

.current-visitor h3 i {
    margin-right: 10px;
    color: #40e0d0;
}

.visitor-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #ddd;
}

.visitor-info strong {
    color: #aaa;
    margin-right: 10px;
}

.authorized-badge {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid rgba(46, 213, 115, 0.5);
}

.panel-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(64, 224, 208, 0.3);
    color: #aaa;
    font-size: 0.95rem;
}

.panel-footer i {
    margin-right: 8px;
    color: #40e0d0;
}

@media (max-width: 768px) {
    .message-box h1 {
        font-size: 5rem;
    }
    
    .message-box h2 {
        font-size: 1.8rem;
    }
    
    .panel-header h1 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .status-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-info {
        margin-top: 15px;
    }
}