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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    margin: 0;
    min-height: 100vh;
    color: #e0e0e0;
}

.top-nav {
    background: #000000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-bottom: 3px solid white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .top-nav h1 {
        font-size: 20px;
        margin-bottom: 0.5rem;
    }
}

.top-nav h1 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background: #000000;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border: 1px solid #4a5568;
}

@media (max-width: 768px) {
    .main-content {
        margin: 1rem;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .dashboard-title {
        font-size: 24px;
        margin-bottom: 1.5rem;
    }
}

.dashboard-title {
    display: none;
}

.btn {
    background: #000000;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: none;
}

.btn:hover:not(:disabled) {
    background: #0040cc;
    box-shadow: 0 4px 8px rgba(0,82,255,0.3);
    transform: translateY(-1px);
}

.btn:disabled {
    background: #28a745;
    cursor: not-allowed;
    color: white;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .wallet-section {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .network-select, .btn {
        width: 100%;
        max-width: 300px;
    }
}

.wallet-info {
    background: #000000;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    color: white;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wallet-info p {
    margin: 0;
    color: white;
}

.logout-btn {
    background: white;
    color: #0052ff;
    border: 3px solid #0052ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #f8f9fa;
}

.trade-single-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
    width: 100%;
}

.trade-single-btn:hover {
    background: #0056b3;
}

.sync-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
}

.sync-btn:hover {
    background: #218838;
}

.trade-single-section {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    background: #f8f9fa;
}

.trade-single-section input {
    width: 100%;
    margin-bottom: 8px;
}

.sell-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.sell-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-top: 4px;
}

.sell-btn:hover {
    background: #e55a2b;
}

.marketplace-card .price {
    font-weight: bold;
    color: #0052ff;
    font-size: 16px;
}

.marketplace-purchase {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e6ebf1;
}

.price-display {
    font-size: 18px;
    margin-bottom: 0.5rem;
}

.seller-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 1rem;
    word-break: break-all;
}

.buy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.buy-btn:hover {
    background: #218838;
}

.hidden {
    display: none !important;
}

.network-select, .filter-select {
    padding: 10px 16px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    font-size: 14px;
    min-width: 120px;
    background: white;
    color: #1a1a1a;
    font-weight: 500;
}

.filter-select {
    background: white;
    border: 2px solid #e0e0e0;
    color: #424242;
    font-size: 14px;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-select:hover {
    border-color: #0052ff;
    box-shadow: 0 4px 8px rgba(0,82,255,0.15);
}

.filter-select:focus {
    outline: none;
    border-color: #0052ff;
    box-shadow: 0 0 0 3px rgba(0,82,255,0.1);
}

.filter-select option {
    padding: 8px 12px;
    color: #424242;
    background: white;
    font-size: 14px;
}

.trade-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 1rem;
}

.trade-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.trade-form {
    padding: 1rem;
}

.trade-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin: 0.5rem 0 1rem 0;
}

.nft-selection {
    margin: 1rem 0;
}

.nft-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 0.25rem 0;
}

.nft-checkbox input[type="checkbox"] {
    margin: 0;
}

.nft-container {
    margin-top: 2rem;
    max-width: 1200px;
    width: 100%;
}

