
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background-color: #1a1d24;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            padding-bottom: 90px;
        }

        header {
            width: 100%;
            max-width: 1300px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 20px;
            background: #232730;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            flex-wrap: wrap;
            gap: 12px;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #ffb700;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .logo span { color: #fff; }

        /* КНОПКА «← ГЛАВНАЯ» в шапке страницы Боевого Пропуска */
        .bp-back-home-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: #8a92a3;
            font-size: 12px;
            font-weight: 700;
            text-decoration: none;
            padding: 5px 10px;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.04);
            white-space: nowrap;
            transition: color .2s, background .2s, border-color .2s;
        }
        .bp-back-home-btn:hover {
            color: #c8d0e0;
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.15);
            text-decoration: none;
        }

        /* ИНДИКАТОР ОНЛАЙНА */
        .online-counter {
            background: rgba(40, 167, 69, 0.1);
            border: 1px solid rgba(40, 167, 69, 0.3);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: bold;
            color: #28a745;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .online-dot {
            width: 8px;
            height: 8px;
            background-color: #28a745;
            border-radius: 50%;
            display: inline-block;
            animation: pulse-green 2s infinite;
        }
        @keyframes pulse-green {
            0 { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
        }

        .steam-user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #1a1d24;
            border: 1px solid #3a3f4d;
            border-radius: 10px;
            padding: 6px 12px;
        }

        .steam-user-info img#profileAvatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #ffb700;
        }

        .steam-user-info span {
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .btn-steam-logout {
            background: transparent;
            border: 1px solid #3a3f4d;
            color: #8a92a3;
            border-radius: 6px;
            width: 26px;
            height: 26px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

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

        .promo-box {
            display: flex;
            gap: 5px;
        }

        .promo-box input {
            background: #1a1d24;
            border: 1px solid #3a3f4d;
            padding: 8px 12px;
            border-radius: 6px;
            color: #fff;
            outline: none;
            width: 110px;
        }

        .promo-box button {
            background: #ffb700;
            border: none;
            color: #000;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
        }
        .promo-box button:hover { background: #ffa200; }

        .header-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .balance-container {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .balance-box {
            background: #1a1d24;
            padding: 9px 12px;
            border-radius: 8px;
            border: 1px solid #3a3f4d;
            font-size: 16px;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-deposit-trigger {
            background: #28a745;
            border: none;
            color: white;
            padding: 6px 12px;
            font-size: 12px;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
        }
        .btn-deposit-trigger:hover { background: #218838; }

        /* КНОПКА ВХОДА ЧЕРЕЗ СТИМ */
        .btn-steam-login {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #1b2838;
            border: 1px solid #4a6fa5;
            color: #c6d4df;
            padding: 9px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            font-size: 13px;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .btn-steam-login:hover {
            background: #2a475e;
            border-color: #66c0f4;
            color: #fff;
            box-shadow: 0 3px 12px rgba(102,192,244,0.25);
        }
        .steam-user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #1b2838;
            border: 1px solid #4a6fa5;
            padding: 7px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: bold;
            color: #c6d4df;
        }
        .steam-avatar {
            width: 28px; height: 28px; border-radius: 50%;
            background: linear-gradient(135deg, #66c0f4, #1b2838);
            display: flex; align-items: center; justify-content: center; font-size: 14px;
        }
        .btn-steam-logout {
            background: none; border: none; color: #8a92a3; cursor: pointer;
            font-size: 16px; padding: 0 0 0 6px; line-height: 1;
        }
        .btn-steam-logout:hover { color: #eb4b4b; }

        /* ПОЛЕ ТРЕЙД-ССЫЛКИ */
        .trade-url-block {
            background: #1b2838;
            border: 1px solid #4a6fa5;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 22px;
        }
        .trade-url-label {
            font-size: 13px;
            font-weight: bold;
            color: #c6d4df;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .trade-url-hint {
            position: relative;
            display: inline-block;
        }
        .trade-url-hint-btn {
            background: none;
            border: 1px solid #4a6fa5;
            color: #66c0f4;
            font-size: 11px;
            font-weight: bold;
            padding: 2px 8px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .trade-url-hint-btn:hover { background: rgba(102,192,244,0.12); border-color: #66c0f4; }
        .trade-url-tooltip {
            display: none;
            position: absolute;
            left: 0;
            top: calc(100% + 8px);
            background: #13161c;
            border: 1px solid #4a6fa5;
            border-radius: 10px;
            padding: 14px 16px;
            width: 320px;
            z-index: 500;
            font-size: 12px;
            color: #c6d4df;
            line-height: 1.6;
            box-shadow: 0 8px 24px rgba(0,0,0,0.6);
        }
        .trade-url-hint:hover .trade-url-tooltip { display: block; }
        .trade-url-tooltip ol { padding-left: 16px; }
        .trade-url-tooltip li { margin-bottom: 5px; }
        .trade-url-tooltip a { color: #66c0f4; }
        .trade-url-row {
            display: flex; gap: 8px;
        }
        .trade-url-input {
            flex: 1;
            background: #13161c;
            border: 1px solid #4a6fa5;
            padding: 10px 14px;
            border-radius: 8px;
            color: #fff;
            font-size: 13px;
            outline: none;
            transition: border-color 0.2s;
        }
        .trade-url-input:focus { border-color: #66c0f4; }
        .trade-url-input::placeholder { color: #4a5568; }
        .btn-save-trade-url {
            background: #1b4f72;
            border: 1px solid #4a6fa5;
            color: #66c0f4;
            padding: 10px 18px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            font-size: 13px;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .btn-save-trade-url:hover { background: #2a6496; color: #fff; }
        .trade-url-status {
            margin-top: 8px;
            font-size: 12px;
            font-weight: bold;
            min-height: 16px;
        }

        .balance-box.bonus {
            border-color: #00e5ff;
            box-shadow: inset 0 0 5px rgba(0,229,255,0.2);
        }

        /* ГЛАВНЫЙ КОНТЕЙНЕР LAYOUT */
        .main-container {
            display: flex;
            width: 100%;
            max-width: 1300px;
            gap: 20px;
            align-items: start;
        }

        /* ЛЕНТА АКТИВНОСТИ */
        .live-feed-sidebar {
            width: 220px;
            background: #1f232e;
            border-radius: 14px;
            border: 1px solid #2d3242;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            flex-shrink: 0;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
            align-self: flex-start;
            position: sticky;
            top: 20px;
        }

        .live-feed-title {
            background: #161922;
            padding: 14px 12px;
            font-size: 11px;
            font-weight: 800;
            color: #ffb700;
            text-align: center;
            letter-spacing: 1.2px;
            border-bottom: 2px solid #2d3242;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .live-feed-title span.live-badge {
            color: #eb4b4b;
            animation: blinker 1.5s linear infinite;
        }
        @keyframes blinker { 50% { opacity: 0; } }

        .live-feed-list {
            display: flex;
            flex-direction: column;
            height: 720px;
            max-height: 720px;
            overflow: hidden;
            background: #171a21;
            position: relative;
        }

        .feed-item {
            height: 90px;
            min-height: 90px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            border-bottom: 1px solid #232733;
            padding: 10px 8px;
            text-align: center;
            overflow: hidden;
            position: relative;
            animation: feedSlideIn 0.3s ease-out;
        }

        @keyframes feedSlideIn {
            from { opacity: 0; transform: translateY(-90px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .feed-item-info {
            font-size: 9px;
            font-weight: 700;
            color: #798296;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            z-index: 2;
            margin-bottom: 1px;
        }

        .feed-item-skin {
            font-size: 11px;
            font-weight: bold;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            z-index: 2;
            margin-bottom: 4px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        }

        .feed-item img {
            width: 46px;
            height: 46px;
            object-fit: contain;
            z-index: 1;
            filter: drop-shadow(0 4px 5px rgba(0,0,0,0.5));
            transition: transform 0.2s;
        }
        .feed-item:hover img { transform: scale(1.1); }

        .feed-rarity-white { background: linear-gradient(180deg, rgba(176, 195, 217, 0.1) 0%, #171a21 100%); border-left: 4px solid #b0c3d9; }
        .feed-rarity-lightblue { background: linear-gradient(180deg, rgba(94, 152, 217, 0.1) 0%, #171a21 100%); border-left: 4px solid #5e98d9; }
        .feed-rarity-blue { background: linear-gradient(180deg, rgba(75, 105, 255, 0.1) 0%, #171a21 100%); border-left: 4px solid #4B69FF; }
        .feed-rarity-purple { background: linear-gradient(180deg, rgba(136, 71, 255, 0.1) 0%, #171a21 100%); border-left: 4px solid #8847ff; }
        .feed-rarity-pink { background: linear-gradient(180deg, rgba(211, 44, 230, 0.1) 0%, #171a21 100%); border-left: 4px solid #d32ce6; }
        .feed-rarity-red { background: linear-gradient(180deg, rgba(235, 75, 75, 0.1) 0%, #171a21 100%); border-left: 4px solid #eb4b4b; }
        .feed-rarity-gold { background: linear-gradient(180deg, rgba(255, 183, 0, 0.15) 0%, #171a21 100%); border-left: 4px solid #ffb700; box-shadow: inset 5px 0 10px rgba(255, 183, 0, 0.05); }

        .player-drop {
            box-shadow: inset 0 0 15px rgba(255, 183, 0, 0.25);
            border-right: 2px solid #ffb700;
        }

        /* КОНТЕНТНАЯ ОБЛАСТЬ СПРАВА */
        .content-area {
            flex-grow: 1;
            width: calc(100% - 240px);
            display: flex;
            flex-direction: column;
        }

        .stats-bar {
            width: 100%;
            background: #232730;
            border-radius: 10px;
            padding: 12px 20px;
            margin-bottom: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            border-bottom: 2px solid #3a3f4d;
        }

        .stat-item { font-size: 13px; color: #8a92a3; }
        .stat-item span { display: block; font-size: 16px; font-weight: bold; color: #fff; margin-top: 2px; }

        .navigation-tabs { display: flex; gap: 10px; width: 100%; margin-bottom: 25px; overflow-x: auto; padding-bottom: 5px;}
        .tab-btn { background: #232730; border: 1px solid #3a3f4d; color: #8a92a3; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 14px; transition: all 0.2s; text-transform: uppercase; white-space: nowrap; }
        .tab-btn.active { background: #ffb700; color: #000; border-color: #ffb700; box-shadow: 0 4px 15px rgba(255, 183, 0, 0.2); }

        .page { display: none; width: 100%; }
        .page.active { display: block; }
        .section-title { font-size: 14px; color: #8a92a3; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 15px; margin-bottom: 15px; font-weight: bold; border-left: 4px solid #ffb700; padding-left: 10px; }

        /* КАРТОЧКА КЕЙСА */
        .cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 15px; margin-bottom: 35px; }
        .case-card { 
            background: #232730; 
            border: 2px solid transparent; 
            border-radius: 12px; 
            padding: 12px 12px 4px; 
            text-align: center; 
            cursor: pointer; 
            transition: all 0.2s ease-in-out; 
            display: flex; 
            flex-direction: column; 
            justify-content: flex-start; 
            align-items: center; 
            height: 330px;
            overflow: visible;                                                                                                                                                                                                                                                                                    /* обрезание - меняй overflow: hidden на overflow: visible */
        }
        .case-card:hover { transform: translateY(-3px); background: #2b303c; border-color: #ffb700; }
        .case-card.bonus-case-style:hover { border-color: #00e5ff; box-shadow: 0 0 10px rgba(0,229,255,0.3); }

        .case-card-header-info {
            width: 100%;
            margin-bottom: 4px;
        }
        .case-card h3 { font-size: 13px; margin-bottom: 6px; height: 34px; display: flex; align-items: center; justify-content: center; color: #fff; }
        .case-card p { color: #ffb700; font-weight: bold; background: rgba(255, 183, 0, 0.1); padding: 4px 12px; border-radius: 20px; font-size: 13px; display: inline-block; }
        .case-card.bonus-case-style p { color: #00e5ff; background: rgba(0, 229, 255, 0.1); }
        .case-icon { font-size: 45px; margin-top: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); display: flex; align-items: center; justify-content: center; pointer-events: none; flex-shrink: 0; }
        .case-icon img { width: 250px; height: 250px; object-fit: contain; transition: transform 0.2s; pointer-events: none; }
        .case-card:hover .case-icon img { transform: scale(1.08) translateY(-2px); }

        /* НАВИГАЦИЯ НАЗАД */
        .back-nav-container { width: 100%; display: flex; margin-bottom: 20px; }
        .btn-back-to-list { background: #232730; border: 1px solid #3a3f4d; color: #8a92a3; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 13px; transition: all 0.2s; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
        .btn-back-to-list:hover { color: #fff; border-color: #ffb700; background: #2b303c; }

        /* РУЛЕТКА */
        .roulette-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 35px; width: 100%; }

        /* Выбор количества кейсов */
        .multi-open-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; background: #1e222b; padding: 10px 18px; border-radius: 10px; border: 1px solid #2d3242; }
        .multi-open-label { font-size: 12px; color: #8a92a3; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
        .multi-open-btns { display: flex; gap: 6px; }
        .multi-btn { width: 40px; height: 40px; background: #232730; border: 2px solid #3a3f4d; color: #8a92a3; border-radius: 8px; font-size: 15px; font-weight: 800; cursor: pointer; transition: all 0.15s; }
        .multi-btn:hover { border-color: #ffb700; color: #fff; background: #2b303c; }
        .multi-btn.active { background: #ffb700; border-color: #ffb700; color: #000; box-shadow: 0 0 12px rgba(255,183,0,0.35); }

        /* Стек рулеток */
        .roulettes-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 800px; }
        .roulette-wrapper { position: relative; width: 100%; background: #232730; padding: 14px 20px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
        .pointer { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 4px; height: 100%; background: #ffb700; z-index: 10; box-shadow: 0 0 10px #ffb700; }
        .roulette-window { width: 100%; height: 140px; overflow: hidden; position: relative; border-radius: 8px; background: #13161c; }
        .roulette-track { display: flex; position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }

        /* ЭЛЕМЕНТ РУЛЕТКИ */
        .item-card { 
            flex-shrink: 0; 
            width: 130px; 
            height: 140px; 
            display: flex; 
            flex-direction: column; 
            justify-content: flex-start; 
            align-items: center; 
            padding: 10px; 
            text-align: center; 
            font-size: 11px; 
            /* separator via outline, not border — не ломает border-bottom редкости */
            outline: 1px solid #1a1d24;
            border-bottom: 4px solid transparent;
            background: linear-gradient(180deg, #232730 0%, #171a21 100%); 
        }
        .item-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; margin-bottom: 2px; color: #fff; }
        .item-price { color: #ffb700; font-weight: bold; margin-bottom: 8px; }
        .item-card img { width: 60px; height: 60px; object-fit: contain; margin-top: auto; }

        .rarity-white    { border-bottom: 4px solid #b0c3d9; }
        .rarity-blue     { border-bottom: 4px solid #4B69FF; }
        .rarity-lightblue  { border-bottom: 4px solid #5e98d9; }
        .rarity-purple{ border-bottom: 4px solid #8847ff; }
        .rarity-pink{ border-bottom: 4px solid #d32ce6; }
        .rarity-red    { border-bottom: 4px solid #eb4b4b; }
        .rarity-gold      { border-bottom: 4px solid #ffb700; }

        .btn-open { background: linear-gradient(135deg, #ffb700 0%, #ff8800 100%); color: #000; border: none; padding: 16px 70px; font-size: 18px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: all 0.2s; text-transform: uppercase; display: block; margin: 0 auto;}
        .btn-open:disabled { background: #4a4f5d; color: #8a92a3; cursor: not-allowed; }

        /* СОДЕРЖИМОЕ КЕЙСА */
        .case-contents-block { width: 100%; background: #1e222b; border-radius: 14px; padding: 25px; margin-top: 35px; box-shadow: 0 5px 20px rgba(0,0,0,0.4); }
        .contents-title { text-align: center; font-size: 16px; font-weight: bold; color: #8a92a3; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; position: relative; }
        .contents-title::after { content: ''; display: block; width: 60px; height: 2px; background: #ffb700; margin: 8px auto 0 auto; }
        .contents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
        
        .content-item-card { 
            background: #232730; 
            border-radius: 8px; 
            padding: 12px; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            justify-content: flex-start; 
            min-height: 165px; 
            position: relative; 
            transition: transform 0.2s; 
            border-bottom: 4px solid #fff; 
        }
        .content-item-card:hover { transform: scale(1.03); }
        .content-item-card .card-name-box { text-align: center; width: 100%; margin-bottom: 10px; }
        .content-item-card .card-weapon { font-size: 11px; color: #8a92a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .content-item-card .card-skin { font-size: 12px; font-weight: bold; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
        .content-item-card .card-price { font-size: 11px; font-weight: bold; color: #ff9d00; background: rgba(0, 0, 0, 0.3); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px; }
        .content-item-card img { width: 70px; height: 70px; object-fit: contain; margin-top: auto; }

        /* МОДУЛЬ АПГРЕЙДОВ */
        .upgrade-grid { display: grid; grid-template-columns: 1fr 260px 1fr; gap: 20px; align-items: start; }
        .upgrade-side { background: #232730; padding: 20px; border-radius: 12px; min-height: 420px; display: flex; flex-direction: column; }
        .upgrade-selector-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; max-height: 340px; overflow-y: auto; margin-top: 10px; padding-right: 5px; }

        /* МИНИ КАРТОЧКА СКИНОК */
        .mini-skin-card { 
            background: #171a21; 
            padding: 8px; 
            border-radius: 6px; 
            text-align: center; 
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            font-size: 10px; 
            cursor: pointer; 
            border-bottom: 3px solid #3a3f4d; 
            transition: transform 0.1s; 
            min-height: 100px;
        }
        .mini-skin-card:hover { transform: scale(1.03); }
        .mini-skin-card.selected { border-color: #ffb700; background: #2b303c; }
        .mini-skin-info-top { width: 100%; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
        .mini-skin-price-top { color: #28a745; font-weight: bold; margin-bottom: 4px; }
        .mini-skin-card img { width: 45px; height: 45px; object-fit: contain; margin-top: auto; }

        .upgrade-center { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #232730; padding: 20px; border-radius: 12px; min-height: 420px; text-align: center; }

        /* ПАНЕЛЬ БУСТА ШАНСА */
        .boost-panel {
            width: 100%;
            background: #171a21;
            border: 1px solid #2d3242;
            border-radius: 12px;
            padding: 14px 16px;
            margin: 10px 0 4px 0;
        }
        .boost-panel-title {
            font-size: 12px;
            font-weight: 700;
            color: #8a92a3;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .boost-panel-title span { color: #ffb700; }
        .boost-presets {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 10px;
            justify-content: center;
        }
        .boost-btn {
            background: linear-gradient(135deg, #1e2435 0%, #252b3d 100%);
            border: 1px solid #3a4260;
            color: #c0cde0;
            border-radius: 8px;
            padding: 9px 6px;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.15s;
            text-align: center;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .boost-btn:hover {
            border-color: #ffb700;
            color: #ffb700;
            background: linear-gradient(135deg, #272c3d 0%, #2e3450 100%);
            box-shadow: 0 0 10px rgba(255,183,0,0.2);
            transform: translateY(-1px);
        }
        .boost-btn:active { transform: translateY(0); }
        .boost-btn.active { background: linear-gradient(135deg, #b37800, #ffb700); border-color: #ffb700; color: #1a1d24; box-shadow: 0 0 12px rgba(255,183,0,0.4); }
        .boost-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
        .boost-btn .boost-plus { font-size: 15px; display: block; }
        .boost-btn .boost-cost { font-size: 10px; opacity: 0.8; }
        .chance-preset-btn {
            flex: 1 1 auto;
            padding: 5px 8px;
            background: #1e2330;
            border: 1px solid #2e3448;
            border-radius: 8px;
            color: #c8d0e0;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
            white-space: nowrap;
        }
        .chance-preset-btn:hover { background: #252c3e; border-color: #4B69FF; color: #fff; }
        .chance-preset-btn.active { background: linear-gradient(135deg, #2a3a8f, #4B69FF); border-color: #4B69FF; color: #fff; box-shadow: 0 0 10px rgba(75,105,255,0.35); }

        .boost-slider-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        .boost-slider {
            flex: 1;
            -webkit-appearance: none;
            height: 6px;
            border-radius: 3px;
            background: #2a2e3e;
            outline: none;
            cursor: pointer;
        }
        .boost-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #ffb700;
            cursor: pointer;
            box-shadow: 0 0 8px rgba(255,183,0,0.5);
        }
        .boost-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #ffb700;
            cursor: pointer;
            border: none;
        }
        .boost-info {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #8a92a3;
        }
        .boost-info .boost-added { color: #28a745; font-weight: 700; }
        .boost-info .boost-cost-display { color: #ffb700; font-weight: 700; }
        .boost-reset-btn {
            background: none;
            border: 1px solid #3a4060;
            color: #8a92a3;
            border-radius: 6px;
            padding: 4px 10px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .boost-reset-btn:hover { border-color: #eb4b4b; color: #eb4b4b; }
        .chance-display { font-size: 36px; font-weight: bold; color: #ffb700; margin: 20px 0; text-shadow: 0 0 15px rgba(255, 183, 0, 0.3); }
        .upgrade-vs { display: flex; justify-content: space-around; width: 100%; margin-bottom: 20px; }
        
        /* КОЛЕСО ШАНСОВ */
        .wheel-wrapper {
            position: relative;
            width: 220px;
            height: 220px;
            margin: 10px auto 18px auto;
            flex-shrink: 0;
        }
        #upgradeWheelCanvas {
            display: block;
            border-radius: 50%;
        }
        .wheel-center-text {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
            width: 130px;
        }
        .wheel-percent {
            font-size: 28px;
            font-weight: 900;
            color: #fff;
            line-height: 1;
            text-shadow: 0 2px 8px rgba(0,0,0,0.8);
            letter-spacing: -0.5px;
        }
        .wheel-label {
            font-size: 11px;
            color: #b0c3d9;
            margin-top: 4px;
            font-weight: 600;
            text-transform: lowercase;
            letter-spacing: 0.3px;
        }
        .wheel-arrow {
            position: absolute;
            top: -14px;
            left: 50%;
            transform: translateX(-50%);
            color: #ffb700;
            font-size: 18px;
            filter: drop-shadow(0 0 6px #ffb700);
            z-index: 5;
        }
        .wheel-side-label {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 11px;
            font-weight: bold;
            color: #8a92a3;
        }
        .wheel-side-label.left { left: -26px; }
        .wheel-side-label.right { right: -34px; }
        
        .vs-box { width: 90px; height: 110px; background: #171a21; border-radius: 8px; padding: 8px; font-size: 9px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border: 1px dashed #4a4f5d; text-align: center; }
        .vs-box .vs-title { font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; margin-bottom: 2px; }
        .vs-box .vs-price { color: #28a745; font-weight: bold; margin-bottom: 4px; }
        .vs-box img { width: 45px; height: 45px; object-fit: contain; margin-top: auto; }

        .btn-upgrade { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); color: #fff !important; border: none; padding: 12px 30px; font-size: 16px; font-weight: bold; border-radius: 6px; cursor: pointer; width: 100%; text-transform: uppercase; }
        .btn-upgrade:disabled { background: #4a4f5d; cursor: not-allowed; color: #8a92a3 !important; }

        .btn-contract { background: linear-gradient(135deg, #a800ff 0%, #7000ff 100%); color: #fff !important; border: none; padding: 14px 30px; font-size: 16px; font-weight: bold; border-radius: 6px; cursor: pointer; width: 100%; text-transform: uppercase; margin-top: 15px;}
        .btn-contract:disabled { background: #4a4f5d; cursor: not-allowed; color: #8a92a3 !important; }

        /* ИНВЕНТАРЬ И ВЫВОД */
        .inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
        .inventory-card { 
            background: #232730; 
            border-radius: 8px; 
            padding: 12px; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            justify-content: flex-start; 
            min-height: 180px; 
            border-bottom: 4px solid #fff; 
            text-align: center;
        }
        .inv-name { font-weight: bold; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; margin-bottom: 2px; color: #fff; }
        .inv-price { color: #28a745; margin: 0 0 8px 0; font-weight: bold; font-size: 12px; }
        .inventory-card img { width: 55px; height: 55px; object-fit: contain; margin-top: auto; margin-bottom: 10px; }
        .btn-sell { background: #dc3545; border: none; color: #fff; padding: 6px 8px; border-radius: 4px; cursor: pointer; width: 100%; font-weight: bold; font-size: 11px; transition: background 0.1s; }
        .btn-sell:hover { background: #bd2130; }
        .btn-withdraw-action { background: #28a745; border: none; color: #fff; padding: 6px 8px; border-radius: 4px; cursor: pointer; width: 100%; font-weight: bold; font-size: 11px; transition: background 0.1s; }
        .btn-withdraw-action:hover { background: #218838; }

        .logs-box { background: #13161c; border-radius: 8px; padding: 15px; max-height: 360px; overflow-y: auto; font-family: monospace; font-size: 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid #3a3f4d; }
        .log-line { padding: 6px; border-radius: 4px; background: #1a1d24; border-left: 3px solid #ffb700; }

        /* СИСТЕМА ТЕХПОДДЕРЖКИ */
        .support-btn { position: fixed; bottom: 20px; right: 20px; background: #ffb700; color: #000; border: none; padding: 14px 22px; border-radius: 50px; font-weight: bold; cursor: pointer; box-shadow: 0 6px 20px rgba(255,183,0,0.4); z-index: 1000; display: flex; align-items: center; gap: 8px; font-size: 14px; transition: transform 0.2s; }
        .support-btn:hover { transform: scale(1.05); }
        .support-chat { position: fixed; bottom: 85px; right: 20px; width: 330px; height: 420px; background: #232730; border-radius: 12px; border: 1px solid #3a3f4d; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 1000; display: none; flex-direction: column; overflow: hidden; }
        .support-header { background: #1e222b; padding: 15px; font-weight: bold; border-bottom: 1px solid #3a3f4d; display: flex; justify-content: space-between; align-items: center; }
        .support-close { cursor: pointer; color: #8a92a3; font-size: 18px; }
        .support-messages { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
        .msg { padding: 10px 12px; border-radius: 8px; max-width: 85%; line-height: 1.4; }
        .msg.bot { background: #1a1d24; align-self: flex-start; color: #ffb700; border-left: 3px solid #ffb700; font-weight: 500; }
        .msg.user { background: #ffb700; align-self: flex-end; color: #000; font-weight: 500; }
        .support-input-area { padding: 10px; background: #1e222b; border-top: 1px solid #3a3f4d; display: flex; gap: 5px; }
        .support-input-area input { flex-grow: 1; background: #1a1d24; border: 1px solid #3a3f4d; color: white; padding: 8px; border-radius: 4px; outline: none; }
        .support-input-area button { background: #ffb700; border: none; padding: 0 15px; border-radius: 4px; font-weight: bold; cursor: pointer; }

        /* СТИЛИ МОДАЛЬНОГО ОКНА ПОПОЛНЕНИЯ БАЛАНСА */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            backdrop-filter: blur(4px);
        }

        .deposit-modal-content {
            background: #232730;
            border: 2px solid #3a3f4d;
            border-radius: 16px;
            padding: 30px;
            width: 100%;
            max-width: 460px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.6);
            position: relative;
            animation: modalFadeIn 0.25s ease-out;
        }

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

        .modal-close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 26px;
            cursor: pointer;
            color: #8a92a3;
            transition: color 0.2s;
        }
        .modal-close-btn:hover { color: #fff; }

        .deposit-modal-content h3 {
            color: #ffb700;
            text-align: center;
            text-transform: uppercase;
            font-size: 18px;
            letter-spacing: 1px;
            margin-bottom: 25px;
        }

        .modal-field-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 20px;
        }

        .modal-field-group label {
            font-size: 12px;
            color: #8a92a3;
            text-transform: uppercase;
            font-weight: bold;
            letter-spacing: 0.5px;
        }

        .modal-field-group input {
            background: #1a1d24;
            border: 1px solid #3a3f4d;
            padding: 12px;
            border-radius: 8px;
            color: #fff;
            font-size: 16px;
            font-weight: bold;
            outline: none;
            transition: border-color 0.2s;
        }
        .modal-field-group input:focus { border-color: #ffb700; }

        .payment-methods-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 25px;
        }

        .payment-method-card {
            background: #171a21;
            border: 1px solid #3a3f4d;
            border-radius: 10px;
            padding: 14px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: #cdcdcd;
        }

        .payment-method-card:hover {
            border-color: #ffb700;
            background: #1c2029;
            color: #fff;
        }

        .payment-method-card.active {
            border-color: #ffb700;
            background: rgba(255, 183, 0, 0.08);
            color: #ffb700;
            box-shadow: inset 0 0 10px rgba(255, 183, 0, 0.1);
        }

        .btn-modal-pay {
            background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
            color: white;
            border: none;
            padding: 14px;
            width: 100%;
            border-radius: 8px;
            font-weight: bold;
            font-size: 15px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
            transition: background 0.2s, transform 0.1s;
        }
        .btn-modal-pay:hover {
            background: linear-gradient(135deg, #218838 0%, #1c692c 100%);
        }
        .btn-modal-pay:active { transform: scale(0.98); }

        /* ОВЕРЛЕЙ РЕЗУЛЬТАТА АПГРЕЙДА */
        .upgrade-result-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3000;
            backdrop-filter: blur(6px);
            animation: upgradeOverlayIn 0.3s ease-out;
        }
        .upgrade-result-overlay.win { background: rgba(0, 0, 0, 0.82); }
        .upgrade-result-overlay.lose { background: rgba(0, 0, 0, 0.88); }

        @keyframes upgradeOverlayIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .upgrade-result-box {
            text-align: center;
            padding: 50px 60px;
            border-radius: 24px;
            max-width: 480px;
            width: 90%;
            position: relative;
            animation: upgradeBoxPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes upgradeBoxPop {
            from { opacity: 0; transform: scale(0.6); }
            to { opacity: 1; transform: scale(1); }
        }

        .upgrade-result-box.win {
            background: linear-gradient(145deg, #0f2a1a 0%, #1a3d28 100%);
            border: 2px solid #28a745;
            box-shadow: 0 0 60px rgba(40, 167, 69, 0.45), 0 20px 50px rgba(0,0,0,0.6);
        }
        .upgrade-result-box.lose {
            background: linear-gradient(145deg, #2a0f0f 0%, #3d1a1a 100%);
            border: 2px solid #eb4b4b;
            box-shadow: 0 0 60px rgba(235, 75, 75, 0.4), 0 20px 50px rgba(0,0,0,0.6);
        }

        .upgrade-result-icon {
            font-size: 72px;
            margin-bottom: 10px;
            display: block;
            animation: upgradeIconBounce 0.6s ease 0.2s both;
        }
        @keyframes upgradeIconBounce {
            0% { transform: scale(0); opacity: 0; }
            60% { transform: scale(1.25); }
            100% { transform: scale(1); opacity: 1; }
        }

        .upgrade-result-label {
            font-size: 52px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 4px;
            line-height: 1;
            margin-bottom: 10px;
            animation: upgradeLabelSlide 0.5s ease 0.3s both;
        }
        @keyframes upgradeLabelSlide {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .upgrade-result-label.win { color: #28a745; text-shadow: 0 0 30px rgba(40,167,69,0.8); }
        .upgrade-result-label.lose { color: #eb4b4b; text-shadow: 0 0 30px rgba(235,75,75,0.8); }

        .upgrade-result-skin-name {
            font-size: 17px;
            font-weight: bold;
            color: #fff;
            margin: 14px 0 6px 0;
            animation: upgradeLabelSlide 0.5s ease 0.4s both;
        }
        .upgrade-result-skin-price {
            font-size: 22px;
            font-weight: 900;
            margin-bottom: 20px;
            animation: upgradeLabelSlide 0.5s ease 0.45s both;
        }
        .upgrade-result-skin-price.win { color: #28a745; }
        .upgrade-result-skin-price.lose { color: #eb4b4b; }

        .upgrade-result-img {
            width: 110px;
            height: 110px;
            object-fit: contain;
            margin: 10px auto 20px auto;
            display: block;
            filter: drop-shadow(0 6px 16px rgba(0,0,0,0.7));
            animation: upgradeImgFade 0.5s ease 0.35s both;
        }
        @keyframes upgradeImgFade {
            from { opacity: 0; transform: scale(0.7); }
            to { opacity: 1; transform: scale(1); }
        }

        .upgrade-result-subtext {
            font-size: 13px;
            color: #8a92a3;
            margin-bottom: 28px;
            animation: upgradeLabelSlide 0.5s ease 0.5s both;
        }

        .btn-upgrade-result-close {
            border: none;
            padding: 14px 50px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: transform 0.1s, box-shadow 0.2s;
            animation: upgradeLabelSlide 0.5s ease 0.55s both;
        }
        .btn-upgrade-result-close:hover { transform: scale(1.05); }
        .btn-upgrade-result-close:active { transform: scale(0.97); }
        .btn-upgrade-result-close.win {
            background: linear-gradient(135deg, #28a745, #1e7e34);
            color: #fff;
            box-shadow: 0 4px 20px rgba(40,167,69,0.5);
        }
        .btn-upgrade-result-close.lose {
            background: linear-gradient(135deg, #eb4b4b, #b52a2a);
            color: #fff;
            box-shadow: 0 4px 20px rgba(235,75,75,0.4);
        }

        /* Конфетти частицы */
        .confetti-particle {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 2px;
            animation: confettiFall linear forwards;
            pointer-events: none;
        }
        @keyframes confettiFall {
            0% { opacity: 1; transform: translateY(-20px) rotate(0deg); }
            100% { opacity: 0; transform: translateY(300px) rotate(720deg); }
        }

        /* УВЕДОМЛЕНИЕ О НЕХВАТКЕ БАЛАНСА */
        .balance-toast {
            position: fixed;
            top: 80px;
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            background: linear-gradient(135deg, #dc3545, #b52a2a);
            color: #fff;
            padding: 14px 28px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: bold;
            z-index: 9999;
            box-shadow: 0 8px 30px rgba(220, 53, 69, 0.5);
            border: 1px solid rgba(255,100,100,0.4);
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s;
            pointer-events: none;
            white-space: nowrap;
        }
        .balance-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .balance-toast .toast-icon { font-size: 20px; }

        /* ПОИСК И СОРТИРОВКА КЕЙСОВ */
        .cases-toolbar {
            display: flex;
            gap: 10px;
            margin-bottom: 18px;
            flex-wrap: wrap;
            align-items: center;
        }
        .cases-search-input {
            flex: 1;
            min-width: 180px;
            background: #1a1d24;
            border: 1px solid #3a3f4d;
            padding: 10px 14px;
            border-radius: 8px;
            color: #fff;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        .cases-search-input:focus { border-color: #ffb700; }
        .cases-sort-select {
            background: #1a1d24;
            border: 1px solid #3a3f4d;
            padding: 10px 14px;
            border-radius: 8px;
            color: #fff;
            font-size: 13px;
            outline: none;
            cursor: pointer;
            transition: border-color 0.2s;
        }
        .cases-sort-select:focus { border-color: #ffb700; }

        /* ПОИСК СКИНОВ В АПГРЕЙДЕ */
        .upgrade-search-input {
            width: 100%;
            background: #1a1d24;
            border: 1px solid #3a3f4d;
            padding: 8px 12px;
            border-radius: 6px;
            color: #fff;
            font-size: 13px;
            outline: none;
            margin-bottom: 8px;
            transition: border-color 0.2s;
        }
        .upgrade-search-input:focus { border-color: #ffb700; }

        /* ──────────── КЛАСС для grid-column: span 2 ──────────── */
        .upgrade-side-full { grid-column: span 2; }

        /* ══════════════ МОБИЛЬНАЯ АДАПТАЦИЯ ══════════════ */
        @media (max-width: 768px) {
            body { padding: 8px; padding-bottom: 85px; }

            /* ШАПКА */
            header {
                padding: 10px 12px; gap: 8px;
                flex-direction: column; align-items: stretch;
            }
            .logo-area { justify-content: space-between; width: 100%; }
            .logo { font-size: 20px; }
            .header-right { width: 100%; flex-direction: column; gap: 8px; }
            .promo-box { display: none; }
            .balance-container { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
            .balance-box { font-size: 12px; padding: 8px 10px; justify-content: center; }
            .btn-deposit-trigger { font-size: 11px; padding: 5px 8px; }
            .btn-steam-login { font-size: 12px; padding: 8px 12px; width: 100%; justify-content: center; }
            .steam-user-info { justify-content: center; }

            /* ГЛАВНЫЙ LAYOUT */
            .main-container { flex-direction: column; gap: 10px; }
            .live-feed-sidebar { display: none; }
            .content-area { width: 100%; }

            /* СТАТИСТИКА */
            .stats-bar { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; }
            .stat-item { font-size: 11px; }
            .stat-item span { font-size: 13px; }

            /* ВКЛАДКИ */
            .navigation-tabs { gap: 5px; margin-bottom: 16px; }
            .tab-btn { padding: 9px 10px; font-size: 11px; border-radius: 6px; }

            /* КЕЙСЫ */
            .cases-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
            .case-card { height: 180px; padding: 12px 8px; overflow: hidden; }
            .case-card h3 { font-size: 12px; height: 30px; }
            .case-icon img { width: 70px; height: 70px; }

            /* РУЛЕТКА */
            .roulettes-stack { max-width: 100%; }
            .roulette-wrapper { padding: 10px 8px; border-radius: 10px; }
            .roulette-window { height: 115px; }
            .item-card { width: 105px; height: 115px; font-size: 10px; padding: 7px; }
            .item-card img { width: 48px; height: 48px; }
            .multi-open-bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
            .multi-btn { width: 36px; height: 36px; font-size: 14px; }
            .btn-open { padding: 13px 20px; font-size: 15px; }

            /* АПГРЕЙД */
            .upgrade-grid { grid-template-columns: 1fr !important; gap: 12px; }
            .upgrade-side { min-height: unset; }
            .upgrade-side-full { grid-column: span 1 !important; }
            .wheel-wrapper { width: 180px; height: 180px; }
            #upgradeWheelCanvas { width: 180px !important; height: 180px !important; }
            .upgrade-vs { gap: 10px; }
            .vs-box { width: 75px; height: 95px; }

            /* ИНВЕНТАРЬ */
            .inventory-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
            .inventory-card { min-height: 155px; }

            /* ВЫВОД */
            .trade-url-block { padding: 14px; }
            .trade-url-row { flex-direction: column; gap: 8px; }
            .btn-save-trade-url { width: 100%; text-align: center; }

            /* СОДЕРЖИМОЕ КЕЙСА */
            .contents-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
            .case-contents-block { padding: 16px 12px; }

            /* МОДАЛ — выезжает снизу */
            .modal-overlay { align-items: flex-end; }
            .deposit-modal-content {
                border-radius: 16px 16px 0 0; max-width: 100%;
                padding: 20px 16px; max-height: 90vh; overflow-y: auto;
            }
            .payment-methods-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
            .payment-method-card { padding: 10px 6px; font-size: 11px; gap: 5px; }
            .payment-method-card span:first-child { font-size: 18px; }

            /* ОВЕРЛЕЙ АПГРЕЙДА */
            .upgrade-result-box { padding: 28px 18px; }
            .upgrade-result-label { font-size: 36px; letter-spacing: 2px; }
            .upgrade-result-icon { font-size: 56px; }
            .upgrade-result-img { width: 85px; height: 85px; }
            .btn-upgrade-result-close { padding: 12px 28px; font-size: 14px; }

            /* ЧАТ ПОДДЕРЖКИ */
            .support-btn { bottom: 14px; right: 14px; padding: 12px 16px; font-size: 13px; }
            .support-chat { width: calc(100vw - 16px); right: 8px; bottom: 70px; height: 360px; }

            .section-title { font-size: 12px; letter-spacing: 1px; }
            .boost-btn { padding: 8px 5px; font-size: 12px; }
        }

        @media (max-width: 400px) {
            .tab-btn { padding: 8px 7px; font-size: 10px; }
            .balance-container { grid-template-columns: 1fr; }
            .cases-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* ОБЁРТКА КНОПКИ ПРОФИЛЯ */
        .profile-btn-wrapper {
            position: relative;
        }

        /* КНОПКА ПРОФИЛЯ */
        .btn-profile-trigger {
            display: flex;
            align-items: center;
            gap: 7px;
            background: #1a1d24;
            border: 1px solid #3a3f4d;
            color: #c6d4df;
            padding: 9px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            font-size: 13px;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .btn-profile-trigger:hover {
            border-color: #ffb700;
            color: #ffb700;
            box-shadow: 0 3px 12px rgba(255,183,0,0.2);
        }
        .btn-profile-trigger svg {
            flex-shrink: 0;
        }

        /* ПАНЕЛЬ ПРОФИЛЯ */
        .profile-panel {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 320px;
            background: #1f232e;
            border: 1px solid #3a3f4d;
            border-radius: 14px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.6);
            z-index: 2000;
            overflow: hidden;
        }
        .profile-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            background: #161922;
            font-weight: bold;
            font-size: 14px;
            color: #ffb700;
            border-bottom: 1px solid #2d3242;
        }
        .profile-close-btn {
            background: none;
            border: none;
            color: #8a92a3;
            font-size: 16px;
            cursor: pointer;
            line-height: 1;
            padding: 0;
        }
        .profile-close-btn:hover { color: #eb4b4b; }
        .profile-section {
            padding: 14px 16px;
            border-bottom: 1px solid #2d3242;
        }
        .profile-section:last-child { border-bottom: none; }
        .profile-section-title {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #8a92a3;
            margin-bottom: 10px;
        }
        .profile-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            margin-bottom: 7px;
            gap: 8px;
        }
        .profile-row span:first-child { color: #8a92a3; flex-shrink: 0; }
        .profile-row span:last-child { font-weight: bold; text-align: right; word-break: break-all; }
        .profile-recent-list {
            display: flex;
            flex-direction: column;
            gap: 5px;
            max-height: 140px;
            overflow-y: auto;
        }
        .profile-case-entry {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #13161c;
            border-radius: 7px;
            padding: 7px 10px;
            font-size: 12px;
        }
        .profile-case-name { color: #c6d4df; font-weight: bold; }
        .profile-case-time { color: #4a5568; font-size: 10px; }
        .profile-drop-card {
            background: #13161c;
            border-radius: 10px;
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .profile-drop-card img {
            width: 52px; height: 52px; object-fit: contain; flex-shrink: 0;
        }
        .profile-drop-info { flex: 1; }
        .profile-drop-name { font-weight: bold; font-size: 12px; color: #fff; margin-bottom: 3px; }
        .profile-drop-price { font-size: 13px; font-weight: bold; color: #28a745; }
        .profile-drop-rarity { font-size: 10px; color: #8a92a3; }

        /* КНОПКА ПРОДАТЬ ВСЁ */
        .btn-sell-all {
            background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
            border: none;
            color: #fff;
            padding: 11px 22px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            box-shadow: 0 4px 15px rgba(220,53,69,0.35);
        }
        .btn-sell-all:hover { background: linear-gradient(135deg, #e74c5c 0%, #c0392b 100%); transform: translateY(-1px); }
        .btn-sell-all:active { transform: translateY(0); }
        .btn-sell-all:disabled { background: #4a4f5d; cursor: not-allowed; transform: none; box-shadow: none; }

        /* МОДАЛКА ПОДТВЕРЖДЕНИЯ */
        .confirm-modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.75); z-index: 3000;
            display: none; align-items: center; justify-content: center;
        }
        .confirm-modal-box {
            background: #232730;
            border: 1px solid #3a3f4d;
            border-radius: 16px;
            padding: 30px 28px;
            max-width: 420px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.7);
            text-align: center;
        }
        .confirm-modal-icon { font-size: 52px; margin-bottom: 12px; }
        .confirm-modal-title { font-size: 20px; font-weight: bold; margin-bottom: 8px; }
        .confirm-modal-text { color: #8a92a3; font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
        .confirm-modal-total { font-size: 22px; font-weight: bold; color: #28a745; margin-bottom: 24px; }
        .confirm-modal-btns { display: flex; gap: 12px; justify-content: center; }
        .confirm-btn-yes { background: #dc3545; border: none; color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: bold; font-size: 15px; cursor: pointer; transition: background 0.2s; }
        .confirm-btn-yes:hover { background: #bd2130; }
        .confirm-btn-no { background: #3a3f4d; border: none; color: #c6d4df; padding: 12px 28px; border-radius: 8px; font-weight: bold; font-size: 15px; cursor: pointer; transition: background 0.2s; }
        .confirm-btn-no:hover { background: #4a5060; }

   
        /* ════════════════════════════════════════════════════════════
           МОДАЛ ПОЛИТИКИ КОНФИДЕНЦИАЛЬНОСТИ
           ════════════════════════════════════════════════════════════ */

        .privacy-modal-content {
            background: #1f232e;
            border: 1px solid #3a3f4d;
            border-radius: 18px;
            width: 100%;
            max-width: 640px;
            max-height: 90vh;
            box-shadow: 0 24px 70px rgba(0,0,0,0.75);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: modalFadeIn 0.28s ease-out;
            position: relative;
        }

        .privacy-modal-header {
            background: #161922;
            padding: 18px 24px 16px 24px;
            border-bottom: 1px solid #2d3242;
            display: flex;
            align-items: center;
            gap: 14px;
            flex-shrink: 0;
        }

        .privacy-modal-logo {
            font-size: 20px;
            font-weight: bold;
            color: #ffb700;
            text-transform: uppercase;
            letter-spacing: 1px;
            white-space: nowrap;
        }
        .privacy-modal-logo span { color: #fff; }

        .privacy-modal-title {
            font-size: 15px;
            font-weight: 800;
            color: #c6d4df;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            flex: 1;
        }

        /* Кнопка × — переопределяем абсолютный позишн для этого модала */
        .privacy-modal-content .modal-close-btn {
            position: static;
            font-size: 22px;
            color: #8a92a3;
            cursor: pointer;
            background: none;
            border: none;
            line-height: 1;
            padding: 0;
            flex-shrink: 0;
            transition: color 0.2s;
        }
        .privacy-modal-content .modal-close-btn:hover { color: #eb4b4b; }

        /* ─── Тело модала — скроллируемый текст ─── */
        .privacy-modal-body {
            padding: 24px 28px;
            overflow-y: auto;
            flex: 1;
            scroll-behavior: smooth;
        }

        .privacy-modal-body::-webkit-scrollbar { width: 6px; }
        .privacy-modal-body::-webkit-scrollbar-track { background: #13161c; }
        .privacy-modal-body::-webkit-scrollbar-thumb { background: #3a3f4d; border-radius: 3px; }
        .privacy-modal-body::-webkit-scrollbar-thumb:hover { background: #ffb700; }

        .privacy-section {
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid #2d3242;
        }
        .privacy-section-heading {
            background: linear-gradient(90deg, rgba(255,183,0,0.08), transparent);
            border-left: 3px solid #ffb700 !important;
            padding: 14px 18px !important;
            margin-bottom: 6px !important;
        }
        .privacy-section-heading h1 {
            color: #ffb700;
            font-size: 16px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin: 0;
        }
        .privacy-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .privacy-section h2 {
            font-size: 13px;
            font-weight: 800;
            color: #ffb700;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-bottom: 10px;
            border-left: 3px solid #ffb700;
            padding-left: 10px;
        }

        .privacy-section p {
            font-size: 13px;
            color: #b0bec5;
            line-height: 1.7;
            margin-bottom: 8px;
        }
        .privacy-section p:last-child { margin-bottom: 0; }

        .privacy-section ul {
            margin: 8px 0 0 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .privacy-section li {
            font-size: 13px;
            color: #b0bec5;
            line-height: 1.6;
            list-style: disc;
        }

        .privacy-section strong { color: #e0e6ec; }

        .privacy-section a {
            color: #66c0f4;
            text-decoration: none;
        }
        .privacy-section a:hover { text-decoration: underline; }

        .privacy-date {
            font-size: 12px;
            color: #4a5568;
            margin-top: 12px;
        }
        .privacy-date strong { color: #8a92a3; }

        /* ─── Подвал модала ─── */
        .privacy-modal-footer {
            background: #161922;
            border-top: 1px solid #2d3242;
            padding: 16px 24px 20px 24px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        /* Подсказка о прокрутке */
        .privacy-scroll-hint {
            text-align: center;
            font-size: 11px;
            color: #4a5568;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            transition: opacity 0.4s;
        }
        .privacy-scroll-hint.hidden { opacity: 0; pointer-events: none; }
        .privacy-scroll-hint span { animation: hintBounce 1.8s ease-in-out infinite; display: inline-block; }
        @keyframes hintBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(4px); }
        }

        /* Чекбокс */
        .privacy-checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            cursor: pointer;
            user-select: none;
        }

        .privacy-checkbox-label input[type="checkbox"] {
            display: none;
        }

        .privacy-checkbox-custom {
            width: 22px;
            height: 22px;
            min-width: 22px;
            border: 2px solid #4a5568;
            border-radius: 6px;
            background: #13161c;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            margin-top: 1px;
            position: relative;
        }

        .privacy-checkbox-label:hover .privacy-checkbox-custom {
            border-color: #ffb700;
            box-shadow: 0 0 8px rgba(255,183,0,0.2);
        }

        .privacy-checkbox-label input:checked + .privacy-checkbox-custom {
            background: #ffb700;
            border-color: #ffb700;
            box-shadow: 0 0 12px rgba(255,183,0,0.4);
        }

        .privacy-checkbox-custom::after {
            content: '';
            display: block;
            width: 6px;
            height: 10px;
            border: 2px solid #000;
            border-top: none;
            border-left: none;
            transform: rotate(45deg) scaleY(0);
            transform-origin: bottom;
            transition: transform 0.18s ease;
            position: absolute;
            top: 3px;
        }

        .privacy-checkbox-label input:checked + .privacy-checkbox-custom::after {
            transform: rotate(45deg) scaleY(1);
        }

        .privacy-checkbox-text {
            font-size: 13px;
            color: #8a92a3;
            line-height: 1.5;
            transition: color 0.2s;
        }
        .privacy-checkbox-label:has(input:checked) .privacy-checkbox-text {
            color: #c6d4df;
        }

        /* Кнопки в подвале */
        .privacy-modal-btns {
            display: flex;
            gap: 10px;
        }

        .privacy-btn-cancel {
            background: #13161c;
            border: 1px solid #3a3f4d;
            color: #8a92a3;
            padding: 12px 22px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .privacy-btn-cancel:hover {
            background: #1a1d24;
            border-color: #eb4b4b;
            color: #eb4b4b;
        }

        .privacy-btn-confirm {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #2a3a50;
            border: 1px solid #4a6fa5;
            color: #4a5568;
            padding: 13px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: bold;
            cursor: not-allowed;
            transition: all 0.25s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .privacy-btn-confirm:not(:disabled) {
            background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
            border-color: #66c0f4;
            color: #c6d4df;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(102,192,244,0.2);
        }

        .privacy-btn-confirm:not(:disabled):hover {
            background: linear-gradient(135deg, #2a3f55 0%, #3a5f7a 100%);
            color: #fff;
            box-shadow: 0 6px 24px rgba(102,192,244,0.35);
            transform: translateY(-1px);
        }
        .privacy-btn-confirm:not(:disabled):active {
            transform: translateY(0);
        }

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

        .case-card {
        padding: 10px 8px 4px;
        height: 260px;
        overflow: hidden;
        }

        .case-card-header-info {
          margin-bottom: 4px;
        }

         .case-icon img {
             width: 140px;
            height: 140px;
        }

            .privacy-modal-content {
                max-width: 100%;
                max-height: 95vh;
                border-radius: 18px 18px 0 0;
                margin-top: auto;
            }
            .privacy-modal-header { padding: 14px 16px 12px 16px; gap: 10px; }
            .privacy-modal-logo { font-size: 16px; }
            .privacy-modal-title { font-size: 12px; }
            .privacy-modal-body { padding: 16px; }
            .privacy-modal-footer { padding: 12px 16px 16px 16px; }
            .privacy-btn-confirm { font-size: 12px; padding: 12px 14px; }
            .privacy-btn-cancel { padding: 12px 14px; font-size: 12px; }
        }

/* ========================================
   ⚔️ КЕЙС БАТЛ — стили
   ======================================== */

/* --- Заголовок страницы батлов --- */
.battle-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}
.battle-subtitle {
    color: #8a92a3;
    font-size: 13px;
    margin: 0 0 18px 0;
}
.btn-battle-create-trigger {
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #1a1d24;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.btn-battle-create-trigger:hover { opacity: .88; transform: translateY(-1px); }

/* --- Табы --- */
.battle-tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.battle-tab-btn {
    background: #1e2231;
    color: #8a92a3;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
.battle-tab-btn.active {
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #1a1d24;
    font-weight: 700;
    border-color: transparent;
}

/* --- Карточки батлов --- */
.battles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.battle-card {
    background: #1a1d24;
    border: 1px solid #2a2d3a;
    border-radius: 14px;
    padding: 16px;
    transition: border-color .2s, transform .15s;
}
.battle-card:hover { border-color: #4a4d5a; transform: translateY(-2px); }
.battle-card--waiting  { border-left: 3px solid #f7c948; }
.battle-card--active   { border-left: 3px solid #00e5ff; }
.battle-card--finished { border-left: 3px solid #8a92a3; }

.battle-card-top {
    margin-bottom: 12px;
}
.battle-card-case {
    font-size: 15px;
    font-weight: 700;
    color: #e8eaf0;
    margin-bottom: 2px;
}
.battle-card-info {
    font-size: 12px;
    color: #8a92a3;
}
.battle-card-players {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.battle-card-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.battle-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2a2d3a;
    object-fit: cover;
}
.battle-slot-name {
    font-size: 12px;
    color: #c8cdd8;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.battle-slot-total {
    font-size: 11px;
    color: #f7c948;
    font-weight: 700;
}
.battle-card-vs {
    font-size: 18px;
    font-weight: 900;
    color: #ff6b35;
    flex-shrink: 0;
}
.battle-winner-badge {
    background: linear-gradient(135deg, #f7c948, #ff6b35);
    color: #1a1d24;
    font-weight: 700;
    font-size: 12px;
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 10px;
}
.battle-card-action {
    display: flex;
    gap: 8px;
}
.btn-battle-join, .btn-battle-watch, .btn-battle-cancel, .btn-battle-rejoin {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.btn-battle-join {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}
.btn-battle-watch {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    color: #fff;
}
.btn-battle-cancel {
    background: #2a2d3a;
    color: #eb4b4b;
    border: 1px solid #eb4b4b55;
}
.btn-battle-rejoin {
    background: linear-gradient(135deg, #c68a00, #f0b429);
    color: #fff;
}
.btn-battle-join:hover, .btn-battle-watch:hover, .btn-battle-cancel:hover, .btn-battle-rejoin:hover {
    opacity: .85; transform: translateY(-1px);
}

.battle-loading { color: #8a92a3; font-size: 14px; padding: 24px 0; text-align: center; }
.battle-empty-msg { color: #8a92a3; font-size: 15px; padding: 40px 0; text-align: center; }
.battle-error { color: #eb4b4b; font-size: 14px; padding: 20px 0; text-align: center; }

/* --- Модальное окно создания --- */
.battle-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.battle-modal-box {
    background: #1a1d24;
    border: 1px solid #3a3d4a;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.battle-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    font-size: 17px;
    font-weight: 700;
    color: #e8eaf0;
    border-bottom: 1px solid #2a2d3a;
}
.battle-modal-close {
    background: none;
    border: none;
    color: #8a92a3;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .2s;
}
.battle-modal-close:hover { background: #2a2d3a; }
.battle-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
}
.battle-modal-label {
    font-size: 12px;
    font-weight: 700;
    color: #8a92a3;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.battle-case-search-row { margin-bottom: 10px; }
.battle-case-search {
    width: 100%;
    box-sizing: border-box;
    background: #12141c;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    color: #e8eaf0;
    padding: 9px 12px;
    font-size: 13px;
}
.battle-case-search:focus { outline: none; border-color: #ff6b35; }
.battle-case-picker {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}
.battle-case-picker::-webkit-scrollbar { width: 4px; }
.battle-case-picker::-webkit-scrollbar-track { background: #12141c; }
.battle-case-picker::-webkit-scrollbar-thumb { background: #3a3d4a; border-radius: 4px; }

.battle-case-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #12141c;
    border: 1px solid #2a2d3a;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.battle-case-option:hover { border-color: #4a4d5a; background: #1e2231; }
.battle-case-option.selected { border-color: #ff6b35; background: #2a1a12; }
.battle-case-opt-icon { font-size: 22px; flex-shrink: 0; min-width: 30px; text-align: center; }
.battle-case-opt-name { font-size: 13px; color: #e8eaf0; font-weight: 600; }
.battle-case-opt-price { font-size: 12px; color: #f7c948; margin-top: 1px; }

.battle-count-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.battle-count-btn {
    background: #12141c;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    color: #c8cdd8;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    transition: all .15s;
    min-width: 48px;
    text-align: center;
}
.battle-count-btn:hover { border-color: #ff6b35; color: #ff6b35; }
.battle-count-btn.active { background: linear-gradient(135deg, #ff6b35, #f7c948); border-color: transparent; color: #1a1d24; }

.battle-modal-cost {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #f7c948;
    padding: 10px 14px;
    background: #12141c;
    border-radius: 8px;
    border: 1px solid #2a2d3a;
}
.battle-modal-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid #2a2d3a;
}
.btn-battle-confirm {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #1a1d24;
    font-weight: 800;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.btn-battle-confirm:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.btn-battle-confirm:disabled { opacity: .4; cursor: not-allowed; }

/* --- Арена --- */
.battle-back-row {
    margin-bottom: 10px;
}
.battle-arena-header {
    text-align: center;
    margin-bottom: 12px;
}
.battle-arena-title {
    font-size: 20px;
    font-weight: 800;
    color: #e8eaf0;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.battle-arena-meta {
    color: #8a92a3;
    font-size: 12px;
    margin-top: 3px;
}

.battle-players-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: start;
    position: relative;
}
.battle-player-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.battle-player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.battle-player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2d3a;
    object-fit: cover;
    border: 2px solid #3a3d4a;
    flex-shrink: 0;
}
.battle-player-name {
    font-size: 13px;
    font-weight: 700;
    color: #e8eaf0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================
   АДАПТИВНЫЕ РУЛЕТКИ — CSS-переменные по count
   bsize-lg  : 1–2 кейса
   bsize-md  : 3   кейса
   bsize-sm  : 4–5 кейсов
   bsize-xs  : 6–10 кейсов
   bsize-xxs : 11–15 кейсов
   ============================================= */
#battleArenaView {
    --card-w: 100px;
    --card-h: 88px;
    --img-w:  58px;
    --img-h:  43px;
    --win-h:  96px;
    --gap:    8px;
    --row-gap: 8px;
}
#battleArenaView.bsize-lg  { --card-w:100px; --card-h:88px;  --img-w:58px;  --img-h:43px;  --win-h:96px;  --gap:8px;  --row-gap:8px;  }
#battleArenaView.bsize-md  { --card-w:90px;  --card-h:80px;  --img-w:52px;  --img-h:38px;  --win-h:88px;  --gap:6px;  --row-gap:7px;  }
#battleArenaView.bsize-sm  { --card-w:76px;  --card-h:68px;  --img-w:44px;  --img-h:32px;  --win-h:76px;  --gap:4px;  --row-gap:5px;  }
#battleArenaView.bsize-xs  { --card-w:60px;  --card-h:54px;  --img-w:34px;  --img-h:25px;  --win-h:60px;  --gap:3px;  --row-gap:4px;  }
#battleArenaView.bsize-xxs { --card-w:48px;  --card-h:44px;  --img-w:26px;  --img-h:20px;  --win-h:50px;  --gap:2px;  --row-gap:3px;  }

/* Рулетки в батле */
.battle-roulettes {
    display: flex;
    flex-direction: column;
    gap: var(--row-gap, 8px);
}
.battle-roulette-wrapper {
    position: relative;
}
.battle-roulette-window {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #2a2d3a;
    background: #12141c;
    height: var(--win-h, 96px);
    position: relative;
}
.battle-roulette-window::before,
.battle-roulette-window::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.battle-roulette-window::before { left: 0; background: linear-gradient(to right, #12141c, transparent); }
.battle-roulette-window::after  { right: 0; background: linear-gradient(to left, #12141c, transparent); }
/* Центральный маркер — отдельный псевдоэлемент через box-shadow трека */
.battle-roulette-center-mark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255,183,0,.7);
    z-index: 3;
    pointer-events: none;
}
.battle-roulette-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    will-change: transform;
}
.battle-item-card {
    flex-shrink: 0;
    width: var(--card-w, 100px);
    height: var(--card-h, 88px);
    margin: 0 var(--gap, 4px);
    border-radius: 6px;
    background: #1a1d24;
    border: 1px solid #2a2d3a;
    border-bottom: 2px solid #b0c3d9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px;
    overflow: hidden;
    transition: box-shadow .3s;
    box-sizing: border-box;
}
.battle-item-card img {
    width: var(--img-w, 58px);
    height: var(--img-h, 43px);
    object-fit: contain;
    flex-shrink: 0;
}
.battle-card-name {
    font-size: 7px;
    color: #8a92a3;
    text-align: center;
    margin-top: 2px;
    line-height: 1.2;
    overflow: hidden;
    max-height: 14px;
}
/* Скрываем подпись при xxs */
#battleArenaView.bsize-xxs .battle-card-name { display: none; }

.battle-item-card.rarity-blue     { border-bottom-color: #4B69FF; }
.battle-item-card.rarity-lightblue  { border-bottom-color: #5e98d9; }
.battle-item-card.rarity-purple{ border-bottom-color: #8847ff; }
.battle-item-card.rarity-pink{ border-bottom-color: #d32ce6; }
.battle-item-card.rarity-red    { border-bottom-color: #eb4b4b; }
.battle-item-card.rarity-gold      { border-bottom-color: #ffb700; }

.battle-player-total {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #12141c;
    border-radius: 8px;
    border: 1px solid #2a2d3a;
}
.battle-total-label { font-size: 12px; color: #8a92a3; }
.battle-total-val   { font-size: 16px; font-weight: 800; color: #f7c948; }

/* VS Divider */
.battle-vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12px;
    gap: 10px;
}
.battle-vs-text {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.battle-countdown {
    font-size: 11px;
    color: #8a92a3;
    text-align: center;
    max-width: 80px;
}

/* Оверлей результата */
.battle-result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,12,18,.9);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}
#battleArenaView { position: relative; }
.battle-result-box {
    background: #1a1d24;
    border: 2px solid #f7c948;
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}
.battle-result-title {
    font-size: 24px;
    font-weight: 900;
    color: #f7c948;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}
.battle-result-winner {
    font-size: 20px;
    font-weight: 800;
    color: #e8eaf0;
    margin-bottom: 18px;
}
.battle-result-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}
.battle-result-item {
    background: #12141c;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    padding: 6px;
    border-bottom: 2px solid #b0c3d9;
    text-align: center;
}
.battle-result-item img { width: 70px; height: 52px; object-fit: contain; }
.battle-result-item div { font-size: 9px; color: #8a92a3; margin-top: 3px; line-height: 1.2; }
.battle-result-item-price { color: #f7c948 !important; font-weight: 700 !important; font-size: 10px !important; }
.battle-result-item.rarity-blue     { border-bottom-color: #4B69FF; }
.battle-result-item.rarity-lightblue  { border-bottom-color: #5e98d9; }
.battle-result-item.rarity-purple{ border-bottom-color: #8847ff; }
.battle-result-item.rarity-pink{ border-bottom-color: #d32ce6; }
.battle-result-item.rarity-red    { border-bottom-color: #eb4b4b; }
.battle-result-item.rarity-gold      { border-bottom-color: #ffb700; }

.btn-battle-again {
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #1a1d24;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.btn-battle-again:hover { opacity: .88; transform: translateY(-1px); }

/* --- Адаптив --- */
@media (max-width: 700px) {
    .battles-grid { grid-template-columns: 1fr; }
    .battle-players-row { grid-template-columns: 1fr; }
    .battle-vs-divider { flex-direction: row; padding: 0; }
    .battle-result-box { padding: 18px 14px; }
    .battle-result-items { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }

    /* На мобайле принудительно уменьшаем ещё на ступень */
    #battleArenaView.bsize-lg  { --card-w:80px;  --card-h:72px;  --img-w:46px;  --img-h:34px;  --win-h:80px;  }
    #battleArenaView.bsize-md  { --card-w:68px;  --card-h:60px;  --img-w:38px;  --img-h:28px;  --win-h:68px;  }
    #battleArenaView.bsize-sm  { --card-w:58px;  --card-h:52px;  --img-w:32px;  --img-h:23px;  --win-h:58px;  }
    #battleArenaView.bsize-xs  { --card-w:46px;  --card-h:42px;  --img-w:26px;  --img-h:19px;  --win-h:48px;  }
    #battleArenaView.bsize-xxs { --card-w:38px;  --card-h:36px;  --img-w:20px;  --img-h:15px;  --win-h:42px;  }
}


/* ========================
   FOOTER
   ======================== */

.site-footer {
  background: #12141a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0 20px;
  font-size: 13px;
  color: #7a8499;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  flex-shrink: 0;
  min-width: 200px;
}

.footer-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #d0d8ea;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-brand-name .dot {
  width: 6px;
  height: 6px;
  background: #f5a623;
  border-radius: 50%;
  display: inline-block;
}

.footer-brand-meta {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: #4d5568;
  max-width: 260px;
}

.footer-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-nav a,
.footer-nav button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #8a94aa;
  font-size: 12.5px;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: #c8d0e0;
  background: rgba(255,255,255,0.05);
}

.footer-nav .sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.footer-nav svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.footer-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f5a623 0%, #f7c35a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pay-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pay-visa   { background: #1a1f6e; color: #fff; font-style: italic; font-size: 12px; }
.pay-mc     { background: #252525; color: #fff; }
.pay-mc span.mc-o  { color: #eb001b; }
.pay-mc span.mc-oo { color: #f79e1b; margin-left: -5px; }
.pay-mir    { background: #006848; color: #fff; font-size: 9.5px; }
.pay-sbp    { background: #7B3FCC; color: #fff; font-size: 9px; }

/* Модалки */
.pd-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pd-modal-backdrop.active {
  display: flex;
}

.pd-modal {
  background: #181b24;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pd-modal-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.pd-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #d8e0f0;
  letter-spacing: 0.01em;
}

.pd-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: none;
  cursor: pointer;
  color: #7a8499;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.pd-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: #d8e0f0;
}

.pd-modal-body {
  overflow-y: auto;
  padding: 20px 22px 24px;
  color: #8a94aa;
  font-size: 13px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.pd-modal-body h2 {
  font-size: 14px;
  font-weight: 700;
  color: #c8d0e0;
  margin: 18px 0 7px;
}

.pd-modal-body h2:first-child { margin-top: 0; }
.pd-modal-body p { margin: 0 0 10px; }

.pd-modal-body ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.pd-modal-body ul li { margin-bottom: 4px; }

.pd-modal-body .pd-date {
  margin-top: 18px;
  font-size: 11px;
  color: #4d5568;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .footer-brand { min-width: unset; }
  .footer-brand-meta { max-width: 100%; }
  .footer-right { align-items: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 520px) {
  .footer-nav .sep { display: none; }
  .footer-nav a,
  .footer-nav button { font-size: 11.5px; padding: 5px 7px; }
}

/* ============================================================
   БОЕВОЙ ПРОПУСК — стили
   ============================================================ */

/* Кнопка вкладки с бейджем ИВЕНТ */
.bp-tab-btn { position: relative; }
.bp-event-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4e00, #ec9f05);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    border-radius: 4px;
    padding: 1px 4px;
    margin-left: 5px;
    vertical-align: middle;
    animation: bpBadgePulse 2s ease-in-out infinite;
    letter-spacing: 0.5px;
}
@keyframes bpBadgePulse {
    0%,100% { opacity:1; transform: scale(1); }
    50%      { opacity:.8; transform: scale(1.08); }
}

/* Звёздный баланс в хедере */
.bp-star-balance {
    border-color: rgba(255,215,0,0.3) !important;
    background: linear-gradient(135deg,rgba(255,215,0,0.08),rgba(255,140,0,0.06)) !important;
}

/* Внутренние табы пропуска */
.bp-inner-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1e2330;
    padding-bottom: 0;
}
.bp-inner-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #8a92a3;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    border-radius: 0;
}
.bp-inner-tab:hover { color: #c8d0e0; }
.bp-inner-tab.active { color: #FFD700; border-bottom-color: #FFD700; }

/* Баннер */
.bp-banner {
    position: relative;
    background: linear-gradient(135deg, #0f1420 0%, #1a1032 50%, #120a25 100%);
    border: 1px solid rgba(150,80,255,0.3);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
}
.bp-banner-glow {
    position: absolute;
    top: -60px; left: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(150,80,255,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.bp-banner-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(150,80,255,0.7);
}
.bp-banner-sub { font-size: 12px; color: #8a92a3; margin-top: 4px; }
.bp-countdown {
    font-size: 20px;
    font-weight: 900;
    color: #FFD700;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(255,215,0,0.5);
}
.bp-stars-box {
    text-align: center;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 12px;
    padding: 14px 22px;
    min-width: 140px;
    flex-shrink: 0;
}
.bp-stars-label { font-size: 11px; color: #8a92a3; text-transform: uppercase; letter-spacing: 1px; }
.bp-stars-value { font-size: 28px; font-weight: 900; color: #FFD700; margin: 4px 0; }
.bp-stars-hint { font-size: 10px; color: #5a6278; }

/* Категории */
.bp-quest-cats, .bp-shop-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.bp-cat-btn {
    background: #1e2330;
    border: 1px solid #2e3448;
    border-radius: 20px;
    color: #8a92a3;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.bp-cat-btn:hover { background: #252c3e; color: #c8d0e0; border-color: #4B69FF; }
.bp-cat-btn.active { background: linear-gradient(135deg,#2a3a8f,#4B69FF); border-color: #4B69FF; color: #fff; }

/* Сетка заданий */
.bp-quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

/* Карточка задания */
.bp-quest-card {
    background: #13161e;
    border: 1px solid #1e2330;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.bp-quest-card:hover { border-color: #2e3448; }
.bp-quest-card.completed {
    border-color: rgba(40,167,69,0.4);
    background: linear-gradient(135deg,#0d1a10,#13161e);
}
.bp-quest-card.claimed {
    border-color: #2e3448;
    opacity: .6;
}
/* Шапка карточки: бейдж категории слева, награда справа */
.bp-quest-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}
.bp-quest-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.bp-quest-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e2330;
    border-radius: 10px;
}
.bp-quest-info { flex: 1; min-width: 0; }
.bp-quest-name {
    font-size: 14px;
    font-weight: 800;
    color: #c8d0e0;
    line-height: 1.3;
    margin-bottom: 3px;
}
.bp-quest-desc { font-size: 11px; color: #6e7681; line-height: 1.4; }
.bp-quest-reward {
    font-size: 13px;
    font-weight: 900;
    color: #FFD700;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 6px;
    padding: 2px 8px;
}

/* Прогресс-бар */
.bp-progress-wrap { width: 100%; }
.bp-progress-bar-bg {
    height: 8px;
    background: #1e2330;
    border-radius: 99px;
    overflow: hidden;
}
.bp-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4B69FF, #9c40ff);
    border-radius: 99px;
    transition: width .5s ease;
    min-width: 0;
}
.bp-progress-label {
    font-size: 10px;
    color: #6e7681;
    margin-top: 4px;
    text-align: right;
}

/* Кнопка получить награду */
.bp-claim-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 16px;
    cursor: pointer;
    width: 100%;
    transition: opacity .2s, transform .1s;
    letter-spacing: .3px;
}
.bp-claim-btn:hover { opacity: .9; transform: translateY(-1px); }
.bp-claim-btn:active { transform: translateY(0); }
.bp-claim-btn:disabled { background: #2e3448; color: #5a6278; cursor: not-allowed; transform: none; }

/* Бейдж «Выполнено» */
.bp-done-badge {
    font-size: 12px;
    font-weight: 700;
    color: #28a745;
    text-align: center;
    padding: 6px;
}

/* Бейдж категории на карточке — часть шапки (flex) */
.bp-quest-cat-badge {
    font-size: 9px;
    font-weight: 800;
    color: #8a92a3;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #1a1e2b;
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}

/* ---- МАГАЗИН ЗВЁЗД ---- */
.bp-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.bp-shop-title { font-size: 20px; font-weight: 900; color: #fff; }
.bp-shop-balance {
    font-size: 14px;
    font-weight: 700;
    color: #FFD700;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 20px;
    padding: 6px 14px;
}
.bp-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.bp-shop-card {
    background: #13161e;
    border: 1px solid #1e2330;
    border-radius: 14px;
    padding: 18px 14px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    cursor: default;
}
.bp-shop-card:hover {
    border-color: rgba(255,215,0,0.3);
    box-shadow: 0 0 18px rgba(255,215,0,0.08);
    transform: translateY(-2px);
}
.bp-shop-card.bought { border-color: rgba(40,167,69,0.35); opacity:.7; }
.bp-shop-card-icon { font-size: 38px; line-height: 1; }
.bp-shop-card-name {
    font-size: 14px;
    font-weight: 800;
    color: #c8d0e0;
    line-height: 1.3;
}
.bp-shop-card-desc { font-size: 11px; color: #6e7681; }
.bp-shop-card-price {
    font-size: 16px;
    font-weight: 900;
    color: #FFD700;
}
.bp-shop-buy-btn {
    background: linear-gradient(135deg, #FFD700, #ff8c00);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 13px;
    font-weight: 900;
    padding: 9px 12px;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    width: 100%;
}
.bp-shop-buy-btn:hover { opacity:.9; transform: translateY(-1px); }
.bp-shop-buy-btn:disabled { background: #2e3448; color: #5a6278; cursor: not-allowed; transform: none; }

/* Тост уведомление о звёздах */
.bp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #1a1f2e, #252c3e);
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: 12px;
    padding: 14px 20px;
    color: #FFD700;
    font-size: 15px;
    font-weight: 800;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    transform: translateY(80px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
    pointer-events: none;
    max-width: 300px;
}
.bp-toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 600px) {
    .bp-banner { flex-direction: column; }
    .bp-stars-box { width: 100%; }
    .bp-quests-grid { grid-template-columns: 1fr; }
    .bp-shop-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
}

/* Кнопка Боевого Пропуска в области профиля */
.btn-bp-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a1032, #2a1a5e);
    border: 1px solid rgba(150,80,255,0.45);
    border-radius: 8px;
    color: #d4b8ff;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 12px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s, box-shadow .2s;
    letter-spacing: .2px;
    line-height: 1;
}
.btn-bp-profile:hover {
    background: linear-gradient(135deg, #251545, #3d27a0);
    border-color: rgba(150,80,255,0.8);
    box-shadow: 0 0 12px rgba(150,80,255,0.3);
    color: #fff;
    text-decoration: none;
}

/* Маленький пульсирующий индикатор активного ивента (замена бейджу «ИВЕНТ») */
.bp-event-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4e00, #ec9f05);
    animation: bpBadgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Таймер ивента внутри кнопки Боевого Пропуска — теперь в одну строку */
.bp-btn-timer {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(212, 184, 255, 0.75);
    letter-spacing: .3px;
    line-height: 1;
}

/* Кликабельная зона с аватаром и именем в шапке */
.steam-user-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 4px;
    transition: background .15s;
    color: inherit;
    text-decoration: none;
}
.steam-user-profile-link:hover {
    background: rgba(255,183,0,0.08);
}
.steam-user-profile-link:hover span {
    color: #ffb700;
}
/* Имя профиля скрыто в шапке — остаётся только аватар (наводите курсор, чтобы увидеть ник) */
.steam-user-profile-link #profileName {
    display: none;
}
.profile-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
