body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #111827;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.glass-panel {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Header Styles */
.game-header {
    position: sticky;
    top: 0;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 100;
    border-bottom: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.stats-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Market Grid */
.game-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

@media (min-width: 1024px) {
    .game-container {
        grid-template-columns: 3fr 1fr;
    }
}

.stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.stock-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.stock-card:hover {
    transform: translateY(-4px);
    border-color: #4b5563;
}

.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stock-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-safe { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-moderate { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.badge-volatile { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

/* Controls */
.trade-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

button {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    transition: background 0.2s;
}

.btn-buy { background: #10b981; color: white; }
.btn-buy:hover { background: #059669; }
.btn-sell { background: #374151; color: white; border: 1px solid #4b5563; }
.btn-sell:hover { background: #4b5563; }

/* Leaderboard */
.leaderboard-panel {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #374151;
}

.leaderboard-row:last-child { border-bottom: none; }

.rank { color: #9ca3af; margin-right: 8px; font-weight: 400; }

/* Colors */
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }

/* Charts */
.chart-wrapper {
    height: 100px;
    width: 100%;
    margin: 10px 0;
}

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
