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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

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

.header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.network-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.wallet-section {
    margin-bottom: 25px;
}

.wallet-button {
    width: 100%;
    padding: 15px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.wallet-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.wallet-info {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
}

.wallet-address {
    font-family: monospace;
    font-size: 14px;
    color: #6b7280;
    word-break: break-all;
}

.balances {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.balance-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.balance-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 18px;
    color: #111827;
    font-weight: 700;
    margin-top: 5px;
}

.swap-section {
    background: #f9fafb;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.token-input {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.token-input:focus-within {
    border-color: #3b82f6;
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.token-symbol {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

.token-select {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.token-select:hover {
    border-color: #3b82f6;
    background: #ffffff;
}

.token-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.token-balance {
    font-size: 14px;
    color: #6b7280;
}

.amount-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    background: transparent;
}

.amount-input::placeholder {
    color: #d1d5db;
}

.swap-arrow {
    display: flex;
    justify-content: center;
    margin: -10px 0;
    position: relative;
    z-index: 1;
}

.swap-button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.swap-button:hover {
    background: #2563eb;
    transform: rotate(180deg);
}

.action-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.swap-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.swap-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.swap-action:disabled {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.status-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.status-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.gas-estimate {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    text-align: center;
}

@media (max-width: 640px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .amount-input {
        font-size: 20px;
    }
}