body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e24;
    color: #f5f5f7;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2e2e38;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
header div {
    display: flex;
    align-items: center;
}
h1 { 
    margin: 0; 
    font-size: 24px; 
    color: #4ade80; 
}
.dashboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.card {
    background-color: #2a2a35;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3e3e4a;
    text-align: center;
}
.card h3 { 
    margin: 0 0 10px 0; 
    font-size: 14px; 
    color: #9ca3af; 
    text-transform: uppercase; 
}
.card p { 
    margin: 0; 
    font-size: 22px; 
    font-weight: bold; 
}
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}
button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
button:disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
}
.btn-start { 
    background-color: #3b82f6; 
    color: white; 
}
.btn-start:hover:not(:disabled) { 
    background-color: #2563eb; 
}
.btn-buy { 
    background-color: #10b981; 
    color: white; 
}
.btn-buy:hover:not(:disabled) { 
    background-color: #059669; 
}
.btn-sell { 
    background-color: #ef4444; 
    color: white; 
}
.btn-sell:hover:not(:disabled) { 
    background-color: #dc2626; 
}
#chart-container {
    background-color: #2a2a35;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3e3e4a;
    margin-bottom: 30px;
}
.loading {
    text-align: center;
    font-size: 18px;
    color: #9ca3af;
    padding: 80px 0;
}
.leaderboards-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.leaderboard-box {
    background-color: #2a2a35;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #3e3e4a;
}
.leaderboard-box h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #4ade80;
    border-bottom: 1px solid #3e3e4a;
    padding-bottom: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 10px;
    border-bottom: 1px solid #3e3e4a;
    font-size: 15px;
}
th { 
    color: #9ca3af; 
    font-weight: normal; 
    text-transform: uppercase; 
    font-size: 12px; 
}
tr:last-child td { 
    border-bottom: none; 
}
.profit-green { 
    color: #10b981; 
    font-weight: bold; 
}
.loss-red { 
    color: #ef4444; 
    font-weight: bold; 
}
#username {
    padding: 8px; 
    border-radius: 4px; 
    border: 1px solid #3e3e4a; 
    background: #2a2a35; 
    color: white; 
    font-size: 14px; 
    font-weight: bold;
}
.nick-label {
    color: #9ca3af; 
    font-size: 14px; 
    margin-right: 8px;
}
.sector-text {
    color: #3b82f6; 
    font-size: 18px;
}
.balance-text {
    color: #4ade80;
}
