/* --- 1. ПЕРЕМЕННЫЕ И ОБЩИЕ СТИЛИ --- */
:root {
    --bg-color: #1A1C24;
    --surface-color: #252832;
    --text-color-dark: #E0E0E0;
    --text-color-light: #8e91a5;
    --primary-color: #5a7dff;
    --accent-green: #28a745;
    --accent-red: #dc3545;
    --font-main: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --navbar-height: 80px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg-color); color: var(--text-color-dark); font-family: var(--font-main); overflow: hidden; position: fixed; width: 100%; height: 100%; }
.hidden { display: none !important; }

#hacker-bg-canvas { 
    position: fixed;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    z-index: 0; 
    opacity: 0.5;
}

/* --- ТЕРМИНАЛЬНЫЙ ЗАГРУЗЧИК --- */
#terminal-loader { position: fixed; inset: 0; background-color: #000; z-index: 1000; display: flex; justify-content: center; align-items: center; padding: 20px; font-family: var(--font-mono); }
.terminal-window { width: 100%; max-width: 600px; height: 80%; max-height: 400px; background-color: rgba(10, 10, 10, 0.85); border: 1px solid #333; border-radius: 8px; box-shadow: 0 0 20px rgba(0, 255, 0, 0.2); display: flex; flex-direction: column; }
.terminal-header { background-color: #333; padding: 8px 12px; border-top-left-radius: 7px; border-top-right-radius: 7px; color: #ccc; font-size: 14px; }
.terminal-body { flex-grow: 1; padding: 15px; overflow-y: auto; color: #0F0; font-size: 14px; line-height: 1.6; }
.log-command { color: #fff; animation: fadeIn 0.5s; }
.progress-bar-container { padding: 10px 15px; border-top: 1px solid #333; }
#progress-bar { width: 0%; height: 8px; background: linear-gradient(90deg, #0F0, #008000); border-radius: 4px; transition: width 0.3s ease-in-out; }

/* --- ОСНОВНАЯ СТРУКТУРА --- */
#app-container { display: flex; flex-direction: column; height: 100%; position: relative; z-index: 1; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- КОНТЕНТ --- */
.content {
    flex-grow: 1;
    overflow-y: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px calc(var(--navbar-height) + 20px) 20px;
    position: relative;
    z-index: 1;
}
.view { display: none; }
.view.active { display: block; animation: viewFadeIn 0.4s ease; }
@keyframes viewFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- БЛОК ПРОФИЛЯ --- */
.profile-block {
    background: rgba(37, 40, 50, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 15px;
    margin-top: 40px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.profile-block.in-view { opacity: 1; transform: translateY(0); }
.profile-block-avatar { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--primary-color); object-fit: cover; }
.profile-block-info { 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
}
.profile-block-user-info {
    display: flex;
    flex-direction: column;
}
#user-name { font-size: 20px; font-weight: 600; }
.user-id-display { 
    font-size: 14px; 
    color: var(--text-color-light); 
    font-weight: 400; 
    margin-top: 2px;
    opacity: 0.8;
}
.timer-box { text-align: right; }
#countdown-timer {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-green);
    background-color: rgba(0,0,0,0.2);
    padding: 5px 10px;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
}
.timer-box .stats-label {
    display: block;
    font-size: 12px;
    color: var(--text-color-light);
    margin-bottom: 2px;
}
.timer-box.expired #countdown-timer { color: var(--accent-red); background-color: rgba(220, 53, 69, 0.2); }

/* --- БЛОК ТИКЕТОВ --- */
.tickets-section {
    background: rgba(37, 40, 50, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tickets-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tickets-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color-dark);
    font-weight: 600;
}

.tickets-icon {
    font-size: 18px;
}

#tickets-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

.tickets-label {
    font-size: 14px;
    color: var(--text-color-light);
}

.signal-restore-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color-dark);
    font-weight: 600;
    background: rgba(255, 107, 107, 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.signal-restore-timer.hidden {
    display: none;
}

.timer-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

#signal-timer-display {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b6b;
    font-family: var(--font-mono);
}

.timer-label {
    font-size: 12px;
    color: #ff6b6b;
}

/* --- КАРТОЧКИ ИГР --- */
.view-title { text-align: center; font-size: 24px; font-weight: 700; margin-bottom: 20px; margin-top: 20px; }
.games-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; 
}
.game-card {
    background: rgba(37, 40, 50, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex; 
    flex-direction: column; 
    text-align: center; 
    cursor: pointer;
}
.game-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i, 0) * 0.05s);
}
.game-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.game-card:active { transform: scale(0.97); }
.game-icon { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    border-radius: 15px; 
    object-fit: cover;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
}
.game-card:hover .game-icon {
    transform: scale(1.05);
}
.game-title { font-weight: 600; font-size: 15px; margin-top: 10px; flex-grow: 1; margin-bottom: 15px; }
.play-button {
    background: rgba(46, 213, 115, 0.1); color: #2ed573; border: 2px solid #2ed573;
    padding: 12px 20px; border-radius: 20px; font-family: inherit; font-size: 14px;
    font-weight: 700;
    cursor: pointer; width: 100%; pointer-events: none;
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.3), inset 0 0 10px rgba(46, 213, 115, 0.1);
    text-shadow: 0 0 8px rgba(46, 213, 115, 0.8); backdrop-filter: blur(5px);
}
.game-card.disabled { filter: grayscale(90%); opacity: 0.6 !important; cursor: not-allowed; }
.game-card.disabled:hover { transform: none; box-shadow: none; }
.game-card.disabled .play-button { background-color: #4a4e5a; color: var(--text-color-light); border-color: #4a4e5a;}

/* --- ТЕХНИЧЕСКИЕ РАБОТЫ --- */
.game-card.on-maintenance {
    position: relative;
    filter: grayscale(50%);
    opacity: 0.8;
    cursor: not-allowed;
}

.game-card.on-maintenance:hover {
    transform: none;
    box-shadow: none;
}

.maintenance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    padding: 20px;
}

