/* CAG Music Fragment Collector - Custom Styles */

/* Global utility classes */
.hidden {
    display: none !important;
}

/* Prevent text selection and cursor issues on non-editable elements */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Allow text selection only on specific elements */
input,
textarea,
[contenteditable="true"],
.selectable-text {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* CSS Variables */
:root {
    --primary-color: #111d57;
    --secondary-color: #1d9bff;
    --accent-color: #0a8ae9;
    --bg-primary: #d8edff;
    --bg-secondary: #c5e4fe;
    --text-primary: #111d57;
    --border-color: rgba(17, 29, 87, 0.1);
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'DynaPuff', sans-serif;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    line-height: 1.6;
}

/* Filter Buttons */
.filter-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: baseline;
    align-content: center;
    flex-direction: row;
}

@media (max-width: 640px) {
    .filter-buttons-container {
        gap: 8px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .filter-buttons-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .filter-buttons-container .filter-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--secondary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Music Item Styles */
.music-item {
    background-color: #5fadf0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(17, 29, 87, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.music-item:hover {
    box-shadow: 0 4px 12px rgba(17, 29, 87, 0.1);
    border-color: var(--secondary-color);
}

.music-item.complete {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.05);
}

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

.music-item.complete .music-header {
    display: flex
;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
}

.music-item.complete .music-header .music-title {
    justify-self: start;
}

.music-item.complete .music-header .music-unlocked-indicator {
    justify-self: center;
}



.music-title {
    font-size: 18px;
    font-weight: 600;
    width: 113px;
    height: 28px;
    text-align: center;
    color: #fff;
    border-radius: 20px;
    background-color: #f02576;
}

.music-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.music-status.complete {
    background-color: var(--success-color);
    color: white;
}

.music-status.incomplete {
    background-color: #64d2d4;
    color: #FFF;
}

.music-status.empty {
    background-color: #6b7280;
    color: white;
}

/* Fragment Grid */
.fragments-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .fragments-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* Fragment Card */
.fragment-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fragment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fragment-card.owned {
        /* border-color: var(--success-color); */
        background-color: #c5e4fe;
}

.fragment-card.missing {
    border-color: var(--border-color);
    background-color: #d8edff !important;
    border-style: dashed;
}

.fragment-card.missing:hover {
    border-color: var(--secondary-color);
    background-color: #111d57;
}

.fragment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.fragment-number {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.fragment-token-id {
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: rgba(0, 0, 0, 0.66);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 2;
}

.fragment-card.missing .fragment-number {
   /* position: static;
    background-color: var(--text-primary);
    font-size: 14px;
    padding: 4px 8px;*/
}

.buy-fragment {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    font-size: 14px;
}

.buy-fragment:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* Fragment Overlay for owned fragments */
.fragment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fragment-card.owned:hover .fragment-overlay {
    opacity: 1;
}

.fragment-owned-badge {
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Fragment placeholder for missing fragments */
.fragment-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 66px;
    color: #9ca3af;
    opacity: 0.5;
}

.fragment-question {
    font-weight: bold;
}

/* Music Statistics */
.music-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    font-size: 12px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.stat-item {
    display: flex;
    gap: 9px;
}

.stat-label {
    color: #fff;
    font-size: 22px;
}

.stat-value {
    font-weight: 600;
    width: 100%;
    height: 30px;
    text-align: center;
    /*background-color: #fff;*/
    color: #f02576;
    border-radius: 10px;
    font-size: 22px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background-color: var(--success-color);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Modal Styles - Following Current Color Palette */

/* Modal Overlay */
.modal-overlay {
    background-color: rgba(17, 29, 87, 0.6);
    backdrop-filter: blur(8px);
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Marketplace Modal - Higher z-index to appear above other modals */
.marketplace-modal {
    z-index: 60;
}

/* NFT Details Modal - Standard z-index */
.nft-details-modal {
    z-index: 55;
}

/* Duplicates Modal - Standard z-index */
.duplicates-modal {
    z-index: 55;
}

/* Modal Container */
.modal-container {
    background-color: white;
    border-radius: 16px;
    width: 100%;
    max-width: 64rem;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(17, 29, 87, 0.3);
    border: 1px solid var(--border-color);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
}

.modal-header-content {
    flex: 1;
    margin-right: 16px;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.modal-close-button {
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-button:hover {
    color: var(--primary-color);
    background-color: var(--bg-primary);
}

.modal-close-button svg {
    width: 24px;
    height: 24px;
}

/* Modal Body */
.modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Modal Stats Bar */
.modal-stats-bar {
    padding: 16px 24px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.modal-stats-bar:empty {
    display: none;
}

/* Modal Content */
.modal-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* Duplicates modal specific content padding */
.duplicates-modal .modal-content {
    padding: 20px;
}

.duplicates-modal .modal-header {
    padding: 20px 24px 16px 24px;
}

.duplicates-modal .modal-stats-bar {
    padding: 12px 24px;
}

/* Desktop optimization for duplicates modal */
@media (min-width: 769px) {
    .duplicates-modal .modal-container {
        max-height: 80vh;
    }
    
    .duplicates-modal .modal-body {
        max-height: calc(80vh - 120px); /* Subtract header height */
        overflow-y: auto;
    }
    
    .duplicates-grid {
        gap: 24px;
    }
    
    .duplicate-item {
        width: 260px; /* Larger size for desktop */
    }
    
    /* Special case for exactly 2 items - better spacing */
    .duplicates-grid.two-items {
        gap: 40px;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Marketplace Modal Specific */
.marketplace-modal .modal-container {
    max-width: 72rem;
    min-height: 60vh;
}

.marketplace-modal .modal-body {
    min-height: 50vh;
}

.marketplace-listings {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar for Modal */
.marketplace-listings::-webkit-scrollbar {
    width: 8px;
}

.marketplace-listings::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.marketplace-listings::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.marketplace-listings::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Listings Header */
.listings-header {
    margin-bottom: 24px;
}

.listings-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.listings-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.info-item {
    background-color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.info-item:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-1px);
}

/* Section Titles */
.section-title-for-sale,
.section-title-not-for-sale {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--bg-primary);
    border-left: 4px solid var(--secondary-color);
}

.section-title-not-for-sale {
    border-left-color: #6b7280;
    background-color: #f9fafb;
}

.listings-section-spaced {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

/* Market Items in Modal */
.market-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    background-color: white;
    transition: all 0.2s ease;
    position: relative;
}

.market-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(17, 29, 87, 0.1);
    transform: translateY(-2px);
}

/* Easter Egg for Not For Sale items - Subtle text change */
.market-price.not-for-sale .easter-egg-text {
    display: none;
}

/* Desktop hover behavior */
@media (min-width: 769px) {
    .market-item.not-for-sale:hover .market-price.not-for-sale .easter-egg-text {
        display: inline;
    }

    .market-item.not-for-sale:hover .market-price.not-for-sale .original-text {
        display: none;
    }

    .market-item.not-for-sale:hover .market-link.make-offer {
        animation: pulse-button 1s ease-in-out infinite;
        box-shadow: 0 0 20px rgba(219, 74, 166, 0.6);
    }
}

/* Mobile visibility behavior */
@media (max-width: 768px) {
    .market-item.not-for-sale.in-viewport .market-price.not-for-sale .easter-egg-text {
        display: inline;
    }

    .market-item.not-for-sale.in-viewport .market-price.not-for-sale .original-text {
        display: none;
    }

    .market-item.not-for-sale.in-viewport .market-link.make-offer {
        animation: pulse-button 1s ease-in-out infinite;
        box-shadow: 0 0 20px rgba(219, 74, 166, 0.6);
    }
}

@keyframes pulse-button {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(219, 74, 166, 0.6);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(219, 74, 166, 0.8);
    }
}

@media (max-width: 768px) {
    .market-item {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    

}

.market-link {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.market-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 155, 255, 0.3);
}

.market-link.make-offer {
    background-color: #f02576;
}

.market-link.make-offer:hover {
    background-color: #be185d;
    box-shadow: 0 4px 12px rgba(219, 74, 166, 0.3);
}

/* NFT Details Modal Specific */
.nft-details-modal .modal-container {
    max-width: 48rem;
}

.nft-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.nft-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nft-details-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 16px;
}

.nft-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Market Data Section */
.nft-market-section {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.nft-market-section.for-sale {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(22, 163, 74, 0.05));
}

.nft-market-section.not-for-sale {
    border-color: #6b7280;
    background-color: #f9fafb;
}

.market-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--secondary-color);
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 14px;
    font-weight: 500;
}

.market-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.market-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.market-data-item.full-width {
    grid-column: 1 / -1;
    justify-content: center;
}

.market-data-label {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 13px;
}

.market-data-value {
    font-weight: 600;
    font-size: 13px;
}

.market-data-value.price {
    color: var(--success-color);
    font-size: 14px;
}

.market-data-value.status.owned {
    color: var(--success-color);
}

.market-data-value.status.for-sale {
    color: var(--secondary-color);
}

.market-buy-btn,
.market-manage-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.market-manage-btn {
    background: linear-gradient(135deg, var(--success-color), #16a34a);
}

.market-buy-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 155, 255, 0.3);
}

.market-manage-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.market-not-for-sale {
    text-align: center;
    padding: 16px;
}

.not-for-sale-text {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.nft-metadata-grid {
    display: grid;
    gap: 12px;
}

.nft-metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.nft-metadata-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.nft-metadata-value {
    color: #6b7280;
    font-size: 14px;
    font-family: monospace;
}

.nft-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

/* Ensure buttons are prominent on mobile */
@media (max-width: 640px) {
    .nft-actions-grid {
        position: sticky;
        top: 0;
        background: white;
        padding: 16px 0;
        margin: -16px 0 20px 0;
        border-bottom: 1px solid var(--border-color);
        z-index: 5;
    }
    
    .nft-actions-grid .market-link {
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    .nft-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nft-actions-grid {
        grid-template-columns: 1fr;
        order: -1; /* Move buttons above metadata on mobile */
        margin-bottom: 20px;
        margin-top: 0;
    }
    
    .nft-info-section {
        display: flex;
        flex-direction: column;
    }
    
    .nft-details-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .nft-image-section {
        order: -1; /* Move image above buttons on mobile */
        margin-bottom: 16px;
    }
    
    /* Market data responsive */
    .market-data-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .market-data-item {
        padding: 10px 12px;
    }
    
    .market-data-label,
    .market-data-value {
        font-size: 12px;
    }
    
    .market-data-value.price {
        font-size: 13px;
    }
    
    .market-buy-btn,
    .market-manage-btn {
        padding: 12px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .nft-market-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .market-section-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* Duplicates Modal Specific */
.duplicates-modal .modal-container {
    max-width: 56rem;
    max-height: 85vh;
    overflow-y: auto;
}

.duplicates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.duplicate-item {
    flex: 0 0 auto;
    width: 200px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
    text-align: center;
}

.duplicate-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 29, 87, 0.1);
}

.duplicate-item.selected {
    border-color: var(--secondary-color);
    background-color: rgba(29, 155, 255, 0.05);
    box-shadow: 0 4px 12px rgba(29, 155, 255, 0.2);
}

.duplicate-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.duplicate-image:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(29, 155, 255, 0.3);
}

.duplicate-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 14px;
}

.duplicate-token-id {
    font-size: 11px;
    color: #6b7280;
    font-family: monospace;
    margin-bottom: 8px;
}

.duplicate-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.duplicate-action-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.duplicate-action-btn.primary {
    background-color: var(--secondary-color);
    color: white;
}

.duplicate-action-btn.primary:hover {
    background-color: var(--accent-color);
}

.duplicate-action-btn.secondary {
    background-color: var(--bg-primary);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.duplicate-action-btn.secondary:hover {
    background-color: var(--bg-secondary);
}

@media (max-width: 768px) {
    .duplicates-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .duplicate-item {
        padding: 12px;
    }
    
    .duplicate-actions {
        flex-direction: column;
        gap: 6px;
    }
}

/* Additional utility styles for modals */
.modal-section-divider {
    border-top: 2px solid var(--border-color);
    margin: 24px 0;
    padding-top: 24px;
}

.modal-action-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.modal-help-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Enhanced button styles for modals */
.modal-button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-button-group .market-link {
    min-width: 140px;
}

@media (max-width: 640px) {
    .modal-button-group {
        flex-direction: column;
    }
    
    .modal-button-group .market-link {
        width: 100%;
    }
}

/* Legacy duplicate selection styles - kept for fallback */
.duplicate-selection-item {
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
}

.duplicate-selection-item:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.duplicate-selection-item.selected {
    border-color: var(--secondary-color);
    background-color: rgba(29, 155, 255, 0.05);
}

/* No Listings State */
.no-listings {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.no-listings-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--secondary-color);
}

.no-listings-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.no-listings-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.no-listings-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Single NFT Details Modal */
.single-nft-details .modal-container {
    max-width: 36rem;
}

.nft-display-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.nft-info-panel {
    padding: 24px;
    background-color: var(--bg-primary);
}

.nft-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.nft-id {
    font-size: 1rem;
    color: #6b7280;
    font-family: monospace;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.metadata-label {
    font-weight: 600;
    color: var(--primary-color);
}

.metadata-value {
    color: #6b7280;
}

.action-button {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.action-button.primary {
    background: var(--secondary-color);
    color: white;
}

.action-button.primary:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.action-button.secondary {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.action-button.secondary:hover {
    background: var(--bg-secondary);
}

/* Mobile Responsiveness for Modals */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 8px;
    }

    .modal-container {
        max-height: 90vh;
    }

    .modal-header {
        padding: 16px 16px 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-header-content {
        margin-right: 0;
        width: 100%;
    }

    .modal-close-button {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .modal-stats-bar {
        padding: 12px 16px;
        gap: 8px;
    }

    .modal-content {
        padding: 16px;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .info-item {
        padding: 6px 12px;
        font-size: 13px;
    }

    .section-title-for-sale,
    .section-title-not-for-sale {
        font-size: 14px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .listings-section-spaced {
        margin-top: 24px;
        padding-top: 16px;
    }
    
    .nft-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
        text-align: center;
    }
}

/* Marketplace Listings Styles */
.marketplace-listings {
    max-height: 60vh;
    overflow-y: auto;
}

.listings-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.listings-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.listings-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.info-item {
    background-color: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    color: var(--text-primary);
}

.listings-container {
    space-y: 12px;
}

.market-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: white;
    transition: all 0.2s ease;
}

.market-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.market-image-container {
    flex-shrink: 0;
}

.market-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.market-info {
    flex: 1;
    min-width: 0;
}

.market-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.market-price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
}

.market-price-usd {
    color: #6b7280;
    font-size: 12px;
}

.market-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #6b7280;
}

.market-seller, .market-time {
    white-space: nowrap;
}

.market-actions {
    flex-shrink: 0;
}

.market-link {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.market-link:hover {
    background-color: var(--accent-color);
    color: white;
}

/* No Listings State */
.no-listings {
    text-align: center;
    padding: 40px 20px;
}

.no-listings-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-listings-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-listings-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.no-listings-actions {
    margin-bottom: 24px;
}

.no-listings-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
}

.no-listings-suggestions h5 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.no-listings-suggestions ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
    color: #6b7280;
}

.no-listings-suggestions li {
    margin-bottom: 4px;
}

.listings-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.listings-note {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .music-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }
    
    .music-item.complete .music-header {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .music-item.complete .music-header .music-title,
    .music-item.complete .music-header .music-unlocked-indicator {
        justify-self: center;
    }
    
    .market-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .market-image {
        width: 80px;
        height: 80px;
    }
    
    .market-info {
        text-align: center;
    }
    
    .market-meta {
        justify-content: center;
    }
    
    .listings-info {
        justify-content: center;
    }
    
    .music-stats {
        flex-direction: row;
        gap: 8px;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@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); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}



/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: 4px;
}

/* Duplicate Counter */
.duplicate-counter {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 18px;
    text-align: center;
    z-index: 10;
}

.duplicate-counter:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Fragment card positioning for counter */
.fragment-card {
    position: relative;
    /* ... existing styles remain ... */
}

.fragment-card.expanded {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(29, 155, 255, 0.2);
}

/* Background utility classes for inline style replacement */
.bg-page {
    background-color: #d8edff !important;
    font-family: 'DynaPuff', sans-serif !important;
}

.bg-nav {
    background-color: #c5e4fe !important;
}

.bg-section {
    background-color: #c5e4fe !important;
}

/* Loading skeleton size variants */
.loading-skeleton.title-size {
    width: 120px;
    height: 24px;
    border-radius: 4px;
}

.loading-skeleton.subtitle-size {
    width: 80px;
    height: 20px;
    border-radius: 10px;
}

.loading-skeleton.image-size {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.loading-skeleton.progress-size {
    width: 100%;
    height: 6px;
    border-radius: 3px;
}

/* Dynamic progress bar using CSS custom properties */
.progress-dynamic {
    width: var(--progress-width, 0%);
}

/* Main Sections */

/* Navigation Section */
.main-navigation {
    /* Removing backdrop-filter that can cause rendering issues */
    /* backdrop-filter: blur(16px); */
    border-bottom: 1px solid rgb(17 29 87 / 0%);
    background-color: var(--bg-secondary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    /* Adding stability improvements */
    will-change: auto;
    transform: translateZ(0);
}

.navigation-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.navigation-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.navigation-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navigation-logo {
    height: 40px;
    width: auto;
}

.navigation-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.navigation-links {
    display: flex;
    align-items: center;
}

.navigation-link {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(29, 155, 255, 0.2);
}

.navigation-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 155, 255, 0.3);
}

.navigation-link svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .navigation-container {
        padding: 0 12px;
    }
    
    .navigation-content {
        height: 56px;
    }
    
    .navigation-brand {
        gap: 8px;
    }
    
    .navigation-logo {
        height: 32px;
    }
    
    .navigation-title {
        font-size: 16px;
    }
    
    .navigation-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .navigation-link svg {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}

/* Wallet Connection Section */
.wallet-section {
    /* Removing backdrop-filter that can cause rendering issues */
    /* backdrop-filter: blur(16px); */
    border-radius: 12px;
    border: 1px solid rgba(17, 29, 87, 0.1);
    height: 438px;
    padding: 32px;
    margin-bottom: 32px;
    /*background-color: var(--bg-secondary);*/
    /* Adding explicit positioning to prevent layout issues */
    position: relative;
    /* Ensuring proper stacking */
    z-index: 1;
    /* Adding will-change for better rendering */
    will-change: auto;
    /* Preventing any transform issues */
    transform: translateZ(0);
    /* Background image - Desktop */
    background-image: url('../img/CAG-BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Overlay to ensure text readability */
    background-blend-mode: overlay;
    display: flex !important;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: space-around;
}

/* Mobile background image */
@media (max-width: 768px) {
    .wallet-section {
        background-image: url('../img/CAG-BG-mb.png');
    }
}

.wallet-section-title {
    font-size: 69px;
    font-weight: bold;
    text-align: center;
    /*margin-bottom: 32px;*/
    color: #f02576;
    -webkit-text-stroke: 4px #ffffff;
}

.wallet-title-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    display: block;
    margin: 0 auto;
}

.wallet-input-container {
    width: 69%;
    margin: 0 auto;
}

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

.wallet-input {
    flex: 1;
    background-color: white;
    border: 1px solid rgba(17, 29, 87, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--primary-color);
    outline: none;
    transition: all 0.2s ease;
}

.wallet-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(17, 29, 87, 0.1);
}

