﻿:root {
    --page-padding-x: clamp(20px, 6vw, 8%); /* боковые отступы от края окна */
    --page-max-width: 2300px; /* предел ширины контента */
}


/* Общие сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #0a0a0a; /* тёмный фон на весь html */
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a; /* тёмный фон body, чтобы не было белых полос */
    min-height: 100vh;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- ШАПКА (HEADER) --- */
header {
    position: fixed;
    top: clamp(10px, 1.5vh, 20px);
    left: clamp(10px, 2vw, 30px);
    right: clamp(10px, 2vw, 30px);
    height: clamp(60px, 8vh, 90px);
    padding: 0 clamp(15px, 3vw, 40px);
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
    /* Убираем всё про background-image и blend-mode */
}

    /* Просвечивающий слой с картинкой menu.jpeg */
    header::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('../images/menu.jpeg');
        background-size: cover;
        background-position: center;
        opacity: 0.8; /* ← вот тут прозрачность картинки: 0 = невидима, 1 = полностью видна */
        z-index: -1; /* под контентом шапки, но над баннером */
        border-radius: inherit;
    }

    /* Дополнительный слой затемнения, чтобы текст читался */
    header::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3); /* ← сила затемнения фона */
        z-index: -1;
        border-radius: inherit;
    }

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

    .logo img {
        height: 100%; /* высота шапки */
        width: auto;
        max-width: 100%;
        display: block;
    }


/* ============================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА В ШАПКЕ
   ============================================ */

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: clamp(10px, 1.5vw, 20px);
    margin-right: auto; /* отталкивает nav к правому краю */
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    color: #aaa;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    .lang-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .lang-btn.active {
        background: #f39c12;
        color: #fff;
    }

.lang-sep {
    color: #555;
    font-size: 0.75rem;
    user-select: none;
}


/* ============================================
   ВЫПАДАЮЩИЕ МЕНЮ В ШАПКЕ
   ============================================ */

/* Родитель дропдауна — relative, чтобы меню позиционировалось относительно него */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Само выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); /* отступ от родителя */
    left: 0;
    min-width: 250px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 1100;
}

/* Показ по ховеру на десктопе */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Пункты меню */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #ddd;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

    .dropdown-menu a:hover {
        background: rgba(243, 156, 18, 0.15);
        color: #f39c12;
        padding-left: 25px; /* лёгкий сдвиг вправо при ховере */
    }

/* Меню, выровненное по правому краю (для дропдауна пользователя) */
.dropdown-menu-right {
    left: auto;
    right: 0;
}

/* ============================================
   ПАНЕЛЬ АВТОРИЗОВАННОГО ПОЛЬЗОВАТЕЛЯ
   ============================================ */

.user-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

    .user-name:hover {
        background: rgba(243, 156, 18, 0.15);
        color: #f39c12;
    }

.user-icon {
    font-size: 1rem;
}

/* Баланс (баллы) */
.user-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.35);
}

    .user-balance:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(243, 156, 18, 0.5);
    }

.coin {
    font-size: 1rem;
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */

@media (max-width: 768px) {
    /* На мобилке меню скрыто, поэтому дропдауны тоже не нужны */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* при желании можно сделать аккордеон */
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 15px;
    }
}

nav > ul {
    list-style: none;
    display: flex;
    gap: clamp(15px, 2vw, 30px);
    align-items: center;
}

nav a {
    font-weight: 600;
    transition: color 0.3s;
}

    nav a:hover {
        color: #f39c12; /* Оранжевый акцент */
    }

/* Кнопка Вход/Регистрация */
.btn-login {
    background-color: #f39c12;
    padding: 8px 20px;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

    .btn-login:hover {
        background-color: #e67e22;
    }

/* --- 1 УРОВЕНЬ: БАННЕР --- */
.hero {
    min-height: 80vh;
    background-image: url('../images/FM.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 40px; /* ← верхний отступ под шапку */
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный квадрат */
    padding: 50px;
    border-radius: 15px;
    color: #fff;
    max-width: 800px;
    backdrop-filter: blur(5px);
}

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1.2rem;
        color: #ddd;
    }

/* ============================================
   НИЖНЯЯ ПАНЕЛЬ БАННЕРА (hero-info-bar)
   ============================================ */

.hero {
    position: relative; /* нужно для абсолютного позиционирования панели */
    /* ...остальные стили .hero оставь как есть */
}

.hero-info-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - clamp(20px, 4vw, 60px)); /* небольшие боковые отступы */ /*можно в процентах*/
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0; /* скруглены только верхние углы */
    border: 1px solid rgba(243, 156, 18, 0.25);
    border-bottom: none;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    padding: clamp(10px, 1.5vw, 18px) clamp(15px, 2vw, 30px);
    gap: clamp(15px, 3vw, 40px);
    color: #fff;
    z-index: 10;
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 clamp(10px, 1.5vw, 20px);
    position: relative;
}

    /* Разделители между элементами */
    .hero-info-item + .hero-info-item::before {
        content: '';
        position: absolute;
        left: calc(-1 * clamp(7px, 1.5vw, 20px));
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 60%;
        background: rgba(243, 156, 18, 0.3);
    }

/* Иконка (эмодзи или картинка) */
.info-icon {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    line-height: 1;
}

/* Блок "label + value" */
.info-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.info-label {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 700;
    color: #f39c12;
    white-space: nowrap;
}

/* ============================================
   КНОПКА STEAM — ПОДКЛЮЧИТЬСЯ
   ============================================ */