.maintenance-content {
    text-align: center;
    color: #ff6b6b;
    width: 100%;
}

.maintenance-icon {
    font-size: 28px;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
}

.maintenance-text {
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    margin-bottom: 8px;
}

.maintenance-game-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
}

.maintenance-status {
    font-size: 10px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* --- НАВИГАЦИЯ --- */
.navbar {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--navbar-height); z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    background: rgba(26, 28, 36, 0.8);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-title {
    font-size: 22px; font-weight: 700; color: var(--text-color-dark);
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) / 2);
}
.nav-button {
    background: none; border: none; color: var(--text-color-light);
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 5px; font-size: 12px; font-weight: 500;
    cursor: pointer; transition: color 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent; flex-basis: 80px;
}
.nav-button:active { transform: scale(0.95); }
.nav-icon { font-size: 24px; }
.nav-button.active { color: var(--primary-color); }
@media (max-width: 350px) { .nav-text { display: none; } }

/* --- СОСТОЯНИЕ "НЕТ ВРЕМЕНИ" --- */
.empty-state-placeholder { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 20px;}
.empty-state-icon { font-size: 50px; opacity: 0.5; }
.empty-state-placeholder h3 { font-size: 20px; }
.empty-state-placeholder p { color: var(--text-color-light); max-width: 300px; }
.button-primary {
    background: var(--primary-color); color: #fff; border: none;
    padding: 15px 20px; border-radius: 15px; font-family: inherit;
    font-size: 16px; font-weight: 600; cursor: pointer;
    margin-top: 15px; max-width: 200px;
}

/* --- ОБЩИЕ СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН --- */
.modal-overlay {
    position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100; display: flex; justify-content: center; align-items: center; padding: 20px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: all; }