.collection-header {
    background-color: #2d3748;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.collection-title {
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.network-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.collection-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.collection-description {
    margin: 0 0 1.5rem 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.collection-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    font-size: 14px;
    opacity: 0.9;
}

.stat strong {
    color: #FFD700;
    font-weight: 600;
}

.loading-indicator {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

@media (max-width: 768px) {
    .collection-header {
        padding: 1.5rem;
    }
    
    .collection-header h3 {
        font-size: 24px;
    }
    
    .collection-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

.nft-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .nft-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .nft-image {
        height: 150px;
    }
    
    .nft-info {
        padding: 0.75rem;
    }
    
    .nft-info h4 {
        font-size: 14px;
    }
    
    .nft-info p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nft-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .nft-image {
        height: 120px;
    }
}

.nft-card {
    background: #4a5568;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    overflow: visible;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #718096;
    position: relative;
}

.nft-card[data-contract$="0ec7"] {
    background: #000000;
}

.cancel-listing {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.cancel-listing:hover {
    background: #cc0000;
}

.cancel-icon {
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.content-layout {
    display: flex;
    gap: 0;
    width: 100%;
    overflow: hidden;
}

.main-section {
    flex: 1;
}

.history-panel {
    width: 300px;
    background: #2d3748;
    border-left: 1px solid #4a5568;
    overflow-y: auto;
    position: relative;
    color: #e0e0e0;
}

.history-panel.hidden {
    display: none;
}

.history-header {
    padding: 1rem;
    border-bottom: 1px solid #e6ebf1;
    background: #f8f9fa;
}

.history-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
}

.history-content {
    padding: 1rem;
}

.history-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 12px;
}

.history-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.history-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 12px;
    font-weight: 600;
}

.history-info {
    flex: 1;
    text-align: right;
}

.history-status {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.history-price {
    color: #0052ff;
    font-weight: 600;
}

.nft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #0052ff;
}

.nft-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #000000;
}

.nft-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    text-align: center;
    background: rgba(64, 64, 64, 0.9);
    color: #ffffff !important;
}

.nft-info h4, .nft-info p {
    color: #ffffff !important;
}

.nft-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-info p {
    margin: 0;
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.coin-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
}

.coin {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    position: relative;
    animation: coinFlip 1.5s infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    background-size: 40px 40px;
    background-position: center;
    background-repeat: no-repeat;
}

