:root {
    --main-bg: #0a0a0a;
    --header-bg: rgba(26, 15, 26, 0.9);
    --accent-color: #b61bc4;
    --accent-light: #d13fe0;
    --text-primary: #ffffff;
    --text-secondary: #bbbbbb;
    --stats-bg: rgba(30, 30, 30, 0.8);
    --card-bg: rgba(40, 40, 40, 0.8);
    --button-hover: #72176c;
    --button-glow: 0 0 10px rgba(234, 0, 255, 0.5);
    --neon-glow: 0 0 5px #fff, 0 0 10px rgba(195, 41, 209, 0.7);
    --online-color: #4caf50;
    --offline-color: #f44336;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--main-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* FAQ SECTION */
.footer-faq {
    animation: fadeIn 1s ease-out;
}
.faq-item {
    transition: all 0.3s ease;
    cursor: default;
}
.faq-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 5px 15px rgba(182, 27, 196, 0.2);
}

/* SOCIAL AUTH */
.social-auth {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
    font-size: 14px;
}
.social-btn.tiktok { background: #000; }
.social-btn.discord { background: #5865f2; }
.social-btn:hover { transform: translateY(-3px); opacity: 0.9; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* DIVIDER */
.divider {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
    position: relative;
    font-size: 14px;
    font-weight: 500;
}
.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* ERROR POPUP (TOAST) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #1a1a1a;
    color: white;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
}
.toast.active { transform: translateX(0); }
.toast.error { border-left-color: #ff4d4d; }
.toast.success { border-left-color: #4caf50; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FOOTER NAV HOVER */
.footer-nav a { position: relative; }
.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: 0.3s;
}
.footer-nav a:hover::after { width: 100%; }

/* GLOBAL IMPROVEMENTS */
::selection { background: var(--accent-color); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

/* НАВБАР */
header {
    padding: 15px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(15, 15, 15, 0.1) !important; backdrop-filter: blur(20px);
    transition: all 0.4s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 30px; }

.logo { flex: 1; display: flex; align-items: center; }
.logo a { 
    color: var(--accent-color); font-size: 20px; font-weight: 400; text-decoration: none; 
    text-shadow: var(--button-glow); font-family: 'Russo One', sans-serif; text-transform: uppercase;
    letter-spacing: 1.5px;
}

nav { flex: 3; display: flex; justify-content: center; }
.nav-list { display: flex; list-style: none; gap: 35px; align-items: center; }
.nav-list li a { 
    color: var(--text-primary); text-decoration: none; font-size: 13px; font-weight: 500; 
    text-transform: uppercase; transition: 0.3s; position: relative; padding: 5px 0;
    letter-spacing: 0.5px;
}
.nav-list li a:hover { color: var(--accent-color); text-shadow: var(--button-glow); }
.nav-list li.active a { color: var(--accent-color); text-shadow: var(--button-glow); font-weight: 600; }
.nav-list li.active a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background-color: var(--accent-color); box-shadow: var(--button-glow);
}

.auth-buttons { flex: 1; display: flex; justify-content: flex-end; gap: 20px; align-items: center; }

.auth-btn {
    padding: 12px 28px; 
    background: linear-gradient(135deg, var(--accent-color), #8a2be2);
    color: white; border-radius: 50px; font-weight: 700; cursor: pointer; 
    text-transform: uppercase; font-size: 13px; text-decoration: none; 
    box-shadow: 0 0 15px rgba(182, 27, 196, 0.4); 
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1px;
}

.auth-btn:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 8px 25px rgba(182, 27, 196, 0.7);
    background: linear-gradient(135deg, #d13fe0, var(--accent-color));
}

.login-btn {
    background: rgba(182, 27, 196, 0.1);
    border: 1px solid rgba(182, 27, 196, 0.5);
    backdrop-filter: blur(5px);
}

.register-btn {
    background: linear-gradient(135deg, var(--accent-color), #6a0dad);
}

/* USER NAV LINK */
.user-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: rgba(182, 27, 196, 0.15);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(182, 27, 196, 0.4);
    margin-right: 15px;
    transition: 0.3s;
}

.user-nav-link:hover {
    background: rgba(182, 27, 196, 0.25);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.user-head-container {
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 12px;
    border: 1px solid var(--accent-color);
    background: #000;
}

.user-head-container img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    object-position: top;
    image-rendering: pixelated;
}

.user-nav-name {
    font-weight: 600;
    color: white;
    font-family: 'Orbitron';
    font-size: 14px;
}

/* BURGER MENU */
.burger-menu {
    display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1100;
}
.burger-menu span {
    width: 25px; height: 3px; background: var(--accent-color); border-radius: 3px; transition: 0.3s;
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #0a0a0a;
    z-index: 1050; padding: 100px 30px; transition: 0.4s; border-left: 1px solid var(--accent-color);
}
.mobile-nav.active { right: 0; }
.mobile-nav-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-list a { color: white; text-decoration: none; font-size: 18px; font-family: 'Orbitron'; }

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7);
    z-index: 1040; opacity: 0; visibility: hidden; transition: 0.3s;
}
.overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
    .nav-list, .auth-buttons { display: none; }
    .burger-menu { display: flex; }
}

main { flex: 1; padding-top: 60px !important; min-height: calc(100vh - 160px); }
.container { flex: 1; }
footer { margin-top: auto; }

/* ФУТЕР */
footer { background: rgba(10, 10, 10, 0.9); padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom { text-align: center; color: var(--text-secondary); font-size: 0.7rem; margin-top: 10px; }

.footer-logo {
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 2px;
}

.footer-logo:hover {
    color: #fff;
    text-shadow: 0 0 25px rgba(182, 27, 196, 0.9);
}

/* ПАРОЛЬ С ГЛАЗОМ */
.password-input-wrapper { position: relative; width: 100%; }
.toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-secondary); cursor: pointer;
    padding: 5px; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.toggle-password:hover { color: var(--accent-color); }
.toggle-password.active { color: var(--accent-color); }
.eye-icon { width: 20px; height: 20px; }

/* МОДАЛКИ */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px); display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 0; visibility: hidden; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.auth-modal { 
    background: #0f0f0f; width: 450px; border-radius: 20px; 
    border: 1px solid rgba(182, 27, 196, 0.5); padding: 40px; 
    position: relative; box-shadow: 0 0 50px rgba(182, 27, 196, 0.2);
    transform: translateY(20px); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .auth-modal { transform: translateY(0); }
.modal-header { margin-bottom: 25px; text-align: center; }
.modal-title { 
    color: var(--accent-color); font-family: 'Orbitron'; font-size: 24px; 
    text-transform: uppercase; letter-spacing: 2px; text-shadow: var(--button-glow);
}
.close-modal { 
    position: absolute; top: 20px; right: 20px; background: none; border: none; 
    color: var(--text-secondary); font-size: 28px; cursor: pointer; transition: 0.3s;
}
.close-modal:hover { color: #fff; transform: rotate(90deg); }

.modal-body form { display: flex; flex-direction: column; gap: 15px; }

/* SOCIAL AUTH */
.social-auth { display: flex; gap: 12px; margin-bottom: 5px; }
.social-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; border-radius: 10px; text-decoration: none; color: white;
    font-weight: 600; font-family: 'Poppins', sans-serif; transition: 0.3s; font-size: 14px;
}
.social-btn.vk { background: #4c75a3; border: 1px solid rgba(255,255,255,0.1); }
.social-btn.discord { background: #5865f2; border: 1px solid rgba(255,255,255,0.1); }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); opacity: 0.9; }

/* DIVIDER */
.divider {
    text-align: center; margin: 10px 0; color: var(--text-secondary);
    position: relative; font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.divider::before, .divider::after {
    content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: rgba(255,255,255,0.1);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* FORM GROUPS */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: var(--text-secondary); font-size: 13px; font-weight: 500; margin-left: 5px; }
.form-control {
    width: 100%; padding: 14px 18px; background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; 
    outline: none; transition: 0.3s; font-family: 'Poppins', sans-serif;
}
.form-control:focus { border-color: var(--accent-color); background: rgba(182, 27, 196, 0.05); box-shadow: 0 0 15px rgba(182, 27, 196, 0.1); }

.submit-btn {
    margin-top: 10px; width: 100%; padding: 16px; 
    background: linear-gradient(135deg, var(--accent-color), var(--button-hover));
    color: white; border: none; border-radius: 12px; font-weight: 700; 
    text-transform: uppercase; cursor: pointer; font-family: 'Orbitron';
    letter-spacing: 1px; box-shadow: var(--button-glow); transition: 0.4s;
}
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(182, 27, 196, 0.4); filter: brightness(1.1); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* PASSWORD TOGGLE */
.password-wrapper { position: relative; }
.password-toggle {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: var(--text-secondary); transition: 0.3s; font-size: 18px;
    display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
}
.password-toggle:hover { color: var(--accent-color); }

