* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-color, #0a0a0f);
color: #fff;
min-height: 100vh;
overflow-x: hidden;
}
body.has-bg-image::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: var(--bg-image);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
z-index: -1;
pointer-events: none;
}
body.has-bg-image {
background-image: none !important;
}
html {
overflow-x: hidden;
}
:root {
--primary-color: #6cff8f;
--secondary-color: #00d4ff;
--bg-color: #0a0a0f;
--header-color: #000000;
--nav-links-color: #ffffff;
--card-bg: rgba(30, 30, 40, 0.9);
--card-bg-solid: #1e1e28;
--border-color: rgba(255, 255, 255, 0.1);
}

/* Global Scrollbar Styles */
* {
scrollbar-width: thin;
scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.2);
}
*::-webkit-scrollbar {
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
*::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 4px;
transition: background 0.2s;
}
*::-webkit-scrollbar-thumb:hover {
background: var(--primary-color);
filter: brightness(1.2);
}

/* Header */
.store-header {
background: var(--header-color, #000000);
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 100;
}
/* Collection Tabs */
.collection-tabs-wrapper {
background: rgba(0, 0, 0, 0.3);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: none;
}
.collection-tabs-wrapper.visible {
display: block;
}
.collection-tabs {
display: none;
overflow-x: auto;
gap: 0;
align-items: stretch;
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem;
scrollbar-width: none;
}
.collection-tabs::-webkit-scrollbar {
display: none;
}
.collection-tabs.visible {
display: flex;
justify-content: flex-start;
}
.collection-tab {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.25rem;
background: none;
border: none;
color: rgba(255, 255, 255, 0.5);
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s;
border-bottom: 2px solid transparent;
white-space: nowrap;
font-family: inherit;
}
.collection-tab:hover {
color: rgba(255, 255, 255, 0.8);
background: rgba(255, 255, 255, 0.05);
}
.collection-tab.active {
color: var(--primary-color);
border-bottom-color: var(--primary-color);
}
.collection-tab-icon {
width: 24px;
height: 24px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
}
.collection-tab-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
@media (max-width: 768px) {
.collection-tabs-wrapper {
padding: 0;
}
.collection-tabs {
padding: 0 0.75rem;
}
.collection-tab {
padding: 0.5rem 0.75rem;
font-size: 0.8rem;
gap: 0.35rem;
}
.collection-tab-icon {
width: 20px;
height: 20px;
border-radius: 4px;
}
}
.header-container {
max-width: 1400px;
margin: 0 auto;
padding: 16px 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
width: 100%;
}
.store-logo {
display: flex;
align-items: center;
gap: 12px;
}
.store-logo img {
height: 40px;
border-radius: 8px;
}
.store-logo h1 {
font-size: 1.25rem;
font-weight: 700;
color: var(--primary-color);
}
.nav-links {
display: flex;
gap: 24px;
margin-left: 32px;
}
.nav-links a {
display: flex;
align-items: center;
gap: 6px;
color: var(--nav-links-color, #ffffff);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: opacity 0.2s;
}
.nav-links a:hover {
opacity: 0.8;
}
.nav-links a img {
width: 20px;
height: 20px;
}
.header-actions {
display: flex;
gap: 12px;
align-items: center;
}

/* Hamburger Menu - Hidden on desktop */
.hamburger-btn {
display: none;
}
.mobile-menu-overlay {
display: none;
}

/* Responsive header */
@media (max-width: 768px) {
.header-container {
padding: 12px 16px;
gap: 8px;
}
.store-logo h1 {
font-size: 0.95rem;
}
.store-logo img {
height: 30px;
}
.nav-links {
display: none;
}
.header-actions {
gap: 8px;
}
/* Hide social links on mobile — they're in the hamburger menu */
#headerSocialLinks {
display: none !important;
}
.cart-btn {
width: 32px;
height: 32px;
font-size: 0.85rem;
}
.wallet-btn {
width: 32px;
height: 32px;
padding: 0;
align-items: center;
justify-content: center;
border-radius: 8px;
}
.wallet-btn svg {
margin-right: 0 !important;
width: 16px;
height: 16px;
}
.wallet-btn span {
display: none;
}

/* Hamburger Menu Button */
.hamburger-btn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
flex-shrink: 0;
}
.hamburger-btn:hover,
.hamburger-btn:active {
background: rgba(255, 255, 255, 0.1);
}
.hamburger-btn svg {
color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.85);
z-index: 9999;
opacity: 0;
transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open {
display: flex;
opacity: 1;
}
.mobile-menu {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 280px;
max-width: 85vw;
background: #1a1a2e;
border-left: 1px solid rgba(255, 255, 255, 0.1);
padding: 1rem;
transform: translateX(100%);
transition: transform 0.3s ease;
overflow-y: auto;
}
.mobile-menu-overlay.open .mobile-menu {
transform: translateX(0);
}
.mobile-menu-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-title {
color: #fff;
font-size: 1rem;
font-weight: 600;
}
.mobile-menu-close {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.05);
border: none;
border-radius: 6px;
color: #fff;
cursor: pointer;
}
.mobile-menu-section {
margin-bottom: 1.5rem;
}
.mobile-menu-section-title {
color: rgba(255, 255, 255, 0.5);
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 0.75rem;
}
.mobile-menu-links {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.mobile-menu-link {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
color: #fff;
text-decoration: none;
font-size: 0.9rem;
transition: all 0.2s;
}
.mobile-menu-link:hover,
.mobile-menu-link:active {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.15);
}
.mobile-menu-link img {
width: 20px;
height: 20px;
}
.mobile-menu-link svg {
width: 20px;
height: 20px;
color: rgba(255, 255, 255, 0.7);
}
}
@media (max-width: 480px) {
.header-container {
padding: 10px 12px;
}
.store-logo h1 {
font-size: 0.8rem;
}
.store-logo img {
height: 26px;
}
.store-logo {
gap: 8px;
}
.cart-btn {
width: 30px;
height: 30px;
font-size: 0.8rem;
}
.wallet-btn {
width: 30px;
height: 30px;
}
.wallet-btn svg {
width: 15px;
height: 15px;
}
}
.wallet-btn {
padding: 10px 20px;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
border: none;
border-radius: 8px;
color: #000;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.wallet-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(108, 255, 143, 0.3);
}
.wallet-btn.connected {
background: transparent;
border: 1px solid var(--primary-color);
color: var(--primary-color);
}
.cart-btn {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
color: #fff;
cursor: pointer;
font-size: 1rem;
}
.cart-count {
position: absolute;
top: -6px;
right: -6px;
background: var(--primary-color);
color: #000;
font-size: 11px;
font-weight: 700;
padding: 2px 6px;
border-radius: 10px;
min-width: 18px;
text-align: center;
}

