:root {
    --primary-color: #6200ea;
    --secondary-color: #03dac6;
    --dark-bg: #121212;
    --card-bg: #1e1e2f;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-gold: #ffd700;
    --accent-platinum: #e5e4e2;
    --accent-silver: #c0c0c0;
    --accent-bronze: #cd7f32;
    --accent-red: #ff4656;
    --accent-green: #00e676;
    --gradient-primary: linear-gradient(135deg, #6200ea, #03dac6);
    --gradient-gold: linear-gradient(135deg, #ffd700, #ff9d00);
    --gradient-platinum: linear-gradient(135deg, #e5e4e2, #a9a9a9);
    --gradient-silver: linear-gradient(135deg, #c0c0c0, #7d7d7d);
    --gradient-bronze: linear-gradient(135deg, #cd7f32, #a05a2c);
    --left-color: #007BFF;
    --right-color: #FF4500;
    --glow-shadow: 0 0 15px rgba(98, 0, 234, 0.5);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.casino-theme {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0e17;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
}

.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    flex: 0 0 250px;
}

.logo {
    max-width: 100%;
    height: auto;
	font-weight:800;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #b8c3d9;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header Billboard with Odometers */
.header-billboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(125deg, #13171f 0%, #1e2637 40%, #13171f 100%);
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(247, 208, 90, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.billboard-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.light-beam {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(247, 208, 90, 0.05), transparent);
    width: 200px;
    height: 100%;
    transform: skewX(-25deg);
    animation: light-move 8s linear infinite;
    opacity: 0;
}

.light-beam-1 {
    left: -150px;
    animation-delay: 0s;
}

.light-beam-2 {
    left: -150px;
    animation-delay: 4s;
}

@keyframes light-move {
    0% {
        left: -150px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stat-item {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    padding: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 10px 15px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 12px;
    color: #b8c3d9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: gold;
}

.jackpot-container {
    flex: 1.8;
    background: linear-gradient(125deg, rgba(33, 41, 58, 0.7) 0%, rgba(25, 31, 43, 0.9) 100%);
    padding: 10px 0;
   
    box-shadow: 0 0 20px rgba(247, 208, 90, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(247, 208, 90, 0.3);
    position: relative;
    overflow: hidden;
}

.jackpot-container::before,
.jackpot-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(247, 208, 90, 0) 0%, rgba(247, 208, 90, 0.6) 50%, rgba(247, 208, 90, 0) 100%);
}

.jackpot-container::before {
    left: 0;
}

.jackpot-container::after {
    right: 0;
}

.jackpot-value {
    font-size: 32px;
    color: #f7d05a;
    text-shadow: 0 0 10px rgba(247, 208, 90, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Content Area */
.content-area {
    display: flex;
    gap: 20px;
    margin-top: 0px;
}

/* Left Side - Active Users */
.active-users-container {
    flex: 0 0 250px;
    background-color: #13171f;
    border-radius: 8px;
    padding: 15px;
    height: calc(100vh - 300px);
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 16px;
    color: #b8c3d9;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
}

.active-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.active-user {
    display: flex;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.active-user:hover {
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #b8c3d9;
}

.stat-item2 {
    display: flex;
    align-items: center;
    position: relative;
}

.stat-item2 i {
    margin-right: 3px;
}

.stat-item2:nth-child(1) i {
    color: #ffd700;
}

.stat-item2:nth-child(2) i {
    color: #64b5f6;
}

.stat-item2:nth-child(3) i {
    color: #81c784;
}

/* Right Side - Cards */
.cards-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.tab-nav {
    display: flex;
    gap: 5px;
}

.tab-btn {
    background-color: #13171f;
    color: #b8c3d9;
    border: none;
    padding: 10px 20px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    background-color: #1c2230;
    color: #ffffff;
}

.tab-btn.active {
    background-color: #1c2230;
    color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.sort-controls {
    display: flex;
    gap: 8px;
}

.sort-btn {
    background-color: rgba(0, 0, 0, 0.2);
    color: #b8c3d9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sort-btn.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #f7d05a;
    border-color: rgba(247, 208, 90, 0.3);
    box-shadow: 0 0 5px rgba(247, 208, 90, 0.2);
}

.sort-btn {
    position: relative;
}

.sort-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
}

.sort-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.card-list-container {
    background-color: #1c2230;
    border-radius: 0 8px 8px 8px;
    padding: 10px;
    height: calc(100vh - 345px);
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Betting Card Design */
.betting-card {
    background: linear-gradient(135deg, #1f2633 0%, #131824 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(33.33% - 14px);
    margin-bottom: 0px;
    position: relative;
}

.betting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 50px;
}

.card-amount {
    font-size: 20px;
    font-weight: 800;
    color: gold;
    margin-right: 10px;
}

.card-timestamp {
    font-size: 12px;
    color: #8a96ab;
    margin-right: 65px;
}

.card-content {
    display: flex;
    position: relative;
    z-index: 2;
}

.card-side {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    position: relative;
}

.card-side.left-side {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(25, 118, 210, 0.3) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card-side.left-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 15%);
    background-size: 6px 6px;
    opacity: 0.4;
    pointer-events: none;
}

.card-side.left-side::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(35deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.card-side.right-side {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(211, 47, 47, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.card-side.right-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(211, 47, 47, 0.05) 10px, rgba(211, 47, 47, 0.05) 20px);
    opacity: 0.3;
    pointer-events: none;
}

.card-side.right-side::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(-35deg);
    animation: shimmer 3.5s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(35deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(35deg);
    }
}

.side-label {
    position: absolute;
    top: 10px;
    font-size: 18px;
    font-weight: 600;
}

.left-side .side-label {
    color: #64b5f6;
}

.right-side .side-label {
    color: #ef5350;
}

.side-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.left-side .profile-img {
    border-color: rgba(100, 181, 246, 0.5);
}

.right-side .profile-img {
    border-color: rgba(239, 83, 80, 0.5);
}

.profile-name {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
}

.battle-btn {
    margin-top: 15px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.left-side .battle-btn {
    background-color: #1976d2;
    color: white;
}

.left-side .battle-btn:hover {
    background-color: #1565c0;
}

.right-side .battle-btn {
    background-color: #d32f2f;
    color: white;
}

.right-side .battle-btn:hover {
    background-color: #c62828;
}

/* Battle Modal */
.battle-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the modal */
    width: 100%;
    max-height: 100vh; /* Ensure it fits within the viewport */
   
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.battle-container {
    background: linear-gradient(135deg, #1f2633 0%, #131824 100%);
    width: 90%;
    max-width: 1400px;
    border-radius: 10px;
    overflow: auto; /* Allow scrolling if content overflows */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
    outline: 5px solid gold;
}

.battle-modal.active .battle-container {
    transform: scale(1);
    opacity: 1;
}

.battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.4);
}

.player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.left-player {
    background: linear-gradient(90deg, rgba(25, 118, 210, 0.3) 0%, rgba(25, 118, 210, 0) 100%);
    padding: 10px;
    border-radius: 6px;
}

.right-player {
    background: linear-gradient(90deg, rgba(211, 47, 47, 0) 0%, rgba(211, 47, 47, 0.3) 100%);
    padding: 10px;
    border-radius: 6px;
}

.betting-amount {
    font-size: 24px;
    font-weight: 600;
    color: #f7d05a;
}

.battle-iframe-container {
    height: calc(100vh - 600px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.battle-result-container {
    padding: 20px;
}

.hash-display {
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
}

.hash-label {
    font-size: 12px;
    color: #b8c3d9;
    margin-bottom: 5px;
}

.hash-value {
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    color: #ffffff;
}

.blocks-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.block-info {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.result-block {
    background-color: rgba(247, 208, 90, 0.1);
    border: 1px solid rgba(247, 208, 90, 0.3);
}

.block-label {
    font-size: 12px;
    color: #b8c3d9;
    margin-bottom: 8px;
}

.block-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.result-block .block-value {
    color: #f7d05a;
}

.battle-result {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-top: 20px;
}

/* Create Card Button */
.create-card-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #f7d05a;
    color: #13171f;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(247, 208, 90, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 900;
}

.create-card-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(247, 208, 90, 0.6);
}

/* Create Card Modal */
.create-card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.create-card-container {
    background: linear-gradient(135deg, #1f2633 0%, #131824 100%);
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.create-card-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #f7d05a;
    font-size: 18px;
}

.side-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.side-option {
    flex: 1;
    position: relative;
    height: 100px;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.side-option input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.side-option label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.3s;
}

.left-option label {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(25, 118, 210, 0.3) 100%);
    color: #64b5f6;
}

.right-option label {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(211, 47, 47, 0.3) 100%);
    color: #ef5350;
}

.side-option input[type="radio"]:checked + label {
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.5);
}

.left-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.3) 0%, rgba(25, 118, 210, 0.6) 100%);
}

.right-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.3) 0%, rgba(211, 47, 47, 0.6) 100%);
}

.amount-selection {
    margin-bottom: 30px;
}

.amount-selection label {
    display: block;
    margin-bottom: 10px;
    color: #b8c3d9;
    font-size: 14px;
}

.amount-selection input {
    width: 100%;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.amount-selection input:focus {
    outline: none;
    border-color: rgba(247, 208, 90, 0.5);
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #b8c3d9;
}

.cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.confirm-btn {
    background-color: #f7d05a;
    color: #13171f;
}

.confirm-btn:hover {
    background-color: #f0c14b;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
	overflow-y:scroll;
}

.auth-container {
    background: linear-gradient(135deg, #1f2633 0%, #131824 100%);
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	overflow-y:scroll;
}

.auth-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #f7d05a;
    font-size: 18px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #b8c3d9;
}

.form-group input {
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(247, 208, 90, 0.5);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Payment Modal Styles */
.payment-container {
    background: linear-gradient(135deg, #1f2633 0%, #131824 100%);
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.payment-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #f7d05a;
    font-size: 18px;
}

.current-balance {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    font-size: 14px;
    color: #b8c3d9;
}

.balance-amount {
    font-size: 18px;
    font-weight: 600;
    color: #f7d05a;
}

.payment-history {
    margin: 20px 0;
}

.payment-history h4 {
    font-size: 16px;
    color: #b8c3d9;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 13px;
}

.history-type {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.history-type.deposit {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.history-type.withdraw {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.history-type.win {
    background-color: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
}

.history-type.lose {
    background-color: rgba(239, 83, 80, 0.2);
    color: #ef5350;
}

.deposit-btn {
    background-color: #E54800;
    color: white;
}

.deposit-btn:hover {
    background-color: #43a047;
}

.withdraw-btn {
    background-color: #ff9800;
    color: white;
}

.withdraw-btn:hover {
    background-color: #f57c00;
}

.close-modal-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #b8c3d9;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* 지갑 정보 스타일 */
.wallet-info {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-section {
    margin-bottom: 15px;
}

.wallet-section:last-of-type {
    margin-bottom: 20px;
}

.wallet-section h4 {
    font-size: 14px;
    color: #f7d05a;
    margin-bottom: 8px;
    font-weight: 600;
}

.wallet-address {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #ffffff;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
}

.wallet-address:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.deposit-guide h4 {
    font-size: 14px;
    color: #f7d05a;
    margin-bottom: 10px;
    font-weight: 600;
}

.deposit-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deposit-guide li {
    font-size: 13px;
    color: #b8c3d9;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.4;
}

.deposit-guide li:before {
    content: "*";
    position: absolute;
    left: 0;
    color: #f7d05a;
    font-weight: bold;
}

/* Manual Modal Styles */
.manual-container {
    background: linear-gradient(135deg, #1f2633 0%, #131824 100%);
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.manual-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #f7d05a;
    font-size: 18px;
}

.manual-content {
    margin: 20px 0;
}

.manual-section {
    margin-bottom: 20px;
}

.manual-section h4 {
    font-size: 16px;
    color: #f7d05a;
    margin-bottom: 10px;
}

.manual-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #b8c3d9;
}

/* Card state indicators */
.card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-waiting {
    background-color: rgba(247, 208, 90, 0.2);
    color: #f7d05a;
    border: 1px solid rgba(247, 208, 90, 0.3);
}

.status-progress {
    background-color: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.status-completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(10, 14, 23, 0.7), 
    rgba(10, 14, 23, 0.7)
  );
  z-index: 1;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #f7d05a;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    color: #8a96ab;
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #f44336;
    color: transparent;
    font-size: 0;
    border-radius: 50%;
    overflow: hidden;
}

.tab-btn .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: #f44336;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.active-user .notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: #f44336;
    border-radius: 50%;
    z-index: 5;
}

.vip-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ffd700 0%, #f7d05a 100%);
    color: #13171f;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 5;
    letter-spacing: 0.5px;
}

.high-level-user {
    animation: subtle-glow 3s infinite;
}

@keyframes subtle-glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
}

.high-win-rate {
    position: relative;
}

.high-win-rate i {
    color: #4caf50 !important;
    animation: trophy-shine 2s infinite;
}

@keyframes trophy-shine {
    0% {
        text-shadow: 0 0 2px rgba(76, 175, 80, 0.3);
    }
    50% {
        text-shadow: 0 0 8px rgba(76, 175, 80, 0.7);
    }
    100% {
        text-shadow: 0 0 2px rgba(76, 175, 80, 0.3);
    }
}

.betting-card.bet-tier-1 {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.betting-card.bet-tier-1 .card-amount {
    color: gold;
    font-size: 20px;
}

.betting-card.bet-tier-2 {
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.2), 0 0 2px rgba(100, 181, 246, 0.3);
    border: 1px solid rgba(100, 181, 246, 1.2);
}

.betting-card.bet-tier-2 .card-amount {
    color: gold;
    font-size: 20px;
    text-shadow: 0 0 5px rgba(100, 181, 246, 0.3);
}

.betting-card.bet-tier-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.05) 0%, rgba(100, 181, 246, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.betting-card.bet-tier-3 {
    box-shadow: 0 4px 15px rgba(171, 71, 188, 0.3), 0 0 5px rgba(171, 71, 188, 0.2);
    border: 1px solid rgba(171, 71, 188, 1.3);
}

.betting-card.bet-tier-3 .card-amount {
    color: gold;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(171, 71, 188, 0.5);
}

.betting-card.bet-tier-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(171, 71, 188, 0.08) 0%, rgba(171, 71, 188, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.betting-card.bet-tier-4 {
    box-shadow: 0 4px 15px rgba(247, 208, 90, 0.4), 0 0 10px rgba(247, 208, 90, 0.2);
    border: 1px solid rgba(247, 208, 90, 1.4);
}

.betting-card.bet-tier-4 .card-amount {
    color: gold;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(247, 208, 90, 0.7);
    font-weight: 700;
}

.betting-card.bet-tier-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 208, 90, 0.1) 0%, rgba(247, 208, 90, 0) 100%);
    pointer-events: none;
    z-index: 1;
}


.betting-card.bet-tier-1:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.betting-card.bet-tier-2:hover {
    box-shadow: 0 10px 20px rgba(100, 181, 246, 0.3), 0 0 5px rgba(100, 181, 246, 0.4);
}

.betting-card.bet-tier-3:hover {
    box-shadow: 0 10px 20px rgba(171, 71, 188, 0.4), 0 0 8px rgba(171, 71, 188, 0.3);
}

.betting-card.bet-tier-4:hover {
    box-shadow: 0 10px 25px rgba(247, 208, 90, 0.5), 0 0 15px rgba(247, 208, 90, 0.3);
}

.odometer.odometer-auto-theme, 
.odometer.odometer-theme-default,
.odometer.odometer-theme-train-station {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
}

.jackpot-icon {
    color: #f7d05a;
    font-size: 28px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(247, 208, 90, 0.7);
    animation: pulse-gold 2s infinite;
}

.jackpot-label {
    color: #f7d05a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(247, 208, 90, 0.4);
}

.jackpot-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(247, 208, 90, 0.15) 0%, rgba(247, 208, 90, 0) 70%);
    pointer-events: none;
}

.jackpot-coins {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: 
        radial-gradient(circle at 10% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%),
        radial-gradient(circle at 20% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%),
        radial-gradient(circle at 30% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%),
        radial-gradient(circle at 40% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%),
        radial-gradient(circle at 50% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%),
        radial-gradient(circle at 60% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%),
        radial-gradient(circle at 70% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%),
        radial-gradient(circle at 80% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%),
        radial-gradient(circle at 90% 100%, #f7d05a 0%, #f7d05a 30%, transparent 30%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.7;
}

@keyframes pulse-gold {
    0% {
        text-shadow: 0 0 10px rgba(247, 208, 90, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(247, 208, 90, 0.8), 0 0 30px rgba(247, 208, 90, 0.4);
    }
    100% {
        text-shadow: 0 0 10px rgba(247, 208, 90, 0.5);
    }
}

.jackpot-jump-effect {
    position: absolute;
    top: 10px;
    right: 30px;
    color: #f7d05a;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(247, 208, 90, 0.7);
    animation: jump-up 2s ease-out forwards;
    z-index: 10;
}

@keyframes jump-up {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-40px);
        opacity: 0;
    }
}

@media (min-width: 768px) {
  .header-billboard {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: auto;
    min-height: 10px;
    margin: 15px 0;
    background: linear-gradient(125deg, rgba(19, 23, 31, 0.7) 0%, rgba(30, 38, 55, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(247, 208, 90, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 208, 90, 0.1);
  }

  .header-billboard {
    position: relative;
    overflow: hidden;
  }
  
  .header-billboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 10% 20%, rgba(100, 181, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 90% 80%, rgba(247, 208, 90, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
  }
  
	.jackpot-container {
	  flex: 1.8;
	  background: linear-gradient(125deg, rgba(33, 41, 58, 0.7) 0%, rgba(25, 31, 43, 0.9) 100%);
	  padding: 20px 0;
	  box-shadow: 0 0 20px rgba(247, 208, 90, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.5);
	  border: 1px solid rgba(247, 208, 90, 0.3);
	  position: relative;
	  overflow: hidden;
	  display: flex;
	  flex-direction: column;
	  justify-content: center;
	  align-items: center;
	}

	.jackpot-icon {
	  color: #f7d05a;
	  font-size: 28px;
	  margin-bottom: 5px;
	  text-shadow: 0 0 15px rgba(247, 208, 90, 0.7);
	  animation: pulse-gold 2s infinite;
	}

	.jackpot-label {
	  color: #f7d05a;
	  font-size: 14px;
	  font-weight: 700;
	  letter-spacing: 2px;
	  text-shadow: 0 0 10px rgba(247, 208, 90, 0.4);
	  margin-bottom: 10px;
	}

	.jackpot-value {
	  font-size: 80px;
	  color: #f7d05a;
	  text-shadow: 0 0 10px rgba(247, 208, 90, 0.7);
	  animation: pulse 2s infinite;
	  text-align: center;
	  margin: 10px 0;
	}

	.jackpot-currency {
	  font-size: 18px;
	  color: #f7d05a;
	  margin-top: 5px;
	}

  .jackpot-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 208, 90, 0.2), transparent);
    transform: skewX(-20deg);
    animation: jackpot-flash 5s infinite;
  }
  
  @keyframes jackpot-flash {
    0% { left: -150%; }
    100% { left: 250%; }
  }

  .stats-container {
    flex: 0 0 66%;
    display: flex;
    justify-content: space-between;
    height: 80px;
  }

  .stat-item:not(.jackpot-container) {
    height: 100%;
    flex: 1;
    margin: 0 8px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
  }
  
  .stat-item:not(.jackpot-container):hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .stat-icon {
    font-size: 16px;
    margin-bottom: 3px;
  }
  
  .stat-label {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .stat-value1 {
    font-size: 38px;
    min-height: 24px;
	font-weight:800;
  }
  
  .stat-value {
    font-size: 18px;
    min-height: 24px;
  }

  .stat-item:not(.jackpot-container)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
  }

  .stat-item:nth-child(1) {
    border-left: 2px solid rgba(100, 181, 246, 0.5);
  }
  
  .stat-item:nth-child(2) {
    border-left: 2px solid rgba(255, 193, 7, 0.5);
  }
  
  .stat-item:nth-child(3) {
    border-left: 2px solid rgba(76, 175, 80, 0.5);
  }
  
  .stat-item:nth-child(4) {
    border-left: 2px solid rgba(244, 67, 54, 0.5);
  }
  
  .stat-value {
    position: relative;
    z-index: 2;
  }
}

.mobile-nav-button, 
.mobile-menu,
.mobile-users-panel,
.mobile-overlay,
.stat-items-row {
  display: none;
}

@media (max-width: 767px) {
  .mobile-nav-button {
    display: block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f7d05a;
    font-size: 16px;
    transition: all 0.3s;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 999;
  }
  
  .mobile-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .top-nav {
    height: 50px;
    padding: 5px 10px;
    justify-content: flex-start;
  }
  
  .logo-container {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }
  
  .logo h1 {
    font-size: 1.1rem;
    padding-left: 0px;
  }
  
  .nav-links {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background-color: #13171f;
    z-index: 1001;
    transition: right 0.3s ease-out;
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: block;
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f7d05a;
    font-size: 18px;
    font-weight: 600;
  }
  
  .mobile-menu-close {
    background: none;
    border: none;
    color: #b8c3d9;
    font-size: 18px;
    cursor: pointer;
  }
  
  .mobile-menu-items {
    padding: 15px 0;
  }
  
  .mobile-menu-item {
    display: block;
    padding: 12px 15px;
    color: #b8c3d9;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
  }
  
  .mobile-menu-item:hover, 
  .mobile-menu-item:active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .mobile-users-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #13171f;
    z-index: 1001;
    transition: left 0.3s ease-out;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-users-panel.active {
    left: 0;
  }
  
  .mobile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f7d05a;
  }
  
  .mobile-panel-header h3 {
    margin: 0;
    font-size: 16px;
  }
  
  .mobile-panel-close {
    background: none;
    border: none;
    color: #b8c3d9;
    font-size: 18px;
    cursor: pointer;
  }
  
  .mobile-users-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
  }
  
  .mobile-overlay.active {
    display: block;
  }

  .video-background {
    display: none;
  }
  
  body.casino-theme {
    background: linear-gradient(125deg, #0a0e17 0%, #131824 100%);
  }

  .header-billboard {
    margin: 5px 0;
    padding: 8px;
    border-radius: 8px;
    flex-direction: column;
  }

  .stat-items-row {
    height: 50px;
    padding: 0;
    margin: 0;
    justify-content: space-between;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
  }
  
  .stat-items-row::-webkit-scrollbar {
    display: none;
  }
  
  .stat-items-row .stat-item {
    height: 100%;
    min-width: 70px;
    margin: 0 2px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .stat-items-row .stat-icon {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .stat-items-row .stat-label {
    font-size: 8px;
    margin-bottom: 3px;
    white-space: nowrap;
  }
  
  .stat-items-row .stat-value {
    font-size: 14px;
    min-height: auto;
  }

  .stats-container {
    display: none;
  }

  .content-area {
    flex-direction: column;
  }
  
  .active-users-container {
    display: none;
  }
  
  .cards-container {
    width: 100%;
  }

  .tab-btn {
    padding: 8px 5px;
    font-size: 12px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .sort-controls {
    margin-top: 5px;
    padding: 0;
  }
  
  .sort-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .card-list-container {
    padding: 10px;
    padding-top: 5px;
  }

  .betting-card {
    margin-bottom: 0px;
    width: 100%;
  }
  
  .card-header {
    padding: 8px 10px;
    min-height: 40px;
  }
  
  .card-content {
    min-height: auto;
  }
  
  .card-side {
    padding: 10px;
    min-height: 120px;
  }
  
  .profile-img {
    width: 40px;
    height: 40px;
  }
  
  .battle-btn {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .create-card-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 10px;
    right: 10px;
  }

  .create-card-container {
    padding: 15px;
  }
  
  .create-card-container h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .side-selection {
    margin-bottom: 20px;
  }
  
  .side-option {
    height: 80px;
  }
  
  .amount-selection {
    margin-bottom: 20px;
  }
  
  .modal-buttons button {
    padding: 10px;
  }

  .battle-header {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .player {
    width: 100%;
    justify-content: center;
  }
  
  .betting-amount {
    order: -1;
    margin-bottom: 10px;
    font-size: 20px;
  }
  
  .battle-iframe-container {
    height: 40vh;
  }
  
  .blocks-display {
    flex-direction: column;
    gap: 10px;
  }
  
  .block-info {
    width: 100%;
  }

  .battle-container, 
  .create-card-container,
  .auth-container,
  .payment-container,
  .manual-container {
    width: 90%;
    max-height: 85vh;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .betting-card {
    width: calc(50% - 10px);
  }
  
  .active-users-container {
    height: 250px;
  }
  
  .card-list-container {
    height: calc(100vh - 510px);
  }
  
  .battle-iframe-container {
    height: 60vh;
  }
}


@media (min-width: 1024px) and (max-width: 1279px) {
  .betting-card {
    width: calc(33.33% - 14px);
  }
}


@media (max-width: 359px) {
  .nav-link {
    font-size: 10px;
    padding: 3px;
  }
  
  .stat-item {
    padding: 5px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .jackpot-value {
    font-size: 24px;
  }
  
  .tab-btn {
    padding: 6px 3px;
    font-size: 11px;
  }
}


@media (max-height: 500px) and (orientation: landscape) {
  .header-billboard {
    display: none;
  }
  
  .active-users-container {
    max-height: 120px;
  }
  
  .battle-iframe-container {
    height: 40vh;
  }
}



@media (max-width: 767px) {
  
  .mobile-nav-button {
    display: block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f7d05a;
    font-size: 16px;
    transition: all 0.3s;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 999;
  }

  .card-list-container {
    height: calc(100vh - 230px);
  }
  
  .mobile-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  
  .top-nav {
    height: 50px;
    padding: 5px 10px;
    justify-content: flex-start;
  }
  
  .logo-container {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }
  
  .logo h1 {
    font-size: 1.1rem;
    padding-left: 0px;
  }
  
  .nav-links {
    display: none; 
  }
  
  
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background-color: #13171f;
    z-index: 1001;
    transition: right 0.3s ease-out;
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: block;
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f7d05a;
    font-size: 18px;
    font-weight: 600;
  }
  
  .mobile-menu-close {
    background: none;
    border: none;
    color: #b8c3d9;
    font-size: 18px;
    cursor: pointer;
  }
  
  .mobile-menu-items {
    padding: 15px 0;
  }
  
  .mobile-menu-item {
    display: block;
    padding: 12px 15px;
    color: #b8c3d9;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
  }
  
  .mobile-menu-item:hover, 
  .mobile-menu-item:active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
  
  
  .mobile-users-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #13171f;
    z-index: 1001;
    transition: left 0.3s ease-out;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-users-panel.active {
    left: 0;
  }
  
  .mobile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f7d05a;
  }
  
  .mobile-panel-header h3 {
    margin: 0;
    font-size: 16px;
  }
  
  .mobile-panel-close {
    background: none;
    border: none;
    color: #b8c3d9;
    font-size: 18px;
    cursor: pointer;
  }
  
  .mobile-users-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
  }
  
  
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
  }
  
  .mobile-overlay.active {
    display: block;
  }
  
  
  .video-background {
    display: none;
  }
  
  body.casino-theme {
    background: linear-gradient(125deg, #0a0e17 0%, #131824 100%);
  }
  
  
  .header-billboard {
    margin: 5px 0;
    padding: 8px;
    border-radius: 8px;
    flex-direction: column;
  }
  
  
  .jackpot-container {
    height: 50px;
    margin: 0 0 8px 0;
    padding: 10px 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(to right, rgba(33, 41, 58, 0.7) 0%, rgba(25, 31, 43, 0.9) 100%);
    width: 100%;
    transform: scale(1);
  }
  
  .jackpot-icon {
    font-size: 22px;
    margin: 0 10px;
  }
  
  .jackpot-label {
    font-size: 10px;
    margin: 0;
    width: 60px;
  }
  
  .jackpot-value {
    font-size: 24px;
    margin: 0 5px;
    min-height: auto;
  }
  
  .jackpot-currency {
    font-size: 12px;
    margin: 0;
    margin-left: 5px;
  }
  
  .jackpot-decoration, .jackpot-highlight, .jackpot-shine, .jackpot-coins {
    display: none; 
  }
  

  .content-area {
    flex-direction: column;
  }
  
  .active-users-container {
    display: none; 
  }
  
  .cards-container {
    width: 100%;
  }
  
  
  .tab-btn {
    padding: 8px 5px;
    font-size: 12px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .sort-controls {
    margin-top: 5px;
    padding: 0;
  }
  
  .sort-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  
  .card-list-container {
    padding: 0px;
    padding-top: 5px;
  }
  
  
  .betting-card {
    margin-bottom: 5px;
    width: 100%; 
  }
  
  .card-header {
    padding: 8px 10px;
    min-height: 40px;
  }
  
  .card-content {
    min-height: auto;
  }
  
  .card-side {
    padding: 10px;
    min-height: 100px;
  }
  
  .profile-img {
    width: 40px;
    height: 40px;
  }
  
  .battle-btn {
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  
  .create-card-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 10px;
    right: 10px;
  }
  
  
  .create-card-container {
    padding: 15px;
  }
  
  .create-card-container h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .side-selection {
    margin-bottom: 20px;
  }
  
  .side-option {
    height: 80px;
  }
  
  .amount-selection {
    margin-bottom: 20px;
  }
  
  .modal-buttons button {
    padding: 10px;
  }
  
  
  .battle-header {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .player {
    width: 100%;
    justify-content: center;
  }
  
  .betting-amount {
    order: -1;
    margin-bottom: 10px;
    font-size: 20px;
  }
  
  .battle-iframe-container {
    height: 40vh;
  }
  
  .blocks-display {
    flex-direction: column;
    gap: 10px;
  }
  
  .block-info {
    width: 100%;
  }
  
  
  .battle-container, 
  .create-card-container,
  .auth-container,
  .payment-container,
  .manual-container {
    width: 90%;
    max-height: 85vh;
  }
}


@media (min-width: 768px) and (max-width: 1023px) {
  .betting-card {
    width: calc(50% - 10px);
  }
  
  .active-users-container {
    height: 250px;
  }
  
  .card-list-container {
    height: calc(100vh - 510px);
  }
  
  .battle-iframe-container {
    height: 60vh;
  }
  
  
  .mobile-nav-button,
  .mobile-menu,
  .mobile-users-panel,
  .mobile-overlay,
  .stat-items-row {
    display: none;
  }
}


@media (min-width: 768px) {
  .mobile-nav-button,
  .mobile-menu,
  .mobile-users-panel,
  .mobile-overlay,
  .stat-items-row {
    display: none;
  }
}


@media (max-width: 359px) {
  .nav-link {
    font-size: 10px;
    padding: 3px;
  }
  
  .stat-item {
    padding: 5px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .jackpot-value {
    font-size: 24px;
  }
  
  .tab-btn {
    padding: 6px 3px;
    font-size: 11px;
  }
}


@media (max-height: 500px) and (orientation: landscape) {
  .header-billboard {
    display: none;
  }
  
  .active-users-container {
    max-height: 120px;
  }
  
  .battle-iframe-container {
    height: 40vh;
  }
}




@media (max-width: 767px) {
  
  .mobile-nav-button {
    display: flex !important; 
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
  }
  
  
  .mobile-menu {
    z-index: 10000;
  }
  
  .mobile-overlay {
    z-index: 9990;
  }
  
  .mobile-users-panel {
    z-index: 10000;
  }
  
  
  .mobile-menu-header {
    background-color: rgba(247, 208, 90, 0.1);
  }
  
  .mobile-menu-item {
    font-weight: 500;
  }
  
  .mobile-menu-item:active {
    background-color: rgba(255, 255, 255, 0.15);
  }
}




.auth-buttons button,
.modal-buttons button,
.close-modal-btn,
.close-battle-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
}


.close-battle-btn {
  background-color: #f7d05a;
  color: #13171f;
  margin-top: 15px;
  width: 100%;
  text-align: center;
}

.close-battle-btn:hover {
  background-color: #f0c14b;
}

/********************************************************/
/* Layout update for the header billboard */
.header-billboard {
  display: flex;
  justify-content: space-between;
}

.right-side-content {
  flex: 0 0 66%;
  display: flex;
  flex-direction: column;
}

/* Announcement Container Styles */
.announcement-container {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-top: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.announcement-title {
  font-size: 12px;
  color: #f7d05a;
  margin-bottom: 5px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.announcement-title i {
  margin-right: 5px;
  animation: pulse-announcement 2s infinite;
}

.announcement-content {
  color: #b8c3d9;
  font-size: 14px;
  line-height: 1.4;
}

.highlight-text {
  color: #f7d05a;
  font-weight: 600;
}

@keyframes pulse-announcement {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Media query for mobile */
@media (max-width: 767px) {
  .header-billboard {
    flex-direction: column;
  }
  
  .right-side-content {
    width: 100%;
    margin-top: 8px;
  }
  
  .announcement-container {
    margin-top: 5px;
    padding: 8px;
  }
  
  .announcement-title {
    font-size: 10px;
  }
  
  .announcement-content {
    font-size: 12px;
  }
}

/*****************************************************/

#eventMsgContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  overflow: visible;
}

#eventMsgWrapper {
  position: relative;
  transform: translateY(-150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#eventMsgContent {
  min-width: 280px;
  padding: 18px 30px;
  background: linear-gradient(145deg, #ffd700, #f0b400);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6), 
              0 0 15px rgba(255, 255, 255, 0.5) inset,
              0 8px 30px rgba(0, 0, 0, 0.35);
  color: #8B4513;
  border-radius: 12px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  animation: eventMsgPulse 2s infinite;
}

#eventMsgContent::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  animation: eventMsgShine 3s infinite;
}

.event-msg-show #eventMsgWrapper {
  transform: translateY(0);
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.confetti {
  position: absolute;
  background-color: #ffd700;
  opacity: 0.8;
  animation: confettiFall 3s ease-in-out forwards;
}

@keyframes eventMsgShine {
  0% {
    transform: rotate(0deg);
    opacity: 0.2;
  }
  25% {
    opacity: 0.3;
  }  
  100% {
    transform: rotate(360deg);
    opacity: 0.2;
  }
}

@keyframes eventMsgPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6), 
                0 0 15px rgba(255, 255, 255, 0.5) inset,
                0 8px 30px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.8), 
                0 0 20px rgba(255, 255, 255, 0.6) inset,
                0 8px 35px rgba(0, 0, 0, 0.4);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6), 
                0 0 15px rgba(255, 255, 255, 0.5) inset,
                0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/****************************************************************************/

.profile-container {
    max-width: 500px;
}

.profile-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.profile-image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid rgba(247, 208, 90, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #1a1a2f;
}

.profile-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-controls {
    display: flex;
    gap: 10px;
}

.upload-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f7d05a;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.upload-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-stat-item .stat-label {
    font-size: 14px;
    color: #b8c3d9;
    margin-bottom: 5px;
}

.profile-stat-item .stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #f7d05a;
}

.hint-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}



.balance-display {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid #4a90e2;
    border-radius: 25px;
    padding: 4px 16px;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balance-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.balance-display:hover::before {
    left: 100%;
}

.balance-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    border-color: #5ba0f2;
}

.balance-display i {
    color: #ffd700;
    margin-right: 8px;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.balance-amount {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    margin-right: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.balance-currency {
    color: #b8d4f0;
    font-size: 14px;
    font-weight: 500;
}


@media (max-width: 767px) {
.balance-display {
        padding: 3px 12px;
        margin-left: 0;
        margin-right: 10px;
        position: fixed;
        top: 10px;
        right: 60px;
        z-index: 999;
    }
    
    .balance-display i {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .balance-amount {
        font-size: 14px;
    }
    
    .balance-currency {
        font-size: 12px;
    }
}


@media (max-width: 480px) {
    .balance-currency {
        display: none;
    }
    
.balance-display {
        padding: 3px 12px;
        margin-left: 0;
        margin-right: 10px;
        position: fixed;
        top: 10px;
        right: 60px;
        z-index: 999;
    }
}

/*****************************************************************************/
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    animation: explodeIn 1.8s ease-out forwards;
    overflow: hidden;
}

.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(10, 10, 30, 0.95));
    backdrop-filter: blur(15px);
}

.welcome-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 540px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(255, 215, 0, 0.8), 
                0 0 150px rgba(255, 215, 0, 0.5);
    animation: zoomIn 1.8s ease-out 0.4s both;
}

.welcome-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.3);
    z-index: 1;
}

.welcome-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 30px;
    z-index: 2;
}

