:root {
    --bg-color: #0f1012;
    --card-bg: #1e1f22;
    --accent: #ffffff;
    --text-main: #ffffff;
    --text-dim: #b5bac1;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 1s forwards; }
.fade-in-delayed { opacity: 0; animation: fadeInUp 1s forwards; animation-delay: 0.4s; }

/* --- NAVIGATION --- */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 25px;
    background: rgba(15, 16, 18, 0.8);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 10000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--accent); }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- HERO & CANVAS --- */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1e1f22 0%, #0f1012 100%);
}

#featherCanvas {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

.hero * { position: relative; z-index: 1; }

.server-name { font-size: clamp(40px, 8vw, 90px); letter-spacing: 15px; font-weight: 700; margin-bottom: 10px; }
.subtitle { color: var(--text-dim); font-size: 14px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 5px; }
.status-text { color: #00ff00; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; }

.btn { padding: 16px 40px; text-decoration: none; font-weight: 600; border-radius: 50px; margin: 10px; transition: var(--transition); display: inline-block; }
.primary { background: var(--accent); color: #000; }
.primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15); }
.secondary { border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }

/* --- TABS --- */
.container { padding: 80px 5%; max-width: 1100px; margin: auto; }
.tab-wrapper { display: flex; flex-wrap: wrap; justify-content: center; }
.tab-wrapper label {
    padding: 15px 35px; cursor: pointer; font-weight: 700; color: var(--text-dim);
    transition: var(--transition); border-bottom: 2px solid transparent; text-transform: uppercase; font-size: 13px;
}
.tab-wrapper input[type="radio"] { display: none; }
#tab1:checked ~ label[for="tab1"], #tab2:checked ~ label[for="tab2"], 
#tab3:checked ~ label[for="tab3"], #tab4:checked ~ label[for="tab4"] { color: #fff; border-bottom-color: #fff; }

.tab-content { width: 100%; padding-top: 60px; display: none; animation: fadeInUp 0.6s ease-out; }
#tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4 { display: block; }

/* --- GRIDS & CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.card { background: var(--card-bg); padding: 45px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.03); text-align: center; transition: var(--transition); cursor: pointer; }
.card:hover { transform: translateY(-10px); background: #2a2b2e; border-color: rgba(255,255,255,0.1); }

/* --- COMMANDS --- */
.commands-list { max-width: 800px; margin: auto; }
.category-title { font-size: 18px; margin-bottom: 15px; border-left: 3px solid #fff; padding-left: 15px; }
.cmd-item { background: var(--card-bg); margin-bottom: 12px; padding: 18px 30px; border-radius: 15px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255, 255, 255, 0.04); transition: var(--transition); cursor: pointer; }
.cmd-item:hover { border-color: var(--accent); transform: translateX(10px); }
.cmd-item code { color: #fff; font-weight: 700; background: rgba(255, 255, 255, 0.1); padding: 4px 10px; border-radius: 5px; }

/* --- TEAM --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.team-card { background: var(--card-bg); padding: 40px 20px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.03); text-align: center; transition: var(--transition); }
.team-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 3px solid rgba(255, 255, 255, 0.05); }

/* --- REWARDS SPECIFICS --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 50px; }
.stat-card { background: var(--card-bg); padding: 30px; border-radius: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.stat-value { font-size: 32px; font-weight: 700; display: block; margin-top: 10px; }
.stat-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

.invite-box { background: #2a2b2e; padding: 20px; border-radius: 15px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; border: 1px solid rgba(255,255,255,0.05); }
.invite-url { font-family: monospace; color: var(--accent); font-size: 14px; }

.btn-buy { width: 100%; margin-top: 20px; padding: 15px; border: none; border-radius: 12px; background: var(--accent); color: #000; font-weight: 700; cursor: pointer; transition: var(--transition); text-transform: uppercase; font-size: 12px; }
.btn-buy:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,255,255,0.1); }
.btn-buy:disabled { background: #333; color: #666; cursor: not-allowed; }

/* --- RULES --- */
.rules-accordion { max-width: 700px; margin: auto; }
details { background: var(--card-bg); margin-bottom: 10px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition); }
summary { padding: 20px; cursor: pointer; font-weight: 700; list-style: none; outline: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '→'; font-size: 18px; color: var(--text-dim); transition: transform 0.3s ease; }
details[open] summary::after { transform: rotate(90deg); color: var(--accent); }
details p { padding: 0 20px 20px 20px; color: var(--text-dim); font-size: 14px; }

/* --- MUSIC PLAYER --- */
.music-player { position: fixed; bottom: 20px; right: 20px; background: var(--card-bg); padding: 10px 20px; border-radius: 50px; display: flex; align-items: center; gap: 15px; border: 1px solid rgba(255,255,255,0.1); z-index: 10000; }
.btn-music { background: none; border: none; cursor: pointer; font-size: 20px; }
#music-status { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }

.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(12px); justify-content: center; align-items: center; }
.modal-content { background: #1e1f22; padding: 50px; border-radius: 30px; width: 90%; max-width: 550px; position: relative; border: 1px solid rgba(255, 255, 255, 0.08); }
.close { position: absolute; right: 25px; top: 20px; font-size: 32px; cursor: pointer; color: var(--text-dim); }

footer { text-align: center; padding: 80px 20px; color: #535455; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }

@media (max-width: 768px) {
    .server-name { font-size: 45px; letter-spacing: 8px; }
    .cmd-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .nav-bar { gap: 20px; }
}