/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --dark-yellow: #f9c50e;
    --background-color: #0f0f23;
    --surface-color: #1a1a2e;
    --card-color: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: #2a2a3e;
    --white: #ffffff;
    --black: #000;
    --black2: #1c1c1c;
    --dark-gray: #333333;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f59e0b 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fffefe;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: transparent;
    opacity: 1;
    backdrop-filter: none;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: -moz-box;
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    -moz-box-orient: horizontal;
    -moz-box-direction: normal;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    gap: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 2;
    padding: 0;
    background: transparent;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 18px;
    width: auto;
    transition: all 0.3s ease;
    margin-right: 20px;
    margin-left: 3px;
}

/* Left Container - three equal rectangular shapes */
.left-container {
    background: transparent;
    padding: 0;
    display: -moz-box;
    display: flex;
    align-items: stretch;
    -moz-box-orient: horizontal;
    -moz-box-direction: normal;
    flex-direction: row;
    -moz-box-pack: stretch;
    justify-content: stretch;
    -moz-box-align: stretch;
    width: 100%;
    height: 100%;
    gap: 0;
}

.left-menu-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    flex: 1;
    height: 100%;
    text-align: center;
}

.left-menu-item:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}



/* Header Container - right section split into two equal parts */
.header-container {
    background: transparent;
    padding: 0;
    display: -moz-box;
    display: flex;
    align-items: stretch;
    -moz-box-orient: horizontal;
    -moz-box-direction: normal;
    flex-direction: row;
    -moz-box-pack: stretch;
    justify-content: stretch;
    -moz-box-align: stretch;
    width: 100%;
    height: 100%;
    gap: 0;
}

.header-menu-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    flex: 1;
    height: 100%;
    text-align: center;
}

.header-menu-item:last-child {
    border-right: none;
}

.header-menu-item:hover {
    color: var(--text-primary);
}

/* Create NFT button with dark-yellow background in rectangular container */
#createNftBtn.header-menu-item {
    background: var(--dark-yellow);
    color: var(--black);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

#createNftBtn.header-menu-item:hover {
    color: var(--black);
    background: #daa520; /* Slightly lighter on hover */
}

/* Connect wallet styling with black2 background in rectangular container */
.wallet-btn.header-menu-item {
    background: var(--black2);
    color: white;
    margin: 0;
    border-right: none; /* Last item, no right border */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    height: 100%;
    text-align: center;
}

.wallet-btn.header-menu-item:hover {
    color: white !important; /* Keep white text on hover */
    background: var(--black2) !important; /* Keep same background on hover */
}

.wallet-btn.connected {
    background: var(--black2);
    color: white;
}


/* Wallet Panel - Full Width Stretch (like search results) */
.wallet-panel {
    /* Position directly under the header/nav with no gap */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Match nav bar background for a seamless extension */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    /* Remove borders that could create visual seams */
    border: none;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wallet-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wallet-panel-content {
    width: 100%;
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    order: 1;
    max-width: none;
}

.wallet-option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--black);
    background: var(--white);
    line-height: 1.8rem;
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Remove background for the "How to connect" option */
.wallet-option-item#howToCreateWallet {
    background: transparent;
    color: var(--white);
}

/* Wallet Balance Section */
.wallet-balance-section {
    background: transparent;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    text-align: center;
}

