* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    padding: 30px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.addresses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.address-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    min-width: 280px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.address-label {
    font-size: 16px;
    color: #495057;
    margin-bottom: 10px;
    font-weight: 600;
}

.address {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 8px;
    word-break: break-all;
    font-family: monospace;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.balance-container {
    margin: 15px 0;
}

.balance-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.balance {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
}

.eth-symbol {
    color: #627eea;
    font-size: 20px;
    margin-right: 5px;
}

.balance-usd {
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
}

.refresh-btn {
    background-color: #627eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.refresh-btn:hover {
    background-color: #4c68d7;
}

.loading {
    display: none;
    margin: 10px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #627eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    color: #e74c3c;
    margin: 10px 0;
    display: none;
    background-color: #ffeaea;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ffcdd2;
    font-size: 12px;
}

.info {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.4;
}

.total-balance {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.total-label {
    font-size: 18px;
    color: #495057;
    margin-bottom: 10px;
    font-weight: 600;
}

.total-amount {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #888;
}

.api-status {
    background-color: #d4edda;
    color: #155724;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    margin: 10px 0;
    display: inline-block;
    border: 1px solid #c3e6cb;
}