.welcome-text {
    font-size: 3rem;
    font-weight: 900;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(150px) scale(0.5);
    background: linear-gradient(45deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(255, 255, 255, 1), 
                 0 8px 15px rgba(0, 0, 0, 0.8);
    animation: textBlast 1.5s ease-out forwards;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.welcome-text:nth-child(1) { animation-delay: 1.2s; }
.welcome-text:nth-child(2) { animation-delay: 2.4s; }
.welcome-text:nth-child(3) { animation-delay: 3.6s; }

.welcome-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 3;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.welcome-close-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.3) rotate(180deg);
}

.welcome-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffd700 0%, transparent 60%);
    border-radius: 50%;
    animation: particleExplosion 2s ease-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.4s; }
.particle:nth-child(3) { bottom: 15%; left: 15%; animation-delay: 0.8s; }
.particle:nth-child(4) { bottom: 10%; right: 20%; animation-delay: 1.2s; }
.particle:nth-child(5) { top: 50%; left: 50%; animation-delay: 0.6s; }
.particle:nth-child(6) { top: 30%; left: 30%; animation-delay: 1s; }
.particle:nth-child(7) { bottom: 25%; right: 25%; animation-delay: 1.4s; }

/* Animations */
@keyframes explodeIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.5); }
    to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes textBlast {
    0% { opacity: 0; transform: translateY(150px) scale(0.5); }
    60% { opacity: 1; transform: translateY(-20px) scale(1.2); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes particleExplosion {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(5); opacity: 0; }
}

/* Responsive */
@media (max-width: 767px) {
    .welcome-container {
        width: 90%;
        max-width: 360px;
    }

    .welcome-text {
        font-size: 2.2rem;
    }

    .welcome-close-btn {
        width: 50px;
        height: 50px;
    }

    .particle {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.8rem;
    }

    .welcome-close-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .particle {
        width: 6px;
        height: 6px;
    }
}
/******************************************************************************/
  .logo-container {
            flex: 0 0 250px;
            display: flex;
            justify-content: flex-start; 
            align-items: center;
            width: 100%; 
            box-sizing: border-box;
        }
        .logo {
            max-width: 100%;
            height: auto;
            font-weight: 800;
            color: #ffffff;
            text-shadow: 
                0 0 5px #00f6ff,
                0 0 10px #00f6ff,
                0 0 20px #00f6ff,
                0 0 40px #007bff;
            animation: neonPulse 2s ease-in-out infinite;
            margin: 0; 
        }
        @keyframes neonPulse {
            0%, 100% {
                text-shadow: 
                    0 0 5px #00f6ff,
                    0 0 10px #00f6ff,
                    0 0 20px #00f6ff,
                    0 0 40px #007bff;
                opacity: 1;
            }
            50% {
                text-shadow: 
                    0 0 10px #00f6ff,
                    0 0 20px #00f6ff,
                    0 0 30px #00f6ff,
                    0 0 60px #007bff;
                opacity: 0.9;
            }
        }
        
        @media screen and (max-width: 768px) {
            .logo-container {
                flex: 0 0 100%; 
                padding-left: 0px; 
            }
        }

/*****************************************************************************/
.deposit-container {
    max-width: 500px;
    width: 90%;
    padding: 20px;
    background: #1a2233;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.deposit-content {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .deposit-container {
        width: 95%;
        padding: 15px;
    }
}

