/* Charketplace - Modern Marketplace Design System - Force Update: 2026-02-09 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ========================================
   CSS VARIABLES - DESIGN TOKENS (Polymarket-Inspired)
   ======================================== */
:root {
    /* Colors - Clean, Professional Palette */
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-accent: #10b981;
    --color-accent-negative: #ef4444;

    /* Backgrounds - Solid, Clean */
    --bg-page: #0a0b0d;
    --bg-surface: #131619;
    --bg-card: #1a1d21;
    --bg-card-hover: #1f2327;
    --bg-input: #0f1114;

    /* Borders */
    --border-subtle: #2a2d32;
    --border-focus: #3b82f6;

    /* Text Colors */
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Status Colors */
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-accent-bright: #34d399;

    /* Background aliases for legacy pages */
    --bg-body: var(--bg-page);
    --bg-secondary: var(--bg-surface);

    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.45);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Navbar - fixed for smooth page transitions */
    --navbar-height: 64px;
}

/* ========================================
   UNDERWATER BACKGROUND (Performance-first)
   All animations use opacity/transform only → GPU composited
   ======================================== */
.underwater-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

/* Ocean gradient – bright teal at top fading to deep dark blue */
.uw-gradient {
    position: absolute;
    inset: 0;
    background:
        /* Bright light source at top center */
        radial-gradient(ellipse 80% 45% at 50% -8%, rgba(210, 245, 255, 0.75) 0%, transparent 55%),
        radial-gradient(ellipse 55% 35% at 50% 0%, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
        /* Teal water tones */
        radial-gradient(ellipse 140% 70% at 50% 5%, rgba(30, 180, 220, 0.5) 0%, transparent 55%),
        /* Main gradient */
        linear-gradient(180deg,
            #1e8fb5 0%,
            #1a85aa 5%,
            #147a9e 12%,
            #106a90 22%,
            #0c5878 35%,
            #094560 50%,
            #073348 65%,
            #052230 80%,
            #03141e 100%);
}

/* Bright top glow – simulates sun through water surface */
.uw-gradient::before {
    content: '';
    position: absolute;
    top: -15%;
    left: 25%;
    width: 50%;
    height: 45%;
    background: radial-gradient(ellipse at 50% 0%,
            rgba(230, 248, 255, 0.6) 0%,
            rgba(160, 225, 248, 0.3) 30%,
            transparent 70%);
    filter: blur(20px);
    animation: uwGlow 12s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes uwGlow {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Light rays container */
.uw-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Individual ray – wide cone-shaped beams fanning from top center */
.uw-ray {
    position: absolute;
    top: -5%;
    height: 110%;
    background: linear-gradient(180deg,
            rgba(210, 245, 255, 0.65) 0%,
            rgba(150, 225, 250, 0.3) 20%,
            rgba(90, 190, 230, 0.12) 50%,
            transparent 80%);
    transform-origin: top center;
    will-change: opacity;
    filter: blur(8px);
}

/* Wide, prominent rays fanning from center like the reference */
.uw-ray-1 {
    left: 46%;
    width: 90px;
    transform: rotate(-22deg);
    animation: uwRayPulse 9s ease-in-out infinite;
}

.uw-ray-2 {
    left: 48%;
    width: 120px;
    transform: rotate(-12deg);
    animation: uwRayPulse 11s ease-in-out 1.5s infinite;
}

.uw-ray-3 {
    left: 49%;
    width: 100px;
    transform: rotate(-4deg);
    animation: uwRayPulse 8s ease-in-out 0.5s infinite;
}

.uw-ray-4 {
    left: 50%;
    width: 80px;
    transform: rotate(5deg);
    animation: uwRayPulse 10s ease-in-out 2s infinite;
}

.uw-ray-5 {
    left: 51%;
    width: 110px;
    transform: rotate(15deg);
    animation: uwRayPulse 12s ease-in-out 3s infinite;
}

.uw-ray-6 {
    left: 44%;
    width: 70px;
    transform: rotate(-30deg);
    animation: uwRayPulse 13s ease-in-out 4s infinite;
}

.uw-ray-7 {
    left: 53%;
    width: 85px;
    transform: rotate(26deg);
    animation: uwRayPulse 10s ease-in-out 2.5s infinite;
}

/* Opacity-only animation → runs on GPU compositor, zero layout cost */
@keyframes uwRayPulse {

    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.9;
    }
}

/* Caustic shimmer / ripple light overlay */
.uw-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 45% at 48% 8%, rgba(160, 230, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 35% at 55% 12%, rgba(180, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 25% at 40% 5%, rgba(200, 250, 255, 0.12) 0%, transparent 45%);
    animation: uwCaustic 16s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes uwCaustic {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Particle canvas */
#uwParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Vignette for depth/focus */
.uw-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 80% 70% at 50% 35%, transparent 30%, rgba(4, 15, 25, 0.55) 100%);
}

/* Mobile: disable animation entirely for performance */
@media (max-width: 768px) {

    .underwater-bg .uw-rays,
    .underwater-bg #uwParticles {
        display: none;
    }

    .uw-gradient::after {
        animation: none;
    }
}



/* Marketplace Specific Background */
.marketplace-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background: #000;
    opacity: 0.15;
    /* Reduced from 0.4 */
    overflow: hidden;
    pointer-events: none;
}

.marketplace-row {
    width: 100%;
    display: flex;
    position: relative;
    padding: 2rem 0;
}

.marketplace-row-inner {
    display: flex;
    gap: 4rem;
    /* More spacing for just text */
    animation: marquee 60s linear infinite;
    /* Slowed from 30s to 60s */
    width: max-content;
    align-items: center;
}

.marketplace-row:nth-child(even) .marketplace-row-inner {
    animation-direction: reverse;
}

/* Marketplace: conversion-optimized background (trust, social proof, focus) */
.marketplace-page .marketplace-hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Trust colors: blue (security), green (positive outcome), warm accent (approach) */
.marketplace-page .conv-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 20% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 80% 30%, rgba(251, 191, 36, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-body) 0%, #080a0e 50%, var(--bg-body) 100%);
    animation: conv-breathe 18s ease-in-out infinite;
}

