/* ═══════════════════════════════════════════════════════════════
   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;
    }
    body.sidebar-collapsed .desktop-header,
    body.sidebar-collapsed .desktop-header.header-premium {
        left: 70px !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;
}
body.sidebar-collapsed .right-main {
    margin-left: 70px !important;
    max-width: calc(100vw - 70px) !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: sticky !important; top: 0 !important; z-index: 9999 !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;
}

/* Quick Links Fix */
.header-quick-btn {
    background: transparent !important;
}
.header-quick-btn .q-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5)) !important;
}
.header-quick-btn span {
    font-size: 10px !important;
    margin-top: 2px !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 { position: sticky !important; top: 0 !important; z-index: 9999 !important; 
    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;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ULTRA-PREMIUM PROFILE (CASINO 2026) - DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.profile-premium-dashboard {
    padding-top: 30px !important;
    font-family: 'Outfit', sans-serif !important;
    color: #fff;
}

.bb-glass-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 45px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-glass-premium:hover {
    border-color: rgba(234, 179, 8, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 20px rgba(234, 179, 8, 0.05) !important;
}

/* [ULTRA] Top Row Layout */
.profile-top-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Membership Card */
.player-membership-card {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    background: linear-gradient(105deg, #0f1c25 0%, #070a0e 100%) !important;
    border: 1px solid rgba(234, 179, 8, 0.15) !important;
}

.pmc-avatar-zone {
    position: relative;
    margin-right: 35px;
}

.pmc-avatar-border {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    padding: 3px;
    background: linear-gradient(135deg, #eab308, #b45309);
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.25);
}

.pmc-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #000;
}

.pmc-rank-icon {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: #000;
    border: 2px solid #eab308;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.pmc-rank-icon img { width: 22px; height: 22px; }

.pmc-info-zone { flex: 1; }

.pmc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.pmc-username {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.pmc-vip-badge {
    padding: 6px 14px;
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pmc-progress { margin-bottom: 12px; }

.pmcp-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pmcp-bar-bg {
    height: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    overflow: hidden;
}

.pmcp-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #eab308, #facc15);
}

.pmc-date { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 500; }

/* Balance Card */
.balance-card-premium {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bc-label { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.bc-value { font-size: 38px; font-weight: 900; color: #fff; margin-bottom: 25px; }
.bc-value span { color: #eab308; }

.bc-btn {
    width: 100%;
    height: 54px;
    background: #eab308;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
    transition: all 0.2s;
}

.bc-btn:hover { background: #facc15; transform: scale(1.02); }

/* Action Grid - Now 3 items for better balance */
.action-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.action-card-premium {
    display: flex;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card-premium:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(234, 179, 8, 0.4) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(234, 179, 8, 0.1);
}

.acp-icon-circle {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    overflow: hidden;
}

.acp-icon-circle .p-icon {
    width: 70%;
    height: 70%;
    object-fit: contain;
    transition: all 0.3s;
}

.action-card-premium:hover .acp-icon-circle .p-icon {
    transform: rotate(5deg) scale(1.1);
}

.acp-title { display: block; font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.acp-desc { display: block; font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 600; }

/* Main Layout */
.profile-main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Stats Ultra - Enhanced Premium Feel */
.stats-grid-ultra {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.ut-stat-card {
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ut-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: scale(1.02);
}

.utsc-icon { 
    font-size: 24px; 
    width: 48px; 
    height: 48px; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.3s;
    overflow: hidden;
}

.utsc-icon .p-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
    transition: all 0.3s;
}

.ut-stat-card:hover .utsc-icon .p-icon {
    transform: rotate(-10deg) scale(1.1);
}

.utsc-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; display: block; }
.utsc-value { font-size: 20px; font-weight: 900; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.1); }

.ut-stat-card.negative .utsc-value { color: #ef4444; text-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
.ut-stat-card.positive .utsc-value { color: #10b981; text-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }

/* Cashback Ultra */
.cashback-ultra {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cbu-info { display: flex; align-items: center; gap: 20px; }
.cbu-icon-wrap { 
    width: 54px; 
    height: 54px; 
    background: rgba(59, 130, 246, 0.1); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    border-radius: 12px; 
    font-size: 28px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
}

.cbu-icon-wrap .p-icon {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.cbu-title { display: block; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.cbu-desc { font-size: 12px; color: rgba(255,255,255,0.4); max-width: 250px; display: block; }

.cbu-stats { display: flex; align-items: center; gap: 30px; }
.cbus-item { display: flex; flex-direction: column; }
.cbus-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 4px; }
.cbus-value { font-size: 18px; font-weight: 800; }
.cbus-item.gold .cbus-value { color: #eab308; }

.claim-btn-ultra {
    padding: 12px 25px;
    background: #eab308;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

/* Right Sidebar Items */
.tg-ultra, .ref-ultra {
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
}

.tgu-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.tgu-icon { width: 36px; height: 36px; color: #0088cc; }
.tgu-title { font-size: 16px; font-weight: 800; }

/* Telegram Bot Premium */
.tg-ultra .tgu-get-btn {
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tg-ultra .tgu-get-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    filter: brightness(1.1);
}

/* Background Texture for Membership Card */
.player-membership-card.premium-bg {
    background-image: url('/image/premium_bg_texture.png') !important;
    background-size: cover !important;
    background-position: center !important;
}

.actions-ultra { display: flex; gap: 10px; }
.action-item-u { flex: 1; padding: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.action-item-u:hover { background: rgba(255,255,255,0.06); }
.action-item-u.logout { color: #ef4444; border-color: rgba(239, 68, 68, 0.1); }

/* Animation: Golden Shine */
.gold-shine {
    position: relative;
    overflow: hidden;
}

.gold-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 20%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.4), transparent);
    transform: rotate(25deg);
    animation: shine-sweep 4s infinite;
}

@keyframes shine-sweep {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Profile Balance Card Actions */
.bc-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.bc-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bc-btn.dep-glow {
    background: #eab308;
    color: #000;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}
.bc-btn.wit-link {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.bc-btn:hover { transform: translateY(-2px); }

/* [KEEP] Rank Table Refined */
.profile-rank-table-wrap { padding: 25px; border-radius: 12px; }
.table-modern td { background: rgba(0,0,0,0.2) !important; font-size: 13px !important; }
.table-modern td:first-child { border-radius: 8px 0 0 8px; }
.table-modern td:last-child { border-radius: 0 8px 8px 0; }

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .profile-top-row, .profile-main-layout { grid-template-columns: 1fr; }
    .action-grid-premium { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .profile-top-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .player-membership-card {
        padding: 20px !important;
        flex-direction: column !important;
        text-align: center;
    }
    .pmc-avatar-zone {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto;
    }
    .pmc-info-zone {
        margin-left: 0 !important;
        width: 100%;
    }
    .pmc-header {
        justify-content: center;
        margin-top: 10px;
    }
    .pmc-progress { max-width: 300px; margin: 15px auto; }
    
    .action-grid-premium {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .action-card-premium {
        padding: 15px !important;
    }
    .acp-icon-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    .acp-title { font-size: 14px !important; }
    .acp-desc { display: none !important; }
    
    .stats-grid-ultra {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .utsc-value { font-size: 16px !important; }
    
    .cashback-ultra {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
        padding: 20px !important;
    }
    .cbu-info { flex-direction: column; }
    .cbu-stats { flex-direction: column; width: 100%; gap: 15px; }
    .claim-btn-ultra { width: 100%; }
}

@media (max-width: 480px) {
    .bc-actions {
        flex-direction: column;
    }
    .bc-btn { width: 100%; }
}

/* --- Premium Referral Dashboard --- */
.ref-premium-wrapper {
    background: #0b0f16;
    color: #fff;
    min-height: 100vh;
    padding-bottom: 50px;
}

.ref-banner-ultra {
    position: relative;
    width: 100%;
    height: 380px;
    background: url('/image/referral_banner.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    margin-bottom: -60px;
    z-index: 1;
}

.ref-banner-content h1 {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 30px rgba(0,0,0,0.9);
    margin: 0;
    letter-spacing: 2px;
}

.ref-banner-content .highlight {
    color: #f59e0b;
    font-size: 56px;
    display: block;
    margin-top: 15px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.ref-stats-floating {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 20px;
}

.stat-card-premium {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-card-premium:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(245, 158, 11, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.15);
}

.scp-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.p-icon-luxe {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.scp-info .label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.scp-info .value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

.ref-action-grid {
    max-width: 1100px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.social-share-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-share-card:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: #f59e0b;
    transform: scale(1.05);
}

.social-share-card i {
    font-size: 42px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.social-share-card:hover i {
    transform: rotate(10deg);
}

.fa-telegram { color: #0088cc; }
.fa-vk { color: #4c75a3; }
.fa-comment-dots { color: #f59e0b; } /* Custom stylized share */
.fa-copy { color: #94a3b8; }

.social-share-card span {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tree-section-premium {
    max-width: 1100px;
    margin: 60px auto;
    padding: 50px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.2) 100%);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.section-title-luxe {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #fff, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hierarchy-visual {
    margin: 50px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('/image/referral_tree_bg.png') center/contain no-repeat;
    padding: 40px 0;
}

.node-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.tree-node-main {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 30%, #f59e0b, #d97706);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
    transform: rotate(-10deg);
}

.tree-node-main i {
    font-size: 40px;
    color: #111;
    transform: rotate(10deg);
}

.tree-node-sub {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
}

.tree-node-sub i {
    font-size: 24px;
    color: rgba(255,255,255,0.5);
}

.tree-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #f59e0b, transparent);
}

.tree-reward-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.reward-tab-btn {
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.reward-tab-btn.active {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.tr-table-luxe {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 20px;
}

.tr-table-luxe th {
    padding: 15px 25px;
    text-align: left;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tr-table-luxe td {
    padding: 20px 25px;
    background: rgba(255,255,255,0.02);
    font-size: 15px;
    transition: all 0.2s;
}

.tr-table-luxe tr td:first-child { border-radius: 15px 0 0 15px; }
.tr-table-luxe tr td:last-child { border-radius: 0 15px 15px 0; text-align: right; }

.tr-table-luxe tr:hover td {
    background: rgba(255,255,255,0.04);
    color: #f59e0b;
}

.tr-reward-val {
    color: #10b981;
    font-weight: 800;
    font-size: 16px;
}

.leaderboard-premium-box {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.05);
}

.leader-row-luxe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.leader-row-luxe:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(245, 158, 11, 0.3);
    transform: scale(1.02);
}

.leader-info-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.leader-rank-badge {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: rgba(255,255,255,0.3);
}

.rank-gold { background: #f59e0b; color: #111; }
.rank-silver { background: #94a3b8; color: #111; }
.rank-bronze { background: #b45309; color: #fff; }

.leader-details .l-name {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.leader-details .l-id {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.leader-profit-val {
    font-size: 20px;
    font-weight: 900;
    color: #f59e0b;
}

@media (max-width: 768px) {
    .ref-banner-ultra { height: 280px; }
    .ref-stats-floating { grid-template-columns: 1fr; margin-top: -80px; }
    .ref-action-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tree-section-premium { padding: 30px 20px; }
    .section-title-luxe { font-size: 20px; }
    .tr-table-luxe td, .tr-table-luxe th { padding: 12px 15px; font-size: 13px; }
}
