/* global.css - CS2 Pro Steel: премиум, без неона, сталь + бронза */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1114;
    --bg-secondary: #1a1d21;
    --bg-card: #13161a;
    --accent-bronze: #cd7f32;
    --accent-bronze-hover: #e69a50;
    --accent-steel: #b0bec5;
    --accent-ct: #4a90e2;
    --accent-t: #e74c3c;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #5c636a;
    --border-subtle: rgba(205, 127, 50, 0.2);
    --border-active: rgba(205, 127, 50, 0.6);
    --glow-bronze: 0 0 12px rgba(205, 127, 50, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #0f1114 0%, #0a0c0f 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    font-family: 'Exo 2', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

/* === ФОНОВЫЕ ЧАСТИЦЫ — ОТКЛЮЧЕНЫ === */
.particles-bg { display: none; }

/* === HEADER === */
.header-main {
    background: rgba(15, 17, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 1rem;
}

/* === ЛОГО + ЯЗЫК === */
.logo-language-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.Logo {
    display: flex;
    align-items: center;
    color: var(--accent-bronze);
    font-family: 'Orbitron', monospace;
}

.Logo img {
    width: 60px;
    height: auto;
    margin-right: 10px;
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.3));
    transition: var(--transition);
}

.Logo:hover img {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-bronze);
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.3);
}

/* === ЯЗЫК === */
.language-container {
    position: relative;
}

.language-button {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.language-button:hover {
    background: var(--accent-bronze);
    color: #000;
    border-color: var(--accent-bronze);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    min-width: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    margin-top: 0.5rem;
    z-index: 10;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.language-dropdown a:hover {
    background: var(--accent-bronze);
    color: #000;
}

/* === КНОПКА STEAM === */
.pressed-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-bronze);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.pressed-button:hover {
    background: var(--accent-bronze-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(205, 127, 50, 0.5);
}

.button-icon {
    font-size: 1.7rem;
}

/* === ЛИЧНЫЙ КАБИНЕТ === */
#user-profile { z-index: 10; }

.profile-view {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 40px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-view:hover {
    border-color: var(--accent-bronze);
    box-shadow: var(--glow-bronze), 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.profile-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent-bronze);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;
    min-width: 95px;
    gap: 1px;
}

.profile-nickname,
.profile-balance {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-bronze); /* ← БРОНЗА */
}

.profile-balance {
    font-weight: 700;
}

/* === ПЛЮСИК + ₽ — СЛАБОЕ СВЕЧЕНИЕ В ЦЕНТРЕ, ТОЛЬКО У ПЛЮСА === */
.profile-deposit {
    position: relative;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    background: rgba(205, 127, 50, 0.15);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: visible;
    z-index: 2;
}

/* === ПЛЮС — СЛАБОЕ СВЕЧЕНИЕ В ЦЕНТРЕ === */
.profile-deposit i {
    color: var(--accent-bronze);
    font-size: 1.05rem;
    font-weight: bold;
    z-index: 2;
    transition: var(--transition);
    filter: drop-shadow(0 0 4px rgba(205, 127, 50, 0.4)); /* ← СЛАБОЕ СВЕЧЕНИЕ */
}

.profile-deposit:hover i {
    color: #000;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.6)); /* ← ЧУТЬ ЯРЧЕ ПРИ HOVER */
}

/* === РУБЛЬ — БЕЗ СВЕЧЕНИЯ, ЧЁТКИЙ RADIUS === */
.rub-icon {
    position: absolute;
    top: -7px;
    right: -7px;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent-bronze);
    background: var(--bg-card);
    padding: 2px 5px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: none; /* ← СВЕЧЕНИЕ УБРАНО */
    transform: rotate(-14deg);
    z-index: 3;
    pointer-events: none;
    transition: var(--transition);
}

/* === HOVER — ТОЛЬКО У ПЛЮСА === */
.profile-deposit:hover {
    background: var(--accent-bronze);
    transform: scale(1.05);
}

.profile-deposit:hover .rub-icon {
    color: #000;
    background: var(--accent-bronze-hover);
    transform: rotate(-18deg) scale(1.15);
    border-color: var(--accent-bronze);
    box-shadow: none; /* ← БЕЗ СВЕЧЕНИЯ */
}

/* === ИКОНКА ПРОФИЛЯ === */
.profile-icon {
    color: var(--accent-bronze);
    font-size: 1.1rem;
    margin-left: -2px;
    transition: var(--transition);
}

.profile-view:hover .profile-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-bronze));
}

/* === ЗАГОЛОВОК — НИЖЕ НАВИГАЦИИ === */
.header {
    text-align: center;
    margin: 8rem auto 2rem; /* ← УВЕЛИЧЕНО С 6rem → 8rem */
    max-width: 1400px;
    padding: 0 20px;
    transition: margin 0.3s ease;
}

