/* ============================================
   RUSTAXIA - Professional Rust Server Website
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #cd412b;
    --primary-hover: #e04d35;
    --secondary-color: #ff6b35;
    --accent-color: #ffd700;
    --background-dark: #0a0a0a;
    --background-card: #141414;
    --background-lighter: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #2a2a2a;
    --success-color: #00ff88;
    --discord-color: #5865F2;
    --steam-color: #1b2838;
    --gradient-primary: linear-gradient(135deg, #cd412b 0%, #ff6b35 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --glow-primary: 0 0 30px rgba(205, 65, 43, 0.5);
    --glow-accent: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.3);
}

/* Premium Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--primary-color));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Always show scrollbar to prevent layout shift */
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.3));
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 20px rgba(212, 165, 116, 0.6));
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-rust {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(205, 65, 43, 0.5);
}

.logo-axia {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn-discord,
.btn-steam {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-discord {
    background: var(--discord-color);
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

.btn-steam {
    background: var(--steam-color);
    color: white;
    border: 1px solid #2a475e;
}

.btn-steam:hover {
    background: #2a475e;
    transform: translateY(-2px);
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background-lighter);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    border-color: var(--primary-color);
    background: rgba(205, 65, 43, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-dropdown-menu.show + .user-profile-btn .dropdown-arrow,
.user-profile-btn:hover .dropdown-arrow {
    color: var(--primary-color);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(205, 65, 43, 0.1);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.dropdown-item.logout {
    color: #ff4444;
}

.dropdown-item.logout:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff6666;
}

.dropdown-item.admin-link {
    color: var(--primary-color);
}

.dropdown-item.admin-link:hover {
    background: rgba(212, 165, 116, 0.1);
    color: var(--primary-light);
}

.dropdown-item.admin-link i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Old styles - kept for compatibility */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background-lighter);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.btn-logout {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 6px;
    color: #ff4444;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(205, 65, 43, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 10;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.hero-logo-image {
    max-width: 450px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(212, 165, 116, 0.4));
    transition: all 0.5s ease;
}

.hero-logo-image:hover {
    filter: drop-shadow(0 0 50px rgba(212, 165, 116, 0.6));
    transform: scale(1.02);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glitch Effect (fallback if no logo) */
.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(205, 65, 43, 0.5);
    position: relative;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        text-shadow: 
            0 0 30px rgba(205, 65, 43, 0.5),
            0 0 60px rgba(205, 65, 43, 0.3);
    }
    92% {
        text-shadow: 
            -2px 0 #ff0000,
            2px 0 #00ffff,
            0 0 30px rgba(205, 65, 43, 0.5);
        transform: translateX(-2px);
    }
    94% {
        text-shadow: 
            2px 0 #ff0000,
            -2px 0 #00ffff,
            0 0 30px rgba(205, 65, 43, 0.5);
        transform: translateX(2px);
    }
    96% {
        text-shadow: 
            0 0 30px rgba(205, 65, 43, 0.5),
            0 0 60px rgba(205, 65, 43, 0.3);
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary {
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    padding: 16px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(205, 65, 43, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 0 20px rgba(205, 65, 43, 0.5);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-character {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.hero-character img {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(205, 65, 43, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(205, 65, 43, 0.5);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ============================================
   Servers Section
   ============================================ */
.servers {
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.5) 50%, transparent 100%);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    gap: 25px;
    justify-content: center;
}

.server-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.95), rgba(20, 20, 25, 0.98));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(205, 65, 43, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.server-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(205, 65, 43, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.server-card:hover {
    transform: translateY(-6px);
    border-color: rgba(205, 65, 43, 0.4);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(205, 65, 43, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.server-card:hover::before,
.server-card:hover::after {
    opacity: 1;
}

.server-card.featured {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.08);
}

.server-card.featured::before {
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 1;
}

.server-card.featured::after {
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.06) 0%, transparent 60%);
    opacity: 1;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    margin-left: auto;
    flex-shrink: 0;
}

.server-status.online {
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.server-status.offline {
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }
}

.server-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    margin-top: 8px;
}

.server-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(205, 65, 43, 0.2), rgba(205, 65, 43, 0.1));
    border: 1px solid rgba(205, 65, 43, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
}

.server-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-type {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail:first-child {
    padding-top: 0;
}

.detail i {
    color: var(--primary-color);
    width: 20px;
    font-size: 14px;
    text-align: center;
}

/* Queue & Joining Badges */
.queue-info {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px !important;
}

.queue-badge, .joining-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.queue-badge {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.joining-badge {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.2);
    animation: joining-pulse 1.5s infinite;
}

@keyframes joining-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.detail strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
}

.detail span {
    font-size: 14px;
    letter-spacing: 0.3px;
}

.server-description {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(20, 20, 25, 0.4));
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(205, 65, 43, 0.1);
    position: relative;
    overflow: hidden;
}

.server-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), rgba(205, 65, 43, 0.3));
}

