<!-- Add this CSS to the existing <style> section in crash-game.html -->

/* ========================
   ENGAGEMENT FEATURES STYLES
   ======================== */

/* Crash History Bars */
.history-bars-container {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 100px;
    padding: 10px;
    background: rgba(13, 17, 23, 0.6);
    border-radius: 8px;
    overflow-x: auto;
}

.history-bar {
    min-width: 30px;
    background: #22C55E;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    padding: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-bar:hover {
    transform: scale Y(1.1);
    filter: brightness(1.2);
}

/* Player Activity Feed */
.activity-feed {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(13, 17, 23, 0.6);
    border-radius: 8px;
    padding: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid rgba(139, 148, 158, 0.2);
    animation: slideIn 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-icon {
    font-size: 20px;
}

.activity-text {
    flex: 1;
    font-size: 13px;
}

.activity-amount {
    color: #F59E0B;
    font-weight: bold;
}

.activity-multiplier {
    color: #22C55E;
    font-weight: bold;
}

.activity-win {
    color: #28DBD1;
    font-weight: bold;
}

/* Statistics Panel */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    background: rgba(13, 17, 23, 0.6);
    border-radius: 8px;
}

.stat-card {
    background: rgba(40, 219, 209, 0.1);
    border: 1px solid rgba(40, 219, 209, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #8B949E;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #28DBD1;
}

.profit-positive {
    color: #22C55E;
}

.profit-negative {
    color: #EF4444;
}

/* Auto-Bet Controls */
.auto-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.control-btn {
    flex: 1;
    padding: 12px;
    background: rgba(40, 219, 209, 0.1);
    border: 2px solid rgba(40, 219, 209, 0.3);
    border-radius: 8px;
    color: #C9D1D9;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(40, 219, 209, 0.2);
    border-color: rgba(40, 219, 209, 0.5);
    transform: translateY(-2px);
}

.control-btn.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22C55E;
    color: #22C55E;
}

.control-status {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    color: #8B949E;
}

/* Daily Challenges */
.challenges-panel {
    background: rgba(13, 17, 23, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.challenges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.challenges-title {
    font-size: 18px;
    font-weight: bold;
    color: #28DBD1;
}

.challenges-reset {
    font-size: 12px;
    color: #8B949E;
}

.challenge-item {
    background: rgba(40, 219, 209, 0.05);
    border: 1px solid rgba(40, 219, 209, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    border-color: rgba(40, 219, 209, 0.4);
    transform: translateX(5px);
}

.challenge-item.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.challenge-name {
    font-weight: bold;
    color: #C9D1D9;
}

.challenge-reward {
    font-size: 12px;
    font-weight: bold;
    color: #F59E0B;
}

.challenge-description {
    font-size: 12px;
    color: #8B949E;
    margin-bottom: 8px;
}

.challenge-progress-bar {
    height: 6px;
    background: rgba(139, 148, 158, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.challenge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28DBD1, #1E90FF);
    transition: width 0.3s ease;
}

.challenge-progress-text {
    font-size: 11px;
    color: #8B949E;
    text-align: right;
}

/* Challenge Complete Notification */
.challenge-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    background: linear-gradient(135deg, rgba(40, 219, 209, 0.95), rgba(30, 144, 255, 0.95));
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 10000;
}

.challenge-notification.show {
    right: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 40px;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.notification-reward {
    font-size: 20px;
    font-weight: bold;
    color: #FFF;
    margin-top: 5px;
}

/* Tabs System */
.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: rgba(40, 219, 209, 0.1);
    border: 2px solid rgba(40, 219, 209, 0.3);
    border-radius: 8px;
    color: #C9D1D9;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(40, 219, 209, 0.2);
}

.tab-btn.active {
    background: rgba(40, 219, 209, 0.3);
    border-color: #28DBD1;
    color: #28DBD1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Sound Toggle */
.sound-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Scrollbar Styling */
.activity-feed::-webkit-scrollbar,
.history-bars-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.activity-feed::-webkit-scrollbar-track,
.history-bars-container::-webkit-scrollbar-track {
    background: rgba(139, 148, 158, 0.1);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb,
.history-bars-container::-webkit-scrollbar-thumb {
    background: rgba(40, 219, 209, 0.5);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb:hover,
.history-bars-container::-webkit-scrollbar-thumb:hover {
    background: rgba(40, 219, 209, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .auto-controls {
        flex-direction: column;
    }
    
    .challenge-notification {
        width: calc(100% - 40px);
        right: -100%;
    }
    
    .challenge-notification.show {
        right: 20px;
    }
}
