/* EloRiser Listings Page - Red Theme with Custom Background */

:root {
    --navy-dark: #1a0a0f;
    --navy-primary: #2a1520;
    --navy-light: #3a2030;
    --red-electric: #ff6b6b;
    --red-radiant: #ff4757;
    --red-soft: #ff7979;
    --pink-accent: #ff6b9d;
    --coral-glow: #ff8787;
    --text-primary: #ffffff;
    --text-secondary: #d4a5b8;
    --glass-bg: rgba(42, 21, 32, 0.7);
    --glass-border: rgba(255, 107, 107, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--red-electric), var(--red-radiant));
    --gradient-glass: linear-gradient(135deg, rgba(42, 21, 32, 0.8), rgba(58, 32, 48, 0.6));
    --shadow-glow: 0 8px 32px rgba(255, 107, 107, 0.3);
    --shadow-hover: 0 12px 40px rgba(255, 71, 87, 0.5);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 8px 30px rgba(255, 107, 107, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--navy-dark);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background with Custom Image */
.main-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/authbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

.main-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 10, 15, 0.85) 0%, 
        rgba(42, 21, 32, 0.8) 50%, 
        rgba(58, 32, 48, 0.85) 100%);
}

.particle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 10, 15, 0.95) 0%, 
        rgba(42, 21, 32, 0.9) 50%, 
        rgba(58, 32, 48, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 4px 30px rgba(255, 107, 107, 0.1);
}

.main-header.scrolled::before {
    opacity: 1;
}

.main-header.scrolled {
    box-shadow: 0 8px 40px rgba(255, 107, 107, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem;
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    filter: blur(20px);
}

.logo:hover::before {
    opacity: 0.3;
}

.logo:hover {
    transform: translateY(-2px) scale(1.05);
}

.logo-image {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(255, 107, 107, 0.5));
    transition: filter 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 6px 30px rgba(255, 107, 107, 0.8));
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 107, 107, 0.15);
    backdrop-filter: blur(10px);
}

.desktop-nav {
    display: flex;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 0.15;
}

.nav-link.active {
    color: #ffffff !important;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    z-index: 2;
}

.nav-link.active::before {
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
    cursor: pointer;
}

.user-profile > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 157, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.user-profile > div:first-child::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-profile > div:first-child:hover {
    border-color: var(--red-electric);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.user-profile > div:first-child:hover::before {
    opacity: 0.1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    overflow: hidden;
    border: 2px solid var(--red-electric);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    z-index: 1;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    position: relative;
    z-index: 1;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.user-balance {
    font-size: 0.85rem;
    color: var(--red-electric);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    min-width: 220px;
    background: linear-gradient(135deg, rgba(42, 21, 32, 0.95), rgba(58, 32, 48, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.75rem;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 40px rgba(255, 107, 107, 0.2);
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(42, 21, 32, 0.95);
    border-left: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    transform: rotate(45deg);
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 107, 107, 0.15);
    color: var(--text-primary);
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
    color: var(--red-electric);
}

.dropdown-item.logout {
    color: #ff4757;
    border-top: 1px solid rgba(255, 107, 107, 0.2);
    margin-top: 0.5rem;
}

.dropdown-item.logout:hover {
    background: rgba(255, 71, 87, 0.15);
}

.notification-badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 700;
    margin-left: auto;
}

.cta-button {
    padding: 0.85rem 1.75rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
}

.cta-button:hover::before {
    opacity: 1;
}

.mobile-toggle {
    display: none;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--red-electric);
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

.mobile-cta-button {
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

/* Main Content */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
}

.marketplace-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.filters-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-title i {
    color: var(--red-electric);
}

.filters-clear {
    color: var(--red-electric);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filters-clear:hover {
    color: var(--red-radiant);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(26, 10, 15, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--red-electric);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.filter-input::placeholder {
    color: var(--text-secondary);
}

/* Rank Filter */
.rank-filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rank-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rank-option:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--red-electric);
    transform: translateX(4px);
}

.rank-option.selected {
    background: rgba(255, 107, 107, 0.15);
    border-color: var(--red-electric);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
}

.rank-image-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-image-container.small {
    width: 24px;
    height: 24px;
}

.rank-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rank-image.small {
    width: 100%;
    height: 100%;
}

.all-ranks {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #666, #999, #ccc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.all-ranks::after {
    content: "★";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.all-ranks-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.rank-icon {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: none;
}

/* Region Filter */
.region-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.region-option {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.region-option:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--red-electric);
}

.region-option.selected {
    background: rgba(255, 107, 107, 0.15);
    border-color: var(--red-electric);
    color: var(--text-primary);
}

/* Price Range */
.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input {
    flex: 1;
}

.price-separator {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Listings Main */
.listings-main {
    min-width: 0;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.listings-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary), var(--coral-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.listings-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Search and Controls */
.listings-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    background: linear-gradient(145deg, rgba(26, 10, 15, 0.8), rgba(42, 21, 32, 0.8));
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
    outline: none;
    border-color: var(--red-electric);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red-electric);
    font-size: 1.1rem;
    pointer-events: none;
}

.sort-select {
    padding: 0.875rem 1.25rem;
    background: rgba(26, 10, 15, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px;
}

.sort-select:hover {
    background: linear-gradient(145deg, rgba(42, 21, 32, 0.8), rgba(58, 32, 48, 0.8));
    border-color: var(--red-electric);
}

.sort-select:focus {
    outline: none;
    border-color: var(--red-electric);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.view-btn {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 107, 107, 0.1);
}

.view-btn.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, rgba(26, 10, 15, 0.95), rgba(42, 21, 32, 0.95));
    border: 2px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    display: none;
}

.search-suggestions.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background: rgba(255, 107, 107, 0.1);
    transform: translateX(5px);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.suggestion-item:hover .suggestion-image {
    border-color: var(--red-electric);
    transform: scale(1.05);
}

.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.suggestion-title mark {
    background: rgba(255, 107, 107, 0.3);
    color: var(--red-electric);
    padding: 0 2px;
    border-radius: 2px;
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.suggestion-rank {
    display: flex;
    align-items: center;
    gap: 4px;
}

.suggestion-price {
    color: var(--red-electric);
    font-weight: 600;
}

.suggestion-region {
    font-size: 12px;
}

.no-suggestions {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.suggestion-category {
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--red-electric);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-primary);
}

.search-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-top: 2px solid var(--red-electric);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.listing-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 71, 87, 0.08));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listing-card:hover {
    transform: translateY(-8px);
    border-color: var(--red-electric);
    box-shadow: var(--card-shadow-hover);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(26, 10, 15, 0.6);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card:hover .card-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(42, 21, 32, 0.8), rgba(58, 32, 48, 0.8));
    color: var(--text-secondary);
    font-size: 3rem;
}

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(10px);
}