/* Points Button - Icon Only */
.points-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
border: 1px solid rgba(255, 215, 0, 0.3);
border-radius: 8px;
color: #ffd700;
cursor: pointer;
transition: all 0.2s;
}
.points-btn:hover {
background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
border-color: rgba(255, 215, 0, 0.5);
transform: translateY(-1px);
}
.points-btn svg {
flex-shrink: 0;
}
/* JUP Swap Button */
.header-swap-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
padding: 0;
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.3);
border-radius: 8px;
color: #10b981;
cursor: pointer;
transition: all 0.2s;
flex-shrink: 0;
}
.header-swap-btn:hover {
background: rgba(16, 185, 129, 0.2);
border-color: rgba(16, 185, 129, 0.5);
}

/* Tools Button & Dropdown - Icon Only */
.tools-dropdown {
position: relative;
display: none;
}
.tools-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 2px;
width: 36px;
height: 36px;
padding: 0;
background: linear-gradient(135deg, rgba(153, 69, 255, 0.15), rgba(20, 241, 149, 0.1));
border: 1px solid rgba(153, 69, 255, 0.3);
border-radius: 8px;
color: #9945FF;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
}
.tools-btn:hover {
background: linear-gradient(135deg, rgba(153, 69, 255, 0.25), rgba(20, 241, 149, 0.2));
border-color: rgba(153, 69, 255, 0.5);
transform: translateY(-1px);
}
.tools-btn svg {
flex-shrink: 0;
}
.tools-btn .tools-arrow {
width: 10px;
height: 10px;
margin-left: -2px;
}
.tools-menu {
display: none;
position: absolute;
top: calc(100% + 8px);
right: 0;
min-width: 200px;
background: rgba(20, 20, 30, 0.98);
border: 1px solid rgba(153, 69, 255, 0.3);
border-radius: 10px;
padding: 8px 0;
z-index: 1000;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.tools-menu.active {
display: block;
}
.tools-menu-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
color: rgba(255, 255, 255, 0.9);
cursor: pointer;
transition: all 0.2s;
font-size: 0.9rem;
}
.tools-menu-item:hover {
background: rgba(153, 69, 255, 0.2);
color: #fff;
}
.tools-menu-item svg {
width: 18px;
height: 18px;
opacity: 0.7;
}
.tools-menu-empty {
padding: 12px 16px;
color: rgba(255, 255, 255, 0.5);
font-size: 0.85rem;
text-align: center;
}

/* Tool Modal/Overlay */
.tool-modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 2000;
justify-content: center;
align-items: center;
}
.tool-modal-overlay.active {
display: flex;
}
.tool-modal {
width: 95%;
max-width: 900px;
height: 90vh;
background: #0a0a0a;
border-radius: 16px;
border: 1px solid rgba(153, 69, 255, 0.3);
display: flex;
flex-direction: column;
overflow: hidden;
}
.tool-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
background: rgba(153, 69, 255, 0.1);
border-bottom: 1px solid rgba(153, 69, 255, 0.2);
}
.tool-modal-title {
color: #fff;
font-size: 1.1rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
}
.tool-modal-title svg {
width: 20px;
height: 20px;
}
.tool-modal-close {
background: rgba(255, 255, 255, 0.1);
border: none;
color: #fff;
width: 32px;
height: 32px;
border-radius: 8px;
cursor: pointer;
font-size: 1.25rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.tool-modal-close:hover {
background: rgba(255, 255, 255, 0.2);
}
.tool-modal-content {
flex: 1;
overflow: hidden;
}
.tool-modal-content iframe {
width: 100%;
height: 100%;
border: none;
}

/* Main Layout */
.store-container {
max-width: 1400px;
margin: 0 auto;
padding: 24px;
display: grid;
grid-template-columns: 420px 1fr;
gap: 32px;
width: 100%;
box-sizing: border-box;
}
@media (max-width: 1024px) {
.store-container {
grid-template-columns: 1fr;
padding: 16px;
}
}
@media (max-width: 480px) {
.store-container {
padding: 12px;
gap: 16px;
}
}

/* Left Panel - NFT Selector */
.nft-panel {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 20px;
max-height: calc(100vh - 110px);
overflow-y: auto;
position: sticky;
top: 90px;
width: 100%;
max-width: 420px;
box-sizing: border-box;
}
@media (max-width: 1024px) {
.nft-panel {
position: relative;
top: 0;
max-width: 100%;
}
}
@media (max-width: 768px) {
.nft-panel {
padding: 12px;
border-radius: 12px;
background: transparent !important;
border: none !important;
}
}
@media (max-width: 480px) {
.nft-panel {
padding: 10px;
border-radius: 10px;
background: transparent !important;
border: none !important;
}
}
/* Hide elements on mobile (except in rename-only mode) */
@media (max-width: 768px) {
/* Hide left panel labels and counts */
.store-container:not(.rename-only) .panel-title,
.store-container:not(.rename-only) #nftCount,
/* Hide trait count under NFT name */
.store-container:not(.rename-only) .selected-nft > div[style*="font-size: 12px"],
.store-container:not(.rename-only) .selected-nft > div[style*="font-size:12px"],
.store-container:not(.rename-only) .selected-nft > div[style*="margin-bottom: 12px"],
/* Hide load original traits button */
.store-container:not(.rename-only) .load-original-btn,
.store-container:not(.rename-only) button[onclick*="loadOriginal"],
.store-container:not(.rename-only) button[onclick*="loadOriginalTraits"],
/* Hide change NFT button on mobile */
.store-container:not(.rename-only) .selected-nft button.select-nft-btn:not(:first-of-type),
/* Hide any divs containing "traits" text under selected NFT */
.store-container:not(.rename-only) .selected-nft > div:not(.select-nft-placeholder):not(img):not(.selected-nft-image):not(.nft-canvas-wrapper):not(.selected-nft-name):not(.nft-name-input-wrapper) {
display: none !important;
}
}
.panel-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 16px;
display: flex;
justify-content: space-between;
align-items: center;
}
.selected-nft {
text-align: center;
padding: 20px;
max-width: 320px;
margin: 0 auto;
overflow: hidden;
box-sizing: border-box;
}
@media (max-width: 1200px) {
.selected-nft {
max-width: 280px;
}
}
@media (max-width: 1024px) {
.selected-nft {
max-width: 300px;
}
}
@media (max-width: 768px) {
.selected-nft {
padding: 0;
background: transparent !important;
border: none !important;
max-width: 250px;
width: 100%;
}
}
@media (max-width: 480px) {
.selected-nft {
max-width: 220px;
}
}
.selected-nft-image {
width: 100%;
max-width: 100%;
aspect-ratio: 1;
border-radius: 12px;
object-fit: cover;
margin: 0 auto 16px;
display: block;
border: 3px solid var(--primary-color);
box-shadow: 0 0 20px rgba(108, 255, 143, 0.2);
}
@media (max-width: 768px) {
.selected-nft-image {
border-width: 2px;
border-radius: 8px;
margin-bottom: 6px;
max-width: 250px;
}
}
.selected-nft-name {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 8px;
}
@media (max-width: 768px) {
.selected-nft-name {
display: none !important;
}
}