.balance-header {
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.balance-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.balance-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.balance-value.loading {
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

.balance-label {
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1.5em;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-separator {
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* Wallet Status Messages */
.wallet-status-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    min-height: 200px;
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.status-text {
    color: var(--white);
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.status-text.error-text {
    color: #ff6b6b;
    font-size: 1.3rem;
}

.wallet-status-message.error {
    /* Move error messages (install message) up */
    padding: 0.75rem 1rem;
    min-height: 100px;
}

/* Full-width install message container */
.install-message-container {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #ff9d9d;
    border: none;
    padding: 0.5rem 0;
    text-align: center;
    z-index: 1000;
    order: -1;
}

.install-message-text {
    color: #f14c4c;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.install-message-text a {
    color: #f14c4c;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s ease;
}

.install-message-text a:hover {
    color: #ff6666;
    text-decoration: underline;
}

.wallet-status-message .wallet-option-item {
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-status-message .wallet-option-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.wallet-option-item:hover {
    /* No hover effects */
}

.wallet-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--surface-color);
    flex-shrink: 0;
}

.wallet-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 0.25rem;
}

/* Enhanced Language Selector - Navigation Bar Dropdown */
.language-selector {
    position: relative;
}

.language-selector .language-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
}

.language-selector .language-btn:hover {
    color: var(--text-primary);
}

.language-btn .lang-display {
    font-weight: 600;
    font-size: 0.85rem;
}

.language-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-selector.active .language-btn i {
    transform: rotate(180deg);
}

/* Language Dropdown - Positioned under language selector */
.language-expanded-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--black);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    min-width: 200px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.language-selector.active .language-expanded-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-expanded-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.language-name {
    flex: 1;
    text-align: left;
}

.language-flag {
    font-size: 1.2rem;
    margin-left: 1rem;
}

/* Language Overlay - removed as not needed for new positioning */
.language-overlay {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    margin-top: 0;
    padding: 0;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.featured-section,
.trending-section,
.categories-section {
    padding: 4rem 0;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.collection-card {
    background: var(--card-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.collection-card:hover {
    transform: translateY(-4px);
}

.collection-banner {
    height: 150px;
    background: var(--gradient);
    position: relative;
}

.collection-info {
    padding: 1.5rem;
    text-align: center;
}

.collection-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface-color);
    margin: -40px auto 1rem;
    border: 4px solid var(--card-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Filter Tabs */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* NFT Grid */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.nft-card {
    background: var(--card-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.nft-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.nft-image {
    width: 100%;
    height: 280px;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
}

.nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-info {
    padding: 1.5rem;
}

.nft-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.nft-collection {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.nft-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nft-price-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.nft-price-usd {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific alignment for Create NFT Modal */
#createNftModal.modal.active {
    align-items: flex-start;
    padding: 20px 0;
    overflow-y: auto;
}

.modal-content {
    background: var(--card-color);
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--border-color);
}

/* Create NFT Modal - White background with detailed styling and background image */
#createNftModal .modal-content {
    position: relative;
    padding: 0; /* Remove padding from outer container */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 95%;
    max-width: 1200px;
    min-width: 320px; /* Allow smaller screens */
    height: calc(100vh + 80px); /* Extend beyond viewport by 80px */
    max-height: calc(100vh + 80px);
    font-family: Montserrat, sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    background-image: url('../images/apply_modal_bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: .5em;
    -webkit-box-shadow: 0 .3em .6em rgba(0,0,0,.16), 0 .3em .6em rgba(0,0,0,.23);
    box-shadow: 0 .3em .6em rgba(0,0,0,.16), 0 .3em .6em rgba(0,0,0,.23);
    border: none;
    overflow: hidden; /* Hide overflow on outer container */
    display: flex;
    flex-direction: column;
}

/* Create inner scrollable wrapper */
#createNftModal .modal-body {
    padding: 4em 4em 4em 4em; /* Move padding to inner container */
    margin: 0 10px 0 0; /* Add right margin to create space from edge for scrollbar */
    overflow-y: auto; /* Enable scrolling on inner container */
    flex: 1;
    height: 100%;
}

/* Tiny scrollbar styling for Create NFT Modal inner content */
#createNftModal .modal-body::-webkit-scrollbar {
    width: 4px; /* Slightly increase for better visibility */
}

#createNftModal .modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08); /* Slightly more visible track */
    border-radius: 3px;
    margin: 10px 0; /* Add margin to track */
}

#createNftModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25); /* Slightly more visible thumb */
    border-radius: 3px;
    transition: background 0.3s ease;
    margin: 5px 0; /* Add margin to thumb */
}

#createNftModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.45); /* More visible on hover */
}

/* Firefox scrollbar styling */
#createNftModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.08);
}

/* Create NFT Modal Header - Remove border and position close button */
#createNftModal .modal-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0;
    border-bottom: none;
    background: none;
    z-index: 10; /* Higher z-index to stay above content */
}

