/* ================================================================
   WALLET PAGE STYLESHEET (v5.3 - Polished Layout)
   ================================================================ */

.wallet-layout { 
    display: grid; 
    grid-template-columns: 320px 1fr; 
    gap: 2.5rem; 
    padding: 2rem 0; 
    align-items: flex-start; 
}

/* ----- Sidebar (Left Column) ----- */
.wallet-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
}
.sidebar-section h3 { 
    font-size: 1.25rem; 
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.connection-info-card { 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color);
    padding: 1rem; 
    border-radius: 12px; 
}
.connection-info-card.connected {
    background-color: rgba(0, 204, 102, 0.1);
    border: 1px solid var(--green);
}
.connection-info-card p { margin: 0 0 0.5rem 0; color: var(--text-muted); word-break: break-all; }
.connection-info-card p strong { color: var(--text-light); }
.connection-info-card button { margin-top: 1rem; }

.balance-cards { display: flex; flex-direction: column; gap: 1rem; }
.balance-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; background-color: var(--card-bg); border-radius: 12px; }
.balance-card img { width: 40px; height: 40px; }
.balance-card .chain-name { display: block; color: var(--text-muted); }
.balance-card .balance-value { display: block; font-weight: 600; font-size: 1.1rem; }
.action-buttons { display: flex; flex-direction: column; gap: 1rem; }

/* ----- Main Content (Right Column) ----- */
.wallet-main { background-color: var(--card-bg); border-radius: 16px; border: 1px solid var(--border-color); }

/* UPDATED: Polished tab styles */
.asset-tabs { 
    display: flex; 
    padding: 0.5rem; 
    border-bottom: 1px solid var(--border-color); 
    background-color: rgba(0,0,0,0.2);
}
.asset-tabs .tab-btn { 
    flex: 1; 
    padding: 0.75rem; 
    background: none; 
    border: none; 
    color: var(--text-muted); 
    font-weight: 500; 
    font-size: 1rem; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.asset-tabs .tab-btn:hover { 
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}
.asset-tabs .tab-btn.active { 
    background-color: var(--primary-purple); 
    color: var(--text-light); 
}
.asset-content { padding: 1.5rem; }

/* Other Component Styles */
.nft-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 1.5rem; 
}
.ticket-card { 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    overflow: hidden; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}
.ticket-card:hover { transform: translateY(-5px); }
.ticket-card-image { 
    position: relative; 
    aspect-ratio: 16 / 10; 
}
.ticket-card-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.nft-chain { position: absolute; top: 0.5rem; right: 0.5rem; background-color: rgba(0,0,0,0.7); padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.8rem; color: var(--text-light);}
.ticket-card-info { padding: 1rem; }
.ticket-card-info h3 { font-size: 1rem; margin: 0 0 0.5rem 0; color: var(--text-light); }
.ticket-card-info p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* Modal & Toast Styles */
.modal-overlay { z-index: 9999; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; opacity: 1; transition: opacity 0.3s ease; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
#toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 10000; }
.toast { padding: 1rem 1.5rem; background-color: var(--green); color: var(--dark-bg); font-weight: 600; border-radius: 8px; }