/* NFT Preview Action Buttons */
.nft-action-btn {
width: 32px;
height: 32px;
background: rgba(0, 0, 0, 0.5);
border: 1px solid var(--border-color);
border-radius: 6px;
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
opacity: 0.7;
}
.nft-action-btn:hover {
opacity: 1;
background: var(--primary-color);
color: #000;
border-color: var(--primary-color);
transform: scale(1.1);
}
.nft-action-btn:active {
transform: scale(0.95);
}
.nft-action-btn.btn-close:hover {
background: #ef4444;
border-color: #ef4444;
color: #fff;
}

/* Editable NFT Name Input */
.nft-name-input-wrapper {
position: relative;
width: 100%;
margin-bottom: 8px;
}
.nft-name-input-wrapper .edit-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
color: var(--primary-color);
pointer-events: none;
opacity: 0.8;
}
.nft-name-input-wrapper input {
width: 100%;
padding: 10px 12px 10px 36px;
background: rgba(20, 241, 149, 0.08);
border: 1px solid rgba(20, 241, 149, 0.3);
border-radius: 8px;
color: #fff;
font-size: 1.1rem;
font-weight: 600;
text-align: center;
transition: all 0.2s ease;
}
.nft-name-input-wrapper input:hover {
background: rgba(20, 241, 149, 0.12);
border-color: rgba(20, 241, 149, 0.5);
}
.nft-name-input-wrapper input:focus {
outline: none;
background: rgba(20, 241, 149, 0.15);
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.15);
}
.nft-name-input-wrapper input::placeholder {
color: rgba(255, 255, 255, 0.4);
}
.nft-name-input-wrapper .nft-number-suffix {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
color: rgba(255, 255, 255, 0.5);
font-size: 1.1rem;
font-weight: 600;
pointer-events: none;
}
.nft-name-input-wrapper:has(.nft-number-suffix) input {
padding-right: 80px;
}

/* Rename Actions Row (under NFT name input) */
.rename-actions-row {
display: flex;
gap: 8px;
width: 100%;
margin-bottom: 8px;
}
.rename-actions-row button {
flex: 1;
padding: 8px 12px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
transition: all 0.2s ease;
}
.rename-actions-row .rename-submit-btn {
background: var(--primary-color);
color: #000;
}
.rename-actions-row .rename-submit-btn:hover {
filter: brightness(1.1);
}
.rename-actions-row .rename-submit-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.rename-actions-row .rename-randomize-btn {
background: rgba(255, 255, 255, 0.1);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.15);
}
.rename-actions-row .rename-randomize-btn:hover {
background: rgba(255, 255, 255, 0.15);
}
.rename-fee-info {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 6px 0;
font-size: 12px;
color: rgba(255,255,255,0.5);
margin-bottom: 4px;
}
.rename-fee-info img {
width: 16px;
height: 16px;
border-radius: 50%;
}
.rename-fee-info .fee-amount {
color: rgba(255,255,255,0.8);
font-weight: 600;
}

/* Select NFT Button */
.select-nft-placeholder {
width: 100%;
aspect-ratio: 1;
max-width: 100%;
margin: 0 auto 16px;
background: rgba(255, 255, 255, 0.03);
border: 2px dashed var(--border-color);
border-radius: 16px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
box-sizing: border-box;
min-width: 0;
cursor: pointer;
transition: all 0.2s;
}
.select-nft-placeholder:hover {
border-color: var(--primary-color);
background: rgba(108, 255, 143, 0.05);
}
@media (max-width: 768px) {
.select-nft-placeholder {
margin-bottom: 8px;
border-radius: 10px;
gap: 8px;
max-width: 250px;
width: 100%;
}
}
@media (max-width: 480px) {
.select-nft-placeholder {
max-width: 200px;
}
}
.select-nft-placeholder svg {
width: 48px;
height: 48px;
color: rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
.select-nft-placeholder svg {
width: 32px;
height: 32px;
}
}
@media (max-width: 480px) {
.select-nft-placeholder svg {
width: 28px;
height: 28px;
}
}
.select-nft-btn {
padding: 12px 28px;
background: var(--primary-color);
border: none;
border-radius: 8px;
color: #000;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
width: auto;
}
.select-nft-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(108, 255, 143, 0.3);
}
@media (max-width: 768px) {
.select-nft-btn {
padding: 8px 16px;
font-size: 12px;
width: 100%;
max-width: 200px;
}
}
.current-traits {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
}
.current-traits h3 {
font-size: 14px;
font-weight: 600;
margin-bottom: 12px;
color: rgba(255, 255, 255, 0.8);
}
.current-traits-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.current-traits-list::-webkit-scrollbar {
width: 6px;
}
.current-traits-list::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
border-radius: 3px;
}
.current-traits-list::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 3px;
}
.current-traits-list::-webkit-scrollbar-thumb:hover {
filter: brightness(1.2);
}
.current-trait-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
padding: 6px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.fav-heart {
background: none;
border: none;
cursor: pointer;
padding: 2px;
color: rgba(255, 255, 255, 0.15);
transition: all 0.2s;
flex-shrink: 0;
line-height: 1;
}
.fav-heart:hover {
color: rgba(255, 80, 100, 0.5);
}
.fav-heart.active {
color: #ff5064;
}
.current-trait-type {
color: rgba(255, 255, 255, 0.5);
font-size: 11px;
min-width: 70px;
text-align: left;
flex-shrink: 0;
}
.current-trait-name {
color: rgba(255, 255, 255, 0.9);
font-weight: 500;
text-align: right;
flex: 1;
}
@media (max-width: 480px) {
.select-nft-btn {
padding: 7px 14px;
font-size: 11px;
max-width: 150px;
}
}