/* Create NFT Modal Close Button - Position to right */
#createNftModal .modal-close {
    background: transparent;
    border: none; /* Removed black circular border */
    color: var(--dark-gray);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 0; /* Removed circular shape */
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#createNftModal .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--black);
    /* Removed border reference */
}

/* Close icon image styling */
#createNftModal .close-icon {
    width: 28px; /* Increased from 20px */
    height: 28px; /* Increased from 20px */
    display: block;
}

/* ========================================= */
/* CREATE NFT MODAL RESPONSIVE DESIGN       */
/* ========================================= */

/* Large Desktop (1200px and above) - Default styles already applied */

/* Desktop and Laptop (992px to 1199px) */
@media (max-width: 1199px) {
    #createNftModal .modal-content {
        width: 90%;
        max-width: 1000px;
        min-width: 800px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (max-width: 991px) {
    #createNftModal .modal-content {
        width: 90%;
        max-width: 800px;
        min-width: 600px;
        height: calc(100vh + 60px); /* Reduce extension for smaller screens */
    }
    
    #createNftModal .modal-body {
        padding: 3em 2em;
    }
    
    .create-nft-subtitle {
        font-size: 1.8rem !important;
        margin-top: 0.5rem !important;
    }
    
    .btn-apply {
        font-size: 2rem !important;
        padding: 0.9rem 1.8rem !important;
    }
    
    .create-nft-actions {
        margin: 3.5rem 0 2rem 0 !important;
    }
}

/* Tablet Portrait (576px to 767px) */
@media (max-width: 767px) {
    #createNftModal .modal-content {
        width: 95%;
        max-width: 600px;
        min-width: 400px;
        height: calc(100vh + 40px);
    }
    
    #createNftModal .modal-body {
        padding: 2.5em 1.5em;
    }
    
    .create-nft-subtitle {
        font-size: 1.6rem !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
    }
    
    .btn-apply {
        font-size: 1.8rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    .create-nft-actions {
        margin: 3rem 0 1.5rem 0 !important;
    }
    
    #createNftModal .modal-close {
        width: 35px;
        height: 35px;
        padding: 0.4rem;
    }
    
    #createNftModal .close-icon {
        width: 24px;
        height: 24px;
    }
}

/* Mobile Landscape (481px to 575px) */
@media (max-width: 575px) {
    #createNftModal .modal-content {
        width: 98%;
        max-width: 500px;
        min-width: 350px;
        height: calc(100vh + 30px);
    }
    
    #createNftModal .modal-body {
        padding: 2em 1.2em;
    }
    
    .create-nft-subtitle {
        font-size: 1.4rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .btn-apply {
        font-size: 1.6rem !important;
        padding: 0.7rem 1.3rem !important;
    }
    
    .create-nft-actions {
        margin: 2.5rem 0 1rem 0 !important;
    }
}

/* Mobile Portrait (320px to 480px) */
@media (max-width: 480px) {
    #createNftModal .modal-content {
        width: 98%;
        max-width: 400px;
        min-width: 300px;
        height: calc(100vh + 20px);
    }
    
    #createNftModal .modal-body {
        padding: 1.5em 1em;
    }
    
    .create-nft-subtitle {
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
        margin-top: 0.5rem !important;
    }
    
    .btn-apply {
        font-size: 1.4rem !important;
        padding: 0.6rem 1.1rem !important;
    }
    
    .create-nft-actions {
        margin: 2rem 0 1rem 0 !important;
    }
    
    #createNftModal .modal-close {
        width: 30px;
        height: 30px;
        padding: 0.3rem;
    }
    
    #createNftModal .close-icon {
        width: 20px;
        height: 20px;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    #createNftModal .modal-content {
        width: 100%;
        min-width: 280px;
        height: calc(100vh + 10px);
        margin: 0;
    }
    
    #createNftModal .modal-body {
        padding: 1em 0.8em;
    }
    
    .create-nft-subtitle {
        font-size: 1rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
    }
    
    .btn-apply {
        font-size: 1.2rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .create-nft-actions {
        margin: 1.5rem 0 0.5rem 0 !important;
    }
}