.server-description .desc-line {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 2px 0;
    padding-left: 8px;
    position: relative;
}

.server-description .desc-line:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Highlight lines with emojis */
.server-description .desc-line:first-letter {
    font-size: 14px;
}

.server-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature-tag {
    padding: 4px 10px;
    background: rgba(205, 65, 43, 0.08);
    border: 1px solid rgba(205, 65, 43, 0.2);
    border-radius: 14px;
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Server Edit Button (for staff) */
.server-edit-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.server-card:hover .server-edit-btn {
    opacity: 1;
}

.server-edit-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.server-card {
    position: relative;
}

/* Server Edit Modal (Homepage) */
.server-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.server-edit-modal.show {
    opacity: 1;
    visibility: visible;
}

.server-edit-content {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
}

.server-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.server-edit-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-edit-header h2 i {
    color: var(--primary-color);
}

.server-edit-header .close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.server-edit-header .close-btn:hover {
    border-color: #ff4444;
    color: #ff4444;
}

#homepage-server-form {
    padding: 25px;
}

#homepage-server-form .form-group {
    margin-bottom: 20px;
}

#homepage-server-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

#homepage-server-form input,
#homepage-server-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--background-lighter);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

#homepage-server-form input:focus,
#homepage-server-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#homepage-server-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#homepage-server-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

#homepage-server-form .btn-cancel {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#homepage-server-form .btn-cancel:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

#homepage-server-form .btn-save {
    padding: 12px 25px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#homepage-server-form .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.server-actions {
    display: flex;
    gap: 10px;
}

.btn-copy,
.btn-connect {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.btn-copy:hover {
    border-color: var(--primary-color);
    background: rgba(205, 65, 43, 0.1);
    color: var(--text-primary);
}

.btn-connect {
    background: linear-gradient(135deg, var(--primary-color), #a03325);
    border: none;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(205, 65, 43, 0.3);
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 65, 43, 0.4);
    background: linear-gradient(135deg, #e04a35, var(--primary-color));
}

/* Server Loading State */
.server-loading,
.no-servers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.server-loading i,
.no-servers i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.no-servers .fa-exclamation-triangle {
    color: #ff6b6b;
}

.server-loading p,
.no-servers p {
    font-size: 18px;
}

/* Server offline status */
.server-status.offline {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.server-status.offline .pulse {
    background: #ff4444;
    animation: none;
}

/* ============================================
   Features Section
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--background-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(205, 65, 43, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    box-shadow: var(--glow-primary);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

/* ============================================
   Store Section
   ============================================ */
.store {
    background: linear-gradient(180deg, transparent 0%, rgba(205, 65, 43, 0.05) 50%, transparent 100%);
}

.store-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.store-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(205, 65, 43, 0.4);
    animation: iconPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.store-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 50px rgba(205, 65, 43, 0.6);
}

.store-icon i {
    font-size: 42px;
    color: white;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(205, 65, 43, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(205, 65, 43, 0.7);
    }
}

.store-image {
    display: flex;
    justify-content: center;
}

.store-image img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(205, 65, 43, 0.3));
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #cd412b 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.store-text > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.store-perks {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.store-perks li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.store-perks li:nth-child(1) { animation-delay: 0.1s; }
.store-perks li:nth-child(2) { animation-delay: 0.2s; }
.store-perks li:nth-child(3) { animation-delay: 0.3s; }
.store-perks li:nth-child(4) { animation-delay: 0.4s; }
.store-perks li:nth-child(5) { animation-delay: 0.5s; }

.store-perks li:hover {
    transform: translateX(10px);
    transition: transform 0.3s ease;
}

.store-perks i {
    color: var(--success-color);
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-store {
    padding: 18px 50px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-store::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-store:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-primary), 0 20px 40px rgba(205, 65, 43, 0.3);
}

/* ============================================
   Leaderboard Section
   ============================================ */
.leaderboard-cta {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--background-card);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.leaderboard-cta:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(205, 65, 43, 0.15);
}