/* NFT Modal */
.nft-modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
z-index: 10000;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
}
.nft-modal-overlay.open {
display: flex;
}
.nft-modal {
background: #1a1a2e;
border-radius: 16px;
width: 100%;
max-width: 800px;
max-height: 90vh;
overflow: hidden;
display: flex;
flex-direction: column;
animation: modalIn 0.2s ease-out;
border: 1px solid rgba(255, 255, 255, 0.08);
}
@keyframes modalIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.nft-modal__header {
padding: 20px 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.nft-modal__title {
color: #f0f0f0;
font-size: 1.5rem;
font-weight: 700;
margin: 0 0 4px 0;
}
.nft-modal__count {
color: rgba(255, 255, 255, 0.5);
font-size: 0.875rem;
}
.nft-modal__close {
background: none;
border: none;
font-size: 28px;
color: rgba(255, 255, 255, 0.5);
cursor: pointer;
padding: 0;
line-height: 1;
}
.nft-modal__close:hover {
color: #fff;
}
.nft-modal__controls {
padding: 16px 24px;
display: flex;
gap: 12px;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
flex-wrap: wrap;
}
.nft-modal__search {
flex: 1;
min-width: 200px;
display: flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 10px 14px;
}
.nft-modal__search svg {
width: 18px;
height: 18px;
color: rgba(255, 255, 255, 0.4);
flex-shrink: 0;
}
.nft-modal__search input {
flex: 1;
border: none;
background: none;
font-size: 14px;
color: #f0f0f0;
outline: none;
}
.nft-modal__search input::placeholder {
color: rgba(255, 255, 255, 0.35);
}
.nft-modal__sort {
position: relative;
}
.nft-modal__sort-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: rgba(255, 255, 255, 0.8);
font-size: 14px;
font-weight: 500;
cursor: pointer;
white-space: nowrap;
}
.nft-modal__sort-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
.nft-modal__sort-btn svg {
width: 16px;
height: 16px;
}
.nft-modal__sort-dropdown {
display: none;
position: absolute;
top: 100%;
right: 0;
margin-top: 4px;
background: #252540;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
min-width: 180px;
z-index: 10;
overflow: hidden;
}
.nft-modal__sort-dropdown.open {
display: block;
}
.nft-modal__sort-option {
display: block;
width: 100%;
padding: 10px 16px;
background: none;
border: none;
text-align: left;
font-size: 14px;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
}
.nft-modal__sort-option:hover {
background: rgba(255, 255, 255, 0.06);
color: #fff;
}
.nft-modal__sort-option.active {
background: rgba(108, 255, 143, 0.1);
color: var(--primary-color);
font-weight: 500;
}
.nft-modal__body {
flex: 1;
overflow-y: auto;
padding: 20px 24px;
background: #141425;
}
.nft-modal__body::-webkit-scrollbar {
width: 6px;
}
.nft-modal__body::-webkit-scrollbar-track {
background: transparent;
}
.nft-modal__body::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
border-radius: 3px;
}
.nft-modal__body::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.25);
}
.nft-modal__grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 16px;
}
.nft-modal__card {
background: rgba(255, 255, 255, 0.05);
border: 2px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
overflow: hidden;
cursor: pointer;
transition: all 0.2s;
}
.nft-modal__card:hover {
border-color: var(--primary-color);
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.nft-modal__card.selected {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(108, 255, 143, 0.25);
}
.nft-modal__card.ineligible {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
position: relative;
}
.nft-modal__card.ineligible::after {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(
45deg,
transparent,
transparent 8px,
rgba(239, 68, 68, 0.1) 8px,
rgba(239, 68, 68, 0.1) 16px
);
border-radius: 12px;
pointer-events: none;
}
.nft-modal__card-ineligible-badge {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.9);
color: #fff;
padding: 10px 14px;
border-radius: 8px;
font-size: 11px;
font-weight: 600;
text-align: center;
z-index: 5;
border: 1px solid rgba(239, 68, 68, 0.5);
}
.nft-modal__card-ineligible-badge .badge-title {
color: #ef4444;
font-size: 12px;
font-weight: 700;
margin-bottom: 4px;
}
.nft-modal__card-ineligible-badge .badge-reason {
color: rgba(255, 255, 255, 0.8);
font-size: 10px;
font-weight: 500;
}
.nft-modal__card-image {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
background: rgba(255, 255, 255, 0.03);
}
.nft-modal__card-info {
padding: 12px;
text-align: center;
}
.nft-modal__card-name {
font-size: 13px;
font-weight: 600;
color: rgba(255, 255, 255, 0.85);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.nft-modal__card-rank {
position: absolute;
top: 8px;
right: 8px;
background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.9));
color: #000;
font-size: 10px;
font-weight: 700;
padding: 3px 7px;
border-radius: 4px;
display: flex;
align-items: center;
gap: 3px;
backdrop-filter: blur(4px);
}
.nft-modal__card-wrapper {
position: relative;
}
.nft-modal__empty {
text-align: center;
padding: 60px 20px;
color: rgba(255, 255, 255, 0.4);
}
.nft-modal__empty h3 {
color: rgba(255, 255, 255, 0.7);
margin-bottom: 8px;
}

@media (max-width: 600px) {
.nft-modal__grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.nft-modal__controls {
flex-direction: column;
align-items: stretch;
}
.nft-modal__search {
min-width: unset;
}
}

/* Inventory Toggle */
.inventory-toggle {
display: flex;
gap: 4px;
background: rgba(0, 0, 0, 0.3);
padding: 4px;
border-radius: 8px;
margin-top: 16px;
flex-shrink: 0;
}
@media (max-width: 768px) {
.inventory-toggle {
margin-top: 8px;
padding: 3px;
}
}
.inv-tab {
flex: 1;
padding: 8px 12px;
background: transparent;
border: none;
border-radius: 6px;
color: rgba(255, 255, 255, 0.6);
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease;
filter: grayscale(0.5);
}
.inv-tab:hover:not(.active) {
background: rgba(255, 255, 255, 0.08);
filter: grayscale(0);
}
.inv-tab:active {
transform: scale(0.97);
}
@media (max-width: 768px) {
.inv-tab {
padding: 6px 10px;
font-size: 14px;
}
}
.inv-tab.active {
background: rgba(108, 255, 143, 0.15);
filter: grayscale(0);
}

/* Sort by Price Dropdown */
.sort-select {
background: rgba(255,255,255,0.1);
border: 1px solid var(--border-color);
padding: 8px 12px;
border-radius: 6px;
color: #fff;
font-size: 13px;
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
}
.sort-select:hover {
background: rgba(255,255,255,0.15);
border-color: rgba(108, 255, 143, 0.4);
}
.sort-select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(108, 255, 143, 0.2);
}
.sort-select.active-sort {
border-color: var(--primary-color);
background: rgba(108, 255, 143, 0.1);
}