.modal-content {
    background: var(--surface-color); border-radius: 20px; width: 100%; max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden; transform: scale(0.95); transition: transform 0.3s ease;
    display: flex; flex-direction: column; max-height: 85vh;
}
.modal-overlay:not(.hidden) .modal-content { transform: scale(1); }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.modal-body { padding: 20px; overflow-y: auto; flex-grow: 1; }
#modal-game-title, #deposit-modal-title { font-size: 20px; font-weight: 600; }
.modal-close-btn { background: none; border: none; color: var(--text-color-light); font-size: 28px; cursor: pointer; line-height: 1; }
.sync-spinner {
    width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary-color); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- МОДАЛЬНОЕ ОКНО ЗАПУСКА ИГРЫ --- */
#sync-screen { 
    padding: 40px 20px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
}
.sync-logs-container { 
    font-family: var(--font-mono); 
    font-size: 13px; 
    color: var(--text-color-light); 
    height: 85px; 
    width: 100%; 
    text-align: left; 
    overflow: hidden; 
}
.sync-log-entry { 
    animation: fadeIn 0.5s; 
    margin-bottom: 4px; 
}

/* ИЗМЕНЕНИЕ: Полностью переработаны стили для экрана информации об игре */
#game-info-screen.modal-body {
    padding: 0; /* Убираем внутренние отступы, т.к. управляем ими в дочерних элементах */
}
#game-info-screen #modal-game-title {
    padding: 0 20px;
    margin-bottom: 8px;
}
#game-info-screen #modal-game-description { 
    font-size: 15px; 
    color: var(--text-color-light); 
    line-height: 1.6; 
    margin-bottom: 20px;
    padding: 0 20px;
}
#game-info-screen .game-video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    background-color: #000;
    margin-bottom: 20px; /* Отступ после видео */
}
#game-info-screen video { 
    width: 100%; 
    height: 100%;
    object-fit: cover;
}
#game-info-screen .modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ИЗМЕНЕНИЕ: Новые стили для главной кнопки "Играть" */
#modal-play-btn {
    width: 100%;
    background: linear-gradient(145deg, #6c8cff, var(--primary-color));
    color: #fff;
    border: none;
    padding: 16px 20px;
    border-radius: 15px;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(90, 125, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#modal-play-btn:hover {
    background: linear-gradient(145deg, #7a9aff, #6a8dff);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 125, 255, 0.5);
}
#modal-play-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(90, 125, 255, 0.3);
}


/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПОПОЛНЕНИЯ --- */
#payment-method-selection > p { text-align: center; color: var(--text-color-light); margin-bottom: 20px; }
.payment-method-card {
    background: var(--bg-color); padding: 20px; border-radius: 15px;
    display: flex; align-items: center; gap: 15px; cursor: pointer;
    transition: background-color 0.2s; border: 1px solid rgba(255,255,255,0.1);
}
.payment-method-card:not(:last-child) { margin-bottom: 15px; }
.payment-method-card:hover { background-color: rgba(255,255,255,0.05); }
.payment-icon { font-size: 32px; }
.payment-details h3 { margin: 0; font-size: 18px; }
.payment-details p { margin: 0; color: var(--text-color-light); font-size: 14px;}
#usdt-payment-view { display: flex; flex-direction: column; gap: 15px; }
.deposit-instruction { font-size: 15px; line-height: 1.6; color: var(--text-color-light); text-align: center; }
.deposit-warning { font-size: 13px; line-height: 1.5; color: var(--accent-red); background: rgba(220, 53, 69, 0.15); padding: 10px; border-radius: 10px; text-align: center; }
.deposit-info-box label { display: block; margin-bottom: 8px; color: var(--text-color-light); font-size: 14px; }
.copyable-field {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-color); padding: 10px 15px; border-radius: 12px;
    font-family: var(--font-mono);
}
.copyable-field span { word-break: break-all; font-size: 16px; color: var(--text-color-dark); }
.copy-button { background: none; border: none; color: var(--primary-color); cursor: pointer; font-size: 20px; margin-left: 10px; transition: transform 0.2s; }
.copy-button:active { transform: scale(0.9); }
#sbp-payment-view { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 250px; }
#sbp-status-text { transition: color 0.3s; }