.steam-connect {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1b2838, #2a475e);
    color: #fff;
    border: 1px solid #66c0f4;
    border-radius: 10px;
    padding: clamp(8px, 1vw, 12px) clamp(14px, 2vw, 22px);
    font-family: inherit;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

    .steam-connect:hover {
        background: linear-gradient(135deg, #2a475e, #1b2838);
        box-shadow: 0 5px 20px rgba(102, 192, 244, 0.4);
        transform: translateY(-2px);
    }

    .steam-connect:active {
        transform: translateY(0);
    }

.steam-icon {
    width: clamp(72px, 2vw, 86px);
    height: auto;
}

.steam-label {
    white-space: nowrap;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero-info-bar {
        position: static; /* на мобилке панель уезжает под баннер */
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        margin-top: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-info-item + .hero-info-item::before {
        display: none;
    }

    .hero-info-item {
        padding: 8px 0;
        border-top: 1px solid rgba(243, 156, 18, 0.2);
    }

        .hero-info-item:first-child {
            border-top: none;
        }
}



/* --- 2 УРОВЕНЬ: КОНТЕНТ (Маин) --- */
.main-content {
    background-image: url('../images/Back2.jpeg');
    background-size: cover;
    background-attachment: fixed;
    padding: clamp(40px, 6vw, 80px) var(--page-padding-x);
    position: relative;
}

    /* Чёрная разделительная линия сверху */
    .main-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 25px;
        background: #000;
        z-index: 5;
        pointer-events: none;
    }

/* ============================================
   СЕТКА КАРТОЧЕК В MAIN
   ============================================ */

.main-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(15px, 2vw, 25px);
    position: relative;
    z-index: 1;
    max-width: var(--page-max-width);
    margin: clamp(20px, 3vw, 40px) auto 0; /* центрируем внутри main-content */
}

/* ---------- Карточка ---------- */
.main-card {
    position: relative;
    display: block;
    padding: clamp(20px, 2vw, 28px);
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(243, 156, 18, 0.25);
    border-radius: 14px;
    color: #ddd;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
    /* Иконка и текст: текст начинается справа от иконки */
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "desc desc";
    column-gap: 14px;
    row-gap: 10px;
    align-items: center;
    min-height: 160px;
}

    .main-card:hover {
        transform: translateY(-5px);
        border-color: #f39c12;
        box-shadow: 0 10px 30px rgba(243, 156, 18, 0.25);
    }

/* Иконка */
.main-card-icon {
    grid-area: icon;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.35);
    flex-shrink: 0;
}