/* Undo/Redo/Reset Action Buttons */
.action-btn {
background: rgba(255,255,255,0.1);
border: 1px solid var(--border-color);
padding: 8px 10px;
border-radius: 6px;
cursor: pointer;
color: #fff;
font-size: 15px;
font-weight: 500;
transition: all 0.2s ease;
white-space: nowrap;
flex-shrink: 0;
line-height: 1;
}
.action-btn:hover:not(:disabled) {
background: rgba(255,255,255,0.18);
border-color: rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
}
.action-btn:active:not(:disabled) {
transform: translateY(0) scale(0.98);
}
.action-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.action-btn.can-undo {
border-color: rgba(108, 255, 143, 0.4);
color: var(--primary-color);
}
.action-btn.can-redo {
border-color: rgba(108, 255, 143, 0.4);
color: var(--primary-color);
}

/* Reset Button */
.reset-btn {
background: rgba(255,100,100,0.15);
border: 1px solid rgba(255,100,100,0.25);
padding: 8px 14px;
border-radius: 6px;
cursor: pointer;
color: #ff6b6b;
font-size: 13px;
font-weight: 600;
transition: all 0.2s ease;
white-space: nowrap;
flex-shrink: 0;
}
.reset-btn:hover {
background: rgba(255,100,100,0.25);
border-color: rgba(255,100,100,0.4);
transform: translateY(-1px);
}
.reset-btn:active {
transform: translateY(0) scale(0.98);
}
.reset-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}

/* Randomize Button */
.randomize-btn {
background: rgba(147, 112, 219, 0.15);
border: 1px solid rgba(147, 112, 219, 0.25);
padding: 8px 14px;
border-radius: 6px;
cursor: pointer;
color: #9370db;
font-size: 13px;
font-weight: 600;
transition: all 0.2s ease;
white-space: nowrap;
flex-shrink: 0;
}
.randomize-btn:hover {
background: rgba(147, 112, 219, 0.25);
border-color: rgba(147, 112, 219, 0.4);
transform: translateY(-1px);
}
.randomize-btn:active {
transform: translateY(0) scale(0.98);
}
.randomize-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}

/* Right Panel - Trait Browser */
/* Rename-only mode: single centered column, hide traits panel */
.store-container.rename-only {
grid-template-columns: 520px;
justify-content: center;
max-width: 600px;
}
.store-container.rename-only .traits-panel,
.store-container.rename-only .current-traits,
.store-container.rename-only .nft-traits,
.store-container.rename-only #nftTraitsList {
display: none;
}
.store-container.rename-only .nft-panel {
max-width: 520px;
}
@media (max-width: 600px) {
.store-container.rename-only {
grid-template-columns: 1fr;
}
}
/* Rename-only mobile: restore card styling and widen NFT area */
@media (max-width: 768px) {
.store-container.rename-only .selected-nft {
max-width: 100%;
}
.store-container.rename-only .nft-panel {
background: var(--card-bg) !important;
border: 1px solid var(--border-color) !important;
border-radius: 12px;
padding: 16px;
}
}

.traits-panel {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 20px;
width: 100%;
box-sizing: border-box;
max-height: calc(100vh - 110px);
overflow: hidden;
display: flex;
flex-direction: column;
}
.project-info {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 16px 20px;
margin-bottom: 12px;
flex-shrink: 0;
text-align: center;
}
.project-info h2 {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 8px;
color: #fff;
}
.project-info p {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
line-height: 1.5;
max-width: 600px;
margin: 0 auto;
}
.traits-panel-sticky {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 12px 20px;
margin-bottom: 12px;
flex-shrink: 0;
}
#traitsContent {
flex: 1;
overflow-y: auto;
min-height: 0;
}
@media (max-width: 480px) {
.traits-panel {
padding: 16px;
border-radius: 12px;
}
.traits-panel-sticky {
padding: 10px 16px;
border-radius: 10px;
}
.project-info {
padding: 12px 16px;
border-radius: 10px;
}
}
.traits-header {
display: flex;
align-items: center;
margin-bottom: 16px;
flex-wrap: wrap;
gap: 8px;
}
@media (max-width: 768px) {
.traits-header {
margin-bottom: 12px;
gap: 6px;
}
}
.traits-search-wrapper {
display: flex;
align-items: center;
position: relative;
}
.traits-search {
display: flex;
align-items: center;
position: relative;
flex-shrink: 0;
}
/* Icon-only mode when NFT selected */
.traits-search.icon-mode .search-toggle {
display: flex;
}
.traits-search.icon-mode input {
width: 0;
padding: 0;
opacity: 0;
position: absolute;
left: 38px;
}
.traits-search.icon-mode.expanded input {
width: 180px;
padding: 10px 16px;
opacity: 1;
z-index: 10;
background: var(--card-bg);
}
/* Default mode - search always visible */
.traits-search:not(.icon-mode) .search-toggle {
display: none;
}
.traits-search:not(.icon-mode) input {
width: 180px;
padding: 10px 16px;
opacity: 1;
}
.traits-search .search-toggle {
width: 38px;
height: 38px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-radius: 8px;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
flex-shrink: 0;
}
.traits-search .search-toggle:hover {
background: rgba(0, 0, 0, 0.5);
border-color: var(--primary-color);
color: var(--primary-color);
}
.traits-search .search-toggle.active {
background: rgba(20, 241, 149, 0.1);
border-color: var(--primary-color);
color: var(--primary-color);
}
.traits-search input {
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-radius: 8px;
color: #fff;
font-size: 14px;
box-sizing: border-box;
transition: all 0.3s ease;
}
.traits-search input:focus {
border-color: var(--primary-color);
outline: none;
}
@media (max-width: 768px) {
.traits-search:not(.icon-mode) input,
.traits-search.icon-mode.expanded input {
width: 150px;
padding: 8px 12px;
font-size: 13px;
}
}
@media (max-width: 480px) {
.traits-search:not(.icon-mode) input,
.traits-search.icon-mode.expanded input {
width: 120px;
padding: 6px 10px;
font-size: 12px;
}
}
/* Make sort controls smaller on mobile */
@media (max-width: 768px) {
.traits-header > div:last-child {
flex-wrap: wrap;
gap: 6px !important;
}
#traitSort {
font-size: 11px;
padding: 6px 8px;
flex: 1;
min-width: 120px;
}
label[style*="display: flex"] {
font-size: 10px !important;
white-space: nowrap;
}
}