.close-modal-btn {
    width: 100%;
    padding: 10px;
    background: #ff4d4d;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-modal-btn:hover {
    background: #e60000;
}

/*****************************************************************************/
        #sound-toggle-btn {
            position: fixed;
            bottom: 100px;
            right: 30px;
            width: 60px;
            height: 60px;
            background-color: #333;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 9999;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            user-select: none;
        }
        
        #sound-toggle-btn:hover {
            background-color: #555;
            transform: scale(1.1);
        }
        
        #sound-toggle-btn:active {
            transform: scale(0.95);
        }
        
        #sound-icon {
            font-size: 24px;
            color: white;
        }
        
        @media (max-width: 768px) {
            #sound-toggle-btn {
                width: 50px;
                height: 50px;
                bottom: 60px;
                right: 10px;
            }
            #sound-icon {
                font-size: 20px;
            }
        }
        
        #sound-toggle-btn.sound-off {
            background-color: #666;
            opacity: 0.7;
        }


/*************************************************************************/
/* Withdraw Modal Styles */
.auth-modal#withdrawModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); 
}

.withdraw-container {
    background: #1a2233; 
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 500px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    animation: modalFadeIn 0.3s ease-in-out;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.withdraw-container h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
    color: #ffd700; 
    text-transform: uppercase;
}