/* Subtle pulse animation for initial focus */
.wallet-input.initial-focus {
    animation: initial-focus-pulse 2s ease-in-out;
}

@keyframes initial-focus-pulse {
    0% { 
        box-shadow: 0 0 0 2px rgba(17, 29, 87, 0.1);
    }
    50% { 
        box-shadow: 0 0 0 4px rgba(29, 155, 255, 0.3);
        border-color: var(--secondary-color);
    }
    100% { 
        box-shadow: 0 0 0 2px rgba(17, 29, 87, 0.1);
    }
}

.wallet-button {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wallet-button:hover {
    background-color: var(--accent-color);
}

.wallet-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wallet Address Validation Styles */
.wallet-input-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.wallet-input-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.wallet-validation-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.4;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-out;
    pointer-events: auto;
    border-left: 4px solid #3b82f6;
    max-width: 100%;
    word-wrap: break-word;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 12px;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #6b7280;
}

/* Toast Types */
.toast-success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.toast-success .toast-message {
    color: #065f46;
}

.toast-error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.toast-error .toast-message {
    color: #991b1b;
}

.toast-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.toast-warning .toast-message {
    color: #92400e;
}

.toast-info {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.toast-info .toast-message {
    color: #1e40af;
}

.toast-loading {
    border-left-color: #8b5cf6;
    background: #faf5ff;
}

.toast-loading .toast-message {
    color: #6b21a8;
}

.toast-music {
    border-left-color: #ec4899;
    background: #fdf2f8;
}

.toast-music .toast-message {
    color: #be185d;
}

.toast-wallet {
    border-left-color: #06b6d4;
    background: #f0fdfa;
}

.toast-wallet .toast-message {
    color: #0f766e;
}

.toast-nft {
    border-left-color: #8b5cf6;
    background: #faf5ff;
}

.toast-nft .toast-message {
    color: #6b21a8;
}

/* Progress Toast */
.toast-progress {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.toast-progress-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.toast-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.toast-progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.toast-progress-text {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 8px;
    }
    
    .toast-content {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .toast-message {
        font-size: 13px;
    }
    
    .toast-icon {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .wallet-section {
        padding: 24px;
        margin-bottom: 24px;
        background-image: url('../img/CAG-BG-mb.png');
    }
    
    .wallet-section-title {
        font-size: 46px;
        margin-bottom: 24px;
        -webkit-text-stroke: 2px #ffffff;
    }
    
    .wallet-title-image {
        max-height: 80px;
    }
    
    .wallet-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .wallet-button {
        width: 100%;
        padding: 14px 24px;
    }
    .wallet-input-container {
        width: 80%;
        margin: 0 auto;
    }
    
    .wallet-validation-message {
        font-size: 13px;
        padding: 6px 10px;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .wallet-section {
        padding: 20px;
        background-image: url('../img/CAG-BG-mb.png');
        display: flex !important;
        justify-content: space-evenly;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .wallet-section-title {
        /*font-size: 20px;*/
    }
    
    .wallet-title-image {
        max-height: 60px;
    }
    .wallet-input-container {
        width: 100%;
        margin: 0 auto;
    }
}

/* Collection Summary Section */
.collection-summary {
    /* Removing backdrop-filter that can cause rendering issues */
    /* backdrop-filter: blur(16px); */
    border-radius: 12px;
    border: 1px solid rgba(17, 29, 87, 0.1);
    padding: 32px;
    margin-bottom: 32px;
    background-color: var(--bg-secondary);
    /* Adding explicit positioning to prevent layout issues */
    position: relative;
    z-index: 1;
    will-change: auto;
    transform: translateZ(0);
    box-shadow: 0 8px 32px rgba(17, 29, 87, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.collection-summary-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
}

.collection-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 18px;
}

.collection-stat {
    text-align: center;
}

.collection-stat-value {
    font-weight: bold;
    color: #f02576;
    display: block;
    font-size: 33px;
    background-color: #fff;
    border-radius: 13px;
}

.collection-stat-label {
    color: rgba(17, 29, 87, 0.7);
}

@media (max-width: 768px) {
    .collection-summary {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .collection-stats {
        gap: 24px;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .collection-stats {
        flex-direction: row;
        gap: 16px;
    }
    
    .collection-summary-title {
        font-size: 20px;
    }
}

/* Music Collection Section */
.music-collection-section {
    /* Removing backdrop-filter that can cause rendering issues */
    /* backdrop-filter: blur(16px); */
    border-radius: 12px;
    border: 1px solid rgba(17, 29, 87, 0.1);
    padding: 32px;
    background-color: var(--bg-secondary);
    /* Adding explicit positioning to prevent layout issues */
    position: relative;
    z-index: 1;
    will-change: auto;
    transform: translateZ(0);
    box-shadow: 0 8px 32px rgba(17, 29, 87, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Music Collection Header */
.music-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 24px;*/
    position: relative;
}

.music-collection-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.music-collection-filters {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.share-collection-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f02576 0%, #f02576 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 155, 255, 0.3);
}

.share-collection-btn:hover {
    background: inear-gradient(135deg, #f02576 0%, #f02576 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 155, 255, 0.4);
}

.share-collection-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 155, 255, 0.3);
}

.share-collection-btn .share-icon {
    width: 18px;
    height: 18px;
}

.share-collection-btn .share-text {
    font-family: 'DynaPuff', sans-serif;
}

/* Success state for share button */
.share-collection-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.share-collection-btn.success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .music-collection-header {
        align-items: flex-start;
        gap: 12px;
    }
    
    .music-collection-title {
        font-size: 20px;
        flex: 1;
    }
    
    .share-collection-btn {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 8px;
        position: relative;
        flex-shrink: 0;
    }
    
    .share-collection-btn .share-text {
        display: none;
    }
    
    .share-collection-btn .share-icon {
        width: 24px;
        height: 24px;
    }
    
    .music-collection-filters {
        gap: 12px;
    }
}

.music-collection-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 768px) {
    .music-collection-section {
        padding: 24px;
    }
    
    .music-collection-header {
        margin-bottom: 20px;
    }
    
    .music-collection-filters {
        margin-bottom: 20px;
    }
    
    .music-collection-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .music-collection-section {
        padding: 20px;
    }
    
    .music-collection-title {
        font-size: 18px;
    }
    
    .share-collection-btn {
        padding: 4px;
        min-width: 28px;
        min-height: 20px;
        border-radius: 6px;
    }
    
    .share-collection-btn .share-icon {
        width: 20px;
        height: 20px;
    }
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 48px 0;
}

.loading-content {
    display: inline-flex;
    align-items: center;
    padding: 20px 32px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    color: white;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 320px;
}

.loading-spinner {
    animation: spin 1s linear infinite;
    margin-right: 16px;
    height: 24px;
    width: 24px;
    color: white;
    flex-shrink: 0;
}

.loading-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.loading-progress-text {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.loading-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.loading-progress-fill {
    height: 100%;
    background-color: white;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .loading-section {
        padding: 32px 0;
    }
    
    .loading-content {
        padding: 16px 20px;
        font-size: 13px;
        min-width: 280px;
        flex-direction: column;
        text-align: center;
    }
    
    .loading-spinner {
        height: 20px;
        width: 20px;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .loading-text {
        align-items: center;
        text-align: center;
    }
    
    .loading-progress-text {
        font-size: 11px;
    }
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 16px 0;
}

@media (max-width: 640px) {
    .main-container {
        padding: 72px 12px 0;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 68px 8px 0;
    }
}

/* Message Sections */
/* Popup Messages - Fixed positioning to avoid layout shifts */
.error-message,
.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90vw;
    text-align: center;
    font-size: 15px;
    border: 2px solid;
}

.error-message {
    background-color: rgba(254, 226, 226, 0.95);
    border-color: #fca5a5;
    color: #dc2626;
}

.error-message::before {
    content: "⚠️ ";
    margin-right: 8px;
}

.success-message {
    background-color: rgba(220, 252, 231, 0.95);
    border-color: #86efac;
    color: #16a34a;
}

.success-message::before {
    content: "✅ ";
    margin-right: 8px;
}

/* Show state for popup messages */
.error-message:not(.hidden),
.success-message:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Hidden state for popup messages */
.error-message.hidden,
.success-message.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-30px);
}

@media (max-width: 640px) {
    .error-message,
    .success-message {
        padding: 10px 20px;
        font-size: 14px;
        top: 15px;
        max-width: 95vw;
    }
}

/* Market Section Styles */
.section-title-for-sale {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--success-color);
    padding-bottom: 4px;
}

.section-title-not-for-sale {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 2px solid #6b7280;
    padding-bottom: 4px;
}

.listings-section-spaced {
    margin-top: 24px;
}

.market-item.not-for-sale {
    opacity: 0.75;
    border: 2px dashed #d1d5db;
}

.not-for-sale-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #6b7280;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.owned-by-user-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.market-item.owned-by-user {
    border: 2px solid #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(22, 163, 74, 0.05));
}

.market-item.owned-by-user:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.market-price.owned-price {
    color: #16a34a;
    font-weight: 600;
}

.market-link.owned-link {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.market-link.owned-link:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.market-price.not-for-sale {
    color: #6b7280;
}

/* Complete Fragment Styles */
.fragment-complete-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 6px;
}

.fragment-complete-1of1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.fragment-complete-owned {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* NFT Image Container */
.nft-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-primary);
}

.nft-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-main-info {
    margin-bottom: 20px;
    text-align: center;
}

.nft-metadata {
    margin-bottom: 24px;
}

.nft-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Last Update Section */
.last-update-section {
    margin-top: 24px;
    padding: 16px 24px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(17, 29, 87, 0.1);
}

.last-update-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.last-update-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.last-update-label {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.last-update-time {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 600;
    font-family: monospace;
}



@media (max-width: 768px) {
    .last-update-section {
        margin-top: 20px;
        padding: 12px 16px;
    }
    
    .last-update-container {
        text-align: center;
    }
    
    .last-update-content {
        flex-direction: column;
        gap: 4px;
    }
    
    .last-update-label,
    .last-update-time {
        font-size: 13px;
    }
}

/* Footer Styles */
footer {
    margin-top: 48px !important;
    background-color: var(--bg-secondary) !important;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 0;
}

.footer-container {
    background-color: rgba(241, 249, 250, 0.1);
    border-radius: 12px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}

/* Desktop layout for footer sections (excluding developer signature) */
.footer-main-sections {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.footer-section {
    display: flex;
    flex-direction: column;
    max-height: unset;
}

.footer-brand {
    align-items: center;
    text-align: center;
}

.footer-brand img {
    width: 192px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-brand-text {
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.4;
}

.footer-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

/* Garantir que os links do footer funcionem */
.footer-links a.footer-link {
    display: block;
    padding: 4px 0;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-links a.footer-link:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

/* Garantir que divs não clicáveis tenham cursor padrão */
.footer-links div.footer-link {
    cursor: default;
    color: #999;
}

.footer-player {
    align-items: center;
    text-align: center;
}

.footer-player-container {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
}

.footer-player-title {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.footer-player audio {
    width: 100%;
    height: 40px;
}



/* Footer Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .footer-main-sections {
        gap: 1.5rem;
    }
    
    .footer-player-container {
        width: 180px;
    }
}

/* Mobile layout for footer */
.footer-mobile-row {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .footer-main-sections {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
    }
    
    .footer-section {
        align-items: center;
        width: 100%;
        max-width: 300px;
    }
    
    .footer-brand img {
        width: 150px;
        height: auto;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-player-container {
        width: 100%;
        max-width: 250px;
    }
    
    /* Navigation and Socials side by side on mobile */
    .footer-mobile-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 1.5rem;
    }
    
    .footer-mobile-row .footer-section {
        flex: 1;
        max-width: none;
        text-align: center;
    }
    
    .footer-mobile-row .footer-title {
        font-size: 14px;
        margin-bottom: 0.75rem;
    }
    
    .footer-mobile-row .footer-links {
        gap: 0.25rem;
    }
    
    .footer-mobile-row .footer-link {
        font-size: 12px;
        padding: 0.125rem 0;
    }
}

@media (max-width: 640px) {
    footer {
        margin-top: 32px !important;
    }
    
    .footer-content {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .footer-main-sections {
        gap: 1.5rem;
    }
    
    .footer-brand img {
        width: 120px;
    }
    
    .footer-title {
        font-size: 18px;
    }
    
    .footer-links {
        gap: 0.75rem;
    }
    
    .footer-link {
        font-size: 14px;
        padding: 0.25rem 0;
    }
    
    /* Maintain side by side layout even on smaller screens */
    .footer-mobile-row {
        gap: 1rem;
    }
    
    .footer-mobile-row .footer-title {
        font-size: 18px;
        margin-bottom: 0.5rem;
    }
    
    .footer-mobile-row .footer-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1rem;
    }
    
    .footer-main-sections {
        gap: 1rem;
    }
    
    .footer-section {
        max-width: 280px;
    }
    
    .footer-player-container {
        padding: 0.75rem;
    }
    
    .footer-player-title {
        font-size: 13px;
    }
}

/* Music Player Modal Styles */
.music-player-modal .modal-container {
    max-width: 600px;
    width: 90%;
}

.music-player-container {
    padding: 20px 0;
}

.music-player-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.music-player-artwork {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    flex-shrink: 0;
}

.player-artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 29, 87, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-player-artwork:hover .music-player-overlay {
    opacity: 1;
}

.music-player-icon {
    font-size: 32px;
    color: white;
}

.music-player-details {
    flex: 1;
}

.player-music-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.player-music-description {
    font-size: 16px;
    color: var(--secondary-color);
    margin: 0 0 12px 0;
}

.player-completion-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--success-color);
    font-weight: 500;
}

.completion-icon {
    font-size: 16px;
}

.music-player-controls {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.music-player-controls audio {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    background: white;
    margin-bottom: 16px;
}

.music-player-controls audio::-webkit-media-controls-panel {
    background-color: white;
    border-radius: 8px;
}

.music-player-controls audio::-webkit-media-controls-play-button,
.music-player-controls audio::-webkit-media-controls-pause-button {
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.player-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 8px;
    padding: 12px;
}

.warning-icon {
    font-size: 20px;
    color: var(--warning-color);
    flex-shrink: 0;
}

.warning-text {
    font-size: 14px;
    color: var(--primary-color);
    line-height: 1.5;
}

.warning-text strong {
    color: var(--warning-color);
}

/* Music Unlocked Indicator for Complete Music Items */
.music-item.complete .music-header {
    position: relative;
}

.music-unlocked-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f02576, #f02576);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    /*box-shadow: 0 2px 8px rgba(240, 37, 118, 0.3);*/
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    animation: shake 2s ease-in-out infinite;
}

.music-unlocked-indicator:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 37, 118, 0.4);
    animation: shake 1s ease-in-out infinite;
}

.music-unlocked-indicator:active {
    transform: scale(0.95);
    animation: none;
}

.music-unlocked-indicator.cached {
    background: linear-gradient(135deg, #1d9bff, #1d9bff);
    animation: none; /* No shake animation for cached */
}

.music-unlocked-indicator.cached:hover {
    background: linear-gradient(135deg, #1d9bff, #1d9bff);
    animation: none;
}

.music-unlocked-icon {
    font-size: 14px;
}

/* Shake animation for unlock button */
@keyframes shake {
    0%, 100% { 
        transform: translateX(0); 
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-2px); 
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(2px); 
    }
}

/* Music Player Popup Modal */
.music-player-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 29, 87, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.music-player-popup.show {
    opacity: 1;
    visibility: visible;
}

.music-player-popup-content {
    background: rgba(197, 228, 254, 0.95);
    border: 1px solid rgba(17, 29, 87, 0.1);
    border-radius: 24px;
    padding: 24px 24px 16px 24px;
    max-width: 90vw;
    width: auto;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(17, 29, 87, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.music-player-popup.show .music-player-popup-content {
    transform: scale(1) translateY(0);
}

.music-player-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(17, 29, 87, 0.1);
}

.music-player-popup-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.music-player-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.music-player-popup-close:hover {
    background: rgba(17, 29, 87, 0.1);
    transform: scale(1.1);
}

.music-player-popup-body {
    /* Player content will be inserted here */
    padding: 0;
    margin: 0;
}

/* Ensure the player maintains its original size in popup */
.music-player-popup-body .modern-music-player {
    margin: 0;
    max-width: none;
    width: auto;
    display: block; /* Show player when inside popup */
}

/* Responsive design for popup */
@media (max-width: 768px) {
    .music-player-popup {
        padding: 12px;
    }
    
    .music-player-popup-content {
        padding: 20px 16px 12px 16px;
        border-radius: 20px;
        max-height: 90vh;
        max-width: 95vw;
    }
    
    .music-player-popup-title {
        font-size: 18px;
    }
    
    .music-player-popup-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .music-player-popup-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .music-player-popup {
        padding: 8px;
    }
    
    .music-player-popup-content {
        padding: 16px 12px 8px 12px;
        border-radius: 16px;
        max-width: 98vw;
    }
    
    .music-player-popup-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .music-player-popup-title {
        font-size: 16px;
    }
}

/* Modern Spotify-Style Music Player */
.modern-music-player {
    background: #c5e4fe;
    border: 1px solid rgba(17, 29, 87, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 32px auto;
    max-width: 800px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(17, 29, 87, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: none; /* Hidden by default - only shows in popup */
}

.modern-music-player:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(17, 29, 87, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(29, 155, 255, 0.3);
}

.modern-music-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(29, 155, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

/* Player Container Layout */
.player-container {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* Player Image Section */
.player-image-section {
    flex-shrink: 0;
    display: none; /* Hidden on mobile by default */
}

.player-image {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(17, 29, 87, 0.2);
}

/* Player Content */
.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Track Info Section */
.track-info {
    text-align: center;
}

.track-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-status {
    font-size: 14px;
    color: #f02576;
    font-weight: 500;
}

/* Progress Section */
.progress-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-display {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    min-width: 40px;
}

.time-display.left {
    text-align: right;
}

.time-display.right {
    text-align: left;
}

.progress-bar-container {
    flex: 1;
}

.progress-bar {
    height: 4px;
    background: rgba(17, 29, 87, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #f02576;
    border-radius: 2px;
    transition: width 0.1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(29, 155, 255, 0.5);
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(17, 29, 87, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.control-btn {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.control-btn:hover {
    background: rgba(240, 37, 118, 0.1);
    transform: scale(1.05);
}

.control-btn:active {
    background: rgba(240, 37, 118, 0.2);
    transform: scale(0.95);
}

.control-icon {
    font-size: 16px;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.play-pause-btn {
    background: #f02576;
    box-shadow: 0 4px 16px rgba(29, 155, 255, 0.3);
}

.play-pause-btn:hover {
    background: #e91e63;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(240, 37, 118, 0.4);
}

.play-pause-btn:active {
    background: #d81b60;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(240, 37, 118, 0.5);
}

.play-pause-btn .control-icon {
    color: white;
    font-size: 18px;
}

/* Desktop Layout - Show Player Image */
@media (min-width: 769px) {
    .player-image-section {
        display: block;
    }
    
    .player-container {
        align-items: flex-start;
    }
    
    .player-content {
        padding-top: 8px;
    }
}

/* Mobile Layout - Stack Vertically */
@media (max-width: 768px) {
    .modern-music-player {
        padding: 20px;
        margin: 24px auto;
    }
    
    .player-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .player-image-section {
        display: block; /* Hidden on mobile */
    }
    
    .track-title {
        font-size: 16px;
    }
    
    .player-controls {
        gap: 12px;
        padding: 10px 20px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        /* Remove hover effects on touch devices */
        -webkit-tap-highlight-color: transparent;
    }
    
    .control-btn:hover {
        background: rgba(240, 37, 118, 0.1);
        transform: scale(1.02);
    }
    
    .control-btn:active {
        background: rgba(240, 37, 118, 0.2);
        transform: scale(0.98);
    }
    
    .play-pause-btn:hover {
        background: #e91e63;
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(240, 37, 118, 0.3);
    }
    
    .play-pause-btn:active {
        background: #d81b60;
        transform: scale(1.02);
        box-shadow: 0 2px 12px rgba(240, 37, 118, 0.4);
    }
    
    .control-icon {
        font-size: 14px;
    }
    
    .play-pause-btn .control-icon {
        font-size: 16px;
    }
}

/* Hidden audio element */
.vintage-audio {
    display: none;
}





/* Hidden audio element */
.vintage-audio {
    display: none;
}

/* Custom Scrollbar for Playlist */
.vintage-playlist::-webkit-scrollbar {
    width: 6px;
}

.vintage-playlist::-webkit-scrollbar-track {
    background: rgba(17, 29, 87, 0.05);
    border-radius: 3px;
}

.vintage-playlist::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.vintage-playlist::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color), #0369a1);
}

/* Glassmorphism effect enhancement */
.vintage-music-player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(29, 155, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 24px;
}

/* Subtle animation for the entire player */
@keyframes playerGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(17, 29, 87, 0.12),
            0 2px 8px rgba(29, 155, 255, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% { 
        box-shadow: 
            0 12px 40px rgba(17, 29, 87, 0.15),
            0 4px 12px rgba(29, 155, 255, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

.vintage-music-player.playing {
    animation: playerGlow 4s ease-in-out infinite;
}

/* Responsive Design for Modern Player */
@media (max-width: 768px) {
    .vintage-music-player {
        padding: 24px;
        margin-bottom: 24px;
        border-radius: 20px;
    }
    
    .vintage-player-title {
        font-size: 22px;
    }
    
    .vintage-player-body {
        padding: 20px;
        border-radius: 16px;
    }
    
    .vintage-controls {
        gap: 16px;
    }
    
    .vintage-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    
    .vintage-btn.play-pause {
        width: 58px;
        height: 58px;
        font-size: 20px;
    }
    
    .vintage-display {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 14px;
        height: 55px;
        max-width: 100%;
    }
    
    .vintage-playlist {
        max-height: 200px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .vintage-music-player {
        padding: 20px;
        border-radius: 18px;
    }
    
    .vintage-player-title {
        font-size: 20px;
    }
    
    .vintage-player-body {
        padding: 16px;
        border-radius: 14px;
    }
    
    .vintage-controls {
        gap: 12px;
    }
    
    .vintage-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
    
    .vintage-btn.play-pause {
        width: 54px;
        height: 54px;
        font-size: 18px;
    }
    
    .vintage-display {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 12px;
        height: 50px;
        max-width: 100%;
    }
    
    .vintage-playlist {
        max-height: 180px;
        border-radius: 12px;
    }
    
    .vintage-playlist-item {
        padding: 10px 12px;
        margin: 2px;
    }
}

/* Responsive Design for Music Player */
@media (max-width: 768px) {
    .music-player-modal .modal-container {
        width: 95%;
        margin: 20px auto;
    }
    
    .music-player-info {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .music-player-artwork {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .player-music-title {
        font-size: 20px;
    }
    
    .music-player-controls {
        padding: 16px;
    }
    
    .player-warning {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .music-player-container {
        padding: 10px 0;
    }
    
    .music-player-artwork {
        width: 80px;
        height: 80px;
    }
    
    .player-music-title {
        font-size: 18px;
    }
    
    .music-player-controls {
        padding: 12px;
    }
    
    .music-player-controls audio {
        height: 40px;
    }
}

/* Touch device specific styles - Force pink colors only */
@media (hover: none) and (pointer: coarse) {
    .control-btn {
        -webkit-tap-highlight-color: transparent !important;
        background: none !important;
    }
    
    .control-btn:hover {
        background: rgba(240, 37, 118, 0.1) !important;
        transform: none !important;
    }
    
    .control-btn:active {
        background: rgba(240, 37, 118, 0.2) !important;
        transform: scale(0.95) !important;
    }
    
    .play-pause-btn {
        background: #f02576 !important;
    }
    
    .play-pause-btn:hover {
        background: #e91e63 !important;
        transform: none !important;
        box-shadow: 0 4px 16px rgba(240, 37, 118, 0.3) !important;
    }
    
    .play-pause-btn:active {
        background: #d81b60 !important;
        transform: scale(0.95) !important;
        box-shadow: 0 2px 12px rgba(240, 37, 118, 0.4) !important;
    }
    
    /* Remove any system default button colors */
    button {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    
    /* Force correct icon colors on touch devices */
    .control-icon {
        color: var(--text-primary) !important;
        -webkit-text-fill-color: var(--text-primary) !important;
    }
    
    .play-pause-btn .control-icon {
        color: white !important;
        -webkit-text-fill-color: white !important;
    }
    
    /* Prevent any orange/system colors from appearing */
    .control-btn,
    .control-btn *,
    .play-pause-btn,
    .play-pause-btn * {
        -webkit-text-fill-color: inherit !important;
        text-fill-color: inherit !important;
    }
}

/* Developer Signature Styles - Simple and Discrete */
.footer-developer {
    border-top: 1px solid rgba(17, 29, 87, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.footer-developer-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.developer-signature {
    text-align: center;
}

.developer-link-simple {
    color: rgba(17, 29, 87, 0.6);
    text-decoration: none;
    font-size: 10px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.developer-link-simple:hover {
    color: var(--secondary-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-developer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .developer-link-simple {
        font-size: 9px;
    }
}

/* Garantir que o link da imagem funcione */
.wallet-section-title a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 10;
    pointer-events: auto; /* Garantir que o elemento receba eventos de ponteiro */
}

.wallet-section-title a:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.wallet-section-title a img {
    transition: transform 0.2s ease;
    pointer-events: none; /* Prevenir interferência da imagem */
}

.wallet-section-title a:hover img {
    transform: scale(1.05);
}

/* Garantir que a wallet-section não interfira */
.wallet-section {
    pointer-events: auto;
}

.wallet-section-title {
    pointer-events: auto;
    position: relative;
    z-index: 5;
}

/* CAG Balance Column Styles */
.cag-column {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    background: #f02576;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cag-balance {
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
}

.table-header .cag-column {
    
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    background: none;
}

/* CAG column responsive behavior */
@media (max-width: 768px) {
    .cag-column {
        font-size: 12px;
    }
    
    .cag-balance {
        font-size: 18px;
    }
}

/* Leaderboard Table Mobile Scroll */
@media (max-width: 768px) {
    /* Force horizontal scroll when CAG column is present */
    .leaderboard-table {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .leaderboard-table::-webkit-scrollbar {
        height: 8px;
    }
    
    .leaderboard-table::-webkit-scrollbar-track {
        background: rgba(29, 155, 255, 0.1);
        border-radius: 4px;
    }
    
    .leaderboard-table::-webkit-scrollbar-thumb {
        background: #f02576;
        border-radius: 4px;
    }
    
    .leaderboard-table::-webkit-scrollbar-thumb:hover {
        background: #d91e63;
    }
    
    /* When CAG column is visible, force minimum width and horizontal scroll */
    .table-header.has-cag-column,
    .table-row.has-cag-column {
        min-width: 650px !important;
        width: 650px !important;
        grid-template-columns: 60px 220px 100px 120px 100px !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    /* Default mobile layout without CAG column */
    .table-header:not(.has-cag-column),
    .table-row:not(.has-cag-column) {
        min-width: auto;
        width: 100%;
        grid-template-columns: 60px 1fr 100px !important;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    /* Container must allow scroll */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Specific column widths for CAG layout */
    .table-header.has-cag-column .wallet-column,
    .table-row.has-cag-column .wallet-column {
        /*min-width: 200px;
        max-width: 220px;*/
        text-align: left;
    }
    
    .table-header.has-cag-column .cag-column,
    .table-row.has-cag-column .cag-column {
        min-width: 90px;
        text-align: center;
    }
    
    .table-header.has-cag-column .music-column,
    .table-row.has-cag-column .music-column {
        min-width: 100px;
        text-align: center;
    }
    
    .table-header.has-cag-column .nfts-column,
    .table-row.has-cag-column .nfts-column {
        min-width: 90px;
        text-align: center;
        display: block !important;
    }
    
    /* Hide desktop-only class when CAG is active */
    .table-header.has-cag-column .desktop-only,
    .table-row.has-cag-column .desktop-only {
        display: block !important;
    }
}

/* Wallet Address Click-to-Copy Styling */
.wallet-address {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.wallet-address:hover {
    background: rgba(240, 37, 118, 0.1);
    color: #f02576;
    transform: translateY(-1px);
}

.wallet-address:active {
    transform: translateY(0);
    background: rgba(240, 37, 118, 0.2);
}

/* High CAG balance styling */
.wallet-address.high-cag {
    font-weight: 600;
    color: #f02576;
}

.wallet-address.high-cag:hover {
    /*background: rgba(240, 37, 118, 0.15);*/
    color: #f02576;
}

/* Add subtle click indicator */
.wallet-address::after {
    content: '📋';
    opacity: 0;
    margin-left: 6px;
    font-size: 12px;
    transition: opacity 0.2s ease;
}

.wallet-address:hover::after {
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wallet-address {
        padding: 6px 4px;
        font-size: 13px;
    }
    
    .wallet-address::after {
        font-size: 11px;
        margin-left: 4px;
    }
}