/**
 * TOOL DỰ ĐOÁN BACCARAT AI PRO - TRANG CHUYÊN BIỆT DEDICATED LUXURY CASINO
 * Giao diện Studio VIP tiêu chuẩn quốc tế, tích hợp trình phát nhạc sảnh Casino.
 */

/* ==========================================================================
   1. CẤU TRÚC TRANG CHUYÊN BIỆT BACCARAT & NỀN CASINO
   ========================================================================== */
:root {
    --font-heading: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-sub: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-sans: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, sans-serif;
}

.bcr-page-body {
    background: #020612;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 10% 30%, rgba(14, 165, 233, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 90% 60%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #030714 0%, #02050e 100%);
    color: #f8fafc;
    min-height: 100vh;
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER TRANG CHUYÊN BIỆT (DEDICATED VIP CASINO HEADER)
   ========================================================================== */
.bcr-top-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 9, 23, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.08);
}

.bcr-nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-back-home svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-back-home:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateX(-3px);
}

.bcr-brand-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 18px rgba(245, 158, 11, 0.6));
}

.nav-center-telemetry {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 12.5px;
    font-weight: 700;
    color: #34d399;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: livePulseAnim 1.5s infinite;
}

@keyframes livePulseAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ==========================================================================
   3. TRÌNH PHÁT NHẠC SẢNH CASINO (LUXURY AUDIO PLAYER WIDGET)
   ========================================================================== */