/* Category Filter */
.category-filter {
display: flex;
gap: 8px;
overflow-x: auto;
padding: 4px 0;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
scrollbar-width: none;
}
.category-filter::-webkit-scrollbar {
display: none;
}
@media (max-width: 768px) {
.category-filter {
gap: 6px;
}
}
.category-btn {
padding: 8px 16px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-radius: 20px;
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
cursor: pointer;
white-space: nowrap;
transition: all 0.2s;
flex-shrink: 0;
}
@media (max-width: 600px) {
.category-btn {
padding: 6px 12px;
font-size: 12px;
}
}
.category-btn:hover {
border-color: var(--primary-color);
color: #fff;
}
.category-btn.active {
background: rgba(108, 255, 143, 0.15);
border-color: var(--primary-color);
color: var(--primary-color);
}
.category-filter-wrapper {
position: relative;
margin-bottom: 16px;
overflow: hidden;
}
.category-scroll-btn {
position: absolute;
top: 50%;
transform: translateY(-60%);
width: 28px;
height: 28px;
background: rgba(0, 0, 0, 0.85);
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 50%;
color: #fff;
cursor: pointer;
display: none;
align-items: center;
justify-content: center;
z-index: 10;
transition: all 0.2s;
font-size: 14px;
backdrop-filter: blur(4px);
}
.category-scroll-btn.visible {
display: flex;
}
.category-scroll-btn:hover {
background: rgba(0, 0, 0, 0.95);
border-color: var(--primary-color);
color: var(--primary-color);
}
.category-scroll-btn.left {
left: 0;
}
.category-scroll-btn.right {
right: 0;
}
/* Fade edges when scrollable */
.category-filter-wrapper.can-scroll-left::before,
.category-filter-wrapper.can-scroll-right::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 32px;
z-index: 5;
pointer-events: none;
}
.category-filter-wrapper.can-scroll-left::before {
left: 0;
background: linear-gradient(to right, var(--card-bg, rgba(0,0,0,0.6)), transparent);
}
.category-filter-wrapper.can-scroll-right::after {
right: 0;
background: linear-gradient(to left, var(--card-bg, rgba(0,0,0,0.6)), transparent);
}

