* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header h2 {
    font-size: 1.2rem;
    font-weight: normal;
    opacity: 0.9;
}

.rankings-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    background: linear-gradient(to right, #4a5568, #2d3748);
    color: white;
    padding: 20px;
    font-weight: bold;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.table-row:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
}

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

.rank-item {
    display: flex;
    align-items: center;
}

.rank-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.rank-1 .rank-number { background: linear-gradient(135deg, #FFD700, #FFA500); }
.rank-2 .rank-number { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); }
.rank-3 .rank-number { background: linear-gradient(135deg, #CD7F32, #A0522D); }
.rank-other .rank-number { background: linear-gradient(135deg, #4299e1, #3182ce); }

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

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

.username {
    font-weight: bold;
    color: #2d3748;
    font-size: 16px;
}

.uid {
    font-size: 12px;
    color: #718096;
}

.assets {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #2d3748;
}

.coin-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: white;
    opacity: 0.8;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 50px;
    color: white;
    font-size: 18px;
}

.error {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #e53e3e;
}

@media (max-width: 768px) {
    .table-header,
    .table-row {
        grid-template-columns: 60px 1fr 120px;
        padding: 12px 15px;
    }
    
    .avatar {
        width: 40px;
        height: 40px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}