.withdraw-content .current-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a344a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #3a4660;
}

.current-balance .balance-label {
    font-size: 16px;
    font-weight: 500;
    color: #b0b9d6;
}

.current-balance .balance-amount {
    font-size: 18px;
    font-weight: 700;
    color: #00ff88; 
}


.withdraw-content .form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #b0b9d6;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #ffffff;
    background: #2a344a;
    border: 1px solid #3a4660;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.form-group input::placeholder {
    color: #6b728e;
    font-size: 14px;
}


.withdraw-info {
    background: #2a344a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #3a4660;
}

.withdraw-info p {
    margin: 10px 0;
    font-size: 14px;
    color: #b0b9d6;
    display: flex;
    align-items: center;
}

.withdraw-info p i {
    margin-right: 10px;
    font-size: 18px;
    color: #ffd700; 
}

.withdraw-info p strong {
    color: #ffffff;
    font-weight: 600;
}


.auth-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cancel-btn,
.confirm-btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.cancel-btn {
    background: #6b728e;
    color: #ffffff;
    border: none;
}

.cancel-btn:hover {
    background: #5a617a;
    transform: translateY(-2px);
}

.confirm-btn {
    background: #ffd700; 
    color: #1a2233;
    border: none;
}

.confirm-btn:hover {
    background: #ffcc00;
    transform: translateY(-2px);
}


