* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Изменяем цвет выделения текста по всему сайту */
::selection {
    background-color: #1e88e5;
    color: #ffffff;
}

/* Стилизация скроллбара браузера под стиль сайта */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0c0c0f;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

body {
    background-color: #0c0c0f;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- ГЛОБАЛЬНОЕ СКРЫТИЕ СТРЕЛОЧЕК ДЛЯ ПОЛЕЙ ЧИСЕЛ (SPINNERS) --- */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* --- PAGE LOADER (БЕЗ ГЛОУ, НЕВИДИМ БЕЗ ЗАГРУЗКИ) --- */
#page-loader-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent; 
    z-index: 9999999;
    pointer-events: none;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#page-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #4498DB, #C6DEF1);
    transition: width 0.2s ease-out;
}

/* ФИКС СДВИГА ПРИ ОТКРЫТИИ МОДАЛОК (Шапка больше не дергается) */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

.app-container.top-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- TOP NAVBAR --- */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(12, 12, 15, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
}

.nav-left { width: 250px; }
.nav-right { width: 250px; justify-content: flex-end; gap: 20px; align-items: center; }

.logo-area { display: flex; align-items: center; gap: 15px; }
.logo { width: 48px; height: 48px; }

/* Двухстрочный блок онлайна */
.sidebar-online {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 48px; 
}
.sidebar-online-label {
    font-size: 10px;
    color: #8c8c9a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.sidebar-online-value {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    transition: color 0.3s;
}

