/* Фиксируем тёмный фон для всего HTML и BODY */
html, body {
    background-color: #0b0c10 !important;
    color: #c5c6c7;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

*, *:before, *:after { box-sizing: inherit; }

/* Шапка */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(11, 12, 16, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; color: #fff; }
.logo span { color: #ff4500; }

.header-right { display: flex; align-items: center; gap: 20px; }

/* Переключатель языков */
.lang-switcher { display: flex; gap: 8px; background: #1f2833; padding: 4px 8px; border-radius: 6px; }
.lang-switcher a {
    color: #8892b0; text-decoration: none; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; transition: 0.2s;
}
.lang-switcher a.active, .lang-switcher a:hover { background: #64ffda; color: #0b0c10; }

.btn-steam {
    background: #ff4500; color: #fff; padding: 10px 22px;
    border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: 0.3s;
}
.btn-steam:hover { background: #ff5722; transform: translateY(-2px); }

/* Аккуратный блок профиля справа в шапке */
.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1f2833;
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 6px 14px 6px 8px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.user-pill-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #64ffda;
}

.user-pill-info { display: flex; flex-direction: column; }
.user-pill-name { color: #fff; font-size: 0.85rem; font-weight: 700; line-height: 1.1; }
.user-pill-status { color: #ff4500; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }

.user-pill-logout {
    color: #8892b0;
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 6px;
    transition: 0.2s;
}
.user-pill-logout:hover { color: #ff4500; }

/* Солидная навигационная панель под шапкой */
.sub-navbar {
    background: #12141c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky; top: 0; z-index: 90;
    backdrop-filter: blur(10px);
}

.sub-nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding: 0 20px;
}

.sub-link {
    color: #8892b0;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.sub-link:hover, .sub-link.active {
    color: #64ffda;
    border-bottom-color: #64ffda;
    background: rgba(100, 255, 218, 0.03);
}

/* Hero секция */
.hero-section {
    padding: 100px 20px 80px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.08) 0%, rgba(11, 12, 16, 1) 75%);
}
.badge {
    display: inline-block;
    background: rgba(100, 255, 218, 0.05);
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.hero-content h1 { font-size: 3.2rem; font-weight: 900; color: #fff; margin-bottom: 20px; letter-spacing: 1px; }
.hero-desc {
    max-width: 750px;
    margin: 0 auto 40px;
    color: #8892b0;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
}

.connect-box {
    display: inline-flex;
    background: #1f2833;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 8px 8px 22px;
    border-radius: 8px;
    align-items: center;
    gap: 20px;
}
.connect-box code { font-family: monospace; color: #64ffda; font-size: 1rem; }
.connect-box button {
    background: #ff4500; color: #fff; border: none; padding: 10px 20px;
    border-radius: 6px; cursor: pointer; font-family: inherit; font-weight: 700; transition: 0.2s;
}
.connect-box button:hover { background: #ff5722; }

/* Контейнеры */
.container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.section-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 20px; }

/* Профиль и Статистика */
.profile-card, .server-card, .leaderboard-table {
    background: #1f2833;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
}

.profile-card { display: flex; align-items: center; gap: 25px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid #64ffda; }
.profile-info h2 { font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.steamid { color: #5c6b73; font-size: 0.8rem; font-family: monospace; }
.status-tag { background: rgba(255, 69, 0, 0.15); color: #ff4500; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }

.profile-stats { display: flex; gap: 20px; margin-left: auto; }
.stat-box { background: #0b0c10; padding: 12px 20px; border-radius: 8px; text-align: center; }
.stat-val { display: block; font-size: 1.3rem; font-weight: 800; color: #64ffda; }
.stat-lbl { font-size: 0.7rem; color: #8892b0; text-transform: uppercase; }

.btn-logout { background: #0b0c10; color: #8892b0; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 0.8rem; }

/* Серверная карточка */
.server-card { display: flex; align-items: center; gap: 20px; }
.server-status-dot { width: 12px; height: 12px; border-radius: 50%; background: #64ffda; box-shadow: 0 0 10px #64ffda; }
.server-details h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.server-details p { color: #8892b0; font-size: 0.85rem; }
.btn-connect { background: #ff4500; color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; margin-left: auto; }

/* Лидерборд */
.leader-row { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.rank { font-weight: 900; color: #ff4500; width: 30px; }
.row-avatar { width: 36px; height: 36px; border-radius: 50%; }
.row-name { color: #fff; font-weight: 600; flex-grow: 1; }
.row-points { color: #64ffda; font-weight: 700; }
.empty-msg { color: #5c6b73; text-align: center; }

/* СТИЛИ УНИКАЛЬНОГО ПРИЗРАКА YUMMI */
#ghost-easter-egg {
    position: fixed;
    width: 130px;
    height: 160px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.4)) blur(1px);
    transition: opacity 2s ease;
}

#ghost-easter-egg svg {
    width: 100%;
    height: 100%;
}

/* Эффект заморозки при появлении призрака */
body.frost-active {
    cursor: wait !important;
}

body.frost-active::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, transparent 55%, rgba(100, 255, 218, 0.07) 100%);
    box-shadow: inset 0 0 60px rgba(100, 255, 218, 0.12);
    pointer-events: none;
    z-index: 9998;
    animation: frostFade 1.2s ease-in-out forwards;
}

@keyframes frostFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Футер и Легенда о скрытом админе */
.site-footer {
    margin-top: 80px;
    background: #08090c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-ghost-lore {
    max-width: 650px;
    margin: 0 auto 30px;
    background: rgba(31, 40, 51, 0.4);
    border: 1px solid rgba(100, 255, 218, 0.15);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lore-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(255, 69, 0, 0.5));
}

.lore-text {
    color: #8892b0;
    font-size: 0.9rem;
    line-height: 1.7;
    font-style: italic;
}

.lore-text strong {
    color: #ff4500;
    font-style: normal;
}

.footer-bottom {
    color: #4a5568;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Мобильный адаптив */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 15px; }
    .header-right { width: 100%; justify-content: space-between; }
    .sub-nav-container { overflow-x: auto; white-space: nowrap; }
    .hero-content h1 { font-size: 2rem; }
    .profile-card { flex-direction: column; text-align: center; }
    .profile-stats { margin-left: 0; width: 100%; justify-content: center; }
    .server-card { flex-direction: column; text-align: center; }
    .btn-connect { margin-left: 0; width: 100%; text-align: center; }
}