.bcr-music-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(245, 158, 11, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.bcr-music-widget:hover {
    border-color: #ffd700;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45), 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.music-vinyl-disk {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #ffd700 15%, #b45309 30%, #1e293b 35%, #0f172a 70%, #d97706 95%, #ffd700 100%);
    border: 1.5px solid #ffd700;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.music-vinyl-disk.spinning {
    animation: vinylSpin 3s linear infinite;
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.disk-center-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 4px #ffffff;
}

.music-info-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.music-title-text {
    font-size: 11px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.music-status-text {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.music-sound-bars {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 16px;
    padding-bottom: 2px;
}

.sound-bar {
    width: 2.5px;
    background: #ffd700;
    border-radius: 2px;
    height: 4px;
    transition: height 0.2s ease;
}

.bcr-music-widget.playing .sound-bar:nth-child(1) { animation: barBounce 0.8s infinite ease-in-out alternate; }
.bcr-music-widget.playing .sound-bar:nth-child(2) { animation: barBounce 1.1s infinite ease-in-out alternate 0.2s; }
.bcr-music-widget.playing .sound-bar:nth-child(3) { animation: barBounce 0.7s infinite ease-in-out alternate 0.4s; }
.bcr-music-widget.playing .sound-bar:nth-child(4) { animation: barBounce 0.9s infinite ease-in-out alternate 0.1s; }

@keyframes barBounce {
    0% { height: 3px; }
    100% { height: 15px; }
}

/* Toast gợi ý bật nhạc */
.music-prompt-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 26, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-prompt-toast.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    flex-shrink: 0;
}
.toast-icon svg {
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}
.toast-text { font-size: 13px; font-weight: 700; color: #f8fafc; }
.toast-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0b0f19;
    border: none;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

/* ==========================================================================
   4. PHẦN MAIN STUDIO STAGE (SÂN KHẤU DỰ ĐOÁN SIÊU VIP ĐỘC QUYỀN)
   ========================================================================== */
.bcr-studio-container {
    max-width: 1440px;
    margin: 20px auto 40px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Thanh điều hướng bàn nhanh trực tiếp tại Studio */
.studio-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 20px;
}

.studio-active-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.studio-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.studio-table-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.8px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.studio-table-hands {
    font-size: 13px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.studio-table-counters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-tag-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 800;
    font-family: var(--font-sub);
}

.counter-tag-chip.tag-b {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.counter-tag-chip.tag-t {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.counter-tag-chip.tag-p {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   5. KHU VỰC DỰ ĐOÁN AI STUDIO HERO (CỰC KỲ ĐẸP, SANG & NỔI BẬT)
   ========================================================================== */
.studio-hero-stage {
    background: linear-gradient(145deg, rgba(16, 24, 46, 0.95) 0%, rgba(6, 11, 25, 0.98) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    border-radius: 22px;
    padding: 28px 34px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 0 45px rgba(245, 158, 11, 0.06);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
}

/* Hào quang nền của sân khấu */
.studio-hero-stage::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 25% 40%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* 5.1. Chip 3D Khổng Lồ */
.hero-giant-chip-box {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giant-poker-chip {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.giant-poker-chip:hover {
    transform: scale(1.08) rotate(6deg);
}

/* Chip Cái (Banker - Đỏ Hoàng Gia) */
.chip-banker-giant {
    background: radial-gradient(circle at 35% 30%, #ff4d4d 0%, #dc2626 50%, #991b1b 85%, #450a0a 100%);
    border: 6px solid #ffd700;
    box-shadow: 0 0 45px rgba(239, 68, 68, 0.85), 0 0 20px rgba(255, 215, 0, 0.7), inset 0 0 18px rgba(255, 255, 255, 0.4);
}

/* Chip Con (Player - Xanh Neon Điện Toán) */
.chip-player-giant {
    background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 50%, #0369a1 85%, #082f49 100%);
    border: 6px solid #7dd3fc;
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.85), 0 0 20px rgba(125, 211, 252, 0.7), inset 0 0 18px rgba(255, 255, 255, 0.4);
}

.chip-outer-dash {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.chip-center-symbol {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

.chip-ambient-light {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent, rgba(245, 158, 11, 0.4), transparent);
    animation: vinylSpin 8s linear infinite;
    pointer-events: none;
}

/* 5.2. Nội Dung Khuyến Nghị & Thước Đo AI */
.hero-prediction-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.rec-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    width: fit-content;
    text-transform: uppercase;
    font-family: var(--font-sub);
}

.rec-crown-svg {
    color: #ffd700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    flex-shrink: 0;
}

.rec-badge-pill.badge-banker {
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: #fca5a5;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.rec-badge-pill.badge-player {
    background: rgba(56, 189, 248, 0.22);
    border: 1px solid rgba(56, 189, 248, 0.55);
    color: #7dd3fc;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.target-bet-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.15;
}

.target-bet-headline.banker-color {
    background: linear-gradient(135deg, #ffffff 10%, #fca5a5 40%, #ef4444 80%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(239, 68, 68, 0.6));
}

.target-bet-headline.player-color {
    background: linear-gradient(135deg, #ffffff 10%, #bae6fd 40%, #38bdf8 80%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(56, 189, 248, 0.6));
}

/* Thước đo độ tin cậy AI */
.hero-meter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.meter-label-text {
    font-size: 13.5px;
    color: #94a3b8;
    font-weight: 600;
}

.meter-percentage-badge {
    font-family: var(--font-sub);
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.meter-bar-track {
    flex: 1;
    min-width: 140px;
    max-width: 240px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.meter-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hộp phân tích lý do của AI */
.hero-reason-bubble {
    background: rgba(2, 6, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bubble-bulb-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    flex-shrink: 0;
}

.bubble-bulb-svg {
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
}

.bubble-text {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.45;
}

/* 5.3. Nút Kêu Gọi Đặt Cược Khổng Lồ (Action CTA) */
.hero-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.btn-hero-cta {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #0b0f19;
    padding: 16px 32px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55), 0 0 20px rgba(251, 191, 36, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero-cta .cta-arrow-icon {
    width: 20px;
    height: 20px;
    fill: #0b0f19;
    transition: transform 0.25s ease;
}

.btn-hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    animation: btnSheenSweep 3s infinite ease-in-out;
}

.btn-hero-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.8), 0 0 30px rgba(255, 215, 0, 0.7);
    color: #000000;
}

.btn-hero-cta:hover .cta-arrow-icon {
    transform: translateX(5px);
}

.hero-cta-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.trust-star-svg {
    color: #fbbf24;
    flex-shrink: 0;
}

/* ==========================================================================
   6. BẢNG THỐNG KÊ TỰ HỌC CỦA AI (AI MACHINE LEARNING GLASS CARDS)
   ========================================================================== */
.studio-learning-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.learning-glass-card {
    background: rgba(14, 20, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.learning-glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.learn-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.learn-icon-chip {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.learn-icon-target {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.learn-icon-streak {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.learn-icon-algo {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.learn-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.learn-card-title {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.learn-card-val {
    font-family: var(--font-sub);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.learn-card-val.gold-glow { color: #fbbf24; text-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
.learn-card-val.cyan-glow { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.4); }

/* ==========================================================================
   7. SẮP XẾP BẢNG CẦU CHUẨN QUỐC TẾ TẠI STUDIO (INTEGRATED CASINO BOARD)
   ========================================================================== */
.studio-scoreboard-card {
    background: linear-gradient(165deg, rgba(8, 14, 26, 0.98) 0%, rgba(3, 7, 16, 1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 12px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scoreboard-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scoreboard-svg-icon {
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scoreboard-main-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   8. GIAO DIỆN 2 VIEW CHUYÊN BIỆT: LOBBY VIEW & STUDIO VIEW
   ========================================================================== */
.bcr-view-section {
    animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 8.1. HERO BANNER SẢNH BÀN CƯỢC */
.lobby-hero-banner {
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.22) 0%, rgba(15, 23, 42, 0.8) 70%, rgba(2, 6, 18, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 26px 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(245, 158, 11, 0.08);
}

.lobby-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #ffd700;
    padding: 5px 16px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.lobby-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 900;
    letter-spacing: 1.2px;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 40%, #f59e0b 80%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(245, 158, 11, 0.6));
}

.lobby-banner-desc {
    font-size: 14.5px;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 8.2. KHUNG NỘI DUNG SẢNH BÀN */
.lobby-content-section {
    background: rgba(10, 16, 31, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.lobby-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.lobby-heading-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-svg-icon {
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
    flex-shrink: 0;
}

.lobby-heading-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.6px;
}

.lobby-heading-count {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: var(--font-sub);
}

/* Thống Kê Tổng Quan Sảnh Live (Bento Glass Cards) */
.bcr-stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(17, 24, 43, 0.8) 0%, rgba(9, 14, 28, 0.92) 100%);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 15px rgba(245, 158, 11, 0.2);
}

.stat-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-tables {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.stat-icon-fire {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.stat-icon-target {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.stat-icon-bolt {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

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

.stat-label {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.stat-val {
    font-family: var(--font-sub);
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.stat-val.gold-accent {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.stat-val.cyan-accent {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

/* ==========================================================================
   8.3. BỘ ĐỒNG BỘ, TÌM KIẾM & BỘ LỌC SẢNH BÀN CƯỢC
   ========================================================================== */
.bcr-sync-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-refresh-sync {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-family: var(--font-sub);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-refresh-sync svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.4s ease;
}

.btn-refresh-sync:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0b0f19;
    border-color: #ffd700;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-refresh-sync:hover svg {
    transform: rotate(180deg);
}

.btn-refresh-sync svg.spinning {
    animation: spinRefresh 0.8s linear infinite;
}

@keyframes spinRefresh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Thanh Tìm Kiếm & Bộ Lọc Nâng Cao */
.bcr-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.bcr-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 420px;
}

.bcr-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #94a3b8;
    pointer-events: none;
    transition: fill 0.2s ease;
}

.bcr-search-box input {
    width: 100%;
    background: rgba(4, 9, 23, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 10px 16px 10px 42px;
    color: #ffffff;
    font-size: 13.5px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bcr-search-box input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.bcr-search-box input:focus + svg,
.bcr-search-box:focus-within svg {
    fill: #ffd700;
}

.bcr-filter-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bcr-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-sub);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bcr-filter-btn:hover {
    color: #f8fafc;
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.bcr-filter-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
    border: 1px solid #ffd700;
    color: #ffd700;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.tab-svg {
    flex-shrink: 0;
    fill: currentColor;
}

/* ==========================================================================
   8.4. LƯỚI BÀN CƯỢC & THẺ BÀN LUXURY (THEO MẪU BÀN CASINO CHUẨN)
   ========================================================================== */
.bcr-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
    width: 100%;
}

.bcr-table-card {
    background: #1b0718;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.bcr-table-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 18px rgba(245, 158, 11, 0.25);
}

/* Thẻ bàn có tỷ lệ thắng cao (>= 80%) */
.bcr-table-card.card-high-winrate {
    border: 1.5px solid rgba(245, 158, 11, 0.75);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.35);
    animation: cardHighWinrateAura 3s ease-in-out infinite alternate;
}

@keyframes cardHighWinrateAura {
    0% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 158, 11, 0.25);
    }
    100% {
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 24px rgba(245, 158, 11, 0.5);
    }
}

/* 1. Header Thẻ Bàn */
.table-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: linear-gradient(90deg, #1b0718 0%, #2c0922 50%, #1b0718 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-table-title {
    font-family: var(--font-sub);
    font-size: 14px;
    font-weight: 700;
    color: #fed7aa;
    letter-spacing: 0.3px;
}

.card-vip-tag {
    font-family: var(--font-sub);
    font-size: 10px;
    font-weight: 800;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-status-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulseLiveDot 1.8s infinite;
    flex-shrink: 0;
}

.card-status-text {
    font-family: var(--font-sub);
    font-size: 13px;
    font-weight: 700;
    color: #fed7aa;
    letter-spacing: 0.2px;
}

/* 2. Thân Thẻ: Bảng Cầu Đại Nền Trắng Chuẩn Casino (Không Người Mẫu) */
.table-card-body-road {
    background: #ffffff;
    width: 100%;
    height: 120px;
    padding: 0;
    overflow: hidden;
    display: flex;
}

.card-bigroad-scroll {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.card-bigroad-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.card-bigroad-scroll .bcr-big-road {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    height: 120px;
}

.card-bigroad-scroll .bigroad-row {
    display: flex;
    gap: 0;
    height: 20px;
}

.card-bigroad-scroll .bigroad-cell {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.card-bigroad-scroll .bigroad-ring {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border-width: 2px;
    border-style: solid;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    position: relative;
}

.card-bigroad-scroll .bigroad-banker {
    border-color: #dc2626;
}

.card-bigroad-scroll .bigroad-player {
    border-color: #2563eb;
}

.card-bigroad-scroll .bigroad-tie {
    border-color: #16a34a;
}

.card-bigroad-scroll .tie-slash {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #16a34a;
    transform: rotate(45deg);
    box-shadow: none;
}

.card-bigroad-scroll .tie-count {
    position: absolute;
    font-size: 8px;
    font-weight: 800;
    color: #16a34a;
}

/* 3. Chân Thẻ: Thống Kê B / P / T (Trái) & Tỷ Lệ Thắng AI % (Phải) */
.table-card-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    background: linear-gradient(90deg, #1b0718 0%, #24081e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-counters-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.counter-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #ffffff;
    flex-shrink: 0;
}

.badge-b {
    background: #dc2626;
}

.badge-p {
    background: #2563eb;
}

.badge-t {
    background: #16a34a;
}

.counter-num {
    font-family: var(--font-sub);
    font-size: 13px;
    font-weight: 700;
    color: #fed7aa;
}

.card-winrate-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.winrate-title-text {
    font-family: var(--font-sub);
    font-size: 11.5px;
    font-weight: 600;
    color: #fed7aa;
}

.winrate-val-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.winrate-val-num {
    font-family: var(--font-sub);
    font-size: 12.5px;
    font-weight: 800;
    color: #fed7aa;
}

.winrate-high-aura .winrate-val-pill {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(245, 158, 11, 0.45) 100%);
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.winrate-high-aura .winrate-val-num {
    color: #fef08a;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.winrate-flame-svg {
    color: #f59e0b;
    filter: drop-shadow(0 0 4px #ef4444);
    flex-shrink: 0;
}
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn-enter-table-studio:hover {
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
    transform: translateY(-2px);
}

.btn-enter-table-studio:hover .btn-enter-arrow {
    transform: translateX(4px);
}

/* Trạng Thái Đang Tải (Loading) & Không Tìm Thấy (Empty) */
.bcr-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 16px;
    grid-column: 1 / -1;
}

.cyber-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spinRefresh 0.9s linear infinite;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

.loading-label {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 600;
}

.bcr-no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(245, 158, 11, 0.25);
    border-radius: 18px;
}

.no-res-icon {
    color: #ffd700;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.no-res-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.no-res-sub {
    font-size: 13px;
    color: #94a3b8;
}

/* ==========================================================================
   9. THANH ĐIỀU HƯỚNG TẠI STUDIO (BACK TO LOBBY & QUICK SWITCHER)
   ========================================================================== */
.studio-navigation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.btn-back-lobby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #ffd700;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-back-lobby svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-back-lobby:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0b0f19;
    border-color: #ffd700;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5);
    transform: translateX(-3px);
}

.studio-quick-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switcher-label {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
}

.studio-select-dropdown {
    background: rgba(4, 9, 23, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #ffd700;
    font-size: 13.5px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.studio-select-dropdown:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   10. FIX TRIỆT ĐỂ BẢNG HỎI CẦU CASINO (ASK PREDICTOR) & 3 CẦU PHỤ
   ========================================================================== */
.scoreboard-ask-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.ask-unit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    flex-wrap: nowrap;
}

.ask-unit-banker {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.ask-unit-player {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.1);
}

.ask-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ask-round-chip {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    flex-shrink: 0;
}

.chip-banker-ask {
    background: radial-gradient(circle at 35% 30%, #ff4d4d 0%, #dc2626 70%, #991b1b 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.chip-player-ask {
    background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 70%, #0369a1 100%);
    border: 2px solid #7dd3fc;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.ask-text-title {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ask-projections-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(2, 6, 16, 0.85);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ask-proj-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

/* 3 CẦU PHỤ (3 DERIVED ROADS: ĐẠI NHÃN, TIỂU LỘ, PHỎNG LỘ) */
.sub-panel-derived {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.derived-block {
    background: rgba(3, 7, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.derived-sub-header {
    background: rgba(15, 23, 42, 0.8);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.d-sub-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.derived-scroll {
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    background: rgba(2, 6, 16, 0.98);
}

/* ==========================================================================
   11. NÚT NỔI TELEGRAM GÓC MÀN HÌNH @thienlamrcb
   ========================================================================== */
.telegram-float-btn {
    position: fixed;
    bottom: 85px;
    right: 24px;
    z-index: 9999;
}

.telegram-btn-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    text-decoration: none;
    cursor: pointer;
}

.telegram-sonar-wave {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(41, 168, 235, 0.6);
    animation: telegramSonar 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: 1;
    pointer-events: none;
}

.telegram-sonar-wave.wave-2 {
    animation-delay: 0.75s;
}

@keyframes telegramSonar {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.telegram-icon-sphere {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #29a8eb 50%, #0088cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.7), 0 0 15px rgba(56, 189, 248, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.telegram-btn-link:hover .telegram-icon-sphere {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.9), 0 0 25px rgba(56, 189, 248, 0.8);
}

/* ==========================================================================
   12. TỐI ƯU HÓA RESPONSIVE MOBILE & PC
   ========================================================================== */
@media (max-width: 992px) {
    .bcr-stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .bcr-table-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 16px;
    }
    .studio-hero-stage {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .hero-giant-chip-box {
        margin: 0 auto;
    }
    .hero-prediction-info {
        align-items: center;
    }
    .hero-meter-row {
        justify-content: center;
    }
    .studio-learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-center-telemetry {
        display: none;
    }
    .scoreboard-unified-board {
        grid-template-columns: 1fr;
    }
    .scoreboard-ask-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bcr-nav-container {
        padding: 10px 14px;
    }
    .bcr-studio-container {
        padding: 0 12px;
        margin: 12px auto 30px;
    }
    .bcr-stats-overview {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 12px;
        gap: 10px;
    }
    .stat-icon-box {
        width: 38px;
        height: 38px;
    }
    .stat-val {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 10.5px;
    }
    .bcr-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .bcr-search-box {
        max-width: 100%;
        width: 100%;
    }
    .bcr-filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .bcr-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .bcr-table-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bcr-table-card {
        padding: 0;
    }
    .lobby-hero-banner {
        padding: 18px 14px;
    }
    .lobby-content-section {
        padding: 16px 12px;
    }
    .studio-navigation-bar {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
    }
    .btn-back-lobby {
        justify-content: center;
    }
    .studio-quick-switcher {
        justify-content: space-between;
    }
    .studio-hero-stage {
        padding: 18px 16px;
    }
    .giant-poker-chip {
        width: 90px;
        height: 90px;
    }
    .chip-center-symbol {
        font-size: 2.8rem;
    }
    .target-bet-headline {
        font-size: 1.6rem;
    }
    .btn-hero-cta {
        padding: 13px 22px;
        font-size: 13.5px;
    }
    .studio-learning-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .learning-glass-card {
        padding: 12px;
        gap: 10px;
    }
    .learn-card-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .learn-card-val {
        font-size: 1.05rem;
    }
    .studio-scoreboard-card {
        padding: 14px 12px;
    }
    .btn-back-home span {
        display: none;
    }
    .btn-back-home {
        padding: 8px 10px;
    }
    .ask-unit {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ask-projections-box {
        width: 100%;
        justify-content: center;
    }
    .telegram-float-btn {
        bottom: 75px;
        right: 16px;
    }
    .telegram-btn-link, .telegram-icon-sphere {
        width: 50px;
        height: 50px;
    }
}