/* Заголовок — справа от иконки */
.main-card-title {
    grid-area: title;
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

/* Описание — на всю ширину карточки */
.main-card-desc {
    grid-area: desc;
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Широкие карточки (вторая линия) ---------- */
.main-card-wide {
    grid-column: span 2; /* занимает 2 колонки из 4 → получается 2 блока в ряд */
}

/* ============================================
   МОНИТОРИНГ СЕРВЕРА
   ============================================ */

/* Внешняя секция — фон + рамка, без боковых padding */
.monitoring {
    position: relative;
    color: #fff;
    margin: clamp(20px, 3vw, 40px) auto 0;
    max-width: var(--page-max-width); /* ← как у .main-grid */
    width: 100%;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(243, 156, 18, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    isolation: isolate;
}

    /* Слой 1: фоновая картинка monitor.jpeg */
    .monitoring::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('../images/monitor2.jpeg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        opacity: 0.45;
        z-index: 0;
        pointer-events: none;
    }

    /* Слой 2: затемнение поверх картинки */
    .monitoring::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
        pointer-events: none;
    }

/* Внутренний контейнер с теми же max-width и margin, что у .main-grid */
.monitoring-inner {
    position: relative;
    z-index: 2;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: clamp(25px, 3vw, 40px) clamp(15px, 2vw, 25px); /* ← уменьшили боковой padding */
}

.monitoring-title {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: clamp(20px, 3vw, 35px);
    color: #fff;
    font-weight: 700;
}

/* Сетка: карта | игроки | боковая колонка */
.monitoring-grid {
    display: grid;
    grid-template-columns: 540px 1fr 480px;
    gap: 20px;
}

@media (max-width: 1100px) {
    .monitoring-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-map {
        grid-column: 1 / -1; /* карта занимает всю ширину */
    }

    .map-preview {
        aspect-ratio: 21 / 9; /* если хочешь широкую полоску */
    }

    .card-players {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (max-width: 700px) {
    .monitoring-grid {
        grid-template-columns: 1fr;
    }
}

/* Общий стиль карточек */
.monitoring-card {
    background: linear-gradient(145deg, #1a1a1a, #151515);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   ЛЕВАЯ КОЛОНКА — КАРТА
   ============================================ */
.map-preview {
    width: 100%;
    aspect-ratio: 16 / 9; /* было 16 / 10 */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #222;
}

    .map-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* заполняет блок, обрезая лишнее */
        display: block;
    }

.map-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.map-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.info-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f39c12;
    white-space: nowrap;
}

.info-sub {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 3px;
    line-height: 1.3;
}

/* ============================================
   ЦЕНТР — ИГРОКИ
   ============================================ */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ddd;
}

.card-count {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f39c12;
}

.card-sub {
    font-size: 0.8rem;
    color: #888;
}

/* Таблица игроков */
.players-table {
    font-size: 0.9rem;
}

.players-header,
.players-row {
    display: grid;
    grid-template-columns: 30px 2fr 1fr 0.7fr 0.7fr 0.5fr;
    gap: 6px; /* было 10px — уменьшили */
    padding: 8px 6px;
    align-items: center;
}

.players-header {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.players-row {
    border-bottom: 1px solid #1f1f1f;
    color: #ddd;
    transition: background 0.2s;
}

    .players-row:hover {
        background: rgba(243, 156, 18, 0.06);
    }

    .players-row:last-child {
        border-bottom: none;
    }

    .players-row .rank {
        color: #f39c12;
        font-weight: 700;
    }

    .players-row .nick {
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .players-row .race {
        color: #aaa;
        font-size: 0.85rem;
    }

    .players-row .ping {
        font-weight: 600;
    }

.ping-good {
    color: #4caf50;
}

.ping-mid {
    color: #f39c12;
}

.ping-bad {
    color: #e74c3c;
}

/* ============================================
   ПРАВАЯ КОЛОНКА — БАЛАНС + ПОСЛЕДНИЙ МАТЧ
   ============================================ */
.monitoring-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.team-name {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.team-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.team-ct .team-score {
    color: #5dade2;
}

.team-t .team-score {
    color: #f39c12;
}

.team-divider {
    font-size: 1.5rem;
    color: #555;
    font-weight: 700;
}

.balance-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #222;
}

.balance-bar-ct {
    background: #5dade2;
    transition: width 0.4s;
}

.balance-bar-t {
    background: #f39c12;
    transition: width 0.4s;
}

/* ============================================
   ЛУЧШИЙ ИГРОК МАТЧА
   ============================================ */
.bestplayer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.bestplayer-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
}

.bestplayer-info {
    min-width: 0;
    flex: 1;
}

.bestplayer-nick {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bestplayer-race {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
}

.bestplayer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f39c12;
}


/* --- 3 УРОВЕНЬ: КОНТАКТЫ (FOOTER) --- */
/* ============================================
   ФУТЕР — КОНТАКТЫ (4 колонки с разделителями)
   ============================================ */

.contacts {
    background-image: url('../images/Back.jpeg');
    background-size: cover;
    background-position: center;
    padding: clamp(40px, 5vw, 60px) var(--page-padding-x);
    color: #fff;
    position: relative;
}

    .contacts::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        z-index: 1;
        pointer-events: none;
    }

.contacts-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 40px);
    max-width: var(--page-max-width);
    margin: 0 auto;
}

/* ---------- Колонки ---------- */
.contacts-col {
    flex: 1 1 200px;
    min-width: 0;
}

.contacts-brand {
    flex: 1.3 1 240px;
}

    .contacts-brand h3 {
        font-size: clamp(1.1rem, 1.5vw, 1.35rem);
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 14px;
        line-height: 1.25;
    }

    .contacts-brand p {
        font-size: 0.9rem;
        color: #aaa;
        line-height: 1.6;
    }

.contacts-col h4 {
    font-size: 0.85rem;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ---------- Вертикальный разделитель ---------- */
.contacts-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

/* ---------- Списки ссылок ---------- */
.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .contacts-list li {
        margin-bottom: 10px;
        font-size: 0.92rem;
        color: #ccc;
    }

    .contacts-list a {
        color: #ccc;
        transition: color 0.2s, padding-left 0.2s;
        display: inline-block;
    }

        .contacts-list a:hover {
            color: #f39c12;
            padding-left: 4px;
        }

/* ---------- Соцсети (иконки) ---------- */
.contacts-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ccc;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}

    .social-link svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .social-link:hover {
        transform: translateY(-3px);
        color: #fff;
    }

    /* Индивидуальные цвета при наведении */
    .social-link[aria-label="Telegram"]:hover {
        background: #229ED9;
        border-color: #229ED9;
    }

    .social-link[aria-label="ВКонтакте"]:hover {
        background: #0077FF;
        border-color: #0077FF;
    }

    .social-link[aria-label="Discord"]:hover {
        background: #5865F2;
        border-color: #5865F2;
    }

/* ---------- Колонка с IP и кнопкой ---------- */
.contacts-connect {
    flex: 1.1 1 220px;
}

.server-ip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.server-ip-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-ip-value {
    font-size: 1rem;
    font-weight: 700;
    color: #f39c12;
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-connect-game {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.35);
    width: 100%;
    justify-content: center;
}

    .btn-connect-game:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5);
        background: linear-gradient(135deg, #e67e22, #d35400);
    }

    .btn-connect-game:active {
        transform: translateY(0);
    }

.btn-connect-icon {
    font-size: 0.9rem;
}

