:root { 
    --accent: #FFD700; 
    --bg: #050505; 
    --surface: #111; 
    --text: #fff; 
    --text-dim: #888; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { 
    background-color: var(--bg); 
    color: var(--text); 
    overflow: hidden; 
}

/* LOADER */
#loader {
    position: fixed; inset: 0; background: #000; z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: 0.8s ease;
}
.loader-text {
    font-size: 3.5rem; font-weight: 900; color: var(--accent);
    letter-spacing: 12px; margin-bottom: 20px; animation: pulse 1.5s infinite;
}
.loader-ring { width: 60px; height: 60px; border: 4px solid #222; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.05); } }

/* NAVBAR */
.header {
    position: fixed; top: 0; width: 100%; height: 80px; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(15px); z-index: 1000;
    border-bottom: 1px solid rgba(255,215,0,0.1);
}
.logo { font-weight: 900; font-size: 1.8rem; color: var(--accent); cursor: pointer; text-decoration: none; }
.logo span { color: #fff; }

.nav-links { display: flex; gap: 10px; list-style: none; }
.nav-links a { 
    text-decoration: none; color: #fff; font-size: 0.85rem; font-weight: 700; 
    cursor: pointer; transition: 0.3s; padding: 10px 15px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: rgba(255,215,0,0.1); }

.nav-toggle { display: none; font-size: 1.8rem; color: var(--accent); cursor: pointer; }

#currency {
    background: #000; color: var(--accent); border: 2px solid var(--accent); 
    padding: 6px 12px; border-radius: 8px; font-weight: 800; cursor: pointer;
}

/* SIDEBAR */
#sidebar {
    position: fixed; top: 0; left: -100%; width: 280px; height: 100%;
    background: var(--surface); z-index: 2000; padding: 40px 30px;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-right: 2px solid var(--accent);
}
#sidebar.open { left: 0; }
.sidebar-close { text-align: right; font-size: 2.5rem; cursor: pointer; color: var(--accent); margin-bottom: 20px; }
.side-link { display: block; color: #fff; text-decoration: none; margin-bottom: 25px; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.side-link:hover { color: var(--accent); }

/* SECTIONS */
.section { height: 100vh; overflow-y: auto; padding: 120px 8% 60px; display: none; }
.section.active { display: block; animation: fadeInUp 0.6s ease; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 50px; font-weight: 900; }
.section-title span { color: var(--accent); }

/* HOME HERO */
#home { padding: 0; }
.hero { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-title { font-size: clamp(2.5rem, 10vw, 6rem); font-weight: 900; line-height: 0.85; }
.hero-title span { color: var(--accent); }

.status-box { 
    background: var(--surface); border: 1px solid #222; padding: 35px; border-radius: 30px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.6); display: flex; flex-direction: column; align-items: center; margin-top: 40px;
}
.server-ip { color: var(--accent); font-weight: 900; font-size: 1.6rem; letter-spacing: 2px; }
#mc-stat { color: #2ecc71; margin: 10px 0; font-weight: 700; }

/* PLAYER LIST */
.player-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; max-width: 600px; }
.player-card { background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 50px; display: flex; align-items: center; gap: 8px; border: 1px solid #333; }
.player-head { width: 24px; height: 24px; border-radius: 4px; }
.player-name { font-size: 0.8rem; font-weight: 600; }

/* GRID & CARDS */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.card { background: var(--surface); border-radius: 20px; border: 1px solid #222; overflow: hidden; transition: 0.3s; text-align: center; padding-bottom: 25px; }
.card:hover { border-color: var(--accent); transform: translateY(-10px); }
.card img { width: 100%; height: 200px; object-fit: cover; }

.staff-head { width: 95px; height: 95px; border-radius: 20px; margin: 25px auto 10px; border: 3px solid var(--accent); }
.staff-rank { color: var(--accent); font-weight: 900; letter-spacing: 2px; font-size: 0.8rem; }
.rank-red { color: #ff4747; }

.content-box { max-width: 800px; margin: 0 auto; background: var(--surface); padding: 40px; border-radius: 25px; border: 1px solid #222; }

/* BUTTONS */
.btn { 
    background: var(--accent); color: #000; border: none; padding: 14px 28px; 
    border-radius: 12px; font-weight: 800; cursor: pointer; text-transform: uppercase; 
    transition: 0.2s; width: 85%; margin: 10px auto; display: inline-block; text-decoration: none; 
}
.btn:active { transform: scale(0.95); }
.btn-copy { width: auto; padding: 12px 40px; margin-top: 15px; }

/* SOCIAL ICONS */
.social-card { padding: 40px; }
.discord-icon { font-size: 4rem; color: #5865F2; margin-bottom: 20px; }
.youtube-icon { font-size: 4rem; color: #FF0000; margin-bottom: 20px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 950px) { 
    .nav-links { display: none; } 
    .nav-toggle { display: block; } 
}