/* Create NFT Modal Body - This is now handled above in the main Create NFT Modal section */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-option {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.wallet-option:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.wallet-option img {
    width: 32px;
    height: 32px;
    border-radius: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .search-container {
        width: 300px;
        max-width: 90%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        gap: 0;
    }
    
    .header-menu-item {
        font-size: 0.85rem;
    }
    
    #createNftBtn.header-menu-item {
        padding: 0.5rem 1rem;
    }
    
    .wallet-btn.header-menu-item {
        padding: 0.5rem 1rem;
        margin: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .header-container {
        gap: 0;
    }
    
    .header-menu-item {
        font-size: 0.8rem;
    }
    
    #createNftBtn.header-menu-item {
        padding: 0.4rem 0.8rem;
    }
    
    .wallet-btn.header-menu-item {
        padding: 0.4rem 0.8rem;
        margin: 0;
    }
    
    .language-btn .lang-code {
        font-size: 0.8rem;
    }
    
    .search-container {
        width: 250px;
        max-width: 95%;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nft-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .nav-left {
        gap: 1rem;
    }
    
    .logo-image {
        height: 16px;
        margin-right: 10px;
        margin-left: 0;
    }
    
    .header-container {
        gap: 0.25rem;
        max-height: 4rem;
    }
    
    .header-menu-item {
        font-size: 0.75rem;
    }
    
    #createNftBtn.header-menu-item {
        padding: 0.3rem 0.6rem;
    }
    
    .wallet-btn.header-menu-item {
        padding: 0.3rem 0.6rem;
        margin: 0;
    }
    
    .language-btn .lang-code {
        display: none;
    }
    
    .language-btn .flag {
        font-size: 1.1rem;
    }
    
    .search-container {
        width: 200px;
        max-width: 85%;
    }
    
    .search-input {
        padding: 0.5rem 2rem 0.5rem 2.5rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .wallet-btn span {
        display: none;
    }
    
    .nft-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wallet Modal Specific Styles */
.metamask-notice {
    text-align: center;
}

.notice-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.notice-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.wallet-connect-modal .modal-content {
    max-width: 500px;
}


/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.hidden { display: none; }
.visible { display: block; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Status Indicators */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-live {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.status-auction {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.status-sold {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid #6b7280;
}

/* Browse Page Specific Styles */
.page-header {
    margin-top: 80px;
    padding: 3rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.filters-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-toggle {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    border-color: var(--primary-color);
}

.sort-select {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 180px;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.view-btn {
    background: var(--surface-color);
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: white;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.main-content {
    padding: 2rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.filters-sidebar {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: var(--text-primary);
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: var(--text-primary);
    width: 80px;
    text-align: center;
}

.price-separator {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.currency-select select {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: var(--text-primary);
    width: 100%;
}

.clear-filters {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.clear-filters:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nft-listings {
    min-height: 600px;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* List View Styles */
.nft-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nft-grid.list-view .nft-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
}

.nft-grid.list-view .nft-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: 1.5rem;
    border-radius: 0.5rem;
}

.nft-grid.list-view .nft-info {
    flex: 1;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nft-grid.list-view .nft-details {
    flex: 1;
}

.nft-grid.list-view .nft-price {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

/* Mobile Responsive for Browse Page */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .filters-sidebar.mobile-hidden {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-left {
        justify-content: space-between;
    }
    
    .nft-grid.list-view .nft-card {
        flex-direction: column;
        text-align: center;
    }
    
    .nft-grid.list-view .nft-image {
        margin: 0 0 1rem 0;
        width: 100%;
        height: 200px;
    }
    
    .nft-grid.list-view .nft-info {
        flex-direction: column;
        gap: 1rem;
    }
}