/* ---------- Адаптив футера ---------- */
@media (max-width: 900px) {
    .contacts-divider {
        display: none; /* убираем вертикальные линии */
    }

    .contacts-container {
        flex-direction: column;
        gap: 25px;
    }

    .contacts-col,
    .contacts-brand,
    .contacts-connect {
        flex: 1 1 auto;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

        .contacts-col:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    
    .hero-content h1 {
        font-size: 2rem;
    }

    nav ul {
        display: none; /* В будущем здесь можно сделать бургер-меню */
    }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ВХОДА/РЕГИСТРАЦИИ
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal-window {
    background: #1e1e1e;
    color: #fff;
    width: 100%;
    max-width: 420px;
    padding: 35px 30px 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: #f39c12;
    }

/* Табы */
.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    font-family: inherit;
}

    .tab-btn:hover {
        color: #ccc;
    }

    .tab-btn.active {
        color: #f39c12;
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #f39c12;
        }

/* Формы */
.modal-form {
    display: none;
    flex-direction: column;
    gap: 15px;
}

    .modal-form.active {
        display: flex;
        animation: fadeIn 0.3s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-form h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
}

.modal-form input {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

    .modal-form input::placeholder {
        color: #777;
    }

    .modal-form input:focus {
        outline: none;
        border-color: #f39c12;
        background: #2f2f2f;
    }

.btn-submit {
    margin-top: 10px;
    padding: 13px;
    background: #f39c12;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

    .btn-submit:hover {
        background: #e67e22;
    }

    .btn-submit:active {
        transform: scale(0.98);
    }

.modal-hint {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

    .modal-hint a {
        color: #f39c12;
        font-weight: 600;
    }

        .modal-hint a:hover {
            text-decoration: underline;
        }

/* --- Адаптив для карточек Main --- */

@media (max-width: 1100px) {
    .main-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }

    .main-card-wide {
        grid-column: span 1; /* широкие становятся обычными */
    }
}

@media (max-width: 600px) {
    .main-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобилке */
    }
}

/* ============================================
   ПОСЛЕДНИЕ НОВОСТИ (карусель)
   ============================================ */

.news-section {
    max-width: var(--page-max-width);
    margin: clamp(40px, 5vw, 70px) auto 0; /* отступ от карточек Main */
    position: relative;
    z-index: 1;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(15px, 2vw, 25px);
    gap: 15px;
}

.news-title {
    font-size: clamp(1.3rem, 1.9vw, 1.8rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin: 0;
}

.news-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.news-arrow {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.85);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    font-family: inherit;
    padding-bottom: 4px; /* чтобы «‹» и «›» визуально центрировались */
}

    .news-arrow:hover {
        background: #f39c12;
        color: #000;
        transform: scale(1.08);
        box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    }

    .news-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

        .news-arrow:disabled:hover {
            background: rgba(20, 20, 20, 0.85);
            color: #f39c12;
        }

/* Обёртка, внутри которой скроллится лента */
.news-track-wrapper {
    width: 100%;
    min-width: 0; /* важно для flex/grid-детей */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 156, 18, 0.5) rgba(0, 0, 0, 0.2);
}

    .news-track-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .news-track-wrapper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .news-track-wrapper::-webkit-scrollbar-thumb {
        background: rgba(243, 156, 18, 0.5);
        border-radius: 3px;
    }

        .news-track-wrapper::-webkit-scrollbar-thumb:hover {
            background: #f39c12;
        }

/* Сама лента с карточками */
.news-track {
    display: flex;
    flex-wrap: nowrap; /* ← запрет переноса */
    gap: clamp(15px, 2vw, 20px);
    padding: 5px 2px;
    width: max-content; /* ← ширина = сумме карточек, чтобы overflow работал */
}

/* ---------- Карточка новости ---------- */
.news-card {
    flex: 0 0 280px; /* фиксированная ширина */
    width: 280px;
    height: 230px; /* фиксированная высота → все одинаковые */
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(243, 156, 18, 0.25);
    border-radius: 14px;
    color: #ddd;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    scroll-snap-align: start;
}

    .news-card:hover {
        transform: translateY(-5px);
        border-color: #f39c12;
        box-shadow: 0 10px 30px rgba(243, 156, 18, 0.25);
    }

.news-card-date {
    font-size: 0.75rem;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ограничение в 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-text {
    font-size: 0.88rem;
    color: #b0b0b0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* ограничение в 5 строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО НОВОСТИ
   ============================================ */

.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .news-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.news-modal-window {
    background: #1e1e1e;
    color: #ddd;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px clamp(20px, 4vw, 45px);
    border-radius: 15px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.news-modal-overlay.active .news-modal-window {
    transform: translateY(0);
}

.news-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

    .news-modal-close:hover {
        color: #f39c12;
    }

.news-modal-date {
    font-size: 0.8rem;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-modal-title {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-modal-body {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #ccc;
}

    .news-modal-body p {
        margin-bottom: 14px;
    }

        .news-modal-body p:last-child {
            margin-bottom: 0;
        }

/* Мобильная адаптация */
@media (max-width: 700px) {
    .news-card {
        flex: 0 0 240px;
        width: 240px;
        height: 210px;
    }

    .news-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
}
/* ============================================
   СТРАНИЦА МАГАЗИНА
   ============================================ */

.shop-page {
    background-image: url('../images/Back2.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    /* Верхний отступ под фиксированную шапку + обычные боковые */
    padding: clamp(120px, 14vh, 160px) var(--page-padding-x) clamp(40px, 6vw, 80px);
    min-height: 80vh;
}

    /* Затемнение фона, чтобы карточки читались */
    .shop-page::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1;
        pointer-events: none;
    }

    .shop-page > * {
        position: relative;
        z-index: 2;
    }

/* ---------- Сетка магазина ---------- */
.shop-grid {
    display: grid;
    gap: clamp(20px, 2.5vw, 30px);
    max-width: var(--page-max-width);
    margin: 0 auto;
}

.shop-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: clamp(20px, 2.5vw, 30px);
}

.shop-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ---------- Карточка магазина ---------- */
.shop-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center;
    padding: clamp(20px, 2.5vw, 32px);
    background: linear-gradient(160deg, #0d1b3a 0%, #0a1428 100%);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 16px;
    color: #ddd;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    min-height: auto;   /* ← убираем min-height, чтобы не центрировало по пустоте */
}

    .shop-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top, rgba(93, 173, 226, 0.12), transparent 60%);
        pointer-events: none;
    }

    .shop-card:hover {
        transform: translateY(-6px);
        border-color: #f39c12;
        box-shadow: 0 15px 40px rgba(243, 156, 18, 0.25);
    }

/* Изображение карточки */
.shop-card-image {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

    .shop-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 12px;
        filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.5));
    }

/* Заголовок и описание */
.shop-card-title {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.shop-card-desc {
    font-size: 0.92rem;
    color: #b0b0b0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ---------- Блок покупки баллов ---------- */
.shop-card-points {
    justify-content: flex-start;
}

.shop-points-rate {
    margin-top: auto;
    padding-top: 15px;
    position: relative;
    z-index: 1;
}

.rate-item {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 20px;
    font-weight: 700;
    color: #f39c12;
    font-size: 1rem;
}

/* ---------- Блок бонусов ---------- */
.shop-card-bonus {
    align-items: flex-start;
    text-align: left;
    cursor: default;
}

    .shop-card-bonus:hover {
        transform: none; /* не поднимаем — это не ссылка */
    }

    .shop-card-bonus .shop-card-title {
        text-align: center;
        width: 100%;
        font-size: clamp(1rem, 1.3vw, 1.15rem);
        letter-spacing: 1px;
    }

.bonus-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

    .bonus-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        margin-bottom: 6px;
        background: rgba(93, 173, 226, 0.06);
        border-left: 3px solid #5dade2;
        border-radius: 6px;
        font-size: 0.9rem;
        color: #ccc;
    }

        .bonus-list li span:first-child {
            font-weight: 700;
            color: #fff;
        }

        .bonus-list li span:last-child {
            color: #f39c12;
            font-weight: 700;
        }

/* ---------- Адаптив магазина ---------- */
@media (max-width: 900px) {
    .shop-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .shop-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .shop-grid-3 {
        grid-template-columns: 1fr;
    }
}

.shop-subpage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.shop-subpage-inner {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.shop-subpage-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 700;
}

.shop-subpage-desc {
    font-size: 1.05rem;
    color: #aaa;
    line-height: 1.6;
}

.buy-points-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

    .buy-points-wrapper h1 {
        text-align: center;
        margin-bottom: clamp(25px, 3vw, 40px);
    }

/* ============================================
   ОБМЕННИК БАЛЛОВ (горизонтальный, усиленный)
   ============================================ */

.points-exchanger {
    width: 100%;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    display: block;
}

    .points-exchanger .exchanger-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 10px !important;
        width: 100%;
    }

    .points-exchanger .exchanger-field {
        flex: 1 1 0 !important;
        min-width: 0;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px;
    }

    .points-exchanger .exchanger-label {
        font-size: 0.75rem;
        color: #aaa;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        text-align: left;
    }

    .points-exchanger .exchanger-input-wrap {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(93, 173, 226, 0.25);
        border-radius: 10px;
        transition: border-color 0.2s, box-shadow 0.2s;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

        .points-exchanger .exchanger-input-wrap:focus-within {
            border-color: #5dade2;
            box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.15);
        }

    .points-exchanger .exchanger-output {
        background: rgba(0, 0, 0, 0.25);
        border-color: rgba(243, 156, 18, 0.3);
    }

    .points-exchanger .exchanger-coin {
        font-size: 1rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .points-exchanger .exchanger-input {
        flex: 1 1 auto;
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;
        width: 100%;
        min-width: 0;
        padding: 0;
        text-align: right;
        -moz-appearance: textfield;
    }

        .points-exchanger .exchanger-input::-webkit-outer-spin-button,
        .points-exchanger .exchanger-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

    .points-exchanger .exchanger-value {
        flex: 1 1 auto;
        color: #f39c12;
        font-size: 1rem;
        font-weight: 700;
        text-align: right;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .points-exchanger .exchanger-arrow {
        font-size: 1.3rem;
        color: #5dade2;
        font-weight: 700;
        padding-bottom: 12px;
        flex-shrink: 0;
        line-height: 1;
        display: flex;
        align-items: center;
    }

    .points-exchanger .btn-buy-points {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 11px 20px;
        background: linear-gradient(135deg, #2196f3, #1976d2);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
        box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
        white-space: nowrap;
        flex-shrink: 0;
        align-self: flex-end;
        height: 44px;
    }

        .points-exchanger .btn-buy-points:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
            background: linear-gradient(135deg, #1976d2, #0d47a1);
        }

        .points-exchanger .btn-buy-points:active {
            transform: translateY(0);
        }

    .points-exchanger .btn-buy-icon {
        font-size: 0.95rem;
        line-height: 1;
    }

    .points-exchanger .exchanger-rate {
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin-top: 14px;
        font-size: 0.9rem;
        color: #ccc;
        flex-wrap: wrap;
    }

        .points-exchanger .exchanger-rate > span:first-child,
        .points-exchanger .exchanger-rate > span:nth-child(3) {
            color: #fff;
            font-weight: 700;
        }

    .points-exchanger .rate-eq {
        color: #666;
        font-weight: 400;
    }

    .points-exchanger .exchanger-bonus {
        color: #5dade2;
        font-weight: 700;
        margin-left: 6px;
    }

@media (max-width: 700px) {
    .points-exchanger .exchanger-row {
        flex-wrap: wrap !important;
    }

    .points-exchanger .exchanger-field {
        flex: 1 1 calc(50% - 20px) !important;
    }

    .points-exchanger .exchanger-arrow {
        display: none;
    }

    .points-exchanger .btn-buy-points {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 6px;
    }
}

.btn-back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 12px 24px;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 10px;
    color: #f39c12;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

    .btn-back-to-shop:hover {
        background: #f39c12;
        color: #fff;
        transform: translateX(-3px);
    }

/* ============================================
   СТРАНИЦА "РАЗНОЕ"
   ============================================ */

.misc-page {
    padding-top: clamp(120px, 14vh, 160px);
    padding-bottom: clamp(40px, 5vw, 70px);
    min-height: 100vh;
}

/* ---------- Фильтр под шапкой ---------- */
.misc-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: var(--page-max-width);
    margin: 0 auto clamp(25px, 3vw, 40px);
    position: relative;
    z-index: 2;
}

.misc-filter-btn {
    padding: 10px 22px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(93, 173, 226, 0.3);
    border-radius: 30px;
    color: #ccc;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

    .misc-filter-btn:hover {
        color: #fff;
        border-color: #5dade2;
        transform: translateY(-2px);
    }

    .misc-filter-btn.active {
        background: linear-gradient(135deg, #2196f3, #1976d2);
        color: #fff;
        border-color: #2196f3;
        box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    }

/* ---------- Сетка товаров ---------- */
.misc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: clamp(15px, 2vw, 25px);
    max-width: var(--page-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ---------- Карточка товара ---------- */
.misc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 25px);
    background: linear-gradient(160deg, #0d1b3a 0%, #0a1428 100%);
    border: 1px solid rgba(93, 173, 226, 0.3);
    border-radius: 16px;
    color: #ddd;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

    .misc-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top, rgba(93, 173, 226, 0.12), transparent 60%);
        pointer-events: none;
    }

    .misc-card:hover {
        transform: translateY(-6px);
        border-color: #5dade2;
        box-shadow: 0 15px 40px rgba(93, 173, 226, 0.25);
    }

/* Картинка сверху карточки */
.misc-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

    .misc-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.5));
        border-radius: 10px;
    }

/* Заголовок и подзаголовок */
.misc-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.misc-card-sub {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Низ карточки — цена + кнопка */
.misc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.misc-card-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    color: #f39c12;
    font-size: 1.1rem;
}

.misc-price-coin {
    font-size: 0.95rem;
}

.misc-card-buy {
    padding: 9px 18px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
    white-space: nowrap;
}

    .misc-card-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(33, 150, 243, 0.5);
        background: linear-gradient(135deg, #1976d2, #0d47a1);
    }

    .misc-card-buy:active {
        transform: translateY(0);
    }

/* Заглушка "нет товаров" */
.misc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1rem;
}