.coin.has-logo {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.coin::before {
    content: '$';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #b8860b;
}

.coin.has-logo::before {
    display: none;
}

@keyframes coinFlip {
    0%, 100% { transform: rotateY(0deg) scale(1); }
    25% { transform: rotateY(90deg) scale(0.8); }
    50% { transform: rotateY(180deg) scale(1); }
    75% { transform: rotateY(270deg) scale(0.8); }
}

.loading-text {
    margin-top: 1rem;
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    max-height: 97.75vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 16px 48px rgba(0,0,0,0.16);
    border: 1px solid #e6ebf1;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    color: #999;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

.modal-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    padding: 2rem;
    gap: 2rem;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-info {
    flex: 1;
}

.modal-info h3 {
    margin: 0 0 1.5rem 0;
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.metadata-section {
    margin-bottom: 1.5rem;
}

.metadata-section h4 {
    margin: 0 0 0.75rem 0;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-item {
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.metadata-label {
    font-weight: 600;
    color: #2d3748;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 14px;
}

.metadata-value {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-all;
}

.collection-link {
    color: #0052ff;
    text-decoration: none;
    font-weight: 600;
}

.collection-link:hover {
    text-decoration: underline;
}

.attributes-section {
    margin-top: 1.5rem;
}

.attributes-section h4 {
    margin: 0 0 1rem 0;
    color: whitesmoke;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attributes-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-height: 260px;
    overflow-y: auto;
}

.attribute-row {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 6px;
    border-left: 3px solid #667eea;
    margin-bottom: 0.25rem;
}

.attribute-trait {
    font-size: 12px;
    color: #4a5568;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.attribute-value {
    font-size: 10.2px;
    color: #2d3748;
    font-weight: 700;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.attribute-item {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #e6ebf1;
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 24px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #0052ff;
}

.auth-btn {
    width: 100%;
    margin: 1rem 0;
}

.auth-link {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.auth-link a {
    color: #0052ff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        width: 95%;
    }
    .modal-body {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    .modal-image {
        height: 250px;
    }
    .attributes-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .attributes-2col {
        grid-template-columns: 1fr;
        max-height: 150px;
    }
    .attribute-row {
        padding: 0.5rem;
    }
    .attribute-trait {
        font-size: 11px;
    }
    .attribute-value {
        font-size: 9.35px;
    }
    .collection-header {
        padding: 1.5rem;
    }
    .collection-header h3 {
        font-size: 24px;
    }
    .collection-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

/* Notification Modal Styles */
.notification-modal {
    max-width: 500px;
    width: 90%;
}

.notification-body {
    padding: 0;
}

.notification-image-section {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.notification-nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notification-details {
    padding: 1.5rem;
}

.notification-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.notification-header h4 {
    margin: 0 0 1.5rem 0;
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.notification-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: #666;
    font-weight: 500;
}

.info-row strong {
    color: #1a1a1a;
    font-weight: 600;
}

.info-row a {
    color: #0052ff;
    text-decoration: none;
    font-weight: 600;
}

.info-row a:hover {
    text-decoration: underline;
}

.notification-btn {
    width: 100%;
    background: #0052ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-btn:hover {
    background: #0040cc;
}

.notification-simple {
    padding: 2rem;
    text-align: center;
}

.notification-simple h3 {
    margin: 0 0 1rem 0;
    font-size: 24px;
    color: #1a1a1a;
}

.notification-simple p {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 16px;
}

@media (max-width: 768px) {
    .notification-modal {
        width: 95%;
        max-width: 95vw;
    }
    
    .notification-image-section {
        height: 250px;
    }
    
    .notification-details {
        padding: 1rem;
    }
    
    .notification-header h3 {
        font-size: 20px;
    }
    
    .notification-header h4 {
        font-size: 16px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .notification-simple {
        padding: 1.5rem;
    }
}

/* Multi-Collection Portfolio Styles */
.portfolio-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portfolio-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.portfolio-title h2 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
}

.portfolio-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.collection-section {
    background: #2d3748;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.collection-section .collection-header {
    background: transparent;
    color: white;
    padding: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #4a5568;
    padding-bottom: 20px;
    box-shadow: none;
}

.collection-section .collection-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.collection-section .collection-title h3 {
    margin: 0;
    color: white;
    font-size: 1.5em;
    font-weight: 600;
}

.toggle-collection {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.toggle-collection:hover {
    background: #5a6268;
    transform: scale(1.1);
}

.collection-gallery {
    transition: all 0.3s ease;
}

.collection-tag {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    margin-top: 5px;
    display: inline-block;
}

@media (max-width: 768px) {
    .portfolio-header {
        padding: 20px;
    }
    
    .portfolio-title h2 {
        font-size: 1.8em;
    }
    
    .portfolio-stats {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .collection-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .toggle-collection {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

.collection-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin: 0 10px;
    background: white;
}

/* Multi-Chain Display Styles */
.multi-collection-header {
    background: #2d3748;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.multi-collection-header h2 {
    margin: 0 0 1rem 0;
    font-size: 28px;
    font-weight: 700;
}

.network-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.network-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.network-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.network-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.network-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.network-badge.ethereum {
    background: linear-gradient(135deg, #627eea 0%, #4f46e5 100%);
}

.network-badge.apechain {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.network-badge.base {
    background: linear-gradient(135deg, #0052ff 0%, #0040cc 100%);
}

.no-nfts-message {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e9ecef;
}

.network-mismatch-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #856404;
}

.network-mismatch-warning p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .multi-collection-header {
        padding: 1.5rem;
    }
    
    .multi-collection-header h2 {
        font-size: 24px;
    }
    
    .network-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .network-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .network-header h2 {
        font-size: 20px;
    }
    
    .network-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .no-nfts-message {
        padding: 2rem;
        font-size: 16px;
    }
}/* Enhanced loading states and error handling styles */

.nft-image-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.nft-image {
    opacity: 1;
}

.nft-image.fallback-image {
    border: 2px dashed #ccc;
    background: #f9f9f9;
}

.image-loading-spinner {
    display: none;
}

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

.nft-card-loading {
    opacity: 0.7;
    position: relative;
}

.nft-card-error {
    border: 2px solid #ff6b6b;
    background-color: #fff5f5;
}

.error-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
    cursor: help;
}

.loading-progress {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
    animation: progress-fill 3s ease-in-out infinite;
}

@keyframes progress-fill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    color: #666;
    font-size: 14px;
    margin: 0;
}
/* Welcome Grid Layout */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    height: 80vh;
    padding: 2rem;
}

.welcome-quadrant {
    background: #2d3748;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #4a5568;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.welcome-quadrant .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.welcome-quadrant h4 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.welcome-quadrant p {
    color: #a0aec0;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.marketplace-preview, .history-preview {
    background: #1a202c;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    width: 100%;
    min-height: 100px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* History Panel Pagination */
.history-pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    background: #4a5568;
    color: #e0e0e0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #718096;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    color: #e0e0e0;
    font-weight: 500;
}
/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-btn {
    background: #4a5568;
    color: #e0e0e0;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #718096;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #e0e0e0;
    font-weight: 500;
    margin: 0 1rem;
}

/* Lazy Loading */
.lazy-load {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lazy-load[src]:not([src=""]) {
    opacity: 1;
}
/* Tabbed Interface Styles */
.marketplace-tabs {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    background: #1a202c;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border-bottom: 2px solid #4a5568;
}

.tab-btn {
    flex: 1;
    background: #2d3748;
    color: #a0aec0;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 1px solid #4a5568;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: #4a5568;
    color: #e0e0e0;
}

.tab-btn.active {
    background: #000000;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.tab-content {
    background: #2d3748;
    border-radius: 0 0 8px 8px;
    min-height: 500px;
}

.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.analytics-content {
    text-align: center;
    color: #a0aec0;
    padding: 4rem 2rem;
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    .tab-panel {
        padding: 1rem;
    }
}
/* History Item Styles */
.history-item {
    background: #2d3748;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #48bb78 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #4a5568;
    transform: translateX(4px);
}

.history-details h4 {
    color: #e0e0e0;
    margin: 0 0 0.5rem 0;
}

.history-details p {
    color: #a0aec0;
    margin: 0.25rem 0;
}

.history-details small {
    color: #718096;
    display: block;
    margin-top: 0.25rem;
}

.time-ago {
    font-style: italic;
}
/* Enhanced History Item Styles */
.history-item.enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #2d3748;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #48bb78 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item.enhanced:hover {
    background: #4a5568;
    transform: translateX(4px);
}

.history-image {
    flex-shrink: 0;
}

.history-nft-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
}

.history-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.history-main h4 {
    color: #e0e0e0;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.collection-name {
    color: #a0aec0;
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

.traits {
    color: #718096;
    font-size: 0.8rem;
}

.history-meta {
    text-align: right;
    flex-shrink: 0;
}

.history-meta .price {
    color: #48bb78;
    font-weight: 600;
    font-size: 1.1rem;
}

.history-meta .time {
    color: #a0aec0;
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

.history-meta .buyer,
.history-meta .tx-hash {
    color: #718096;
    font-size: 0.75rem;
    margin: 0.1rem 0;
}
/* Analytics Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #1a202c;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #4a5568;
}

.metric-card h4 {
    color: #a0aec0;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.metric-value {
    color: #48bb78;
    font-size: 1.8rem;
    font-weight: 600;
}

.analytics-section {
    margin-bottom: 2rem;
}

.analytics-section h4 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.collection-stats, .buyer-stats {
    background: #1a202c;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #4a5568;
}

.collection-stat, .buyer-stat {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #2d3748;
    align-items: center;
}

.collection-stat:last-child, .buyer-stat:last-child {
    border-bottom: none;
}

.collection-name, .buyer-address {
    color: #e0e0e0;
    font-weight: 500;
}

.collection-count, .collection-volume, .collection-avg,
.buyer-count, .buyer-volume {
    color: #a0aec0;
    text-align: right;
    font-size: 0.9rem;
}

.buyer-stat {
    grid-template-columns: 2fr 1fr 1fr;
}
/* Trade Styles */
.trades-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.trades-header h4 {
    color: #e0e0e0;
    margin: 0;
}

.trade-offers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trade-offer {
    background: #1a202c;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #4a5568;
}

.trade-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.offered-nft, .wanted-nft {
    text-align: center;
}

.offered-nft h5, .wanted-nft h5 {
    color: #e0e0e0;
    margin: 0 0 0.5rem 0;
}

.trade-nft-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.trade-arrow {
    font-size: 2rem;
    color: #48bb78;
}

.wanted-nft p {
    color: #a0aec0;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.trade-form {
    max-width: 400px;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section h4 {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.form-select, .form-input {
    width: 100%;
    padding: 0.75rem;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 6px;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: #4a5568;
    color: #e0e0e0;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
}