/* Radial focus: draws eye toward center (products) - reduces cognitive load */
.marketplace-page .conv-focus-ring {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.marketplace-page .conv-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.9;
}

@keyframes conv-breathe {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.97;
    }
}

/* Keyframes */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Hide/simplify on mobile for performance */
@media (max-width: 768px) {
    .marketplace-bg {
        display: none;
    }

    .marketplace-page .marketplace-hero-bg {
        display: none;
    }

    /* backdrop-filter causes heavy glitches on mobile browsers */
    .hero-content {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 11, 13, 0.85);
    }

    /* Disable gradient breathing animation */
    .marketplace-page .conv-gradient {
        animation: none;
    }
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ensure native <select> dropdown options are readable on dark theme */
select option {
    background-color: #1c1d21;
    color: #f1f5f9;
}
select option:disabled {
    color: rgba(255,255,255,0.35);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-bright);
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   PAGE LAYOUT
   ======================================== */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--navbar-height);
    height: var(--navbar-height);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    transition: box-shadow var(--transition-base);
    overflow: visible;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    overflow: visible;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-icon {
    height: 28px;
    width: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
    transform: translateY(1px);
    margin-right: -0.15rem;
}

.logo:hover {
    color: var(--text-primary);
}

.logo-text {
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width var(--transition-base);
}

.logo:hover .logo-text::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width var(--transition-base);
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Burger menu */
.nav-burger-wrap {
    position: relative;
    flex-shrink: 0;
}

.nav-burger {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.45rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.nav-burger:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-default);
}

.nav-burger-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-width: 210px;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    padding: 0.4rem 0;
    overflow: hidden;
}

.nav-burger-dropdown.open {
    display: block;
}

.nav-burger-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
}

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

.nav-burger-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 0.3rem 0;
}

/* Nav Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-width: 180px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    list-style: none;
}

.nav-dropdown-item {
    list-style: none;
    padding: 0;
}

.nav-dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.nav-dropdown-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* How it works standalone nav link (marketplace only) */
.nav-how-it-works {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}
.nav-how-it-works:hover { color: var(--text-primary); }

/* Navbar search bar (marketplace only) */
.nav-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 420px;
    margin: 0 1rem;
}

.nav-search-bar svg.nav-search-icon {
    position: absolute;
    left: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
    transition: color 0.2s;
    z-index: 1;
}

.nav-search-input {
    width: 100%;
    padding: 0.5rem 2.4rem 0.5rem 2.5rem;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.nav-search-input:focus {
    outline: none;
    border-color: rgba(56,169,217,0.6);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(56,169,217,0.12);
}

.nav-search-input::placeholder { color: var(--text-muted); }

.nav-search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.nav-search-clear:hover { color: var(--text-primary); }
.nav-search-clear.visible { display: flex; }

/* Search dropdown */
.nav-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    z-index: 1200;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}
.nav-search-dropdown.open { display: block; }