.leaderboard-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin: 0 auto 30px;
    box-shadow: var(--glow-accent);
    color: #1a1a1a;
}

.leaderboard-cta h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.leaderboard-cta p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-leaderboard {
    padding: 18px 50px;
    background: var(--gradient-gold);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-leaderboard:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-accent);
}

/* ============================================
   Discord Section
   ============================================ */
.discord-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, transparent 100%);
}

.discord-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.discord-icon {
    width: 100px;
    height: 100px;
    background: var(--discord-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.5);
    animation: pulse-discord 2s infinite;
}

@keyframes pulse-discord {
    0%, 100% {
        box-shadow: 0 0 40px rgba(88, 101, 242, 0.5);
    }
    50% {
        box-shadow: 0 0 60px rgba(88, 101, 242, 0.8);
    }
}

.discord-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.discord-text p {
    color: var(--text-secondary);
    font-size: 18px;
}

.discord-member-highlight {
    color: var(--discord-color);
    font-weight: 700;
}

.discord-stats-mini {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.discord-online {
    color: #43b581;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.discord-online i {
    font-size: 8px;
    animation: online-pulse 2s infinite;
}

@keyframes online-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-discord-large {
    padding: 18px 50px;
    background: var(--discord-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-discord-large:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.4);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--background-card);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--background-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    border-color: transparent;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   Toast Notification (Perfectly centered at bottom)
   ============================================ */
/* Base toast - hidden by default */
#toast {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: var(--background-card);
    color: var(--text-primary);
    padding: 15px 30px;
    border-radius: 10px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--success-color);
    z-index: 100000 !important;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* When visible */
#toast.toast-visible {
    display: flex !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

#toast i {
    color: var(--success-color);
    font-size: 20px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .store-content {
        gap: 30px;
    }

    .store-image img {
        max-width: 250px;
    }

    .store-perks {
        display: inline-block;
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile Navigation Items - Hidden on Desktop */
.mobile-nav-item {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background-dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid var(--border-color);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo-image {
        height: 40px;
    }

    .logo-text {
        display: none;
    }
    
    /* Show mobile items */
    .mobile-nav-item {
        display: block;
    }
    
    .mobile-divider {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 5px 0;
        padding: 0 !important;
    }
    
    .mobile-discord {
        color: #7289da !important;
    }
    
    .mobile-steam {
        color: var(--rust-color) !important;
    }
    
    .mobile-menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-menu-item i {
        width: 20px;
        text-align: center;
    }
    
    .mobile-logout {
        color: #ff6b6b !important;
    }
    
    .mobile-discord-link {
        color: #7289da !important;
    }
    
    /* Mobile user header */
    .mobile-user-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 5px;
    }
    
    .mobile-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid var(--rust-color);
    }
    
    .mobile-user-name {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 16px;
    }
    
    .mobile-user-section {
        padding: 0 !important;
    }

    .hero-logo-image {
        max-width: 280px;
    }

    .glitch {
        font-size: 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-tabs {
        flex-direction: column;
        align-items: center;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 60px 1fr 100px;
        padding: 15px 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .discord-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .server-actions {
        flex-direction: column;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr;
    }

    .leaderboard-header .score,
    .leaderboard-row .score {
        display: none;
    }
}

/* ============================================
   Toast Container (for notification toasts)
   ============================================ */
#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Dynamic notification toasts (different from #toast) */
#toast-container .toast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toast-pop-in 0.3s ease;
    white-space: nowrap;
    pointer-events: auto;
}

@keyframes toast-pop-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.toast span {
    flex: 1;
    text-align: center;
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid #ff4444;
}

.toast button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.toast button:hover {
    color: var(--text-primary);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-fade-out {
    animation: toast-fade 0.3s ease forwards;
}

@keyframes toast-fade {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Ticket Notification Badge */
.ticket-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
