* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
}

.logo a {
    color: #00ff88;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00ff88;
}

.nav-links a.active {
    color: #00ff88;
}

.user-greeting {
    color: #00ff88;
    font-weight: bold;
}

.btn-login, .btn-logout {
    background: #00ff88;
    color: #000 !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.btn-login:hover, .btn-logout:hover {
    background: #00cc6a;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    text-align: center;
    padding: 100px 20px 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00ff88, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #aaa;
}

.server-ip {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    border: 2px solid #00ff88;
}

#server-ip {
    font-family: monospace;
    font-size: 1.2rem;
    color: #00ff88;
}

.btn-copy {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #00cc6a;
    transform: scale(1.05);
}

.player-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.offline-dot {
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-cta {
    display: inline-block;
    background: #00ff88;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: #00cc6a;
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #0f0f0f;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00ff88;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.feature-card p {
    color: #aaa;
}

/* Community Section */
.community {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
}

.community h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.community-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aaa;
}

.btn-discord {
    display: inline-block;
    background: #5865F2;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-discord:hover {
    background: #4752C4;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #050505;
    padding: 2rem 0;
    text-align: center;
    color: #666;
}

/* Login/Register Page */
.auth-container {
    max-width: 900px;
    margin: 120px auto 50px;
    padding: 2rem;
}

.auth-container h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00ff88;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.auth-card h2 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-card input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}

.auth-card input:focus {
    outline: none;
    border-color: #00ff88;
}

.btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #00ff88;
    color: #000;
}

.btn-primary:hover {
    background: #00cc6a;
}

.btn-secondary {
    background: #00b4d8;
    color: #fff;
}

.btn-secondary:hover {
    background: #0096b7;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert.error {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    color: #ff4444;
}

.alert.success {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    color: #00ff88;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .server-ip {
        flex-direction: column;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }
}