/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tagline {
    color: #a0a0a0;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 8px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ===== WALLET SECTION ===== */
.wallet-section {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wallet-input {
    flex: 1;
    min-width: 280px;
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.wallet-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    margin-top: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
}

/* ===== LOADER ===== */
.loader {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.loader-animation {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.error-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.error-message p {
    color: #fca5a5;
    margin: 0;
}

/* ===== PORTFOLIO RESULTS ===== */
.portfolio-results {
    margin-top: 32px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.total-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.portfolio-subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* ===== NETWORK CARDS ===== */
.network-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.network-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.network-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.network-card h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 20px 0 12px 0;
    color: #e0e0e0;
}

/* ===== TOKEN LIST ===== */
.token-list {
    list-style: none;
    padding: 0;
}

.token-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.token-item:last-child {
    border-bottom: none;
}

.token-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -12px;
    padding: 16px 12px;
    border-radius: 8px;
}

.token-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.token-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.token-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 1rem;
}

.token-balance {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.token-value {
    font-weight: 600;
    color: #10b981;
    text-align: right;
    font-size: 1rem;
}

/* ===== NFT GALLERY ===== */
.nft-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.nft-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nft-item:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.nft-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 32px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .wallet-input {
        min-width: auto;
    }
    
    .total-value {
        font-size: 2rem;
    }
    
    .network-card {
        padding: 20px;
    }
    
    .nft-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .total-value {
        font-size: 1.8rem;
    }
}