.nav-search-section-label {
    padding: 0.6rem 1rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-search-result {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    color: var(--text-primary);
}
.nav-search-result:hover,
.nav-search-result.focused { background: rgba(255,255,255,0.05); }

.nav-search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59,130,246,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}
.nav-search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.nav-search-result-info { flex: 1; min-width: 0; }
.nav-search-result-title {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-search-result-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.nav-search-result-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-search-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Auth/cart right-side wrapper */
.nav-auth-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-guest-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn-login {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: transparent;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-btn-login:hover {
    color: var(--text-primary);
    border-color: var(--border-default);
    background: var(--bg-card);
}

.cart-button {
    position: relative;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.cart-button:hover {
    background: var(--bg-card);
    border-color: var(--border-focus);
    color: var(--text-primary);
}

.cart-button svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #38a9d9;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-page);
    line-height: 1;
}

.checkout-button {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

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

/* Nav auth links - match home page */
.nav-signup-btn {
    padding: 0.4rem 1.1rem !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.02em;
    background: #38a9d9 !important;
    color: #fff !important;
    border: 1.5px solid #38a9d9 !important;
    transition: all 0.2s ease !important;
}

.nav-signup-btn:hover {
    background: #2e95c2 !important;
    border-color: #2e95c2 !important;
    color: #fff !important;
}

.nav-signup-btn::before {
    display: none !important;
}

.nav-logout-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-profile-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#userAvatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

#userAvatar svg {
    width: 20px;
    height: 20px;
}

.nav-profile-link:hover {
    color: var(--text-primary);
}

/* ========================================
   GAME TICKER BAR
   ======================================== */
.ticker-bar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    z-index: 999;
    height: 48px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.ticker-item {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    padding: 0 1rem;
    transition: color 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.ticker-item:hover {
    color: var(--text-primary);
}

.ticker-sep {
    color: rgba(59, 130, 246, 0.4);
    font-size: 0.5rem;
}

/* Push hero down to clear ticker */
.hero {
    padding-top: calc(var(--navbar-height) + 48px + var(--space-xl));
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-page), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(10, 11, 13, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(59, 130, 246, 0.08), 0 0 100px rgba(16, 185, 129, 0.05);
    animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero h1 {
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s backwards;
}

@keyframes cf-theme-cycle {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cf-lightshow {
    from { background-position: 0% center; }
    to   { background-position: 400% center; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ========================================
   CSFLOAT-INSPIRED HOMEPAGE SECTIONS
   ======================================== */

/* ========================================
   SCROLL REVEAL — per-section animation types
   ======================================== */

/* Shared enter transition */
.sr-slide-up, .sr-slide-left, .sr-slide-right,
.sr-zoom, .sr-fade-blur, .sr-scale-fade {
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.65s ease;
}
/* Faster exit transition */
.sr-slide-up.sr-above, .sr-slide-left.sr-above, .sr-slide-right.sr-above,
.sr-zoom.sr-above, .sr-fade-blur.sr-above, .sr-scale-fade.sr-above {
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

/* ── slide-up: feature cards, hero ── */
.sr-slide-up              { opacity: 0; transform: translateY(56px); }
.sr-slide-up.sr-visible   { opacity: 1; transform: translateY(0); }
.sr-slide-up.sr-above     { opacity: 0; transform: translateY(-36px); }

/* ── slide-left: journey text ── */
.sr-slide-left            { opacity: 0; transform: translateX(-64px); }
.sr-slide-left.sr-visible { opacity: 1; transform: translateX(0); }
.sr-slide-left.sr-above   { opacity: 0; transform: translateX(-32px) translateY(-16px); }

/* ── slide-right: journey steps ── */
.sr-slide-right            { opacity: 0; transform: translateX(64px); }
.sr-slide-right.sr-visible { opacity: 1; transform: translateX(0); }
.sr-slide-right.sr-above   { opacity: 0; transform: translateX(32px) translateY(-16px); }

/* ── zoom: game category cards ── */
.sr-zoom            { opacity: 0; transform: scale(0.86); }
.sr-zoom.sr-visible { opacity: 1; transform: scale(1); }
.sr-zoom.sr-above   { opacity: 0; transform: scale(1.04) translateY(-18px); }

/* ── fade-blur: section headings, trust heading ── */
.sr-fade-blur            { opacity: 0; filter: blur(10px); transform: translateY(24px); }
.sr-fade-blur.sr-visible { opacity: 1; filter: blur(0px); transform: translateY(0); }
.sr-fade-blur.sr-above   { opacity: 0; filter: blur(6px);  transform: translateY(-22px); }

/* ── scale-fade: seller CTA ── */
.sr-scale-fade            { opacity: 0; transform: scale(0.9) translateY(32px); }
.sr-scale-fade.sr-visible { opacity: 1; transform: scale(1)   translateY(0); }
.sr-scale-fade.sr-above   { opacity: 0; transform: scale(1.02) translateY(-22px); }

@media (prefers-reduced-motion: reduce) {
    .sr-slide-up, .sr-slide-left, .sr-slide-right,
    .sr-zoom, .sr-fade-blur, .sr-scale-fade { transition: none; }
}

/* ── HERO — Centered layout ── */
.cf-hero {
    padding-top: calc(var(--navbar-height) + 80px);
    padding-bottom: 80px;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cf-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cf-hero-text {
    will-change: opacity, transform;
}

.cf-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.cf-hero-accent {
    -webkit-text-fill-color: #7dd3fc;
    color: #7dd3fc;
}

.cf-hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.cf-hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.cf-hero-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-md) !important;
    gap: 0.5rem;
}

.cf-hero-btn.btn-primary {
    background: #38a9d9;
    color: #fff;
    border: none;
}

.cf-hero-btn.btn-primary:hover {
    filter: brightness(1.12);
}

/* ── Hero Floating Product Card ── */
.cf-hero-visual {
    display: flex;
    justify-content: center;
    perspective: 800px;
}

.cf-hero-card {
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.08);
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: cfCardFloat 6s ease-in-out infinite;
}

.cf-hero-card:hover {
    transform: rotateY(0) rotateX(0) translateY(-4px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(59, 130, 246, 0.12);
}

@keyframes cfCardFloat {

    0%,
    100% {
        transform: rotateY(-4deg) rotateX(2deg) translateY(0);
    }

    50% {
        transform: rotateY(-4deg) rotateX(2deg) translateY(-8px);
    }
}

.cf-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border-bottom: 1px solid var(--border-subtle);
}

.cf-hero-card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fbbf24;
}

.cf-hero-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.cf-hero-card-img {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.cf-hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cf-hero-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.cf-hero-card-body {
    padding: 1rem;
}

.cf-hero-card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cf-hero-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.cf-hero-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cf-hero-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cf-hero-card-rating {
    font-size: 0.85rem;
    color: #fbbf24;
    font-weight: 600;
}

.cf-hero-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.cf-hero-card-status {
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 500;
}

.cf-hero-card-buybtn {
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cf-hero-card-buybtn:hover {
    background: var(--color-primary-hover);
    color: white;
    transform: translateY(-1px);
}

/* ── TABS BAR ── */
.cf-tabs-section {
    position: relative;
    z-index: 1;
    padding: 0 var(--space-md);
    margin-bottom: 3rem;
}

.cf-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0;
}

.cf-tabs-left {
    display: flex;
    gap: 0;
}

.cf-tab {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.cf-tab:hover {
    color: var(--text-primary);
}

.cf-tab-active {
    color: var(--text-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.cf-tabs-visit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.cf-tabs-visit:hover {
    gap: 0.75rem;
    color: var(--color-primary);
}

.cf-featured-scroll {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

/* ── FEATURE CARDS — 2×2 grid ── */
.cf-features-section {
    position: relative;
    z-index: 1;
    padding: 3rem var(--space-md);
}

.cf-features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.cf-feature-card {
    background: rgba(26, 29, 33, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cf-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.cf-feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cf-feature-card:hover::before {
    opacity: 1;
}

.cf-feature-visual {
    margin-bottom: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cf-feature-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* P2P Diagram */
.cf-p2p-diagram {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.cf-p2p-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cf-p2p-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cf-p2p-node span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cf-p2p-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.cf-p2p-label {
    font-size: 0.65rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Auction / Verified Badge */
.cf-auction-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cf-badge-icon {
    width: 72px;
    height: 72px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-badge-stars {
    display: flex;
    gap: 0.15rem;
    font-size: 1.1rem;
    color: #fbbf24;
}

/* Fee Comparison */
.cf-fee-compare {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cf-fee-bar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cf-fee-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cf-fee-fill {
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    transition: width 1s ease;
}

.cf-fee-competition .cf-fee-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.cf-fee-ours .cf-fee-fill {
    background: linear-gradient(90deg, var(--color-primary), #60a5fa);
}

/* Instant Delivery Diagram */
.cf-instant-diagram {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
}

.cf-instant-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.cf-instant-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cf-instant-step span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cf-instant-arrow {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: -1rem;
}

.cf-instant-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    background: var(--color-success);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── TRUST STATS ── */
.cf-trust-section {
    position: relative;
    z-index: 1;
    padding: 4rem var(--space-md);
    text-align: center;
}

.cf-trust-heading {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.cf-trust-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cf-trust-card {
    background: rgba(26, 29, 33, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    transition: all 0.3s;
}

.cf-trust-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.cf-trust-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.cf-trust-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── JOURNEY TIMELINE ── */
.cf-journey-section {
    position: relative;
    z-index: 1;
    padding: 4rem var(--space-md);
}

.cf-journey-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cf-journey-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cf-journey-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.cf-journey-text {
    position: sticky;
    top: calc(var(--navbar-height) + 80px);
}

.cf-journey-timeline {
    position: relative;
    padding-left: 30px;
}

.cf-journey-line {
    position: absolute;
    left: 8px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), rgba(59, 130, 246, 0.1));
    border-radius: 2px;
}

.cf-journey-step {
    position: relative;
    margin-bottom: 1.5rem;
}

.cf-journey-step:last-child {
    margin-bottom: 0;
}

.cf-journey-dot {
    position: absolute;
    left: -26px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: var(--color-primary);
    border: 3px solid var(--bg-page);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cf-journey-card {
    background: rgba(26, 29, 33, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s;
}

.cf-journey-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cf-journey-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cf-journey-card-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.cf-journey-card-content p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ── SELLER CTA ── */
.cf-seller-section {
    position: relative;
    z-index: 1;
    padding: 7rem var(--space-md) 4rem;
}

.cf-seller-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    background: rgba(26, 29, 33, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
    overflow: hidden;
}

.cf-seller-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cf-seller-content {
    position: relative;
    z-index: 1;
}

.cf-seller-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cf-seller-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cf-seller-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── CSFLOAT RESPONSIVE ── */
@media (max-width: 1024px) {
    .cf-features-grid {
        grid-template-columns: 1fr;
    }

    .cf-journey-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cf-journey-text {
        position: static;
    }
}

@media (max-width: 768px) {
    .cf-hero {
        padding-top: calc(var(--navbar-height) + 40px);
        padding-bottom: 40px;
        min-height: auto;
    }

    .cf-hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .cf-tabs-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cf-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cf-seller-inner {
        padding: 2rem 1.5rem;
    }

    .cf-hero-buttons {
        flex-direction: column;
    }

    .cf-hero-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cf-trust-grid {
        grid-template-columns: 1fr;
    }

    .cf-p2p-diagram {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cf-p2p-arrow svg {
        transform: rotate(90deg);
    }

    .cf-instant-diagram {
        flex-wrap: wrap;
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: var(--space-sm) auto 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4), 0 0 20px rgba(16, 185, 129, 0.25);
}

.section-header p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.hiw-step {
    position: relative;
    background: rgba(19, 22, 25, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hiw-step:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.08);
}

.hiw-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.hiw-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.hiw-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.hiw-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .hiw-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

/* --- Marketplace Layout & Filters --- */
.marketplace-layout {
    margin-top: var(--space-lg);
}

.marketplace-filters {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.marketplace-search-wrap {
    flex: 1 1 280px;
    min-width: 0;
}

.marketplace-search-input {
    width: 100%;
    padding: 0.75rem 1.15rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
}

.marketplace-search-input::placeholder {
    color: var(--text-muted);
}

.marketplace-search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.marketplace-filter-btns {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.marketplace-filter-btn {
    padding: 0.55rem 1.1rem;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.marketplace-filter-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
    color: var(--text-primary);
}

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

.marketplace-filter-btn-icon .icon-svg {
    width: 14px;
    height: 14px;
}

/* --- Filter Modal --- */
.filter-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.filter-modal.active {
    display: flex;
}

.filter-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.filter-modal-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-modal-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.filter-modal-body {
    padding: 1.25rem 1.5rem;
}

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

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.filter-checkbox:hover {
    color: var(--text-primary);
}

.filter-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-subtle);
    border-radius: 3px;
    background: var(--bg-surface);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: 700;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* ========================================
   GAME CATEGORY CARDS (Home Page)
   Cinematic full-bleed image cards
   ======================================== */
.game-category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 190px;
    gap: 0.75rem;
}

.game-category-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    aspect-ratio: unset;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
}

.game-category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(16, 185, 129, 0.4)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 5;
}

.game-category-card:hover::after {
    opacity: 1;
}

.game-category-card:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(59, 130, 246, 0.15),
        0 0 60px rgba(16, 185, 129, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
}

/* Cover Image */
.game-category-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    filter: brightness(0.82) saturate(1.05);
    z-index: 1;
}

.game-category-card:hover .game-category-img {
    transform: scale(1.07);
    filter: brightness(0.62) saturate(1.1);
}

/* Persistent dark gradient at bottom */
.game-category-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(to top,
            rgba(5, 6, 8, 0.97) 0%,
            rgba(5, 6, 8, 0.65) 38%,
            rgba(5, 6, 8, 0.12) 65%,
            transparent 100%);
    padding: 1rem 1.1rem;
    transition: background 0.4s ease;
}

.game-category-card:hover .game-category-overlay {
    background:
        linear-gradient(to top,
            rgba(5, 6, 8, 1) 0%,
            rgba(5, 6, 8, 0.88) 48%,
            rgba(5, 6, 8, 0.45) 75%,
            transparent 100%);
}

/* Info block */
.game-category-info {
    width: 100%;
    transform: translateY(6px);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-category-card:hover .game-category-info {
    transform: translateY(0);
}

/* Genre tag pill */
.game-category-tag {
    display: none;
}

/* Game title */
.game-category-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Short description */
.game-category-desc {
    font-size: 0.78rem;
    color: rgba(228, 228, 235, 0.72);
    margin: 0 0 0.7rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.32s ease 0.04s, transform 0.32s ease 0.04s;
}

.game-category-card:hover .game-category-desc {
    opacity: 1;
    transform: translateY(0);
}

/* CTA link */
.game-category-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s, color 0.2s;
}

.game-category-card:hover .game-category-cta {
    opacity: 1;
    transform: translateY(0);
}

.game-category-cta:hover {
    color: var(--color-accent-bright);
}

/* Responsive */
@media (max-width: 1024px) {
    .game-category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    .game-category-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .game-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
        grid-auto-rows: 160px;
    }
}

@media (max-width: 640px) {
    .game-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        grid-auto-rows: 140px;
    }

    .game-category-title {
        font-size: 0.82rem;
    }

    .game-category-desc,
    .game-category-cta {
        display: none;
    }
}

/* --- Product Card --- */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 0;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(59, 130, 246, 0.12),
        0 0 48px rgba(16, 185, 129, 0.06);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

/* --- Product Image / Icon Area --- */
.product-image {
    width: 100%;
    height: 210px;
    background: linear-gradient(160deg, var(--bg-surface) 0%, rgba(59, 130, 246, 0.04) 60%, rgba(16, 185, 129, 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* --- Badges --- */
.product-badges {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.badge {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-new {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    backdrop-filter: blur(4px);
}

.badge-hot {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    backdrop-filter: blur(4px);
}

.badge-premium {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    backdrop-filter: blur(4px);
}

.badge-subscription {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    backdrop-filter: blur(4px);
}

.badge-updated {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    backdrop-filter: blur(4px);
}

/* --- Card Body --- */
.product-card-body {
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-category {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: auto;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card Footer (Price + Button) --- */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    margin-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.75rem;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.product-footer .btn {
    padding: 0.45rem 1rem !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-footer .btn::before {
    display: none !important;
}

/* --- Stats Bar --- */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-warning);
    font-size: 0.78rem;
    font-weight: 600;
}

.product-stats {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 0.7rem 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- Responsive Product Cards --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image {
        height: 170px;
    }

    .marketplace-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .marketplace-filter-btns {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }
}

/* ========================================
   SELLER CTA SECTION
   ======================================== */
.seller-cta {
    margin-bottom: var(--space-xl);
}

.seller-cta-card {
    display: block;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    width: 100%;
    max-width: min(900px, 100%);
    margin: 0 auto;
    overflow: hidden;
}

.seller-cta-card:hover {
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md), 0 0 32px rgba(59, 130, 246, 0.15), 0 0 48px rgba(16, 185, 129, 0.08);
}

.seller-cta-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.seller-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    padding-left: calc(var(--space-lg) + 4px);
}

.seller-cta-body {
    flex: 1;
    min-width: 0;
}

.seller-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.seller-cta-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
    max-width: 42ch;
}

.seller-cta-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.seller-cta-actions .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .seller-cta-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: var(--space-md);
        padding-left: var(--space-md);
    }

    .seller-cta-accent {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    }

    .seller-cta-body {
        padding-top: 0;
    }

    .seller-cta-desc {
        max-width: none;
    }

    .seller-cta-actions {
        flex-direction: column;
    }

    .seller-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   BENEFITS GRID
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ========================================
   FORM STYLES
   ======================================== */
.seller-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group select,
.form-group textarea {
    width: 100%;
}

.form-message {
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-top: var(--space-lg);
}

/* ========================================
   FILE UPLOAD & VIRUS SCANNER
   ======================================== */
.drop-zone {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    background: var(--bg-card);
    transition: all var(--transition-base);
    cursor: pointer;
}

.drop-zone:hover {
    border-color: var(--color-primary);
    background: var(--bg-surface);
}

.drop-zone-active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    transform: scale(1.02);
}

.drop-zone-content {
    padding: var(--space-lg);
}

.drop-zone-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.drop-zone h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.file-info {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.file-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.scan-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.scan-header {
    margin-bottom: var(--space-lg);
}

.scan-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.scan-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.scan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
    border-radius: 10px;
}

.scan-status {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    text-align: center;
}

.scan-results {
    text-align: center;
    padding: var(--space-lg) 0;
}

.scan-result-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.scan-results h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.scan-results p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.scan-details {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: left;
}

.scan-detail-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.scan-detail-item:last-child {
    border-bottom: none;
}

.scan-detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.scan-detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   FILTERS & SEARCH
   ======================================== */
.filters-section {
    margin-bottom: var(--space-xl);
}

.search-bar {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-card);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.category-filters {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

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

/* Marketplace page: search + filter buttons bar */
.marketplace-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-card);
}

.marketplace-search-wrap {
    margin-bottom: var(--space-md);
}

.marketplace-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.marketplace-search-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.marketplace-search-input::placeholder {
    color: var(--text-muted);
}

.marketplace-filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.marketplace-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.marketplace-filter-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

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

.marketplace-filter-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.marketplace-filter-btn .icon-svg {
    width: 1rem;
    height: 1rem;
    color: inherit;
}

.marketplace-filter-btn.active .icon-svg {
    color: white;
}

@media (min-width: 640px) {
    .marketplace-filters {
        display: flex;
        align-items: center;
        gap: var(--space-md);
        padding: var(--space-sm) var(--space-md);
    }

    .marketplace-search-wrap {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }

    .marketplace-filter-btns {
        flex-shrink: 0;
    }
}

/* ========================================
   FILTER MODAL
   ======================================== */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.filter-modal.active {
    display: block;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.filter-modal-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.filter-modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.filter-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.filter-checkbox:hover {
    color: var(--text-primary);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background: var(--bg-input);
    transition: all var(--transition-fast);
    position: relative;
}

.filter-checkbox input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-checkbox input[type="checkbox"]:hover {
    border-color: var(--border-focus);
}

.marketplace-layout {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-lg);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-xl) var(--space-md) var(--space-md);
    margin-top: var(--space-xl);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {

    /* ── Mobile Nav: Hamburger Menu ─────────────────── */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        cursor: pointer;
        z-index: 1001;
        order: 3;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        border-top: 1px solid var(--border-subtle);
        animation: mobileMenuSlideIn 0.25s ease-out;
    }

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

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

    body.nav-open .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
        transition: background 0.15s;
    }

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

    .nav-links a::after {
        display: none;
    }

    .nav-signup-btn {
        text-align: center;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Sell dropdown on mobile */
    .dropdown-menu-item .dropdown-content {
        position: static !important;
        display: none;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 0 1rem !important;
        margin: 0 !important;
    }

    .dropdown-menu-item:hover .dropdown-content,
    .dropdown-menu-item .dropdown-content[style*="block"] {
        display: block !important;
    }

    .nav-dropdown-link {
        padding: 0.75rem 1rem !important;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .cart-button {
        order: 2;
        margin-left: auto;
    }

    .checkout-button {
        display: none;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        height: 24px;
        width: 24px;
    }

    /* ── Hero Section ── */
    .hero {
        min-height: auto;
        padding: calc(var(--navbar-height) + 2rem) 1rem 3rem;
    }

    .hero-content {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Sections ── */
    .section {
        padding: 2rem 1rem;
    }

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

    .section-header p {
        font-size: 0.9rem;
    }

    /* ── Footer ── */
    .footer {
        padding: 2rem 1rem 1rem;
    }

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

    .footer-section h3 {
        font-size: 1rem;
    }

    /* ── Product Grid ── */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image {
        height: 180px;
    }

    .product-card-body {
        padding: 1rem 1.15rem;
    }

    /* ── Modal ── */
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-md);
    }

    .modal {
        padding: 0.5rem;
    }

    /* ── Cart Sidebar ── */
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }

    /* ── Marketplace Filters ── */
    .marketplace-filters {
        padding: 0.75rem;
    }

    .marketplace-filter-btns {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .marketplace-filter-btns::-webkit-scrollbar {
        display: none;
    }

    /* ── Stats Grid ── */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Seller CTA (marketplace header) ── */
    .seller-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .seller-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .seller-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Benefits Grid ── */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ── Category Filters ── */
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }



    /* ── Dashboard ── */
    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-stats-grid,
    .dashboard-wrap .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Small Devices (≤640px) ── */
@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ── Extra Small Devices (≤480px) ── */
@media (max-width: 480px) {
    .footer-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.875rem;
    }

    .hero-content {
        padding: 1.25rem 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .product-card-body {
        padding: 0.85rem 1rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-footer .btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.72rem !important;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .game-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-cta-card {
        border-radius: var(--radius-md);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.hidden {
    display: none !important;
}

/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 92vw;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-header-badge {
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.close-cart-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s;
    line-height: 1;
}

.close-cart-btn:hover {
    color: var(--text-primary);
}

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-subtle) transparent;
}

.cart-sidebar-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.cart-item-image {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.825rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.15s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: var(--color-danger);
}

.cart-sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.75rem;
    background: #38a9d9;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.cart-checkout-btn:hover {
    background: #2b8db8;
}

.cart-continue-btn {
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.825rem;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
}

.cart-continue-btn:hover {
    color: var(--text-primary);
}

.empty-cart-message {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.empty-cart-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38a9d9;
}

.empty-cart-message p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   MODAL STYLES (Clean & Modern)
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    /* Modern blur effect */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1e1e1f;
    /* Darker, cleaner background */
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-subtle);
    width: 90%;
    max-width: 900px;
    /* Wider for 2-column layout */
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideInUp 0.3s ease;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* New Grid Layout for Product Modal */
.product-modal-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
    }
}

.product-modal-image-container {
    background: var(--bg-surface);
    border-radius: 8px;
    height: 350px;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 1px solid var(--border-subtle);
}

.product-modal-details {
    display: flex;
    flex-direction: column;
}

.product-modal-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.product-modal-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.product-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Skinport-Style Buttons */
.btn-skinport-primary {
    background-color: #0072ef;
    /* Skinport Blue */
    color: white;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 114, 239, 0.2);
}

.btn-skinport-primary:hover {
    background-color: #0060cb;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px -2px rgba(0, 114, 239, 0.3);
}

.btn-skinport-secondary {
    background-color: #2a2a2b;
    /* Dark Grey */
    color: #ffffff;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    border: 1px solid #3f3f42;
    /* Subtle border */
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-skinport-secondary:hover {
    background-color: #3f3f42;
    border-color: #525255;
}

.product-modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.product-modal-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: var(--color-success);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ========================================
   AUTH PAGES (Login/Signup)
   ======================================== */
.auth-section {
    padding-top: 120px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

.auth-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-subtle);
}

.auth-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

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

/* ========================================
   MODAL VARIANTS
   ======================================== */
.modal-sm {
    max-width: 500px;
}

.modal-md {
    max-width: 700px;
}

.modal-lg {
    max-width: 900px;
}

.modal-body-scrollable {
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
    padding-right: 17px;
    /* Compensate for scrollbar */
}

/* Custom Scrollbar for Modal Body */
.modal-body-scrollable::-webkit-scrollbar {
    width: 8px;
}

.modal-body-scrollable::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 4px;
}

.modal-body-scrollable::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

.modal-body-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.modal-footer {
    background: var(--bg-surface);
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1rem;
}

.modal-footer.sticky-bottom {
    position: sticky;
    bottom: -1px;
    margin-right: -10px;
    padding-right: 17px;
    z-index: 10;
}

/* ========================================
   FORM INPUT REFINEMENTS
   ======================================== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-card);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-input:focus-visible,
.search-input:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.checkbox-wrapper {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ========================================
   SELLER APPLICATION PAGE
   ======================================== */
.seller-hero {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-xl) var(--space-md);
    padding-top: calc(var(--navbar-height) + var(--space-xl));
    position: relative;
    z-index: 1;
}

.seller-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.seller-hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.seller-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.seller-hero p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: var(--space-lg);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seller-trust-stats {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
}

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

.trust-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.trust-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Step progress */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.step-item.active .step-number {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
}

.step-item.completed .step-number {
    border-color: var(--color-accent);
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent);
}

.step-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--text-primary);
}

.step-connector {
    width: 40px;
    height: 2px;
    background: var(--border-subtle);
    margin: 0 0.5rem;
    align-self: flex-start;
    margin-top: 17px;
}

@media (max-width: 600px) {
    .step-progress {
        gap: var(--space-sm);
    }

    .step-connector {
        width: 20px;
    }
}

/* Form cards */
.seller-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-card);
}

.seller-form-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.seller-form-card .form-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.seller-form-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.seller-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 640px) {
    .seller-form-row {
        grid-template-columns: 1fr;
    }
}

.seller-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.seller-form-group .required {
    color: var(--color-danger);
}

.seller-form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.seller-form-group .form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.seller-form-group input[type="text"],
.seller-form-group input[type="email"],
.seller-form-group input[type="url"],
.seller-form-group input[type="number"],
.seller-form-group select,
.seller-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.seller-form-group input:focus,
.seller-form-group select:focus,
.seller-form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.seller-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.25rem;
}

.seller-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.seller-btn-back {
    padding: 0.625rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.seller-btn-back:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.seller-btn-next,
.seller-btn-submit {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.seller-btn-next:hover,
.seller-btn-submit:hover {
    background: var(--color-primary-hover);
}

.seller-btn-submit {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.seller-btn-submit:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), #0d9668);
}

/* Payment info box */
.seller-payment-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.seller-payment-info-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.seller-payment-info-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Checkboxes */
.seller-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.seller-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.seller-checkbox:hover {
    border-color: var(--border-focus);
}

.seller-checkbox input {
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Drop zones */
.seller-drop-zone {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    background: var(--bg-surface);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.seller-drop-zone:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.06);
}

.seller-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.seller-drop-zone-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.seller-drop-zone-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.seller-drop-zone-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.seller-drop-zone .browse-link {
    color: var(--color-primary);
    font-weight: 600;
}

.seller-file-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

.seller-file-info-details {
    flex: 1;
    min-width: 0;
}

.seller-file-info-name,
.seller-file-info-icon {
    font-size: 0.9375rem;
}

.seller-file-info-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    line-height: 1;
}

.seller-file-info-remove:hover {
    color: var(--color-danger);
}

.seller-scan-card {
    margin-top: 0.5rem;
    padding: var(--space-md);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
}

.seller-scan-result-title {
    color: var(--color-primary);
    font-weight: 600;
}

.seller-scan-result-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    line-height: 1.5;
}