.badge.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 193, 7, 0.9));
    color: #000;
}

.badge.verified {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(0, 184, 217, 0.9));
    color: #fff;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(26, 10, 15, 0.9);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.favorite-btn:hover,
.favorite-btn.favorited {
    color: var(--red-electric);
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--red-electric);
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.3;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red-electric);
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    flex-shrink: 0;
}

.card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-icon {
    color: var(--red-electric);
    font-size: 0.9rem;
}

.rank-badge, .region-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    flex: 1;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--red-electric);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
    border: 2px solid var(--red-electric);
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.seller-details span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.verification-badges {
    display: flex;
    gap: 0.5rem;
}

.verify-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.verify-badge.identity {
    background: linear-gradient(135deg, #00d4ff, #00b8d9);
    color: #fff;
}

.verify-badge.store {
    background: linear-gradient(135deg, #ffd700, #ffc107);
    color: #000;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    color: var(--red-electric);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: var(--gradient-primary);
    border-color: var(--red-electric);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.pagination-info {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, rgba(26, 10, 15, 0.95), rgba(42, 21, 32, 0.95));
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
    backdrop-filter: blur(20px);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--red-electric);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: var(--red-electric);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .marketplace-container {
        grid-template-columns: 260px 1fr;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .marketplace-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .header-content {
        padding: 1rem 2rem;
    }

    .listings-controls {
        flex-wrap: wrap;
    }

    .search-bar {
        flex: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        padding-top: 100px;
    }

    .header-content {
        padding: 1rem 1.5rem;
    }

    .desktop-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }

    .listings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .listings-title {
        font-size: 2rem;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .user-info {
        display: none;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .logo-image {
        height: 40px;
    }

    .card-details {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        padding: 1.25rem;
    }

    .rank-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sort-select {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem;
    }

    .listings-controls {
        gap: 0.75rem;
    }

    .view-toggle {
        display: none;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .pagination {
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }

    .search-input {
        padding: 0.875rem 2.5rem 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .search-icon {
        right: 1rem;
        font-size: 1rem;
    }

    .rank-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .marketplace-container {
        gap: 1.5rem;
    }

    .listings-title {
        font-size: 1.75rem;
    }

    .card-price {
        font-size: 1.25rem;
    }
}