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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease;
}

.main-logo {
    width: 240px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

h1 {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00ddff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #a0a0a0;
}

.search-section {
    display: flex;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: slideUp 0.8s ease;
}

.wallet-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wallet-input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.wallet-input::placeholder {
    color: #606060;
}

.search-btn {
    padding: 18px 36px;
    background: linear-gradient(135deg, #00ff88, #00ddff);
    border: none;
    border-radius: 12px;
    color: #0a0e27;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #ff4757;
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

.results-section {
    display: none;
    animation: fadeIn 0.8s ease;
}

.results-section.show {
    display: block;
}

.wallet-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-info h3 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    color: #ffffff;
    word-break: break-all;
}

.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.token-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.token-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.token-card:hover::before {
    opacity: 1;
}

.token-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.token-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.token-info h4 {
    color: #00ff88;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.token-amount {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.usd-value {
    color: #a0a0a0;
    font-size: 0.9em;
}

.total-section {
    background: linear-gradient(135deg, #00ff88, #00ddff);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.3);
}

.balz-logo-result {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
}

.total-info h2 {
    color: #0a0e27;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.total-amount {
    font-size: 3em;
    font-weight: 700;
    color: #0a0e27;
}

.details-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.details-section h3 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 1.3em;
}

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

.details-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.details-table td {
    padding: 12px 0;
}

.details-table td:first-child {
    color: #a0a0a0;
}

.details-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #606060;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.85em;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .search-section {
        flex-direction: column;
    }

    .token-grid {
        grid-template-columns: 1fr;
    }

    .total-section {
        flex-direction: column;
        text-align: center;
    }

    .total-amount {
        font-size: 2em;
    }
}