/* ============================================
   ВЫРАВНИВАНИЕ СЕТКИ "РАЗНОЕ" И КНОПКИ
   ============================================ */

.misc-container {
    max-width: var(--page-max-width); /* Та же ширина, что и у других блоков */
    margin: 0 auto; /* Центрируем по горизонтали */
    width: 100%;
    position: relative;
    z-index: 2; /* Чтобы быть поверх фона */
}

    /* Убедимся, что кнопка идет по левому краю сетки */
    .misc-container .btn-back-to-shop {
        margin-top: 25px;
        margin-left: 0;
    }


/* Мобильная адаптация */
@media (max-width: 700px) {
    .misc-filter {
        justify-content: center;
    }

    .misc-filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .misc-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* ============================================
   СТРАНИЦА "КЕЙСЫ"
   ============================================ */

.boxes-page {
    padding-top: clamp(120px, 14vh, 160px);
    padding-bottom: clamp(40px, 5vw, 70px);
    min-height: 100vh;
}

/* ---------- Сетка кейсов ---------- */
.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(15px, 2vw, 25px);
    max-width: var(--page-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ---------- Карточка кейса ---------- */
.box-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 25px);
    background: linear-gradient(160deg, #0d1b3a 0%, #0a1428 100%);
    border: 1px solid rgba(93, 173, 226, 0.3);
    border-radius: 16px;
    color: #ddd;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    cursor: pointer;
}

    .box-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top, rgba(93, 173, 226, 0.12), transparent 60%);
        pointer-events: none;
    }

    .box-card:hover {
        transform: translateY(-6px);
        border-color: #5dade2;
        box-shadow: 0 15px 40px rgba(93, 173, 226, 0.25);
    }