/* Traits Grid */
.traits-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 16px;
width: 100%;
box-sizing: border-box;
}
@media (max-width: 1400px) {
.traits-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 1200px) {
.traits-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.traits-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
}
@media (max-width: 480px) {
.traits-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
}
@media (max-width: 400px) {
.traits-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
}
.trait-card {
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-radius: 12px;
overflow: hidden;
cursor: pointer;
transition: all 0.2s;
position: relative;
width: 100%;
max-width: 100%;
min-width: 0;
box-sizing: border-box;
}
.trait-card:hover {
border-color: var(--primary-color);
transform: translateY(-2px);
}
@media (max-width: 600px) {
.trait-card {
border-radius: 8px;
min-width: 0;
max-width: 100%;
}
.trait-card:hover {
transform: none;
}
}
.trait-card.selected {
border-color: var(--primary-color);
box-shadow: 0 0 20px rgba(108, 255, 143, 0.2);
}
.trait-card.in-cart {
border-color: #f59e0b;
}
.trait-info-icon {
position: absolute;
top: 6px;
left: 6px;
width: 22px;
height: 22px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.6);
border: 1px solid rgba(255, 255, 255, 0.25);
color: rgba(255, 255, 255, 0.85);
display: flex;
align-items: center;
justify-content: center;
cursor: help;
z-index: 3;
backdrop-filter: blur(4px);
transition: background 0.15s, transform 0.15s;
}
.trait-info-icon:hover {
background: var(--primary-color);
color: #000;
transform: scale(1.08);
}
.trait-info-icon svg { width: 12px; height: 12px; }
.trait-info-tooltip {
position: absolute;
top: 32px;
left: 6px;
background: rgba(15, 15, 25, 0.98);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 10px;
padding: 10px 12px;
min-width: 180px;
max-width: 240px;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
z-index: 10;
display: none;
pointer-events: none;
}
.trait-info-icon:hover + .trait-info-tooltip,
.trait-info-tooltip:hover {
display: block;
}
.trait-info-tooltip .tip-row {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 0;
font-size: 12px;
color: rgba(255, 255, 255, 0.9);
}
.trait-info-tooltip .tip-row + .tip-row {
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trait-info-tooltip .tip-icon {
width: 18px;
height: 18px;
border-radius: 4px;
object-fit: cover;
flex-shrink: 0;
}
.trait-info-tooltip .tip-label {
color: rgba(255, 255, 255, 0.55);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.trait-info-tooltip .tip-value {
color: #fff;
font-weight: 600;
margin-left: auto;
text-align: right;
}
.trait-image {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
background: #1a1a1a;
max-width: 100%;
height: auto;
display: block;
}
.trait-info {
padding: 12px;
min-width: 0;
}
@media (max-width: 600px) {
.trait-info {
padding: 8px;
}
}
.trait-type {
font-size: 10px;
color: rgba(255, 255, 255, 0.5);
text-transform: uppercase;
letter-spacing: 0.5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (max-width: 600px) {
.trait-type {
font-size: 9px;
}
}
.trait-name {
font-size: 14px;
font-weight: 600;
margin: 4px 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (max-width: 600px) {
.trait-name {
font-size: 12px;
}
}
.trait-price {
font-size: 13px;
color: var(--primary-color);
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
flex-wrap: wrap;
}
@media (max-width: 600px) {
.trait-price {
font-size: 11px;
}
}
/* Rarity Filter */
.rarity-filter-row {
display: flex;
align-items: center;
margin-bottom: 12px;
gap: 8px;
}
.rarity-filter {
display: flex;
gap: 6px;
flex-wrap: nowrap;
flex: 1;
min-width: 0;
overflow: hidden;
}
.rarity-filter.has-overflow {
mask-image: linear-gradient(to right, #000 90%, transparent 100%);
-webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}
.rarity-scroll-btn {
display: none;
background: rgba(255,255,255,0.1);
border: 1px solid var(--border-color);
color: #fff;
padding: 2px 6px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
flex-shrink: 0;
}
.rarity-scroll-btn:hover { background: rgba(255,255,255,0.2); }
.rarity-scroll-btn.visible { display: block; }
.token-balance-badge {
display: flex;
align-items: center;
gap: 5px;
background: rgba(255,255,255,0.06);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 4px 10px;
font-size: 12px;
font-weight: 600;
color: rgba(255,255,255,0.85);
white-space: nowrap;
flex-shrink: 0;
}
.token-balance-badge img {
width: 16px;
height: 16px;
border-radius: 50%;
}
.token-balance-badge .bal-value {
color: var(--primary-color, #6cff8f);
}
.rarity-filter-btn {
padding: 4px 10px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
border: 1px solid transparent;
opacity: 0.5;
}
.rarity-filter-btn:hover {
opacity: 0.8;
}
.rarity-filter-btn.active {
opacity: 1;
box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}
.rarity-filter-btn.all { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
.rarity-filter-btn.all.active { background: rgba(255, 255, 255, 0.2); color: #fff; }
.rarity-filter-btn.common { background: #6b7280; color: #fff; }
.rarity-filter-btn.uncommon { background: #22c55e; color: #000; }
.rarity-filter-btn.rare { background: #3b82f6; color: #fff; }
.rarity-filter-btn.epic { background: #a855f7; color: #fff; }
.rarity-filter-btn.legendary { background: #f59e0b; color: #000; }
.rarity-filter-btn.mythic { background: linear-gradient(135deg, #ff4500, #ff0080); color: #fff; }
@media (max-width: 600px) {
.rarity-filter-btn {
padding: 3px 8px;
font-size: 10px;
}
}

.trait-rarity {
position: absolute;
top: 8px;
right: 8px;
padding: 4px 8px;
border-radius: 4px;
font-size: 10px;
font-weight: 600;
}
@media (max-width: 600px) {
.trait-rarity {
top: 6px;
right: 6px;
padding: 3px 6px;
font-size: 8px;
}
}
.trait-rarity.mythic { background: linear-gradient(135deg, #ff4500, #ff0080); color: #fff; }
.trait-rarity.legendary { background: #f59e0b; color: #000; }
.trait-rarity.epic { background: #a855f7; color: #fff; }
.trait-rarity.rare { background: #3b82f6; color: #fff; }
.trait-rarity.uncommon { background: #22c55e; color: #000; }
.trait-rarity.common { background: #6b7280; color: #fff; }
.trait-card.sold-out { opacity: 0.45; pointer-events: none; }
.trait-card.sold-out .trait-image { filter: grayscale(0.6); }
.trait-sold-out-badge {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.75);
color: #ff6b6b;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
padding: 6px 14px;
border-radius: 6px;
border: 1px solid rgba(255, 107, 107, 0.3);
z-index: 2;
}
.trait-owned {
position: absolute;
top: 8px;
left: 8px;
font-size: 16px;
line-height: 1;
z-index: 2;
filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}
.trait-prize-badge {
position: absolute;
top: 8px;
right: 8px;
font-size: 18px;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
z-index: 2;
}
@media (max-width: 600px) {
.trait-owned {
top: 6px;
left: 6px;
font-size: 13px;
}
.trait-prize-badge {
top: 6px;
right: 6px;
font-size: 14px;
}
}
.trait-card.incompatible {
opacity: 0.6;
border-color: #ef4444 !important;
cursor: not-allowed;
}
.trait-card.incompatible:hover {
opacity: 0.8;
transform: none;
}
.trait-card.incompatible::after {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(
45deg,
transparent,
transparent 10px,
rgba(239, 68, 68, 0.08) 10px,
rgba(239, 68, 68, 0.08) 20px
);
pointer-events: none;
border-radius: 12px;
}
.trait-incompatible-badge {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.95);
color: #ef4444;
padding: 10px 14px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
text-align: center;
z-index: 10;
width: 85%;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
border: 1px solid rgba(239, 68, 68, 0.5);
line-height: 1.4;
word-wrap: break-word;
overflow-wrap: break-word;
}
.trait-card.incompatible:hover .trait-incompatible-badge {
opacity: 1;
}

/* Required trait styling */
.trait-card.required {
border-color: #6cff8f !important;
box-shadow: 0 0 10px rgba(108, 255, 143, 0.3);
}
.trait-card.required::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(108, 255, 143, 0.1) 0%, transparent 50%);
pointer-events: none;
border-radius: 12px;
}
.trait-required-badge {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.95);
color: #6cff8f;
padding: 10px 14px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
text-align: center;
z-index: 10;
width: 85%;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
border: 1px solid rgba(108, 255, 143, 0.5);
line-height: 1.4;
word-wrap: break-word;
overflow-wrap: break-word;
}
.trait-card.required:hover .trait-required-badge {
opacity: 1;
}

/* Missing prerequisite trait styling (amber/orange) */
.trait-card.missing-prereq {
opacity: 0.6;
border-color: #f59e0b !important;
cursor: not-allowed;
}
.trait-card.missing-prereq:hover {
opacity: 0.8;
transform: none;
}
.trait-card.missing-prereq::after {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(
45deg,
transparent,
transparent 10px,
rgba(245, 158, 11, 0.08) 10px,
rgba(245, 158, 11, 0.08) 20px
);
pointer-events: none;
border-radius: 12px;
}
.trait-prereq-badge {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.95);
color: #f59e0b;
padding: 10px 14px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
text-align: center;
z-index: 10;
width: 85%;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
border: 1px solid rgba(245, 158, 11, 0.5);
line-height: 1.4;
word-wrap: break-word;
overflow-wrap: break-word;
}
.trait-card.missing-prereq:hover .trait-prereq-badge {
opacity: 1;
}

/* Cart Sidebar */
.cart-sidebar {
position: fixed;
top: 0;
right: -400px;
width: 400px;
height: 100vh;
background: var(--card-bg);
border-left: 1px solid var(--border-color);
z-index: 200;
transition: right 0.3s;
display: flex;
flex-direction: column;
}
.cart-sidebar.open {
right: 0;
}
@media (max-width: 480px) {
.cart-sidebar {
width: 100%;
right: -100%;
}
}
.cart-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 150;
}
.cart-overlay.open {
display: block;
}
.cart-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid var(--border-color);
gap: 12px;
flex-wrap: wrap;
}
@media (max-width: 768px) {
.cart-header {
padding: 16px;
gap: 8px;
}
.cart-header > div {
display: flex;
gap: 6px !important;
flex-wrap: nowrap;
}
.cart-header button {
font-size: 12px !important;
padding: 6px 8px !important;
min-width: 32px;
}
}
@media (max-width: 480px) {
.cart-header {
padding: 12px;
}
.cart-header h2 {
width: 100%;
margin-bottom: 8px;
}
}
.cart-header h2 {
font-size: 1.25rem;
margin: 0;
}
@media (max-width: 768px) {
.cart-header h2 {
font-size: 1.1rem;
}
}
.cart-close {
background: none;
border: none;
color: #fff;
font-size: 24px;
cursor: pointer;
}
.cart-items {
flex: 1;
overflow-y: auto;
padding: 20px;
min-height: 0; /* Important for flex overflow to work */
}
.cart-item {
display: flex;
gap: 12px;
padding: 12px;
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
margin-bottom: 12px;
}
.cart-item img {
width: 60px;
height: 60px;
border-radius: 6px;
object-fit: cover;
}
.cart-item-info {
flex: 1;
}
.cart-item-name {
font-weight: 600;
margin-bottom: 4px;
}
.cart-item-type {
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
}
.cart-item-price {
color: var(--primary-color);
font-weight: 600;
}
.cart-item-remove {
background: none;
border: none;
color: #ef4444;
cursor: pointer;
padding: 4px;
}
.cart-footer {
padding: 20px;
border-top: 1px solid var(--border-color);
background: var(--card-bg);
flex-shrink: 0;
position: sticky;
bottom: 0;
}
.cart-total {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 16px;
font-size: 1rem;
}
.cart-total-label {
color: rgba(255, 255, 255, 0.6);
font-size: 0.85rem;
margin-bottom: 4px;
}
.cart-total-value {
color: var(--primary-color);
font-weight: 600;
display: flex;
flex-direction: column;
gap: 6px;
}
.checkout-btn {
width: 100%;
padding: 14px;
background: linear-gradient(135deg, var(--primary-color) 0%, #4ade80 100%);
border: none;
border-radius: 8px;
color: #000;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
}
.checkout-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.checkout-options {
display: flex;
gap: 8px;
margin-bottom: 12px;
}
.checkout-option {
flex: 1;
padding: 10px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-radius: 8px;
color: rgba(255, 255, 255, 0.6);
font-size: 12px;
text-align: center;
cursor: pointer;
}
.checkout-option.active {
border-color: var(--primary-color);
color: var(--primary-color);
}

/* Empty States */
.empty-state {
text-align: center;
padding: 60px 20px;
color: rgba(255, 255, 255, 0.5);
}
.empty-state svg {
width: 64px;
height: 64px;
margin-bottom: 16px;
opacity: 0.3;
}
.empty-state h3 {
color: #fff;
margin-bottom: 8px;
}

/* Loading */
.loading {
display: flex;
justify-content: center;
align-items: center;
padding: 60px;
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--border-color);
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}

/* Toast */
.toast {
position: fixed;
bottom: 24px;
right: 24px;
padding: 16px 24px;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
z-index: 300;
transform: translateY(100px);
opacity: 0;
transition: all 0.3s;
}
.toast.show {
transform: translateY(0);
opacity: 1;
}
.toast.success {
border-color: var(--primary-color);
}
.toast.error {
border-color: #ef4444;
}

/* Not Connected State */
.not-connected {
text-align: center;
padding: 100px 20px;
}
.not-connected h2 {
font-size: 2rem;
margin-bottom: 12px;
}
.not-connected p {
color: rgba(255, 255, 255, 0.6);
margin-bottom: 24px;
}

/* Store Not Found */
.store-not-found {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
padding: 20px;
}
.store-not-found h1 {
font-size: 3rem;
margin-bottom: 16px;
}
.store-not-found p {
color: rgba(255, 255, 255, 0.6);
margin-bottom: 24px;
}

/* NFT Update Success Modal */
.success-modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
z-index: 10001;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
}
.success-modal-overlay.open {
display: flex;
}
.success-modal {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
border: 2px solid var(--primary-color);
border-radius: 20px;
width: 100%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
position: relative;
animation: successModalIn 0.4s ease-out;
box-shadow: 0 0 40px rgba(108, 255, 143, 0.2);
}
.success-modal__x-close {
position: absolute;
top: 12px;
right: 12px;
width: 32px;
height: 32px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
color: rgba(255, 255, 255, 0.7);
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
transition: all 0.2s;
}
.success-modal__x-close:hover {
background: rgba(255, 255, 255, 0.2);
color: #fff;
}
@keyframes successModalIn {
from {
opacity: 0;
transform: scale(0.8) translateY(20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.success-modal__header {
padding: 24px;
text-align: center;
border-bottom: 1px solid rgba(108, 255, 143, 0.2);
}
.success-modal__icon {
width: 64px;
height: 64px;
background: var(--primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 16px;
animation: successPulse 2s ease-in-out infinite;
}
@keyframes successPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(108, 255, 143, 0.4); }
50% { box-shadow: 0 0 0 15px rgba(108, 255, 143, 0); }
}
.success-modal__icon svg {
width: 32px;
height: 32px;
color: #1a1a2e;
}
.success-modal__title {
color: var(--primary-color);
font-size: 1.75rem;
font-weight: 700;
margin: 0 0 8px 0;
}
.success-modal__subtitle {
color: rgba(255, 255, 255, 0.7);
font-size: 0.95rem;
}
.success-modal__comparison {
display: flex;
gap: 20px;
padding: 24px;
justify-content: center;
align-items: center;
}
.success-modal__nft-card {
flex: 1;
max-width: 200px;
text-align: center;
}
.success-modal__nft-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
color: rgba(255, 255, 255, 0.5);
margin-bottom: 8px;
}
.success-modal__nft-image {
width: 100%;
aspect-ratio: 1;
border-radius: 12px;
object-fit: cover;
border: 2px solid rgba(255, 255, 255, 0.1);
background: rgba(0, 0, 0, 0.3);
}
.success-modal__nft-card--new .success-modal__nft-image {
border-color: var(--primary-color);
box-shadow: 0 0 20px rgba(108, 255, 143, 0.3);
}
.success-modal__arrow {
color: var(--primary-color);
font-size: 2rem;
flex-shrink: 0;
}
.success-modal__nft-name {
margin-top: 8px;
font-size: 0.9rem;
color: #fff;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.success-modal__actions {
padding: 20px 24px 24px;
display: flex;
flex-direction: column;
gap: 12px;
border-top: 1px solid rgba(108, 255, 143, 0.1);
}
.success-modal__explorer-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 14px 20px;
background: linear-gradient(135deg, #14F195 0%, #9945FF 100%);
border: none;
border-radius: 10px;
color: #fff;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
}
.success-modal__explorer-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 20px rgba(20, 241, 149, 0.3);
}
.success-modal__explorer-btn img {
width: 24px;
height: 24px;
border-radius: 4px;
}
.success-modal__close-btn {
padding: 12px 20px;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 10px;
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s;
}
.success-modal__close-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
color: #fff;
}
@media (max-width: 500px) {
.success-modal__comparison {
flex-direction: column;
gap: 16px;
}
.success-modal__arrow {
transform: rotate(90deg);
}
.success-modal__nft-card {
max-width: 160px;
}
}