/* ═══════════════════════════════════════════════════════════════
   VEGAS Casino Theme - Dark Teal/Yellow/Red
   ═══════════════════════════════════════════════════════════════ */

/* Сброс отступов - ноль зазора сверху */
html, body.vegas-theme {
    margin: 0 !important;
    padding: 0 !important;
}
.vegas-theme #root,
.vegas-theme .main {
    margin: 0 !important;
    padding: 0 !important;
}

:root {
    --vegas-dark: #0c2d3a;
    --vegas-teal: #0d3d4d;
    --vegas-teal-light: #145262;
    --vegas-yellow: #ffd700;
    --vegas-red: #dc2626;
    --vegas-text: #e2e8f0;
    --vegas-text-muted: #94a3b8;
}

body.vegas-theme,
.vegas-theme body {
    background: linear-gradient(180deg, #0a2530 0%, #061a22 50%, #041118 100%) !important;
    color: var(--vegas-text) !important;
    overflow-x: hidden !important;
}
.vegas-theme .main,
.vegas-theme #root {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.vegas-theme .main.rows { 
    background: transparent !important;
    flex-direction: row !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* Сброс app.css + фиксируем хедер при скролле */
@media (min-width: 993px) {
    .vegas-theme .desktop-header,
    .vegas-theme .desktop-header.header-premium {
        position: fixed !important;
        top: 0 !important;
        left: 260px !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 100 !important;
    }
    .vegas-theme body:has(.left-main.collapsed) .desktop-header,
    .vegas-theme body:has(.left-main.collapsed) .desktop-header.header-premium {
        left: 90px !important;
    }
    .vegas-theme .right-main {
        padding-top: 56px !important;
    }
}
.vegas-theme .header-premium-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 24px !important;
}

.vegas-theme .right-main {
    width: 100% !important;
    margin-left: 260px !important;
    min-width: 0;
    max-width: calc(100vw - 260px) !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}
.vegas-theme .left-main.collapsed ~ .right-main {
    margin-left: 90px !important;
    max-width: calc(100vw - 90px) !important;
}
.vegas-theme .panel {
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}
.vegas-theme .left-main {
    width: 260px !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.vegas-theme .panel {
    max-width: 100% !important;
    padding: 0 20px 40px !important;
    margin: 0 !important;
}
@media (max-width: 992px) {
    .vegas-theme .right-main {
        padding-top: 0 !important;
    }
}
.vegas-theme .panel.container.mt-4 {
    margin-top: 0 !important;
}

/* Хедер во всю ширину, но не выходит за границы */
.vegas-theme .header,
.vegas-theme .header-casino {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}
.vegas-theme .desktop-header,
.vegas-theme .mobile-top-bar {
    width: 100% !important;
    max-width: 100% !important;
}
.vegas-theme .header-casino-inner {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Header - цельный блок */
.vegas-theme .header-search,
.vegas-theme .btn-casino,
.vegas-theme .btn-cashier-compact {
    border-radius: 4px !important;
}
.vegas-theme .header-casino-inner {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

/* Vegas Header - аккуратно прикреплен к верху контентной части */
.vegas-theme .header {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.vegas-theme .desktop-header,
.vegas-theme .mobile-top-bar {
    z-index: 100 !important;
    background: linear-gradient(180deg, #0a2530 0%, #061a22 100%) !important;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
}
/* Не навязываем внутренние сдвиги хедера — только базовый стиль */

.vegas-theme .bitbet-logo {
    background: linear-gradient(135deg, var(--vegas-red) 0%, #b91c1c 100%) !important;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.vegas-theme .nav-item { 
    color: var(--vegas-text-muted) !important; 
}
.vegas-theme .nav-item:hover { 
    color: #ff8c00 !important; 
}
.vegas-theme .nav-item.isActive { 
    color: #ff8c00 !important; 
}

.vegas-theme .btn-auth {
    background: var(--vegas-teal-light) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.vegas-theme .btn-auth:hover {
    background: var(--vegas-teal) !important;
}

.vegas-theme .btn-register {
    background: #ff8c00 !important;
    color: #fff !important;
    border: none !important;
}

.vegas-theme .btn-register:hover {
    background: #ffa500 !important;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4) !important;
}

/* Vegas/GGBET Left Menu - как Beef: привязано к странице, листается */
.vegas-theme .left-main {
    display: block !important;
}
.vegas-theme .floating-games-menu {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #0a2530 0%, #061a22 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
    z-index: 90 !important;
}
.vegas-theme .floating-games-menu .games-list,
.vegas-theme .floating-games-menu .sidebar-scroll {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}
/* Скрыть скроллбар - не отвлекает, меню всё равно листается */
.vegas-theme .floating-games-menu .sidebar-scroll,
.vegas-theme .floating-games-menu .games-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.vegas-theme .floating-games-menu .sidebar-scroll::-webkit-scrollbar,
.vegas-theme .floating-games-menu .games-list::-webkit-scrollbar {
    display: none;
}
.vegas-theme .left-main.collapsed .floating-games-menu {
    width: 70px !important;
    padding: 10px !important;
}
.vegas-theme .game-item {
    background: rgba(20, 82, 98, 0.6) !important;
    border-radius: 12px !important;
}
.vegas-theme .game-item:hover {
    background: rgba(255, 140, 0, 0.25) !important;
}
.vegas-theme .game-item.isActive {
    background: rgba(255, 140, 0, 0.35) !important;
    border: 1px solid rgba(255, 140, 0, 0.5) !important;
}

/* Vegas Hero Banners */
.vegas-banner-track {
    display: flex;
    gap: 16px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.vegas-banner-slide {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 320px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 220px;
}

@media (max-width: 1200px) {
    .vegas-banner-slide { flex: 0 0 50%; min-width: 280px; }
}

@media (max-width: 768px) {
    .vegas-banner-slide { flex: 0 0 100%; min-width: 100%; }
}

.vegas-banner-text {
    color: var(--vegas-yellow) !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6) !important;
}

/* Vegas Filter Bar */
.vegas-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    background: var(--vegas-teal) !important;
    border: none !important;
    border-radius: 0;
    margin: 0 -20px 20px -20px;
    overflow-x: auto;
}

.vegas-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.vegas-filter-item:hover,
.vegas-filter-item.active {
    background: rgba(255, 215, 0, 0.2);
    color: var(--vegas-yellow);
}

/* Vegas Game Grid */
.vegas-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.vegas-section-title .star-icon {
    color: var(--vegas-yellow);
}

.vegas-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.vegas-game-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
}

.vegas-game-card:hover {
    transform: scale(1.05);
}

.vegas-game-card .new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Floating Wheel Widget */
.vegas-floating-wheel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--vegas-teal) 0%, var(--vegas-dark) 100%);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    animation: vegas-pulse 2s ease-in-out infinite;
}

.vegas-floating-wheel:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.vegas-floating-wheel-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--vegas-red) 0deg 120deg,
        #1e3a5f 120deg 240deg,
        #fff 240deg 360deg
    );
    animation: vegas-wheel-spin 3s linear infinite;
}