.close-modal-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #3a4660;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.close-modal-btn:hover {
    background: #2a344a;
    transform: translateY(-2px);
}


@media (max-width: 767px) {
    .withdraw-container {
        width: 90%;
        padding: 20px;
    }

    .withdraw-container h3 {
        font-size: 20px;
    }

    .current-balance .balance-label,
    .current-balance .balance-amount {
        font-size: 14px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        font-size: 14px;
        padding: 10px;
    }

    .withdraw-info p {
        font-size: 13px;
    }

    .withdraw-info p i {
        font-size: 16px;
    }

    .cancel-btn,
    .confirm-btn,
    .close-modal-btn {
        font-size: 14px;
        padding: 10px;
    }
}

/**************************************************************/


.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #b8c3d9;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999 !important; 
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: all; 
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.modal-close-btn:active {
    transform: scale(0.95);
}


.auth-modal {
    overflow: scroll;
}


@media (max-width: 767px) {
    .modal-close-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 10px;
        right: 10px;
        z-index: 9999 !important;
    }
}


.modal-close-btn {
    border: 1px solid #111 !important; 
}

.create-card-container {
    position: relative;
    overflow: scroll;
}

.wallet-container {
    position: relative;
    overflow: scroll;
}

#paymentBtn3, #paymentBtn2 {
	cursor:pointer;
}


