/* ========================================================
   MODERN PRO COINFLIP / PVP LOBBY STYLING
   ======================================================== */

.coinflip-stage-block {
    background: radial-gradient(circle at 50% 15%, #151934 0%, #070914 100%) !important;
    border: 2px solid rgba(124, 58, 237, 0.35) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 35px rgba(124, 58, 237, 0.2), inset 0 0 25px rgba(0, 0, 0, 0.7) !important;
    padding: 20px 24px !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
}

.coinflip-stage-block::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #0066ff, #7c3aed, #ec4899) !important;
    z-index: 5 !important;
}

/* Header Bar: Limits & Tabs */
.coinflip-header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.coinflip-limits {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.limit-pill {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

.limit-pill b {
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

/* Navigation Tabs */
.coinflip-tabs-nav {
    display: flex !important;
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 4px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    gap: 4px !important;
}

.coinflip-tab-btn {
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    padding: 6px 14px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.coinflip-tab-btn.active {
    background: linear-gradient(135deg, #0066ff 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4) !important;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 1px 6px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

/* Games Container */
.coinflip-games {
    position: relative !important;
    width: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.coinflip-games .actives,
.coinflip-games .yours {
    width: 100% !important;
    height: 100% !important;
}

.coinflip-games .scroll {
    max-height: 480px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Game Room Card (Horizontal Spacious Layout) */
.game-coin {
    width: 100% !important;
    background: rgba(15, 20, 36, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.game-coin:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Card Top Area */
.game-coin .top {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    box-sizing: border-box !important;
    min-height: 80px !important;
    gap: 12px !important;
}

/* Left Creator */
.game-coin .top .left {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
}

.game-coin .top .left .players,
.game-coin .top .right .players {
    width: 100% !important;
    display: flex !important;
}

.game-coin .top .left .user {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

.game-coin .top .left .user .ava,
.game-coin .top .right .user .ava {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
    margin: 0 !important;
}

.game-coin .top .left .user .ava img,
.game-coin .top .right .user .ava img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.game-coin .top .left .user .info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.game-coin .top .left .user .info .name,
.game-coin .top .right .user .info .name {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 130px !important;
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
}

.ticket-tag {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ticket-tag .icon {
    width: 12px !important;
    height: 12px !important;
    fill: currentColor !important;
}

/* Center VS & Roulette Slider */
.game-coin .top .center {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    margin: 0 8px !important;
}

.game-coin .center .vs {
    background: linear-gradient(135deg, #0066ff 0%, #7c3aed 100%) !important;
    height: 38px !important;
    width: 38px !important;
    position: absolute !important;
    border: 2px solid #0f1423 !important;
    border-radius: 50% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 4 !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.6) !important;
}

.game-coin .center .arrow {
    display: none !important;
}

.game-coin .center .fixed-height {
    height: 2000px !important;
    position: absolute !important;
    top: -1802px !important;
}

.game-coin .center .slider {
    width: 44px !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.game-coin .center .slider ul {
    width: 44px !important;
    height: 2000px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.game-coin .center .slider ul li {
    list-style: none !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 3px 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #0f1423 !important;
}

.game-coin .center .slider ul li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.game-coin .center .slider ul li.winner {
    border-color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.8) !important;
}

/* Right Opponent */
.game-coin .top .right {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
}

.game-coin .top .right .user {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: 100% !important;
}

.game-coin .top .right .user .info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    min-width: 0 !important;
}

/* Join Button */
.game-coin .btn-join {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 18px !important;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.45) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.game-coin .btn-join:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.65) !important;
    filter: brightness(1.15) !important;
}

/* Bottom Bar: Bank & Hash */
.game-coin .bottom {
    width: 100% !important;
    background: rgba(8, 12, 22, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 10px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.game-coin .bottom .block {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 0 !important;
}

.game-coin .bottom .block .bank,
.game-coin .bottom .block .ticket {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
}

.game-coin .bottom .block .type {
    color: #94a3b8 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.game-coin .bottom .block .val {
    color: #10b981 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.game-coin .bottom .block .ticket .val {
    color: #f59e0b !important;
}

.game-coin .bottom .hash {
    color: #64748b !important;
    font-size: 10.5px !important;
    font-family: monospace !important;
    margin: 0 !important;
}

/* Empty State Message */
.coinflip-empty-msg {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    text-align: center !important;
    color: #64748b !important;
}

.coinflip-empty-msg p {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin: 12px 0 4px 0 !important;
}

.coinflip-empty-msg span {
    font-size: 12px !important;
    color: #64748b !important;
}

/* Scrollbar */
.coinflip-games .scroll::-webkit-scrollbar {
    width: 5px;
}

.coinflip-games .scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.coinflip-games .scroll::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 10px;
}