/* Картинка сверху */
.box-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

    .box-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.5));
        border-radius: 10px;
    }

/* Заголовок */
.box-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Низ карточки — цена + кнопка */
.box-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.box-card-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    color: #f39c12;
    font-size: 1.05rem;
}

.box-card-coin {
    font-size: 0.95rem;
}

.box-card-buy {
    padding: 9px 18px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
    white-space: nowrap;
}

    .box-card-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(33, 150, 243, 0.5);
        background: linear-gradient(135deg, #1976d2, #0d47a1);
    }

    .box-card-buy:active {
        transform: translateY(0);
    }

/* ============================================
   ВЫРАВНИВАНИЕ СЕТКИ КЕЙСОВ И КНОПКИ
   ============================================ */

.boxes-container {
    max-width: var(--page-max-width); /* Та же ширина, что и у других блоков */
    margin: 0 auto; /* Центрируем по горизонтали */
    width: 100%;
}

    /* Убедимся, что кнопка не прилипает к краям, а идет по левому краю сетки */
    .boxes-container .btn-back-to-shop {
        margin-top: 25px; /* Отступ от кейсов */
        margin-left: 0; /* Выравниваем по левому краю */
    }

/* ============================================
   МОДАЛЬНОЕ ОКНО КЕЙСА
   ============================================ */