.seller-image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.seller-image-slot {
    aspect-ratio: 1;
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
}

.seller-image-slot:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.06);
}

.seller-image-slot.filled {
    border-style: solid;
    border-color: var(--border-subtle);
}

.seller-image-slot.filled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Review section */
.seller-review-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.seller-review-group {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.seller-review-group:last-child {
    border-bottom: none;
}

.seller-review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: 0.5rem;
}

.seller-review-item:last-child {
    margin-bottom: 0;
}

.seller-review-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.seller-review-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: right;
}

/* Terms acceptance */
.seller-terms-box {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
}

.seller-terms-box label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
}

.seller-terms-box input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.seller-terms-box span {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.seller-terms-box a {
    color: var(--color-primary);
    text-decoration: underline;
}

.seller-terms-box a:hover {
    color: var(--color-accent-bright);
}

/* Success state */
.seller-success {
    text-align: center;
    padding: var(--space-lg);
}

.seller-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-success);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.seller-success h2 {
    margin-bottom: 0.5rem;
}

.seller-success-details {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Learn cards */
.seller-learn-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

.seller-learn-card:hover {
    border-color: var(--border-focus);
    background: var(--bg-card-hover);
}

.seller-learn-card-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.seller-learn-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.seller-learn-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.45;
}

/* ========================================
   SELLER DASHBOARD
   ======================================== */