.header h5 {
    font-family: sans-serif;
    font-size: 2.3rem;
    color: white;
    position: relative;
    display: inline-block;
    margin: 0;
}

.header h5::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: var(--accent-bronze);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

/* === КЕЙСЫ — МЕНЬШЕ ОТСТУПОВ, ТЕКСТ ВПЛОТНУЮ === */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.4rem; /* ← БЫЛО 1.8rem → СТАЛО 1.4rem */
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.cases {
    flex: 0 1 320px;
    max-width: 360px;
    perspective: 1000px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-wrapper {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 0.3rem 0.5rem 0.7rem;
    text-align: center;
    transition: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: visible !important; /* ← ВАЖНО: НЕ ОБРЕЗАЕТ ТЕНЬ */
}

/* === ИЗОБРАЖЕНИЕ === */
.case-image {
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    margin: 0 0 0.2rem 0; /* ← МИНИМАЛЬНЫЙ ОТСТУП */
    padding: 0;
    transition: all 0.3s ease;
}

.case-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.case-wrapper:hover .case-image img {
    transform: scale(1.06);
}

/* === НАЗВАНИЕ — ЕЩЁ БЛИЖЕ К КЕЙСУ === */
.cases h2 {
    font-size: 1.35rem;
    margin: 0.05rem 0 0.1rem; /* ← ПОЧТИ ВПЛОТНУЮ */
    color: #ffffff;
    font-weight: 600;
    line-height: 1.2;
    transition: none;
}

/* === h3 — ТЕНЬ ПОЛНАЯ, БЛЕСК ТОЛЬКО ВНУТРИ === */
.cases h3 {
    background: var(--accent-bronze);
    color: #000;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: none;
    transition: 
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    margin: 0.15rem 0 0;
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
    clip-path: inset(0 round 10px); /* ← ГАРАНТИРУЕТ ОБРЕЗКУ БЛЕСКА */
}

/* Блеск — строго внутри, уходит за 100% */
.cases h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 1;
}

/* === HOVER — БЛЕСК УХОДИТ ПОЛНОСТЬЮ === */
.case-wrapper:hover h3 {
    background: var(--accent-bronze-hover);
    box-shadow: 
        0 6px 18px rgba(205, 127, 50, 0.5),
        0 12px 30px rgba(205, 127, 50, 0.3);
    transform: translateY(-1px);
}

.case-wrapper:hover h3::before {
    left: 150%; /* ← ВЫХОДИТ ПОЛНОСТЬЮ ЗА ГРАНИЦУ */
}

.cases h3 .price-icon {
    margin-left: 0.5rem;
    color: var(--accent-t);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* === ФУНКЦИИ === */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent-bronze);
    box-shadow: var(--glow-bronze);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-steel);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card:hover i {
    color: var(--accent-bronze);
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-bronze);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === ФУТЕР === */
footer {
    background: rgba(15, 17, 20, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0;
    text-align: center;
    margin-top: 5rem;
}

.footer-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content a {
    color: var(--accent-bronze);
    text-decoration: none;
    transition: var(--transition);
}

.footer-content a:hover {
    color: var(--accent-bronze-hover);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* === АДАПТИВНОСТЬ — УМЕНЬШАЕМ ОТСТУП НА МОБИЛКЕ === */
@media (max-width: 992px) {
    .header {
        margin: 7rem auto 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        margin: 6.5rem auto 2rem;
    }
    .header h5 {
        font-size: 2.1rem;
    }
}

@media (max-width: 576px) {
    .header {
        margin: 6rem auto 1.5rem;
    }
    .header h5 {
        font-size: 1.9rem;
    }
}
/* === ФУТЕР ВСЕГДА ВНИЗУ СТРАНИЦЫ === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1114 0%, #0a0c0f 100%);
    background-attachment: fixed;
    font-family: 'Exo 2', sans-serif;
    color: var(--text-primary);
    position: relative;
}

main {
    flex: 1 0 auto; /* ← ВСЁ КОНТЕНТ РАСТЯГИВАЕТСЯ */
}

footer {
    flex-shrink: 0; /* ← ФУТЕР НЕ СЖИМАЕТСЯ */
    margin-top: auto; /* ← ПРИЖИМАЕТ К НИЗУ */
    padding: 20px 0;
    background: rgba(15, 17, 20, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-subtle);
    width: 100%;
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.logout-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #13161a;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 0.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
	transition: all 0.3s;
}

.logout-button:hover {
    background: #cd7f32;
    color: #000;
    border-color: #cd7f32;
    box-shadow: 0 8px 20px rgba(205, 127, 50, 0.5);
}

.logout-button i {
    font-size: 1.1rem;
}

/* Скрываем текст на мобильных */
@media (max-width: 768px) {
    .logout-text {
        display: none;
    }
    .logout-button {
        padding: 0.6rem;
    }
}
.profile-link {
    text-decoration: none;
    color: inherit;
}