/* --- СТИЛИ ДЛЯ ОБНОВЛЕННОГО МАГАЗИНА (КАРУСЕЛЬ И БЛОКИ) --- */
.store-balance-header {
    background: rgba(37, 40, 50, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}
.store-balance-header span {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-dark);
}
.store-balance-header h3 {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    background-color: rgba(0,0,0,0.2);
    padding: 5px 12px;
    border-radius: 8px;
}
.store-features {
    background: rgba(37, 40, 50, 0.6);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.store-features .features-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-dark);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.store-features ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.store-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color-dark);
}
.store-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 900;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background-color: rgba(40, 167, 69, 0.15);
    flex-shrink: 0;
}
.profit-display {
    text-align: center;
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(37, 40, 50, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.profit-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}
.profit-tooltip {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-color-light);
    color: var(--background-start);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    position: relative;
}
.profit-tooltip:hover {
    opacity: 1;
}
.profit-tooltip.active {
    opacity: 1;
}
.profit-tooltip::before {
    content: attr(data-tooltip);
    width: 20vh;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.profit-tooltip::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}
.profit-tooltip:hover::before,
.profit-tooltip.active::before {
    opacity: 1;
    visibility: visible;
}
.profit-tooltip:hover::after,
.profit-tooltip.active::after {
    opacity: 1;
    visibility: visible;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .profit-tooltip::before {
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 280px;
        font-size: 11px;
        padding: 10px 14px;
    }
    .profit-tooltip::after {
        bottom: 20px;
    }
}
.profit-display span {
    font-size: 14px;
    color: var(--text-color-light);
}
.profit-display h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green);
    margin: 5px 0 0 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.profit-display h3.updating {
    opacity: 0.5;
}
.profit-display h3.profit-up {
    color: var(--accent-green);
}
.profit-display h3.profit-down {
    color: #ff4757;
}
.profit-arrow {
    font-size: 20px;
    transition: all 0.3s ease;
}
.profit-arrow.up {
    color: var(--accent-green);
}
.profit-arrow.down {
    color: #ff4757;
}
.store-carousel-wrapper {
    position: relative;
    margin: 0 -20px;
}
.store-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px;
    gap: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.store-carousel::-webkit-scrollbar {
    display: none;
}
.carousel-slide {
    flex: 0 0 75%;
    max-width: 300px;
    background: var(--surface-color);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    scroll-snap-align: center;
    opacity: 0.6;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
}
.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary-color);
}
.slide-content {
    padding: 25px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.slide-content .item-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 15px;
}
.slide-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}
.slide-content .item-price {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 10px 0 20px 0;
}
.slide-content .buy-button {
    width: 100%;
    margin-top: auto;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 15px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.wins-feed-section {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wins-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.wins-feed-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}
.wins-feed-header .header-icon {
    font-size: 20px;
}
.online-counter {
    font-size: 14px;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.online-counter::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
.wins-feed-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 0 15px 0;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.wins-feed-carousel::-webkit-scrollbar {
    display: none;
}
.win-card {
    background-color: #2a2d38;
    border-radius: 10px;
    padding: 8px;
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.win-card-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #1c1e26;
    margin-bottom: 4px;
}
.win-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.win-id {
    width: 10px;
    font-size: 9px;
    color: var(--text-color-light);
    font-family: var(--font-mono);
}
.win-coefficient {
    background-color: var(--accent-green);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 8px;
}
.win-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.win-bet {
    font-size: 10px;
    color: var(--text-color-light);
    font-family: var(--font-mono);
}
.win-amount {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
    font-family: var(--font-mono);
}
.win-userid {
    font-size: 9px;
    color: var(--text-color-light);
    font-family: var(--font-mono);
    margin-top: 2px;
}

/* АДМИНСКИЕ КОНТРОЛЫ */
.admin-controls {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

.admin-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.admin-control-group {
    margin-bottom: 1.5rem;
}

.admin-control-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.admin-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-input-group input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-glass);
    color: var(--text-color);
    font-size: 0.9rem;
}

.admin-input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-input-group button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}