.vegas-floating-wheel-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    max-width: 180px;
}

@keyframes vegas-pulse {
    0%, 100% { border-color: rgba(255, 215, 0, 0.3); }
    50% { border-color: rgba(255, 215, 0, 0.6); }
}

@keyframes vegas-wheel-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Убрать синюю полоску снизу - футер в тёмной теме */
.vegas-theme .casino-footer {
    background: rgba(13, 61, 77, 0.95) !important;
    border-top: 1px solid rgba(255, 140, 0, 0.2) !important;
}

/* Header: цельный блок, во всю ширину */
.vegas-theme .header-casino-inner {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}
.vegas-theme .header-center {
    max-width: 400px !important;
}
/* Хедер выше меню — меню не налазит на header-premium-inner */
.vegas-theme .right-main {
    position: relative;
    z-index: 0;
}
.vegas-theme .header {
    border-radius: 0 !important;
}

/* Mobile: скрыть сайдбар полностью, только нижняя навигация */
@media (max-width: 992px) {
    .vegas-theme .right-main {
        margin-left: 0 !important;
    }
    .vegas-theme .left-main {
        width: 0 !important;
        min-width: 0 !important;
        overflow: visible !important;
        position: static !important;
    }
    .vegas-theme .left-main .floating-games-menu {
        display: none !important;
    }
    .vegas-theme .mob-nav-bottom {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
    }
}

/* Bottom sheet + mob-nav - safe area для iPhone/Android */
.vegas-theme .bottom-sheet {
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
}
.vegas-theme .bottom-sheet-content {
    padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
}
@media (max-width: 480px) {
    .vegas-theme .bottom-sheet {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .vegas-theme .bottom-sheet-item {
        padding: 12px !important;
    }
}

/* Кнопки на странице бонусов - золотые вместо красных */
.vegas-theme .bonuses .blue,
.vegas-theme .bonus .blue,
.vegas-theme .content.cards .blue {
    background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #0a1619 !important;
}
.vegas-theme .bonuses .blue:hover,
.vegas-theme .bonus .blue:hover {
    background: linear-gradient(135deg, #ffe44d, #ffa500) !important;
}

/* ═══ МОБИЛЬНАЯ АДАПТАЦИЯ (приоритет в конце) ═══ */
@media (max-width: 992px) {
    .vegas-theme .right-main {
        margin-left: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .vegas-theme .panel,
    .vegas-theme .panel.container {
        max-width: 100vw !important;
        width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box !important;
    }
    .vegas-theme .vegas-hero-banners {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .vegas-theme .vegas-banner-track {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        box-sizing: border-box !important;
    }
    .vegas-theme .vegas-banner-slide {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        scroll-snap-align: start !important;
    }
    .vegas-theme .vegas-banner-inner {
        width: 100% !important;
    }
    .vegas-theme .content.cards.slots,
    .vegas-theme .slots-page-new,
    .vegas-theme .slots-filters-bar.home-filters,
    .vegas-theme .home-filters,
    .vegas-theme .game_list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .vegas-theme .home-filters {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
@media (max-width: 576px) {
    .vegas-theme .panel.container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
