:root {
    --bg-dark: #09090b;
    --card-bg: #131316;
    --neon-purple: #8b5cf6;
    --neon-blue: #3b82f6;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    --brand-primary: var(--neon-purple);
    --brand-secondary: var(--neon-blue);
    --brand-gamer: var(--neon-green);
    
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(20, 20, 25, 0.7);
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-dark) 80%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.btn-primary {
    background: var(--neon-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    background: #7c3aed;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

@keyframes laserLoad {
    0% { width: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { width: 100%; opacity: 1; }
}

@keyframes shineFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes auroraFlow {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}

@keyframes electricShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUpText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #a5b4fc, #e879f9, #ffffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: auroraFlow 8s ease infinite;
    filter: drop-shadow(0 0 10px rgba(165, 180, 252, 0.3));
    transition: letter-spacing 0.5s ease;
}
.brand-logo:hover { letter-spacing: 6px; filter: drop-shadow(0 0 15px rgba(165, 180, 252, 0.6)); }

.nav-links {
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 50px;
    border: var(--glass-border);
}

.nav-item {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-item:hover { color: white; background: rgba(255, 255, 255, 0.05); }

.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-item.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    animation: laserLoad 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.nav-item.active i { color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); }

.compass-header {
    padding: 4rem 1rem 2rem 1rem; 
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-hero { max-width: 800px; margin: 0 auto; width: 100%; }

.mode-switch-container {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 4px;
    display: inline-flex;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
    margin: 0 auto 30px auto;
    min-width: 280px;
}

.switch-bg {
    position: absolute; top: 4px; bottom: 4px; border-radius: 12px; z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mode-social .switch-bg {
    left: 4px; width: 42%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6) 0%, rgba(139, 92, 246, 0.4) 100%);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.mode-community .switch-bg {
    left: 46%; width: calc(54% - 4px);
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.8) 0%, rgba(5, 150, 105, 0.6) 100%);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.mode-btn {
    z-index: 2; background: none; border: none; cursor: pointer;
    font-weight: 600; color: #666; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 0;
}
.mode-btn:first-child { width: 42%; }
.mode-btn:nth-child(2) { width: 58%; }

.mode-btn.active { color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.mode-community .mode-btn.active { color: white; text-shadow: 0 0 15px rgba(16, 185, 129, 0.8); }

#hero-title {
    font-size: 3.5rem; font-weight: 800; letter-spacing: -1.5px; margin: 10px 0 0 0; color: white; line-height: 1.1;
    animation: fadeInUpText 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.gradient-text {
    background: linear-gradient(to right, #818cf8 20%, #ffffff 50%, #22d3ee 80%, #818cf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: electricShine 3s linear infinite;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

#hero-subtitle { font-size: 1.1rem; color: #a1a1aa; margin-top: 15px; margin-bottom: 30px; }

.search-bar-wrapper { position: relative; max-width: 500px; margin: 30px auto; }
.search-bar-wrapper input {
    width: 100%; background: rgba(255,255,255,0.03); border: 1px solid #333;
    padding: 14px 20px 14px 50px; border-radius: 12px; color: white; font-size: 1rem;
    transition: 0.3s; box-sizing: border-box; outline: none;
}
.search-bar-wrapper input:focus {
    background: rgba(0,0,0,0.5); border-color: var(--neon-purple);
    box-shadow: 0 0 0 1px var(--neon-purple), 0 0 20px rgba(139, 92, 246, 0.2);
}
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #666; }

.filter-tags { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.filter-tag {
    background: transparent; color: #888; border: 1px solid #333;
    padding: 6px 14px; border-radius: 6px; font-size: 0.8rem;
    font-weight: 600; cursor: pointer; transition: 0.2s;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-tag:hover { border-color: #666; color: white; }
.filter-tag.active {
    border-color: var(--neon-purple); color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.compass-main { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.section-title { font-size: 1.5rem; margin-bottom: 20px; border-left: 4px solid var(--neon-purple); padding-left: 15px; }

.card {
    background: var(--card-bg); border: 1px solid #27272a; border-radius: 16px;
    overflow: hidden; transition: all 0.3s ease; position: relative; cursor: pointer;
}
.card:hover { transform: translateY(-5px) scale(1.01); border-color: #555; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.card-social .banner { height: 180px; background-size: cover; position: relative; }
.card-social .banner::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, var(--card-bg), transparent);
}
.card-social .content { padding: 15px; position: relative; z-index: 2; }
.card-social .title { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; }
.card-social .meta { color: #888; font-size: 0.8rem; display: flex; align-items: center; gap: 5px; }

.card-gamer .banner { height: 100px; background-color: #202025; position: relative; }
.card-gamer .content { padding: 20px; padding-top: 35px; position: relative; }
.card-gamer .icon {
    width: 56px; height: 56px; border-radius: 14px;
    position: absolute; top: -28px; left: 20px;
    border: 4px solid var(--card-bg);
    background-color: #333; background-size: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.card-gamer .title { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; }
.card-gamer .meta { font-size: 0.8rem; color: #888; margin-bottom: 10px; }

.card-tag {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #ccc; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; margin-right: 5px; display: inline-block;
}

@media (max-width: 768px) {
    .nav-text { display: none; }
    .nav-links { padding: 5px 15px; }
    #hero-title { font-size: 2rem; }
    .mode-switch-container { transform: scale(0.9); }
}