/**********************************************************/

/* Referral Modal Styles */
.referral-container {
    background: linear-gradient(135deg, #1f2633 0%, #131824 100%);
    width: 90%;
    max-width: 1000px; 
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.referral-content {
    min-height: 400px; 
}


@media (max-width: 767px) {
    .referral-container {
        width: 95%;
        padding: 20px;
    }

    .referral-content {
        min-height: 300px;
    }
}




/******************************************************/
 .tg-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      justify-content: center;
      align-items: center;
      z-index: 10000;
      backdrop-filter: blur(6px);
    }

    .tg-modal-content {
      background: linear-gradient(145deg, #1c1c1c, #2c2c2c);
      padding: 28px;
      border-radius: 16px;
      max-width: 440px;
      width: 90%;
      text-align: center;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.1);
      transform: translateY(20px);
      opacity: 0;
      transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .tg-modal.show .tg-modal-content {
      transform: translateY(0);
      opacity: 1;
    }

    .tg-modal-content p {
      margin: 0 0 28px;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.6;
      color: #d0d0d0;
    }

    .tg-modal-buttons {
      display: flex;
      justify-content: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .tg-button {
      padding: 12px 28px;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease;
      min-width: 130px;
      position: relative;
      overflow: hidden;
    }

    .tg-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: 0.5s;
    }

    .tg-button:hover::before {
      left: 100%;
    }

    .tg-run {
      background: linear-gradient(90deg, #00aaff, #0078c8);
      color: #fff;
    }

    .tg-run:hover {
      background: linear-gradient(90deg, #0099e6, #0066b3);
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(0, 170, 255, 0.4);
    }

    .tg-install {
      background: linear-gradient(90deg, #00cc66, #00994d);
      color: #fff;
    }

    .tg-install:hover {
      background: linear-gradient(90deg, #00b359, #008040);
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(0, 204, 102, 0.4);
    }

    .tg-cancel {
      background: linear-gradient(90deg, #ff4d4d, #cc3333);
      color: #fff;
    }

    .tg-cancel:hover {
      background: linear-gradient(90deg, #e63939, #b32d2d);
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(255, 77, 77, 0.4);
    }

    @media (max-width: 480px) {
      .tg-modal-content {
        padding: 20px;
        max-width: 95%;
      }
      .tg-modal-content p {
        font-size: 16px;
      }
      .tg-button {
        padding: 10px 24px;
        font-size: 14px;
        min-width: 110px;
      }
      .tg-modal-buttons {
        flex-direction: column;
        gap: 10px;
      }
    }

    @media (max-width: 360px) {
      .tg-modal-content {
        padding: 16px;
      }
      .tg-modal-content p {
        font-size: 14px;
      }
      .tg-button {
        padding: 8px 20px;
        font-size: 13px;
      }
    }


.battle-close-btn {
    position: absolute;
    top: -40px;
    margin-right: 0px;
    width: 40px;
    height: 40px;
    background: #825400;
	border:2px solid gold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10004;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    transition: all 0.3s ease;
}


.battle-close-btn:hover {
    background: linear-gradient(135deg, #cc0000, #ff3333);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.7);
    transform: scale(1.1);
}

.battle-close-btn span {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
}

#jackpotAmount {
margin-left:20px;
}
/***************************************************/
        #game-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100dvh;
            background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
            z-index: 999999;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        #game-overlay.active {
            display: block;
        }

        .game-container {
            width: 100%;
            height: 100%;
            background: transparent;
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .game-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
            pointer-events: none;
            z-index: 1;
        }

        .game-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.15);
            color: #ffffff;
            border: 2px solid rgba(255, 255, 255, 0.4);
            width: 55px;
            height: 55px;
            border-radius: 50%;
            font-size: 28px;
            cursor: pointer;
            z-index: 1000000;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .game-close-btn:hover {
            background: rgba(255, 71, 87, 0.3);
            border-color: rgba(255, 71, 87, 0.6);
            transform: rotate(90deg);
        }

        .game-content {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0px;
            box-sizing: border-box;
            color: #ffffff;
            position: relative;
            z-index: 2;
        }

        .modal-content {
            background: linear-gradient(145deg, #222222 0%, #151515 100%);
            border-radius: 20px;
            padding: 50px;
            max-width: 550px;
            width: 95%;
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .modal-content::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 71, 87, 0.1), transparent);
            animation: glow 8s linear infinite;
            pointer-events: none;
        }

        @keyframes glow {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .modal-content h2 {
            color: #ffffff;
            font-size: 32px;
            margin-bottom: 35px;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 71, 87, 0.3);
            position: relative;
            z-index: 2;
        }

        .modal-precautions {
            margin-bottom: 35px;
            text-align: left;
            position: relative;
            z-index: 2;
        }

        .modal-precautions p {
            color: #dddddd;
            font-size: 15px;
            line-height: 1.7;
            margin-bottom: 15px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 6px;
            border-left: 3px solid #ff4757;
            transition: all 0.3s ease;
        }

        .modal-precautions p:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateX(5px);
        }

        .modal-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
            z-index: 2;
        }

        .modal-btn {
            padding: 18px 40px;
            border: none;
            border-radius: 10px;
            font-size: 17px;
            font-weight: bold;
            cursor: pointer;
            min-width: 140px;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .modal-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: all 0.5s ease;
        }

        .modal-btn:hover::after {
            left: 100%;
        }

        .btn-confirm {
            background: linear-gradient(135deg, #ff4757 0%, #ff2233 100%);
            color: white;
            box-shadow: 0 5px 20px rgba(255, 71, 87, 0.5);
        }

        .btn-confirm:hover {
            background: linear-gradient(135deg, #ff2233 0%, #ff1122 100%);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 71, 87, 0.7);
        }

        .btn-cancel {
            background: linear-gradient(135deg, #636e82 0%, #454f63 100%);
            color: white;
            box-shadow: 0 5px 20px rgba(99, 110, 130, 0.5);
        }

        .btn-cancel:hover {
            background: linear-gradient(135deg, #454f63 0%, #333c4e 100%);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(99, 110, 130, 0.7);
        }

        .game-iframe {
            width: 100%;
            height: 100%;
            border: none;
            background: #111111;
        }

        @media (max-width: 768px) {
            .modal-content {
                padding: 35px 25px;
            }

            .modal-content h2 {
                font-size: 28px;
                margin-bottom: 25px;
            }

            .modal-precautions p {
                font-size: 14px;
                padding: 10px;
            }

            .game-close-btn {
                width: 50px;
                height: 50px;
                font-size: 24px;
                top: 15px;
                right: 15px;
				display:none;
            }

            .modal-btn {
                padding: 15px 35px;
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .modal-content {
                padding: 30px 20px;
            }

            .modal-content h2 {
                font-size: 24px;
            }

            .modal-precautions p {
                font-size: 13px;
            }

            .modal-btn {
                padding: 12px 30px;
                min-width: 120px;
            }
        }


		.wallet-address {
			cursor: pointer;
			transition: all 0.3s ease;
		}

		.wallet-address:hover {
			background-color: #f0f0f0;
		}

		.wallet-address.copied {
			background-color: #4CAF50;
			color: white;
		}