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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0F1419;
    color: #FFFFFF;
    min-height: 100vh;
}

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

/* Header - exact ca React */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px 0;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.network-selector select {
    background: #1A202C;
    color: #FFFFFF;
    border: 1px solid #2D3748;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.network-selector select:focus {
    border-color: #4FD1C7;
    outline: none;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 12px;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #2D3748;
    border-top: 2px solid #4FD1C7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats Grid - EXACT ca React */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: #1A202C;
    border: 1px solid #2D3748;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #A0AEC0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
}

/* Transactions Table - EXACT ca React */
.transactions-section {
    background: #1A202C;
    border: 1px solid #2D3748;
    border-radius: 12px;
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

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

.transactions-table th {
    background: #2D3748;
    color: #E2E8F0;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #4A5568;
}

.transactions-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #2D3748;
    font-size: 14px;
    color: #FFFFFF;
}

.transactions-table tr:hover {
    background: rgba(79, 209, 199, 0.05);
}

.hash-link, .address-link {
    color: #4FD1C7;
    text-decoration: none;
    font-family: 'Monaco', 'SF Mono', monospace;
    font-size: 13px;
}

.hash-link:hover, .address-link:hover {
    text-decoration: underline;
}

.truncate {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.value-cell {
    font-weight: 600;
    color: #4FD1C7;
    font-family: 'Monaco', 'SF Mono', monospace;
}

.currency {
    color: #A0AEC0;
    font-size: 12px;
    font-weight: 400;
}

/* Pagination - EXACT ca React */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination button {
    background: #2D3748;
    border: 1px solid #4A5568;
    color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    min-width: 40px;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #4A5568;
    border-color: #4FD1C7;
}

.pagination button.active {
    background: #4FD1C7;
    color: #1A202C;
    border-color: #4FD1C7;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive - EXACT ca React */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .truncate {
        max-width: 100px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination button {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
    }
}