.dot { width: 8px; height: 8px; background-color: #1e88e5; border-radius: 50%; box-shadow: 0 0 10px #1e88e5; }

/* --- MAIN MENU --- */
.main-menu { display: flex; gap: 5px; }
.menu-item {
    display: flex; align-items: center; text-decoration: none;
    color: #8c8c9a; padding: 10px 16px; border-radius: 12px;
    font-weight: 600; font-size: 14px; transition: all 0.2s ease;
}
.menu-item:hover, .menu-item.active { background-color: #121213; color: #ffffff; }
.menu-item .icon { margin-right: 10px; font-size: 16px; }
.badge { background-color: #e53935; color: white; font-size: 10px; padding: 3px 6px; border-radius: 4px; margin-left: 8px; font-weight: 800; }

/* --- SOCIALS & BUTTONS --- */
.desktop-socials { display: flex; gap: 15px; align-items: center; justify-content: flex-end; }
.mobile-social-links { display: none; }
.social-links a { display: flex; align-items: center; justify-content: center; color: #5b5b66; text-decoration: none; font-size: 20px; transition: color 0.2s; height: 100%; }
.social-links a:hover { color: #ffffff; }

.steam-login-btn {
    background-color: #3b82f6; color: white; border: none;
    padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; gap: 8px; cursor: pointer; transition: background-color 0.2s;
    text-decoration: none;
}
.steam-login-btn:hover { background-color: #2563eb; }

/* ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ В ШАПКЕ */
.user-profile-badge { 
    display: flex; align-items: center; gap: 12px; 
    background: rgba(255, 255, 255, 0.05); padding: 6px 6px 6px 12px; 
    border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.user-profile-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.user-avatar { 
    width: 28px; height: 28px; background: #3b82f6; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; 
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.user-role { font-size: 10px; font-weight: 600; color: #8c8c9a; text-transform: uppercase; }
.btn-logout { 
    background: transparent; border: none; color: #8c8c9a; width: 32px; height: 32px; 
    border-radius: 50%; cursor: pointer; transition: all 0.2s; 
    display: flex; align-items: center; justify-content: center; 
}
.btn-logout:hover { background: rgba(255, 68, 68, 0.1); color: #ff4444; }

/* Кнопка гамбургер меню скрыта на ПК */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.mobile-menu-btn:hover { color: #3b82f6; }

/* --- CENTERED CONTENT AREA --- */
.content-centered {
    max-width: 1400px;
    width: 100%; margin: 40px auto; padding: 0 40px;
    display: flex; flex-direction: column; gap: 40px; flex-grow: 1;
}

/* --- PREMIUM PROJECT STATS --- */
.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px; 
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 30px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}
.stat-item:hover::before { left: 150%; }

.stat-icon {
    font-size: 28px;
    color: #3b82f6; 
    background: rgba(59, 130, 246, 0.1); 
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.stat-text { display: flex; flex-direction: column; }
.stat-item .value { font-size: 28px; font-weight: 800; margin-bottom: 2px; color: #ffffff; }
.stat-item .label { font-size: 13px; color: #8c8c9a; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- SERVER SELECTION AREA (HERO BANNER) --- */
.server-selection-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modes-nav {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.modes-nav::-webkit-scrollbar { height: 0px; }

.mode-nav-item {
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: left;
    min-width: max-content;
}
.mode-nav-item:hover { background-color: rgba(255,255,255,0.05); }
.mode-nav-item.active { background-color: rgba(255,255,255,0.08); }

.mode-nav-item.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.mode-nav-item.disabled:hover {
    background-color: transparent; 
}

.mode-name {
    font-size: 14px;
    color: #aeb4c5;
    margin-bottom: 4px;
    font-weight: 600;
}
.mode-nav-item.active .mode-name { color: #ffffff; }
.mode-online { font-size: 12px; color: #5b5b66; font-weight: 500; }

.mode-hero {
    height: 550px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background-color: #121213;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.6);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(12,12,15,0.3) 0%, rgba(12,12,15,0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-size: 64px;
    font-weight: 800; 
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px; 
}

.hero-sublinks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px; 
    font-size: 13px;
    color: #aeb4c5;
    font-weight: 500;
}

/* Плашка пинга */
.ping-badge {
    display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.1);
}
.ping-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #5b5b66; transition: background-color 0.3s, box-shadow 0.3s; }
.ping-dot.green { background-color: #4caf50; box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); }
.ping-dot.yellow { background-color: #ffeb3b; box-shadow: 0 0 8px rgba(255, 235, 59, 0.6); }
.ping-dot.red { background-color: #f44336; box-shadow: 0 0 8px rgba(244, 67, 54, 0.6); }

.about-mode-trigger {
    cursor: help;
    transition: color 0.2s;
    position: relative;
}
.about-mode-trigger:hover { color: #ffffff; }

/* Короткое описание режима */
.hero-short-desc {
    font-size: 15px; color: #8c8c9a; max-width: 600px; margin: 0 auto 35px auto;
    font-weight: 500; line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    gap: 15px;
    width: 100%;
}

.btn-quick-play {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
    background: transparent;
    height: 52px; 
}
.btn-quick-play:hover { transform: translateY(-3px); }

.btn-quick-play-left {
    background-color: #1e88e5; 
    padding: 0 18px;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    height: 100%;
}
.btn-quick-play-right {
    background-color: #64b5f6; 
    padding: 0 28px;
    color: #121213; 
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.btn-dark {
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(12px); 
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 0 24px;
    height: 52px; 
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.btn-dark:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px); 
}

.steam-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 0;
    z-index: 3;
    font-size: 12px;
    color: #5b5b66;
    font-weight: 600;
    background-color: #0c0c0f; 
    padding: 12px 24px;
    border-radius: 16px 16px 0 0; 
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- СЕКЦИЯ НОВОСТЕЙ (ЛЕНТА) --- */
.news-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-controls {
    display: flex;
    gap: 10px;
}

.news-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Обертка для градиентной маски и выхода за края */
.news-slider-wrapper {
    margin-left: -40px;
    margin-right: -40px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, transparent 100%);
    overflow: hidden;
}

.news-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 40px 30px 40px; 
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
}

.news-slider::-webkit-scrollbar {
    display: none; 
}

.news-card {
    min-width: 420px; 
    max-width: 420px;
    background: #121213;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: border-color 0.3s ease;
}

.news-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.news-img-wrapper {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.news-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-img-bg {
    transform: scale(1.08); 
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    background: rgba(12, 12, 15, 0.85);
    backdrop-filter: blur(10px);
    color: #aeb4c5;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-content {
    padding: 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #121213;
    position: relative;
    z-index: 2;
}

.news-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-desc {
    font-size: 14px;
    color: #8c8c9a;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 25px;
    flex-grow: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #3b82f6;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    margin-top: auto;
    cursor: pointer;
    padding: 0;
}

.news-link:hover {
    color: #64b5f6;
}
.news-link i {
    transition: transform 0.2s;
}
.news-link:hover i {
    transform: translateX(4px);
}

/* --- ВСПЛЫВАЮЩЕЕ ОКНО ДЛЯ НОВОСТЕЙ (МОДАЛКА) --- */
.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.news-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-container {
    background: #0c0c0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.news-modal-container::-webkit-scrollbar { width: 6px; }
.news-modal-container::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 3px; }

.news-modal-overlay.active .news-modal-container {
    transform: scale(1) translateY(0);
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.news-modal-close:hover {
    background: rgba(255, 68, 68, 0.8);
    transform: scale(1.1);
}

.news-modal-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.news-modal-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #121213 0%, rgba(18,18,19,0.5) 50%, transparent 100%);
}

.news-modal-date {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 2;
    background: rgba(59, 130, 246, 0.9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}

.news-modal-body {
    padding: 40px 50px 50px 50px;
    position: relative;
    z-index: 3;
    background: #121213;
    border-radius: 24px 24px 0 0;
    margin-top: -40px;
}

.news-modal-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-modal-text {
    font-size: 15px;
    color: #aeb4c5;
    line-height: 1.8;
    font-weight: 500;
}

.news-modal-text p {
    margin-bottom: 15px;
}


/* --- GLOBAL TOOLTIP --- */
.global-tooltip {
    position: absolute;
    z-index: 9999;
    width: 260px;
    background-color: #212533;
    color: #aeb4c5;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    pointer-events: none;
}
.global-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #212533 transparent;
}
.global-tooltip.visible { opacity: 1; visibility: visible; }

/* --- STAGGERED ANIMATIONS FOR HERO CONTENT --- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.fade-in-up-stagger { 
    opacity: 0; 
    animation: fadeInUp 0.5s ease-out forwards; 
}

/* === СТРАНИЦА АВТОРИЗАЦИИ / РЕГИСТРАЦИИ === */
.auth-page-wrapper {
    display: flex; justify-content: center; align-items: center; min-height: 60vh;
}
.auth-box {
    background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px;
    padding: 50px; width: 100%; max-width: 480px; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: fadeInUp 0.5s ease-out forwards;
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: #8c8c9a; font-weight: 500; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 13px; font-weight: 700; color: #aeb4c5; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-group label i { color: #3b82f6; margin-right: 5px; }
.input-group input {
    width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; font-size: 15px; padding: 14px 18px; border-radius: 12px; outline: none; transition: border-color 0.2s, background 0.2s;
}
.input-group input:focus { border-color: #3b82f6; background: rgba(0, 0, 0, 0.5); }
.input-group input::placeholder { color: #5b5b66; }

.auth-error { color: #ff4444; font-size: 13px; font-weight: 600; margin-bottom: 20px; text-align: center; min-height: 16px; }

.btn-auth {
    width: 100%; background: #3b82f6; color: white; border: none; padding: 16px; border-radius: 12px;
    font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color 0.2s, transform 0.2s;
}
.btn-auth:hover { background: #2563eb; transform: translateY(-2px); }
.btn-auth:disabled { background: #5b5b66; cursor: not-allowed; transform: none; }

.auth-footer { text-align: center; margin-top: 25px; font-size: 14px; color: #8c8c9a; font-weight: 500; }
.switch-auth-btn { background: none; border: none; color: #3b82f6; font-size: 14px; font-weight: 700; cursor: pointer; transition: color 0.2s; padding: 0; font-family: 'Montserrat', sans-serif; }
.switch-auth-btn:hover { color: #64b5f6; text-decoration: underline; }

/* === УВЕДОМЛЕНИЕ О COOKIE И IP === */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 25px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }

.notification-left {
    right: auto;
    left: 30px;
}

.cookie-content { display: flex; gap: 15px; align-items: flex-start; }
.cookie-icon { font-size: 24px; color: #3b82f6; margin-top: 2px; }
.cookie-text h4 { font-size: 16px; color: #fff; margin-bottom: 6px; font-weight: 700; }
.cookie-text p { font-size: 12px; color: #8c8c9a; line-height: 1.5; font-weight: 500; }
.cookie-text a { color: #3b82f6; text-decoration: none; transition: color 0.2s; }
.cookie-text a:hover { color: #64b5f6; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; }
.btn-cookie { flex: 1; padding: 10px 0; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: none; font-family: 'Montserrat', sans-serif; }
.btn-cookie-accept { background: #3b82f6; color: white; }
.btn-cookie-accept:hover { background: #2563eb; transform: translateY(-2px); }
.btn-cookie-decline { background: rgba(255, 255, 255, 0.05); color: #aeb4c5; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-cookie-decline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-2px); }

/* --- SKELETON --- */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: #121213;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.03) 20%, rgba(255, 255, 255, 0) 40%);
    background-size: 400px 100%;
    background-repeat: no-repeat;
    animation: shimmer 1.5s infinite linear;
}
.skeleton-text { border-radius: 4px; }


/* --- СТРАНИЦА МАГАЗИНА --- */
.store-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeInUp 0.5s ease-out forwards;
}

.store-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

.store-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.store-card {
    background: #121213;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 50px 20px 30px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.store-card:hover {
    background: #1a1a1d; 
    border-color: rgba(255, 255, 255, 0.1);
}

.store-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 183, 0, 0.1);
    color: #ffb700;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
}

.store-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.store-icon img {
    max-width: 170px;
    max-height: 170px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover .store-icon img {
    transform: scale(1.15); 
}

.store-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

/* Блок обмена коинов */
.coin-exchange-block {
    background: #121213;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.coin-exchange-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.exchange-left, .exchange-center, .exchange-right {
    position: relative;
    z-index: 1;
}

.exchange-left {
    display: flex;
    flex-direction: column;
}

.exchange-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.exchange-sub {
    font-size: 13px;
    color: #8c8c9a;
    font-weight: 500;
}

.exchange-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.exchange-input-wrapper {
    background: #0c0c0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exchange-input-wrapper input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    width: 70px;
    outline: none;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.exchange-input-wrapper input::-webkit-outer-spin-button,
.exchange-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.currency-label {
    color: #5b5b66;
    font-size: 15px;
    font-weight: 700;
}

.exchange-arrow {
    color: #5b5b66;
    font-size: 14px;
}

.exchange-result {
    font-size: 16px;
    font-weight: 600;
    color: #8c8c9a;
}

#exchange-output {
    color: #ffffff;
}

.btn-exchange {
    background: rgba(255, 255, 255, 0.05);
    color: #8c8c9a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-exchange:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* --- СТРАНИЦА ОФЕРТЫ И ПРАВИЛА --- */
.terms-page {
    background: #121213;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 50px;
    color: #aeb4c5;
    line-height: 1.7;
    animation: fadeInUp 0.5s ease-out forwards;
}

.terms-page h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 800;
}

.terms-page h2 {
    color: #ffffff;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.terms-page p {
    margin-bottom: 15px;
    font-size: 15px;
}

.terms-page strong {
    color: #ffffff;
}

/* --- ЧЕКБОКС СОГЛАСИЯ --- */
.checkbox-group {
    margin-bottom: 20px;
    display: flex;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #8c8c9a;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    margin-top: -1px;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.5);
}

.checkbox-group input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
    animation: check-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes check-pop {
    0% { transform: scale(1); }
    50% { transform: scale(0.85); }
    100% { transform: scale(1); }
}

.checkbox-group a {
    color: #3b82f6;
    text-decoration: none; 
    transition: color 0.2s;
}

.checkbox-group a:hover {
    color: #64b5f6;
    text-decoration: none; 
}


/* =======================================================
   ОБНОВЛЕННАЯ СТРАНИЦА ПРОФИЛЯ
   ======================================================= */
.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.5s ease-out forwards;
    max-width: 100%; 
    width: 100%;
}

.profile-header-wrap {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #121213; 
    border-radius: 16px;
    padding-bottom: 30px; 
    margin-bottom: 10px;
    overflow: hidden;
}

.profile-banner {
    height: 280px; 
    background: url('/images/anarchy.png') center/cover;
    position: relative;
}

.profile-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.profile-avatar-center {
    width: 130px; 
    height: 130px;
    margin: -65px auto 15px auto; 
    border-radius: 50%;
    background: #121213; 
    padding: 8px; 
}

.profile-avatar-center img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.prof-nick-center {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.prof-last-login-center {
    text-align: center;
    font-size: 13px;
    color: #8c8c9a;
    font-weight: 600;
}

/* БОКОВОЕ МЕНЮ ПРОФИЛЯ */
.profile-body {
    display: flex;
    gap: 20px;
}

.profile-sidebar {
    width: 280px;
    background: #121213;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex; 
    flex-direction: column; 
    height: max-content;
}

.profile-sidebar-title {
    font-size: 11px;
    color: #5b5b66;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 15px;
    padding-left: 15px;
}

.profile-sidebar-divider {
    height: 1px; 
    background: rgba(255,255,255,0.05); 
    margin: 15px 0;
}

.profile-tab {
    background: transparent; color: #8c8c9a; border: none;
    padding: 14px 18px; text-align: left; font-size: 14px; font-weight: 600;
    border-radius: 12px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 12px; width: 100%;
    margin-bottom: 5px;
}

.profile-tab i { 
    font-size: 16px; 
    width: 20px; 
    text-align: center; 
    opacity: 0.7; 
    transition: opacity 0.2s; 
}

.profile-tab:hover { background: rgba(255,255,255,0.03); color: #fff; }
.profile-tab:hover i { opacity: 1; }

.profile-tab.active { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.profile-tab.active i { opacity: 1; color: #3b82f6; }

.profile-tab.danger { color: #f44336; opacity: 0.8; }
.profile-tab.danger:hover { background: rgba(244, 67, 54, 0.1); opacity: 1; }


/* КОНТЕНТ ПРОФИЛЯ */
.profile-content {
    flex-grow: 1;
    background: #121213;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 40px; 
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-content-title {
    font-size: 22px; 
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 25px;
}

.profile-info-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255,255,255,0.02); 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; 
    padding: 20px; 
    display: flex; 
    align-items: center; 
    gap: 15px;
    transition: border-color 0.2s;
}

.info-card:hover { border-color: rgba(255,255,255,0.1); }

.info-card-icon {
    width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.05);
    display: flex; justify-content: center; align-items: center; font-size: 20px; color: #aeb4c5;
}

.info-card-data { display: flex; flex-direction: column; gap: 5px; flex-grow: 1; }
.info-label { font-size: 12px; color: #8c8c9a; font-weight: 600; text-transform: uppercase; }
.info-value { font-size: 15px; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.btn-bind {
    background: transparent; border: 1px solid; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; align-self: flex-start; transition: all 0.2s;
}
.btn-bind.discord { color: #5865F2; border-color: rgba(88, 101, 242, 0.3); }
.btn-bind.discord:hover { background: rgba(88, 101, 242, 0.1); border-color: #5865F2; }
.btn-bind.telegram { color: #0088cc; border-color: rgba(0, 136, 204, 0.3); }
.btn-bind.telegram:hover { background: rgba(0, 136, 204, 0.1); border-color: #0088cc; }

.profile-danger-zone {
    background: rgba(244, 67, 54, 0.05); border: 1px dashed rgba(244, 67, 54, 0.3);
    border-radius: 16px; padding: 25px 30px; display: flex; justify-content: space-between; align-items: center;
}
.danger-zone-text h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.danger-zone-text p { color: #8c8c9a; font-size: 14px; font-weight: 500; }

.empty-profile-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #5b5b66;
    text-align: center;
}

.empty-profile-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-profile-placeholder p {
    font-size: 18px;
    font-weight: 700;
}

/* СТАТИСТИКА В ПРОФИЛЕ */
.new-prof-stats-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.new-prof-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    gap: 20px;
}

.new-prof-stats-row + .new-prof-stats-row {
    margin-top: 50px;
}

.new-prof-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.new-prof-stat-item .stat-val {
    font-size: 28px; 
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.new-prof-stat-item .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #8c8c9a;
}

.new-prof-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.05);
}

.locked-container {
    text-align: center; padding: 100px 20px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}
.locked-container i { font-size: 64px; color: #3b82f6; margin-bottom: 25px; }
.locked-steps { margin-top: 30px; color: #8c8c9a; line-height: 2; }
.cmd-badge { background: #1e1e1e; padding: 4px 12px; border-radius: 6px; color: #3b82f6; font-family: monospace; font-weight: 800; }


/* === ОБНОВЛЕННЫЙ МАГАЗИН === */
.store-layout-container {
    animation: fadeInUp 0.5s ease-out forwards;
    max-width: 1280px; 
    margin: 0 auto;
}

.store-controls-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.store-categories-nav {
    position: relative; 
    display: inline-flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 12px;
    z-index: 1; 
}

.active-bg-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(59,130,246,0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.store-nav-btn {
    background: transparent; 
    border: 1px solid transparent; 
    color: #8c8c9a;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease; 
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative; 
    z-index: 2; 
}

.store-nav-btn i { font-size: 14px; opacity: 0.7; transition: opacity 0.3s ease; }

.store-nav-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.store-nav-btn:hover:not(.active) i { opacity: 1; }

.store-nav-btn.active {
    color: #ffffff;
}
.store-nav-btn.active i {
    opacity: 1;
    color: #3b82f6;
}

.store-nav-btn:active, .duration-btn:active, .btn-buy-now:active, .btn-add-cart:active { transform: scale(0.95); }

.store-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px;
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #5b5b66;
    font-size: 14px;
    transition: color 0.3s;
    pointer-events: none;
}
.store-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px 12px 42px;
    color: #fff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}
.store-search-input::placeholder { color: #5b5b66; }
.store-search-input:focus {
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.5);
    outline: none;
}
.store-search-wrapper:focus-within .search-icon { color: #3b82f6; }

.store-main-grid {
    display: grid;
    grid-template-columns: 1fr 420px; 
    gap: 12px; 
    align-items: start;
}

.store-items-section {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.store-section-block {
    margin-bottom: 0;
}

.store-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.store-section-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    color: #ffffff;
}

.store-title-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.store-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); 
    gap: 10px; 
}

.store-item-card {
    background: #121213;
    border: 2px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    height: 320px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.store-item-card.active { border-color: #3b82f6; }

.item-img-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 1;
}

.store-item-card:hover .item-img-full { transform: scale(1.1); }

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,12,15,0.95) 0%, rgba(12,12,15,0.4) 50%, transparent 100%);
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.item-name {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
    text-transform: uppercase;
}

.item-price-row { display: flex; align-items: center; gap: 8px; }
.price-val { font-size: 20px; font-weight: 800; color: #fff; }
.price-discount { color: #4caf50; background: rgba(76, 175, 80, 0.2); padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; }

.store-sidebar {
    position: sticky;
    top: 100px;
    margin-top: 48px; 
}

.product-details-card {
    background: #121213;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px; 
    display: flex;
    flex-direction: column;
}

.details-title { 
    font-size: 20px; 
    margin-bottom: 20px; 
    font-weight: 800; 
    color: #fff;
}

.accordion-item {
    margin-bottom: 20px; 
}

.accordion-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-content li {
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    line-height: 1.4;
    padding-top: 10px;
}
.accordion-content li i { color: #3b82f6; font-size: 12px; margin-top: 3px; }

.duration-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.duration-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8c8c9a;
    padding: 12px 2px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.duration-btn.active { background: #1e1e1e; color: #fff; border-color: #3b82f6; }

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 5px;
}

.qty-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    color: #8c8c9a;
    font-size: 14px;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#qty-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.buy-action-area {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 20px; 
}

.final-price { 
    font-size: 28px; 
    font-weight: 800; 
    margin-bottom: 20px; 
}
.final-price span { font-size: 14px; color: #5b5b66; font-weight: 500; }

.action-buttons { 
    display: flex; 
    gap: 10px; 
    width: 100%; 
}

.btn-buy-now {
    flex: 1; 
    background: #3b82f6;
    color: #fff;
    border: none;
    height: 50px; 
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-buy-now:hover { background: #2563eb; }

.btn-add-cart {
    width: 50px; 
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.btn-add-cart:hover { background: rgba(255, 255, 255, 0.1); }


/* --- ИКОНКА БОНУСОВ --- */
.nav-bonus-btn {
    background: transparent;
    border: none;
    padding: 0;
    width: auto;
    height: auto;
    display: flex; align-items: center; justify-content: center;
    color: #ffb700; font-size: 18px; text-decoration: none;
    transition: color 0.2s ease;
}
.nav-bonus-btn i { font-size: 18px; color: #ffb700; }
.nav-bonus-btn:hover { color: #fff59d; transform: none; box-shadow: none; }

.bonus-link-mobile { color: #fff59d !important; font-size: 24px !important; }

.blur-sensitive {
    filter: blur(5px);
    transition: filter 0.3s ease;
    cursor: pointer;
    user-select: none;
}
.blur-sensitive:hover { filter: blur(0); }

.bonuses-container { animation: fadeInUp 0.5s ease-out forwards; max-width: 1100px; margin: 0 auto; }
.bonuses-header-main { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.bonuses-header-main i { color: #6366f1; font-size: 24px; }
.bonuses-header-main h3 { font-size: 24px; font-weight: 800; color: #fff; }

.bonuses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.bonus-card {
    background: #121213; border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px; padding: 30px; display: flex; justify-content: space-between;
    overflow: hidden; position: relative; transition: transform 0.2s;
}

.bonus-card.tg-card {
    background: linear-gradient(to right, rgba(0, 162, 255, 0) 0%, rgba(0, 162, 255, 0.3) 100%), #121213;
}
.bonus-card.ds-card {
    background: linear-gradient(to right, rgba(88, 101, 242, 0) 0%, rgba(88, 101, 242, 0.3) 100%), #121213;
}

.bonus-card:hover { transform: translateY(-5px); }
.bonus-card-info { flex: 1; z-index: 2; }
.bonus-card-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.bonus-card-desc { font-size: 13px; color: #8c8c9a; font-weight: 500; margin-bottom: 25px; line-height: 1.5; max-width: 200px; }
.btn-bonus-status { border: none; border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn-bonus-status.done { background: rgba(255,255,255,0.05); color: #8c8c9a; cursor: default; }
.btn-bonus-status.execute { background: #6366f1; color: #fff; }

.bonus-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bonus-reward { background: #1a1a1d; border: 1px solid rgba(255,255,255,0.05); color: #fff; padding: 10px 15px; border-radius: 8px; font-size: 13px; font-weight: 800; }
.bonus-card-visual img { width: 140px; transform: rotate(15deg); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }

.bonus-footer-banner { 
    background: linear-gradient(to right, rgba(255, 0, 0, 0) 0%, rgba(255, 0, 0, 0.2) 100%), #121213; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 20px; 
    padding: 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    overflow: hidden; 
}
.footer-banner-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-banner-desc { font-size: 14px; color: #8c8c9a; font-weight: 500; margin-bottom: 25px; max-width: 500px; line-height: 1.6; }
.footer-social-icons { display: flex; gap: 15px; }
.footer-social-icons a { width: 44px; height: 44px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #8c8c9a; font-size: 18px; text-decoration: none; transition: all 0.2s; }
.footer-social-icons a:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-3px); }
.footer-banner-visual img { width: 300px; opacity: 0.9; }

/* =======================================================
   МОДАЛЬНОЕ ОКНО ПОПОЛНЕНИЯ БАЛАНСА
   ======================================================= */
.topup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.topup-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.topup-modal-container {
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    width: 100%;
    max-width: 780px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.topup-modal-overlay.active .topup-modal-container {
    transform: scale(1) translateY(0);
}

.topup-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #8c8c9a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.topup-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.topup-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.topup-modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.topup-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.topup-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}

.topup-method {
    background: #1a1a1d;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.topup-method:hover {
    background: #222226;
    border-color: rgba(255, 255, 255, 0.08);
}

.topup-method.active {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.method-region {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #5b5b66;
}

.method-icon {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 12px;
}

.method-name {
    font-size: 11px;
    color: #aeb4c5;
    font-weight: 600;
    line-height: 1.4;
}

.topup-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Вернул 15px, чтобы все было плотненько как на оригинале */
    height: 100%; 
}

.selected-method-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151515;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 5px;
}

.selected-method-display > span {
    color: #8c8c9a;
    font-weight: 600;
    font-size: 14px;
}

.selected-method-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-method-info img {
    height: 16px;
}

.topup-input-box {
    position: relative;
    width: 100%;
}

.topup-input-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8c9a;
}

.topup-input-box input {
    width: 100%;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 16px 16px 45px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.topup-input-box input:focus {
    border-color: #3b82f6;
}

.promo-row {
    display: flex;
    gap: 10px;
}

.promo-box {
    flex-grow: 1;
}

.btn-promo-apply {
    background: #151515; /* Темный фон кнопки как на фото */
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #8c8c9a;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-promo-apply:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.topup-summary {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    margin-bottom: 5px; 
}

.summary-label {
    font-size: 14px;
    color: #8c8c9a;
    font-weight: 600;
    margin-bottom: 4px; 
}

.summary-line {
    flex-grow: 1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15); /* Правильная пунктирная линия */
    margin-bottom: 6px;
}

.summary-val {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.btn-pay-action {
    background: #1a1a1d; /* Темный фон с синим при наведении как на фото */
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s, background 0.2s; 
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.btn-pay-action:hover {
    background: #3b82f6;
}

/* --- PREMIUM FOOTER (STYLE MAGESTIC) --- */
.footer-premium {
    background-color: transparent; 
    border-top: none; 
    padding: 60px 0;
    margin-top: 80px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-legal p {
    color: #8c8c9a; 
    font-size: 13px; 
    font-weight: 500; 
    line-height: 1.6;
    margin-bottom: 5px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: #8c8c9a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #ffffff;
}

.payments-col {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.pay-icon-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-icon-box img {
    height: 20px;
    filter: grayscale(1) brightness(2);
    opacity: 0.5;
}

/* --- СТИЛИ ДЛЯ КОРЗИНЫ --- */
.floating-cart {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #e82a5b;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(232, 42, 91, 0.4);
    z-index: 999;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}
.floating-cart:hover { 
    transform: scale(1.1); 
    background-color: #d11f4d; 
    color: white; 
}
.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #121213;
    color: #fff;
    border: 2px solid #e82a5b;
    font-size: 11px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Страница Корзины (cart-view) */
#cart-view {
    animation: fadeInUp 0.5s ease-out forwards;
}

.cart-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header-top {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.cart-header-top h2 {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-right: 15px;
    position: relative;
    display: inline-block;
}

/* Красная дуга как в Majestic */
.cart-curve-line {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 10px;
}

.cart-count-text {
    font-size: 16px;
    color: #8c8c9a;
    font-weight: 600;
    margin-left: 20px;
    flex-grow: 1;
}

.btn-clear-cart {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-clear-cart:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-card {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 15px;
    position: relative;
}

.cart-item-image-box {
    width: 100px;
    height: 100px;
    background: #111;
    border-radius: 8px;
    margin-right: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-image-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.cart-item-discount-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #e82a5b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.cart-item-subtitle {
    font-size: 13px;
    color: #8c8c9a;
    margin-bottom: 15px;
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-old-price {
    font-size: 14px;
    color: #5b5b66;
    text-decoration: line-through;
    font-weight: 600;
}

.cart-item-new-price {
    font-size: 18px;
    color: #fff;
    font-weight: 800;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.cart-qty-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 5px 10px;
    gap: 15px;
}

.cart-qty-btn {
    background: transparent;
    border: none;
    color: #8c8c9a;
    font-size: 16px;
    cursor: pointer;
}
.cart-qty-btn:hover { color: #fff; }
.cart-qty-val { font-size: 14px; font-weight: 700; color: #fff; }

.cart-action-icons {
    display: flex;
    gap: 15px;
    color: #8c8c9a;
}
.cart-action-icons i {
    cursor: pointer;
    transition: color 0.2s;
}
.cart-action-icons i:hover { color: #fff; }
.cart-action-icons .fa-trash:hover { color: #ff4444; }

/* Боковая панель корзины */
.cart-summary-box {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 15px;
}

.cart-summary-box h3 {
    font-size: 18px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.summary-row.discount {
    color: #e82a5b;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.delivery-text {
    font-size: 11px;
    color: #5b5b66;
    margin-bottom: 25px;
}

.btn-checkout {
    background: #e82a5b;
    color: #fff;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-checkout:hover {
    background: #d11f4d;
}

.cart-bonus-box {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 25px;
}

.cart-bonus-box h4 {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

.bonus-amount {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.m-icon {
    background: #e82a5b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: 900;
    font-size: 14px;
}

.cart-bonus-box p {
    font-size: 11px;
    color: #8c8c9a;
}
.cart-bonus-box p a {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .nav-left, .nav-right { width: auto; }
    .hero-title { font-size: 52px; }
    .store-main-grid { grid-template-columns: 1fr 340px; }
}

@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .payments-col {
        grid-column: span 3;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .project-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .store-categories { grid-template-columns: repeat(2, 1fr); }

    .top-navbar { padding: 15px 20px; }
    .content-centered { padding: 0 20px; }
    
    .desktop-socials { display: none; }
    .mobile-menu-btn { display: block; margin-left: 15px; }
    
    .nav-center {
        position: fixed;
        top: 79px; 
        left: -100%;
        width: 100%;
        height: calc(100vh - 79px);
        background-color: rgba(12, 12, 15, 0.98); 
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        transition: left 0.3s ease;
        z-index: 99;
        overflow-y: auto;
    }
    
    .nav-center.active { left: 0; }
    
    .main-menu { flex-direction: column; width: 100%; max-width: 400px; gap: 10px; }
    .menu-item { width: 100%; font-size: 18px; padding: 18px; border-radius: 14px; justify-content: flex-start; }
    .menu-item .icon { margin-right: 15px; font-size: 20px; width: 24px; text-align: center; }
    
    .mobile-social-links { display: flex; justify-content: center; gap: 30px; margin-top: 30px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }
    .mobile-social-links a { color: #5b5b66; font-size: 28px; transition: color 0.2s; }
    .mobile-social-links a:hover { color: #ffffff; }

    .store-main-grid, .cart-main-grid { grid-template-columns: 1fr; }
    .store-sidebar { position: static; margin-top: 30px; }
    
    .store-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .store-search-wrapper { max-width: 100%; }
    .store-categories-nav {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .top-navbar.modal-open { padding-right: calc(20px + var(--scrollbar-width, 0px)); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 42px; }
    
    .hero-buttons { 
        flex-direction: column; 
        align-items: stretch; 
        width: 100%; 
        max-width: 320px; 
        margin: 0 auto; 
    }
    
    .steam-wrapper { width: 100%; }
    .steam-wrapper .btn-dark { width: 100%; }
    
    .mode-hero { height: auto; min-height: 550px; padding: 60px 0 80px 0; }

    .news-slider-wrapper {
        margin-left: -20px;
        margin-right: -20px;
    }
    .news-slider {
        padding: 10px 20px 30px 20px;
    }
    .news-card {
        min-width: 320px;
        max-width: 320px;
    }
    .news-modal-body {
        padding: 30px 20px;
    }
    .news-modal-title {
        font-size: 24px;
    }
    .news-modal-header {
        height: 200px;
    }
    
    .auth-box { padding: 40px 30px; }
    
    .cookie-banner {
        bottom: 15px;
        left: 15px;
        right: 15px;
        max-width: none;
    }

    .notification-left {
        left: 15px;
        right: 15px;
    }

    .coin-exchange-block {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        text-align: center;
    }
    .exchange-center {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    .exchange-arrow { transform: rotate(90deg); }

    .terms-page { padding: 30px 20px; }
    .terms-page h1 { font-size: 24px; }
    .terms-page h2 { font-size: 18px; }

    /* Профиль */
    .profile-body { flex-direction: column; }
    .profile-sidebar { 
        width: 100%; 
    }
    .profile-content { padding: 20px; }
    .profile-info-grid { grid-template-columns: 1fr; }
    .profile-danger-zone { flex-direction: column; gap: 15px; text-align: center; }
    
    .new-prof-stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        padding: 0 20px;
    }
    .new-prof-stats-row + .new-prof-stats-row { margin-top: 30px; }
    
    .new-prof-stat-divider { display: none; }
    .new-prof-stat-item { width: 100%; }
    .new-prof-stat-item .stat-val { font-size: 22px; }

    .topup-modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .footer-logo {
        justify-content: center;
    }
    .payments-col {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .project-stats-grid { grid-template-columns: 1fr; }

    .store-categories { grid-template-columns: 1fr; }
    .store-items-grid { grid-template-columns: 1fr; }
    
    .sidebar-online-label { display: none; }
    .sidebar-online { height: auto; }
    .sidebar-online-value { font-size: 16px; margin-top: 2px; }
    
    .top-navbar { padding: 10px 15px; }
    .content-centered { margin: 20px auto; padding: 0 15px; }
    
    .steam-login-btn span { display: none; } 
    .steam-login-btn { padding: 10px 14px; }
    
    .hero-title { font-size: 32px; }
    .hero-short-desc { font-size: 14px; }
    .hero-scroll-indicator { font-size: 10px; padding: 10px 16px; text-align: center; line-height: 1.4; }
    
    .stat-item { padding: 20px; }
    .stat-icon { min-width: 50px; height: 50px; font-size: 22px; }
    .stat-item .value { font-size: 22px; }

    .auth-box { padding: 30px 20px; border-radius: 16px; }
    .auth-header h2 { font-size: 24px; }
    
    .user-name, .user-role { display: none; }
    
    .cookie-buttons { flex-direction: column; }

    .topup-methods-grid { grid-template-columns: 1fr; }
    
    .top-navbar.modal-open { padding-right: calc(15px + var(--scrollbar-width, 0px)); }

    .profile-avatar-center { width: 100px; height: 100px; margin-top: -50px; padding: 6px; }
    .prof-nick-center { font-size: 26px; }
    .new-prof-stat-item .stat-val { font-size: 20px; }

    .cart-item-card { flex-direction: column; text-align: center; align-items: center; }
    .cart-item-image-box { margin-right: 0; margin-bottom: 15px; width: 150px; height: 150px; }
    .cart-item-controls { align-items: center; }
}