:root {
    --primary-color: #9B59B6;
    --bg-color: #121212;
    --text-color: #ffffff;
    --card-bg: #1e1e1e;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-logo {
    width: 150px;
    height: 150px;
    animation: pulse 2s infinite;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    color: var(--primary-color);
    background-color: rgba(155, 89, 182, 0.1);
}

.join-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-color);
    background-color: #8e44ad;
    color: white;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2c1a35 0%, #121212 70%);
    padding-top: 60px;
}

.hero-logo {
    width: 300px;
    height: 300px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--primary-color));
    border-radius: 50%;
    object-fit: cover;
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 1rem;
    max-width: 600px;
}

.container {
    max-width: 1200px;
    margin: 100px auto 2rem;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(155, 89, 182, 0.3);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.legit { color: #2ecc71; }
.not-legit { color: #e74c3c; }

.votes-table-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(155, 89, 182, 0.3);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 600px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.vote-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.badge-legit { background-color: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.badge-not-legit { background-color: rgba(231, 76, 60, 0.2); color: #e74c3c; }

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: center;
    }
    
    .nav-btn, .join-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .container {
        padding: 0 1rem;
        margin-top: 180px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .votes-table-container {
        padding: 1rem;
    }
}
