@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Root Variables - Light Mode */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #13193f;
    --bg-card: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b8bdd0;
    --text-muted: #7b7f96;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glow-color: rgba(99, 102, 241, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--glow-color);
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1f3a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --glow-color: rgba(99, 102, 241, 0.3);
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
}

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

/* Ensure media scales within containers on small screens */
img, video {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(900px 900px at 12% 8%, rgba(99, 102, 241, 0.08), transparent 60%),
        radial-gradient(900px 900px at 88% 82%, rgba(139, 92, 246, 0.08), transparent 60%),
        linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    padding-top: 80px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 40%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.18) 0%, transparent 55%);
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, -50px);
    }
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulseCTA {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.8);
}

header.header-hidden {
    transform: translateY(-100%);
}

header.header-scrolled {
    background: rgba(26, 31, 58, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0.55rem 0;
}

[data-theme="light"] header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

/* Main container for content */
.container {
    max-width: 1400px;
    margin: 0 auto;
	padding: 0 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-image {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--bg-secondary);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.logo-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* USDT Balance Display */
.usdt-balance {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.usdt-balance:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.balance-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.currency-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.currency-icon-small {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    justify-self: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-menu a .nav-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-menu a .nav-icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    transform: translateY(1px);
}

.nav-menu a:hover {
    color: var(--text-primary);
}

/* Slide-in menu header */
.nav-menu .menu-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.75rem;
}
.nav-menu .menu-title {
    font-weight: 700;
    color: var(--text-primary);
}
.nav-menu .menu-close {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.nav-menu .menu-close:hover {
    background: var(--accent-primary);
    color: #fff;
}

@media (max-width: 1024px) {
    .nav-menu .menu-header { display: flex; }
}
@media (max-width: 768px) {
    .nav-menu .menu-header { display: flex; }
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Ensure toggle shows menu across breakpoints */
.nav-menu.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    left: 0 !important;
}

@media (max-width: 1024px) {
    .header-actions { position: relative; }
    .header-actions .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(340px, 92vw);
        max-height: 70vh;
        flex-direction: column;
        gap: 0.75rem;
        background: var(--bg-secondary);
        padding: 1rem 1.25rem;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        z-index: 9999;
        display: none !important;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .header-actions .nav-menu.active { display: flex !important; visibility: visible; opacity: 1; transform: translateY(0); left: auto !important; }
    .header-actions .btn { display: none; }
    .theme-toggle { display: none; }
    .mobile-menu-toggle { display: inline-flex; }
    .theme-toggle-mobile { display: inline-flex; width: auto; max-width: 300px; justify-content: center; align-items: center; margin: 0 auto; text-align: center; padding: 0.75rem 1.75rem; border-radius: 12px; font-size: 0.95rem; font-weight: 600; gap: 0.5rem; box-sizing: border-box; white-space: nowrap; flex-shrink: 0; border: none; line-height: 1.2; }
    /* Ensure auth buttons show inside dropdown */
    .header-actions .nav-menu .mobile-auth-buttons { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; align-items: center; }
    .header-actions .nav-menu .mobile-auth-buttons .btn { display: inline-flex; width: auto; max-width: 300px; pointer-events: auto; }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-left: auto;
}

.header-actions .btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
    background: var(--accent-gradient);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    background: var(--accent-primary);
    color: white !important;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: shine 8s linear infinite;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.hero-buttons .btn { animation: pulseCTA 2.8s ease-in-out infinite; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}
.stat-item { animation: floatSoft 6s ease-in-out infinite; }

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Section Styling */
.section {
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header--with-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
}

.section-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border-radius: 999px;
    padding: 0.35rem 1rem;
    border: none;
    box-shadow: none;
}

.section-icon {
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--accent-primary);
    box-shadow: none;
}

.section-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title-wrap h2 {
    margin: 0;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .section-slogan {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
}

/* Slider Container */
.slider-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.slider-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
    position: relative;
}

.slider-wrapper.is-scrolling {
    cursor: grabbing;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-wrapper.is-loading::after {
    content: 'Loading NFTs…';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 39, 0.65);
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 16px;
}

/* NFT Card */
.nft-card {
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
    min-height: 240px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    scroll-snap-align: start;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    transition-delay: calc(var(--card-order, 0) * 60ms);
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.nft-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nft-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.nft-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nft-floating-icon {
    position: absolute;
    bottom: 0.85rem;
    right: 1rem;
    font-size: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.nft-card:hover .nft-image img {
    transform: scale(1.1);
}

.nft-card:hover .nft-floating-icon {
    opacity: 1;
    transform: translateY(0);
}

.nft-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: var(--accent-gradient);
    color: white;
    padding: 0.3rem 0.65rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.nft-info {
    padding: 1rem;
}

.nft-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.nft-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.65rem 0;
}

.creator-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.creator-info p {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.creator-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nft-price {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.currency-icon-inline {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

.nft-price .price-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.nft-price .price-info h4 {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Creator Card */
.creator-card {
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
    min-height: 240px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.15rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.creator-avatar-large {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin: 0 auto 0.65rem;
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
    animation: float3d 6s ease-in-out infinite;
}

.creator-card h3,
.nft-card h3 {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.creator-card p,
.nft-card p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0;
}

.creator-stats {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.creator-rank {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.creator-balance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.creator-balance img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.trending-card {
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
    min-height: 240px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.15rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.trending-thumb {
    position: relative;
    width: 65px;
    height: 65px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-gradient);
    color: white;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.trending-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.trending-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.trending-meta .meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.trending-meta .meta-value {
    font-weight: 700;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.trending-meta .meta-value img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.trending-card .btn-sm {
    margin-top: 0.5rem;
    width: 100%;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.slider-nav button:hover {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1) rotateX(10deg) rotateY(6deg);
    box-shadow: var(--shadow-glow);
}

.nft-empty-state {
    min-width: 100%;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 2px dashed var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.nft-empty-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.25));
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

/* 3D icons + animation */
@keyframes float3d {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.icon-3d {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 10px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    animation: float3d 4s ease-in-out infinite;
}

.nav-menu a .nav-icon {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 10px rgba(0, 0, 0, 0.15);
    animation: float3d 6s ease-in-out infinite;
}

.feature-icon,
.social-icon {
    animation: float3d 5s ease-in-out infinite;
}

.icon-3d:hover,
.feature-icon:hover,
.social-icon:hover,
.nav-menu a:hover .nav-icon {
    transform: translateY(-2px) rotateX(8deg) rotateY(6deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.footer-bottom p { margin: 0; color: var(--text-secondary); }

/* Icon system */
.icon { width: 1em; height: 1em; display: inline-block; fill: currentColor; vertical-align: middle; }
.icon-lg { width: 1.25em; height: 1.25em; margin-right: 0.4rem; }
.icon-primary { color: var(--text-primary); }
.icon-accent { color: var(--accent-primary); }
.nav-icon svg { width: 1rem; height: 1rem; margin-right: 0.4rem; transition: transform 0.2s ease, color 0.2s ease; }

/* Accessibility and polish */
.btn:focus-visible, .nav-menu a:focus-visible, .social-icon:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hero-content h2, .stat-item, .hero-buttons .btn { animation: none !important; }
}

/* Modern section styling */
.section.modern-section { 
  background: linear-gradient(180deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
  border-radius: 24px; 
  padding: 3rem 2rem; 
  margin: 2rem 1rem; 
  box-shadow: var(--shadow-md);
}

/* Slider edge fades removed per request */
.modern-slider-container { position: relative; }
.modern-slider-container::before, .modern-slider-container::after { content: ''; display: none; }

/* Avatar ring */
.creator-avatar-large { border: 2px solid var(--accent-primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.12); border-radius: 50%; }

/* Card polish */
.creator-card, .nft-card, .trending-card { 
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
    border-radius: 8px;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
    transform: translateX(6px);
    background: var(--bg-card);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.social-icon .icon { width: 1.1rem; height: 1.1rem; }

.social-icon:hover {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.mobile-menu-toggle::before {
    content: '☰';
    font-size: 1.8rem;
    line-height: 1;
    transition: all 0.3s ease;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle.active::before {
    content: '✕';
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme-based icon color for mobile view - matching logo text gradient */
@media (max-width: 1024px) {
    .mobile-menu-toggle::before {
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    [data-theme="light"] .mobile-menu-toggle::before {
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    [data-theme="dark"] .mobile-menu-toggle::before {
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.mobile-menu-toggle span {
    display: none;
}

.theme-toggle-mobile {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.theme-toggle-mobile:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.mobile-auth-buttons {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Hide mobile auth buttons on desktop */
@media (min-width: 1025px) {
    .mobile-auth-buttons,
    .nav-menu .mobile-auth-buttons,
    .theme-toggle-mobile,
    .mobile-menu-toggle { display: none !important; }

    .header-container { display: flex; align-items: center; gap: 1.5rem; }
    .logo-section { flex: 0 0 auto; }
    .header-actions { flex: 1 1 auto; display: flex; align-items: center; gap: 1rem; margin-left: auto; }

    .nav-menu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 1.25rem;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .header-actions .nav-menu { flex: 1 1 auto; justify-content: center; }
    .header-actions .btn,
    .header-actions .theme-toggle { display: inline-flex; }
}

@media (max-width: 1024px) {
    .nav-menu.active .mobile-auth-buttons {
        display: flex;
    }
    
    .theme-toggle-mobile {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

/* Page Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to elements */
header {
    animation: fadeIn 0.6s ease-out;
}

.hero-section {
    animation: fadeInUp 0.8s ease-out;
}

.section {
    animation: fadeInUp 0.8s ease-out;
}

.creator-card {
    animation: scaleIn 0.5s ease-out;
    animation-fill-mode: both;
}

.creator-card:nth-child(1) {
    animation-delay: 0.1s;
}

.creator-card:nth-child(2) {
    animation-delay: 0.2s;
}

.creator-card:nth-child(3) {
    animation-delay: 0.3s;
}

.creator-card:nth-child(4) {
    animation-delay: 0.4s;
}

.creator-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

.stat-card {
    animation: scaleIn 0.5s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.4s;
}

footer {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Tablet: show menu toggle and use slide-in menu */
    .header-actions .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -220px;
        width: 220px;
        max-width: 220px;
        height: calc(100vh - 70px);
        background: var(--bg-card);
        border-right: 1px solid var(--border-color);
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 1.25rem;
        transition: left 0.3s ease, display 0s 0.3s;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active {
        left: 0;
        display: flex !important;
        visibility: visible;
        opacity: 1;
        transition: left 0.3s ease, visibility 0s, opacity 0.3s ease;
        box-shadow: 2px 0 24px rgba(0, 0, 0, 0.35);
    }

    .nav-menu a {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }

    .nav-menu a:hover {
        background: var(--bg-card);
    }
}

@media (max-width: 1024px) {
    header {
        overflow: visible;
    }

    .header-container {
        padding: 0 0.75rem;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .logo-section {
        flex: 0 0 auto;
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .logo-section img {
        width: auto;
        height: 32px;
    }

    .header-actions {
        position: relative;
        right: auto;
        top: auto;
        gap: 0.5rem;
        z-index: 1001;
        margin-left: auto;
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }

    .header-actions .btn {
        display: none;
    }

    .header-actions .theme-toggle {
        display: none;
    }

    .header-actions .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .section-header--with-icon {
        gap: 0.5rem;
    }

    /* Removed full-screen overlay and fixed off-canvas panel; using dropdown anchored to toggle */

    .usdt-balance {
        top: 85px;
        right: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .balance-label {
        font-size: 0.6rem;
    }

    .balance-amount {
        font-size: 0.8rem;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        max-width: 100%;
        padding: 0 1rem;
        overflow-x: hidden;
    }
    
    .section {
        padding: 3rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-section {
        padding: 3rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-content h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: auto;
        max-width: none;
    }

    .slider-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 0 0.5rem;
    }
    
    .slider-wrapper {
        display: flex;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .creator-card,
    .nft-card,
    .trending-card {
        min-width: 250px;
        max-width: 250px;
        flex: 0 0 250px;
        min-height: 260px;
        flex-shrink: 0;
    }

    .creator-card {
        min-width: 250px;
        max-width: 250px;
        flex-shrink: 0;
    }

    .section-header {
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section {
        padding: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }

    /* Mobile menu should show theme toggle and auth buttons */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-menu.active .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        margin-top: auto;
        padding: 1rem 1.25rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active .theme-toggle-mobile {
        display: flex;
        margin: 0.5rem 0;
        width: 90%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 12px;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        color: var(--text-primary);
    }

    .nav-menu.active .mobile-auth-buttons .btn {
        width: 100%;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.9rem !important;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.5rem;
        gap: 0.35rem;
    }

    .header-actions {
        position: relative;
        right: auto;
        top: auto;
        gap: 0.35rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        padding: 0.4rem;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }

    .logo-text h1 {
        font-size: 0.9rem;
        max-width: 120px;
    }

    .logo-section img {
        width: auto;
        height: 28px;
    }

    .container {
		padding: 0 1rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nft-card,
    .trending-card {
        min-width: 100%;
    }

    .creator-card {
        min-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }
}