.box-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2200;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .box-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.box-modal-window {
    background: linear-gradient(160deg, #0d1b3a 0%, #0a1428 100%);
    color: #ddd;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px clamp(20px, 4vw, 40px);
    border-radius: 18px;
    border: 1px solid rgba(93, 173, 226, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.box-modal-overlay.active .box-modal-window {
    transform: translateY(0);
}

.box-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

    .box-modal-close:hover {
        color: #f39c12;
    }

.box-modal-image {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .box-modal-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
        border-radius: 12px;
    }

.box-modal-title {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 18px;
}

.box-modal-desc {
    font-size: 0.95rem;
    color: #b8c4d4;
    line-height: 1.65;
    margin-bottom: 25px;
}

.box-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.box-modal-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    color: #f39c12;
    font-size: 1.4rem;
}

.box-modal-coin {
    font-size: 1.1rem;
}

.box-modal-buy {
    padding: 12px 28px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
}

    .box-modal-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
        background: linear-gradient(135deg, #1976d2, #0d47a1);
    }

    .box-modal-buy:active {
        transform: translateY(0);
    }

/* Мобильная адаптация */
@media (max-width: 700px) {
    .boxes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .box-modal-window {
        padding: 30px 20px;
    }
}


/* ============================================
   СПИСОК СКИНОВ В МОДАЛКЕ КЕЙСА (2 столбца)
   ============================================ */

.box-modal-skins {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
    margin-bottom: 25px;
}

.box-skins-col {
    display: flex;
    flex-direction: column;
}

.box-skin-item {
    font-size: 0.92rem;
    font-weight: 600;
    padding: 6px 0;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

    .box-skin-item:last-child {
        border-bottom: none;
    }

/* ---------- ЛЕВЫЙ СТОЛБЕЦ: голубой → фиолетовый ---------- */
.box-skins-left .box-skin-item {
    color: #5dade2;
}

    .box-skins-left .box-skin-item:nth-child(1) {
        color: #5dade2;
    }

    .box-skins-left .box-skin-item:nth-child(2) {
        color: #6daae6;
    }

    .box-skins-left .box-skin-item:nth-child(3) {
        color: #7db7ea;
    }

    .box-skins-left .box-skin-item:nth-child(4) {
        color: #8dc4ee;
    }

    .box-skins-left .box-skin-item:nth-child(5) {
        color: #9dc1f2;
    }

    .box-skins-left .box-skin-item:nth-child(6) {
        color: #adbef6;
    }

    .box-skins-left .box-skin-item:nth-child(7) {
        color: #bdbbfa;
    }

    .box-skins-left .box-skin-item:nth-child(8) {
        color: #c8b3f0;
    }

    .box-skins-left .box-skin-item:nth-child(9) {
        color: #c3a5e6;
    }

    .box-skins-left .box-skin-item:nth-child(10) {
        color: #be97dc;
    }

    .box-skins-left .box-skin-item:nth-child(11) {
        color: #b989d2;
    }

    .box-skins-left .box-skin-item:nth-child(12) {
        color: #b47bc8;
    }

    .box-skins-left .box-skin-item:nth-child(13) {
        color: #af6dbe;
    }

    .box-skins-left .box-skin-item:nth-child(14) {
        color: #aa5fb4;
    }

    .box-skins-left .box-skin-item:nth-child(15) {
        color: #a551aa;
    }

    .box-skins-left .box-skin-item:nth-child(16) {
        color: #a043a0;
    }

    .box-skins-left .box-skin-item:nth-child(17) {
        color: #9b3596;
    }

    .box-skins-left .box-skin-item:nth-child(18) {
        color: #96278c;
    }

/* ---------- ПРАВЫЙ СТОЛБЕЦ: малиновый → жёлтый ---------- */
.box-skins-right .box-skin-item {
    color: #e91e63;
}

    .box-skins-right .box-skin-item:nth-child(1) {
        color: #e91e63;
    }

    .box-skins-right .box-skin-item:nth-child(2) {
        color: #ec3752;
    }

    .box-skins-right .box-skin-item:nth-child(3) {
        color: #ef5041;
    }

    .box-skins-right .box-skin-item:nth-child(4) {
        color: #f26930;
    }

    .box-skins-right .box-skin-item:nth-child(5) {
        color: #f58220;
    }

    .box-skins-right .box-skin-item:nth-child(6) {
        color: #f89b0f;
    }

    .box-skins-right .box-skin-item:nth-child(7) {
        color: #fbb400;
    }

    .box-skins-right .box-skin-item:nth-child(8) {
        color: #fecd0f;
    }

    .box-skins-right .box-skin-item:nth-child(9) {
        color: #ffd83e;
    }

    .box-skins-right .box-skin-item:nth-child(10) {
        color: #ffe36d;
    }

    .box-skins-right .box-skin-item:nth-child(11) {
        color: #ffee9c;
    }

    .box-skins-right .box-skin-item:nth-child(12) {
        color: #faf1b6;
    }

    .box-skins-right .box-skin-item:nth-child(13) {
        color: #f5f3cf;
    }

    .box-skins-right .box-skin-item:nth-child(14) {
        color: #f0f5e8;
    }

    .box-skins-right .box-skin-item:nth-child(15) {
        color: #ebf7ff;
    }

    .box-skins-right .box-skin-item:nth-child(16) {
        color: #e6f9ff;
    }

/* Мобильная адаптация — один столбец */
@media (max-width: 600px) {
    .box-modal-skins {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .box-skins-right {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ============================================
   УНИВЕРСАЛЬНЫЕ КНОПКИ (используются на разных страницах)
   ============================================ */

/* Основная акцентная кнопка (оранжевая) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    white-space: nowrap;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* Второстепенная кнопка (контурная, оранжевая) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 10px;
    color: #f39c12;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
    white-space: nowrap;
}

    .btn-secondary:hover {
        background: #f39c12;
        color: #fff;
        border-color: #f39c12;
        transform: translateY(-2px);
    }

    .btn-secondary:active {
        transform: translateY(0);
    }

    .btn-secondary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

/* Опасная кнопка (красная) */
.btn-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

    .btn-danger:hover {
        background: #e74c3c;
        color: #fff;
        border-color: #e74c3c;
    }

/* Синяя акцентная (для сохранения/подтверждения) */
.btn-blue {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

    .btn-blue:hover {
        background: linear-gradient(135deg, #1976d2, #0d47a1);
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.6);
    }


/* ============================================
   ОШИБКИ В МОДАЛЬНОМ ОКНЕ ВХОДА/РЕГИСТРАЦИИ
   ============================================ */

.modal-form-error {
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 8px;
    color: #e74c3c;
    font-size: 0.88rem;
    line-height: 1.4;
}

.modal-form-error-list {
    list-style: none;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 8px;
    color: #e74c3c;
    font-size: 0.85rem;
    line-height: 1.5;
}

    .modal-form-error-list li {
        position: relative;
        padding-left: 15px;
        margin-bottom: 5px;
    }

        .modal-form-error-list li:last-child {
            margin-bottom: 0;
        }

        .modal-form-error-list li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: #e74c3c;
        }

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   АВАТАР В ШАПКЕ (кружок рядом с ником)
   ============================================ */

.user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

    .user-icon.has-avatar {
        border: 1px solid rgba(243, 156, 18, 0.5);
        box-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
    }


/* ============================================
   ДЕКОРАТИВНЫЕ УГОЛКИ (Warcraft 3 style)
   ============================================ */

/* Базовый класс, который можно добавлять к любому блоку */
.wc-corners {
    position: relative;
}

    .wc-corners::before,
    .wc-corners::after {
        content: '';
        position: absolute;
        width: 80px; /* ← размер уголка */
        height: 80px;
        background-image: url('../images/ui/corner.png');
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
        z-index: 10;
        opacity: 0.9;
    }

    /* Верхний левый */
    .wc-corners::before {
        top: -2px;
        left: -2px;
    }

    /* Нижний правый — поворот на 180° */
    .wc-corners::after {
        bottom: -2px;
        right: -2px;
        transform: rotate(180deg);
    }

/* Заглушка для списка игроков */
.players-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.5;
}

/* Убирает панель Яндекс Браузера при наведении на картинки */
img {
    pointer-events: none;
}

/* ============================================
   УНИВЕРСАЛЬНАЯ МОДАЛКА ПОДТВЕРЖДЕНИЯ
   ============================================ */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2500;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .confirm-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.confirm-window {
    background: linear-gradient(160deg, #0d1b3a 0%, #0a1428 100%);
    color: #ddd;
    width: 100%;
    max-width: 480px;
    padding: 30px clamp(20px, 4vw, 35px);
    border-radius: 18px;
    border: 1px solid rgba(93, 173, 226, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.confirm-overlay.active .confirm-window {
    transform: translateY(0);
}

.confirm-title {
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 15px;
    font-weight: 700;
}

.confirm-message {
    font-size: 0.95rem;
    color: #b8c4d4;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .confirm-message p {
        margin: 0 0 6px;
    }

        .confirm-message p:last-child {
            margin-bottom: 0;
        }

    .confirm-message strong {
        color: #f39c12;
        font-weight: 700;
    }

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 12px 26px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.15);
}

    .confirm-btn-cancel:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

.confirm-btn-ok {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

    .confirm-btn-ok:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6);
    }

    .confirm-btn-ok:active {
        transform: translateY(0);
    }

    /* Кнопка «опасного» действия — красная */
    .confirm-btn-ok.confirm-btn-danger {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }

        .confirm-btn-ok.confirm-btn-danger:hover {
            box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
        }


/* ============================================
   МОДАЛЬНОЕ ОКНО ТОВАРА (РАЗНОЕ)
   ============================================ */

.misc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2200;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .misc-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.misc-modal-window {
    background: linear-gradient(160deg, #0d1b3a 0%, #0a1428 100%);
    color: #ddd;
    width: 100%;
    max-width: 800px; /* Пошире, чтобы вместить картинку и текст рядом */
    padding: 35px clamp(20px, 4vw, 40px);
    border-radius: 18px;
    border: 1px solid rgba(93, 173, 226, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.misc-modal-overlay.active .misc-modal-window {
    transform: translateY(0);
}

.misc-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 3;
}

    .misc-modal-close:hover {
        color: #f39c12;
    }

/* Сетка внутри модалки: картинка слева, текст справа */
.misc-modal-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.misc-modal-image {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

    .misc-modal-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.5));
    }

.misc-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.misc-modal-title {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.2;
}

.misc-modal-sub {
    font-size: 1rem;
    color: #888;
    margin: 0 0 20px;
}

.misc-modal-desc {
    font-size: 0.95rem;
    color: #b8c4d4;
    line-height: 1.6;
    margin-bottom: 30px;
    flex: 1; /* Растягивает описание, прижимая футер к низу */
}

.misc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.misc-modal-price {
    font-weight: 800;
    color: #f39c12;
    font-size: 1.6rem;
    display: flex;
    align-items: baseline;
}

.misc-modal-buy {
    padding: 12px 30px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
}

    .misc-modal-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
        background: linear-gradient(135deg, #1976d2, #0d47a1);
    }

    .misc-modal-buy:active {
        transform: translateY(0);
    }

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .misc-modal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .misc-modal-image {
        width: 180px;
        height: 180px;
    }

    .misc-modal-footer {
        flex-direction: column;
        gap: 15px;
    }

    .misc-modal-buy {
        width: 100%;
    }
}