#phoneNumber:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Code Input */
.code-input-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.code-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
}

.code-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Username Input */
.username-input-group {
    margin-bottom: 1.5rem;
}

#usernameInput {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.username-availability {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    height: 20px;
}

.username-availability.available {
    color: var(--success);
}

.username-availability.taken {
    color: var(--danger);
}

/* Wallet Options */
.wallet-options {
    margin-bottom: 1.5rem;
}

.wallet-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s;
}

.wallet-btn:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.wallet-info {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.wallet-connected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wallet-status {
    color: var(--success);
    font-weight: 600;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.wallet-balance {
    color: var(--text-secondary);
}

.wallet-notice {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.wallet-notice p {
    color: var(--warning);
    font-size: 0.875rem;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.auth-btn.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

.auth-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.auth-btn.secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
}

.auth-terms {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.auth-terms a {
    color: var(--accent);
    text-decoration: none;
}

.auth-error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--danger);
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Platform Container */
.platform-container {
    transition: opacity 0.3s;
}

.platform-container.hidden {
    display: none;
}

/* Header */
.header {
    background: rgba(19, 21, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.currency-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.25rem;
}

.currency-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.currency-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

.wallet-display {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wallet-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.wallet-amount {
    font-family: 'Orbitron', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.deposit-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--success) 0%, #00cc6a 100%);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.user-profile:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.user-level {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.logout-btn {
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 2rem;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: rgba(31, 35, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--accent);
}

.game-modes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-mode-btn {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-align: left;
}

.game-mode-btn:hover:not(:disabled),
.game-mode-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.game-mode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-btn {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-align: center;
}

.action-btn.deposit {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

.action-btn.withdraw {
    border-color: var(--warning);
    background: rgba(255, 170, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

/* Game Area */
.game-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-header {
    background: rgba(31, 35, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-title h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.control-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Game Container */
.game-wrapper {
    background: rgba(31, 35, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 600px;
}

.game-ui-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.game-stats {
    background: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: all;
}

.multiplier-display-new {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold) 0%, var(--warning) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    text-align: center;
}

.bet-amount-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.bet-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.bet-value {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--accent);
}

.cashout-container {
    pointer-events: all;
}

.cashout-btn-new {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--success) 0%, #00cc6a 100%);
    border: none;
    border-radius: 12px;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.cashout-btn-new:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5);
}

.cashout-btn-new:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    box-shadow: none;
}

.potential-win {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.potential-amount {
    color: var(--success);
    font-weight: 600;
}

/* Game Elements */
.game-container {
    position: relative;
    width: 400px;
    height: 640px;
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
    overflow: hidden;
}

.lane {
    width: 100%;
    height: 40px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.lane.safe {
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0.1) 0%, 
        rgba(0, 255, 136, 0.05) 50%, 
        rgba(0, 255, 136, 0.1) 100%);
    border-color: rgba(0, 255, 136, 0.3);
}

#player {
    position: absolute;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--warning) 0%, var(--gold) 100%);
    border-radius: 8px;
    z-index: 10;
    transition: bottom 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.car {
    position: absolute;
    width: 70px;
    height: 36px;
    background: linear-gradient(135deg, var(--danger) 0%, #cc0033 100%);
    border-radius: 8px;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(255, 51, 102, 0.5);
    animation: car-swoosh 0.3s ease-in forwards;
}

.roadblock {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--warning) 0%, #cc8800 100%);
    z-index: 15;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: roadblock-drop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 10px rgba(255, 170, 0, 0.5);
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.leaderboard {
    background: rgba(31, 35, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.leaderboard-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trophy-icon {
    color: var(--gold);
}

.leaderboard-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.rank-badge {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.rank-1 { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); color: var(--bg-primary); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%); color: var(--bg-primary); }
.rank-3 { background: linear-gradient(135deg, #cd7f32 0%, #e5a855 100%); color: var(--bg-primary); }
.rank-other { background: var(--bg-card); }

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.player-stats {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.player-winnings {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--success);
}

.recent-bets {
    background: rgba(31, 35, 41, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.bets-header {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bets-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.bet-item {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bet-item.win {
    border-left-color: var(--success);
}

.bet-item.loss {
    border-left-color: var(--danger);
}

.bet-player {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.bet-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.bet-multiplier {
    font-weight: 600;
}

.bet-multiplier.high {
    color: var(--gold);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
    position: relative;
}

.modal-content.large {
    max-width: 800px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-tertiary);
}

.close-modal-btn {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.close-modal-btn:hover {
    color: var(--danger);
}

/* Betting Modal */
.bet-input-group {
    margin-bottom: 1.5rem;
}

.bet-input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.bet-input-wrapper {
    position: relative;
}

.bet-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s;
}

.bet-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.25rem;
}

.currency-label {
    color: var(--accent);
}

.quick-bet-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-bet-btn {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.quick-bet-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

/* Game Result Modal */
.game-result {
    text-align: center;
    padding: 2rem 0;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.result-message {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-details {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.result-stat {
    text-align: center;
}

.result-stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
}

.result-stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Deposit/Withdraw Modal */
.deposit-info,
.withdraw-info {
    margin-bottom: 1.5rem;
}

.deposit-address-section,
.withdraw-amount-section,
.deposit-amount-section {
    margin-bottom: 1.5rem;
}

.deposit-address-section label,
.withdraw-amount-section label,
.deposit-amount-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.deposit-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

#depositAddressText {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    word-break: break-all;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

#depositAmount,
#withdrawAmount {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

#depositAmount:focus,
#withdrawAmount:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.deposit-confirm-btn,
.withdraw-confirm-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--success) 0%, #00cc6a 100%);
    border: none;
    border-radius: 12px;
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.deposit-confirm-btn:hover,
.withdraw-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.balance-info span:first-child {
    color: var(--text-secondary);
}

#availableBalance {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--success);
}

.deposit-history,
.withdraw-history {
    margin-top: 1.5rem;
}

.deposit-history h3,
.withdraw-history h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

#depositHistory,
#withdrawHistory {
    max-height: 200px;
    overflow-y: auto;
}

/* Stats Modal */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* History Modal */
.history-table {
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.history-table td {
    color: var(--text-primary);
}

.history-table .status-win {
    color: var(--success);
}

.history-table .status-loss {
    color: var(--danger);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.info {
    border-color: var(--accent);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1.25rem;
}

/* Game Animations */
@keyframes slide-forward {
    0% { transform: scale(1, 1) translateY(0); }
    50% { transform: scale(0.8, 1.2) translateY(-10px); }
    100% { transform: scale(1, 1) translateY(0); }
}

@keyframes player-squash {
    100% { 
        transform: scale(1.5, 0.1); 
        background: var(--danger); 
    }
}

@keyframes car-swoosh {
    from { transform: translateX(-200px); }
    to { transform: translateX(500px); }
}

@keyframes roadblock-drop {
    from { 
        transform: translateY(-40px) scale(0.5); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes pulsing-wait {
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); 
    }
}

@keyframes screen-shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5px, 2px); }
    50% { transform: translate(-5px, -2px); }
    75% { transform: translate(5px, -2px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar,
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-section {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-container {
        width: 320px;
        height: 500px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0b0d;
    --bg-secondary: #131519;
    --bg-tertiary: #1a1d23;
    --bg-card: #1f2329;
    --accent: #00d4ff;
    --accent-secondary: #7b2ff7;
    --success: #00ff88;
    --danger: #ff3366;
    --warning: #ffaa00;
    --text-primary: #ffffff;
    --text-secondary: #a0a9b8;
    --text-tertiary: #6b7280;
    --border-color: #2a2e35;
    --gold: #ffd700;
    --sol-price: 100; /* Default SOL price in USD */
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.5;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    opacity: 0.1;
}

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

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 13, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.auth-modal.hidden {
    display: none;
}

.auth-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.auth-step {
    animation: fadeIn 0.3s ease;
}

.auth-step.hidden {
    display: none;
}

.auth-step h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Phone Input */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.country-select {
    width: 120px;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

#phoneNumber {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

#phoneNumber:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}