.dashboard-wrap {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.dashboard-header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.dashboard-header-title p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

.dashboard-header-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.dashboard-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-lg);
}

.dashboard-status-banner.approved {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
}

.dashboard-status-banner.pending {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
}

.dashboard-status-banner.setup {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
}

.dashboard-status-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: var(--color-warning);
}

.dashboard-status-badge.approved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.dashboard-status-badge.setup {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

.dashboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
}

.dashboard-tab {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.dashboard-tab:hover {
    color: var(--text-primary);
}

.dashboard-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
}

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

.tab-content-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.tab-content-heading h2 {
    margin: 0;
    font-size: 1.25rem;
}

.dashboard-tab-title {
    margin: 0 0 var(--space-md);
    font-size: 1.25rem;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.dashboard-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: all var(--transition-base);
}

.dashboard-stat-card:hover {
    border-color: var(--border-focus);
}

.dashboard-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dashboard-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dashboard-stat-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.dashboard-stat-meta.positive {
    color: var(--color-success);
}

.dashboard-stat-meta.negative {
    color: var(--color-danger);
}

.dashboard-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.dashboard-balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.dashboard-balance-card.highlight {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.dashboard-balance-card-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dashboard-balance-card-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.dashboard-balance-card-value.success {
    color: var(--color-success);
}

.dashboard-balance-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.dashboard-section h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.dashboard-section-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-product-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-base);
}

.dashboard-product-item:hover {
    border-color: var(--border-focus);
}

.dashboard-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.dashboard-empty-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    opacity: 0.6;
}

.dashboard-action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition-base);
}

.dashboard-action-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

/* Legacy stat card classes (used by seller-dashboard HTML) */
.dashboard-wrap .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.dashboard-wrap .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: all var(--transition-base);
}

.dashboard-wrap .stat-card:hover {
    border-color: var(--border-focus);
}

.dashboard-wrap .stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.dashboard-wrap .stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-wrap .stat-icon {
    font-size: 1.25rem;
    opacity: 0.8;
}

.dashboard-wrap .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.dashboard-wrap .stat-change {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dashboard-wrap .stat-change.positive {
    color: var(--color-success);
}

.dashboard-wrap .stat-change.negative {
    color: var(--color-danger);
}

.dashboard-wrap .chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.dashboard-wrap .chart-container h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.dashboard-wrap .product-list-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-base);
}

.dashboard-wrap .product-list-item:hover {
    border-color: var(--border-focus);
}

.dashboard-wrap .empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.dashboard-wrap .empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-stats-grid,
    .dashboard-wrap .stats-grid {
        grid-template-columns: 1fr;
    }
}