/* Global theme for TNR Cards Marketplace */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --panel: rgba(30, 30, 30, 0.92);
    --card: rgba(35, 35, 35, 0.94);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #2D516E;
    --accent: #225E65;
    --muted: #b0b9c6;
    --text: #ffffff;
    --radius: 14px;
    --glow: 0 15px 60px rgba(45, 81, 110, 0.15);
}

.file-input-hidden {
    display: none;
}

body {
    font-family: 'Manrope', 'Space Grotesk', system-ui, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(100, 181, 246, 0.05), transparent 25%),
        radial-gradient(circle at 80% 0%, rgba(77, 208, 225, 0.04), transparent 30%),
        linear-gradient(120deg, #000000, #0a0a0a 55%, #050505);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 1.05rem;
}

nav .logo span {
    color: var(--primary);
}

nav .logo.logo-with-image {
    display: flex;
    align-items: center;
}

nav .logo-image {
    height: 60px;
    width: 60px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    nav .logo-image {
        height: 48px;
        width: 48px;
    }
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    overflow: hidden;
    white-space: normal;
    padding: 0;
    margin: 0;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

nav a:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Horizontal Scroll Containers - Controlled Scrolling */
.horizontal-scroll-container {
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

/* Hide scrollbars for cleaner appearance while allowing scroll */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Firefox scrollbar */
.horizontal-scroll-container {
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    scrollbar-width: thin;
}

.btn,
button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text);
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--glow);
}

.btn:hover,
button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-secondary {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-small {
    padding: 9px 12px;
    font-size: 0.9rem;
    box-shadow: none;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
}

select {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text);
}

select option {
    background: #0b0b0b;
    color: var(--text);
}

/* Category jump dropdown (avoid unreadable option menus on some platforms) */
.category-jump {
    max-width: 520px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
}

/* Fallback: some browsers ignore option backgrounds but honor color. */
.category-jump option {
    background: #0b0b0b;
    color: var(--text);
}

@supports (color-scheme: dark) {
    html {
        color-scheme: dark;
    }

    .category-jump {
        color-scheme: dark;
    }

    .category-jump option {
        background: #0b0b0b;
        color: var(--text);
    }
}

input,
textarea {
    color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 81, 110, 0.25);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.hero {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(249, 115, 22, 0.08));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--glow);
}

.stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    text-align: left;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    nav .container {
        padding: 12px 16px;
    }

    nav ul {
        gap: 6px;
    }

    nav a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    button,
    .btn {
        width: 100%;
    }

    /* Hero and layout improvements */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .filters .wide {
        grid-column: span 1;
    }

    /* Listing detail responsive */
    .listing-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .image-main-container {
        min-height: 250px;
    }

    .image-main {
        max-height: 350px;
    }

    /* Modal responsive */
    .modal-overlay {
        padding: 12px;
    }

    .modal-content {
        margin: 40px auto;
        max-width: 90%;
    }

    /* Contact buttons stack */
    .contact-buttons-grid {
        grid-template-columns: 1fr;
    }

    /* Detail actions responsive */
    .detail-actions {
        flex-direction: column;
    }

    .detail-action-btn {
        width: 100%;
    }

    /* Info grid single column */
    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    /* Seller info responsive */
    .seller-info-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Filter panel */
    .filters {
        grid-template-columns: 1fr;
    }

    /* Typography responsive */
    .detail-title {
        font-size: 1.5rem;
    }

    .detail-price {
        font-size: 1.5rem;
    }

    /* Title and price side by side only on larger */
    .detail-header {
        flex-direction: column;
    }

    .detail-price-section {
        text-align: left;
        margin-top: 0.5rem;
    }

    /* Main content padding */
    .main-content {
        padding: 0 16px;
    }

    /* Footer responsive */
    .footer-menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .footer-logo-image {
        width: 200px;
    }

    /* Search section responsive */
    .search-section {
        margin: 12px 0;
        padding: 12px;
    }

    .filters-wrapper {
        padding: 12px;
    }

    .filters-button-row {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }
}

/* Small tablet/large mobile */
@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }

    .hero-copy h1 {
        font-size: clamp(1.5rem, 2.5vw, 2rem);
    }

    /* Grid items responsive */
    .grid-5col {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-auto {
        grid-template-columns: 1fr;
    }

    /* Category tabs scroll indicator */
    .category-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .category-tab {
        flex-shrink: 0;
    }

    /* Listing cards responsive */
    .listing {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }

    .listing img {
        width: 80px;
        height: 120px;
    }

    .listing h4 {
        font-size: 1rem;
    }

    /* Auction item responsive */
    .auction-item {
        padding: 10px;
        margin-bottom: 8px;
    }

    .auction-head {
        flex-direction: column;
        gap: 4px;
    }

    /* Stats grid single column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Feature cards flex responsive */
    .feature-cards-flex {
        gap: 8px;
    }

    /* Button responsive */
    button,
    .btn {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .btn-small {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    nav .container {
        padding: 10px;
    }

    /* Typography tight */
    .hero-copy h1 {
        font-size: clamp(1.3rem, 2.2vw, 1.8rem);
        line-height: 1.2;
    }

    .hero-copy p {
        font-size: 0.9rem;
    }

    /* Hero grid collapse */
    .hero-highlight {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Grid single column */
    .grid-auto {
        grid-template-columns: 1fr;
    }

    .grid-5col {
        grid-template-columns: 1fr;
    }

    /* Card responsive */
    .card {
        padding: 12px;
    }

    /* Listing extra compact */
    .listing {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .listing img {
        width: 70px;
        height: 100px;
    }

    .listing h4 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .listing small {
        font-size: 0.8rem;
    }

    .price {
        margin-top: 6px;
        font-size: 0.95rem;
    }

    /* Button extra responsive */
    button,
    .btn {
        padding: 10px 10px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .btn-small {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    /* Input responsive */
    input,
    textarea,
    select {
        padding: 10px 12px;
        font-size: 1rem;
    }

    /* Auction compact */
    .auction-item {
        padding: 8px;
        margin-bottom: 6px;
    }

    .auction-meta {
        gap: 8px;
        font-size: 0.85rem;
    }

    /* Detail page responsive */
    .detail-title {
        font-size: 1.2rem;
    }

    .detail-price {
        font-size: 1.3rem;
    }

    .detail-edit-name {
        font-size: 1.3rem;
        padding: 6px;
    }

    .detail-edit-price {
        font-size: 1.2rem;
        padding: 6px;
    }

    /* Image thumbnails */
    .image-thumbnails {
        gap: 6px;
        padding: 12px;
    }

    .image-thumbnail {
        width: 70px;
        height: 70px;
    }

    /* Modal extra compact */
    .modal-content {
        margin: 30px auto 10px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-form {
        gap: 12px;
    }

    /* Contact buttons extra compact */
    .contact-buttons-grid {
        gap: 8px;
    }

    .contact-button {
        padding: 10px;
        font-size: 0.85rem;
    }

    /* Seller info card */
    .seller-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .seller-name {
        font-size: 0.95rem;
    }

    /* Footer responsive */
    .footer-menu-grid {
        gap: 15px;
    }

    .footer-column h4 {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-logo-image {
        width: 150px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    /* Search responsive */
    .search-section {
        margin: 10px 0;
        padding: 10px;
    }

    .search-section h2 {
        font-size: 1rem;
    }

    .search-section>p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    /* Filters tight */
    .filters-wrapper {
        padding: 10px;
    }

    .filter-label {
        font-size: 0.85rem;
    }

    /* Category dropdown responsive */
    .category-dropdown {
        max-width: 100%;
        padding: 10px 12px;
    }

    /* Main content padding */
    .main-content {
        padding: 0 10px;
    }
}

/* Ultra-small mobile */
@media (max-width: 375px) {
    .container {
        padding: 0 8px;
    }

    .hero-copy h1 {
        font-size: clamp(1.2rem, 2vw, 1.5rem);
    }

    .hero-copy p {
        font-size: 0.85rem;
    }

    .detail-title {
        font-size: 1.1rem;
    }

    .detail-price {
        font-size: 1.2rem;
    }

    .listing {
        grid-template-columns: 60px 1fr;
        gap: 8px;
    }

    .listing img {
        width: 60px;
        height: 90px;
    }

    button,
    .btn {
        padding: 9px;
        font-size: 0.85rem;
    }

    .image-thumbnails {
        gap: 4px;
        padding: 10px;
    }

    .image-thumbnail {
        width: 60px;
        height: 60px;
    }

    .modal-title {
        font-size: 1rem;
    }
}

/* Marketplace page styles */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: stretch;
}

.hero-copy h1 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.hero-copy p {
    color: var(--muted);
    margin-bottom: 14px;
    max-width: 640px;
}

.hero-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.stat-card h3 {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-card .value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.filters {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filters .wide {
    grid-column: span 2;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.chip {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.listing {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.listing img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0b1021;
}

.listing h4 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.listing small {
    color: var(--muted);
}

.price {
    font-weight: 800;
    color: var(--primary);
    margin-top: 8px;
}

.tag {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--muted);
}

.auction-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.auction-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auction-meta {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.empty {
    text-align: center;
    padding: 32px 12px;
    color: var(--muted);
}

/* Category navigation tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    margin: 18px 0;
    overflow-x: auto;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.category-tab {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.category-tab:hover {
    border-color: var(--primary);
    background: rgba(34, 211, 238, 0.1);
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(249, 115, 22, 0.15));
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 1200px) {
    .grid-5col {
        grid-template-columns: repeat(4, minmax(200px, 1fr));
    }
}

@media (max-width: 980px) {
    .grid-5col {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

@media (max-width: 720px) {
    .grid-5col {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (max-width: 520px) {
    .grid-5col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .filters .wide {
        grid-column: span 1;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 2px solid var(--primary);
    text-align: center;
}

.main-content {
    margin: 1.75rem auto 0;
    min-height: 60vh;
    max-width: 100%;
    padding: 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(45, 81, 110, 0.3);
    padding-top: 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-logo-image {
    width: 250px;
    height: auto;
    max-width: 90%;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-logo-image:hover {
    opacity: 1;
}

.footer-copyright {
    margin: 0 0 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-credit {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Navigation Badge Styles */
.nav-badge-wrapper {
    position: relative;
}

.nav-badge {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: #1a2555;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    align-items: center;
    justify-content: center;
}

.nav-badge.inbox-badge {
    background: #ef4444;
    color: white;
}

.nav-badge.visible {
    display: flex;
}

.admin-link {
    color: var(--primary);
    font-weight: 600;
}

/* Homepage Feature Cards */
.feature-cards-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.feature-subtext {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.95rem;
}

.panel-flex-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Category Dropdown */
.category-dropdown-section {
    margin-top: 30px;
    border-top: 2px solid var(--border);
    padding-top: 20px;
}

.category-dropdown-section h2 {
    color: var(--accent);
    margin-bottom: 15px;
}

.category-dropdown-wrapper {
    max-width: 100%;
}

.category-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    background: var(--panel);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    padding-right: 40px;
    background-image:
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D516E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) 50%;
    background-size: 24px 24px;
    background-attachment: scroll;
    transition: all 0.2s ease;
}

.category-dropdown:hover {
    border-color: var(--accent);
    background-color: rgba(34, 211, 238, 0.1);
}

.category-dropdown:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 81, 110, 0.25);
}

.category-dropdown option {
    background: rgba(30, 30, 30, 0.95);
    color: var(--text);
    padding: 12px;
}

@media (max-width: 768px) {
    .category-dropdown {
        max-width: 100%;
    }
}

/* Search Section */
.search-section {
    margin: 18px 0;
    border: 2px solid var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

.search-section h2 {
    color: var(--accent);
    margin-bottom: 10px;
}

.search-section>p {
    color: var(--muted);
    margin-bottom: 15px;
}

.filters-wrapper {
    background: rgba(0, 212, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
}

.filter-label {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.filters-button-row {
    display: flex;
    align-items: end;
}

.search-button {
    background: var(--accent);
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

/* Results Section */
.results-container {
    min-height: 400px;
}

.results-loading {
    text-align: center;
    padding: 40px 20px;
}

.results-loading p {
    color: var(--muted);
}

/* Why Shop Section */
.shop-reasons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.shop-reasons-header h3 {
    letter-spacing: -0.01em;
}

.shop-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-reason-item {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.shop-reason-item strong {
    color: var(--accent);
}

.shop-reason-item p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Listing Styles */
.listing-image-placeholder {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1f2e 0%, #2a3f5e 100%);
    color: var(--accent);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.listing-tags-flex {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.listing-padding {
    padding: 15px;
}

.listing-title {
    margin: 8px 0;
    font-weight: 600;
}

.listing-description {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.4;
}

.listing-seller {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.listing-seller-info {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.listing-price {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 15px 0;
}

.listing-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-amazon {
    background: #FF9900;
    color: #000;
    flex: 1;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
}

.btn-ebay {
    background: #e53238;
    color: #fff;
    flex: 1;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
}

.tag-category {
    background: var(--accent);
    color: #000;
}

.tag-sealed {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results p {
    color: var(--muted);
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.placeholder-title {
    font-weight: 600;
}

.placeholder-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 5px;
}

/* Home Page Specific Styles */
.search-card {
    margin: 1rem 0;
}

.search-filters-flex {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-input-main {
    flex: 1;
    min-width: 200px;
}

.search-select {
    min-width: 150px;
}

/* Listing Detail Page */
.listing-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-gallery-card {
    padding: 0;
    overflow: hidden;
}

.image-main-container {
    position: relative;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.image-main {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
}

.image-placeholder {
    padding: 4rem;
    text-align: center;
    color: #64748b;
}

.image-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    overflow-x: auto;
}

.image-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--primary);
}

.detail-card {
    margin-bottom: 1.5rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.detail-title-section {
    flex: 1;
}

.detail-title {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    line-height: 1.3;
}

.detail-edit-name {
    width: 100%;
    padding: 8px;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag-primary {
    background: rgba(34, 211, 238, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.detail-price-section {
    text-align: right;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.detail-price-request {
    font-size: 1.2rem;
    color: #64748b;
}

.detail-edit-price {
    width: 160px;
    padding: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--primary);
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary);
    text-align: right;
}

.detail-condition {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #64748b;
}

.detail-description-box {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.detail-description-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.detail-description-text {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.detail-edit-description {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: #e2e8f0;
    resize: vertical;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.detail-info-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.detail-info-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}

.detail-info-value {
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-action-btn {
    flex: 1;
    padding: 16px;
    font-size: 1.05rem;
}

.contact-seller-title {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
}

.contact-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-quick-response {
    padding: 14px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Seller Info Section */
.seller-info-card {
    margin-top: 1.5rem;
}

.seller-info-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.seller-info-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2555;
}

.seller-name {
    font-weight: 600;
}

.seller-badges {
    font-size: 0.9rem;
    color: #64748b;
}

.seller-rating {
    margin-top: 4px;
}

.seller-stars {
    color: #fbbf24;
}

.seller-review-count {
    font-size: 0.85rem;
    color: #64748b;
    margin-left: 6px;
}

/* Partner Info */
.partner-info-card {
    margin-top: 1.5rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.partner-info-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.partner-logo {
    height: 20px;
    max-width: 100px;
    object-fit: contain;
    opacity: 0.8;
}

.partner-name {
    font-weight: 600;
    color: #94a3b8;
}

.partner-learn-more {
    margin-left: auto;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
}

/* Modal Overlays */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    max-width: 500px;
    margin: 60px auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-title {
    margin: 0 0 8px 0;
}

.modal-subtitle {
    color: #64748b;
    margin: 0 0 24px 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.modal-input-large {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    resize: vertical;
}

.modal-submit-btn {
    padding: 14px;
    font-size: 1.05rem;
}

.modal-response {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

/* Dashboard Page */
.hero-gradient {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 153, 0, 0.05) 100%);
}

.dashboard-vendor-card {
    margin: 2rem 0;
    border: 2px solid var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

.dashboard-vendor-flex {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dashboard-vendor-icon {
    font-size: 2rem;
}

.dashboard-vendor-title {
    margin: 0;
    color: var(--accent);
}

.dashboard-vendor-subtitle {
    color: var(--muted);
    margin: 4px 0 0 0;
}

.dashboard-vendor-pills {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-status-card {
    margin: 2rem 0;
    border-left: 3px solid var(--accent);
    background: rgba(255, 193, 7, 0.05);
}

.dashboard-status-title {
    color: var(--accent);
    margin-top: 0;
}

.dashboard-status-text {
    color: var(--muted);
    margin-bottom: 1rem;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-upload-btn {
    background: var(--accent);
    color: #000;
    font-weight: 600;
}

.search-input-year {
    width: 100px;
}

.search-input-price {
    width: 100px;
}

/* Pagination Styles */
.pagination-card {
    margin: 1rem 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.pagination-select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.pagination-info {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Listing Page Specific Styles */
.listing-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.listing-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.back-arrow {
    font-size: 1.2rem;
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-panel {
    display: none;
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary);
}

.admin-panel.visible {
    display: block;
}

.admin-panel-header {
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-panel-grid {
    display: grid;
    gap: 12px;
}

.admin-buttons-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-button-flex {
    flex: 1;
}

.admin-button-hidden {
    display: none;
}

.admin-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.danger-zone {
    padding: 16px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
}

.danger-zone-header {
    font-weight: 600;
    color: #f97316;
    margin-bottom: 8px;
}

.danger-button {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #f87171;
    color: #fca5a5;
}

/* ===== PAGINATION & VIEW CONTROLS ===== */

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.pagination-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

#items-per-page {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#items-per-page:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.view-mode-toggles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-mode-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.view-mode-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.view-mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.view-mode-btn.active {
    background: linear-gradient(135deg, rgba(45, 81, 110, 0.3), rgba(34, 94, 101, 0.2));
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.results-info {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 15px;
    padding: 10px;
}

/* Grid Layout for Different View Modes */
.products-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.view-list {
    grid-template-columns: 1fr;
}

.view-card {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* List View Styling */
.listing-list-view {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 15px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.listing-list-view:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.list-item-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1f2e 0%, #2a3f5e 100%);
    border-radius: 8px;
    font-size: 2rem;
}

.list-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: start;
}

.list-item-header .listing-title {
    margin: 0;
    font-size: 1.1rem;
}

.list-item-header .listing-price {
    margin: 0;
    white-space: nowrap;
}

.list-item-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
}

.list-item-actions {
    display: flex;
    gap: 8px;
    flex-direction: row;
    align-items: center;
}

/* Card View Styling */
.listing-card-view {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.listing-card-view:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a1f2e 0%, #2a3f5e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon-large {
    font-size: 3rem;
}

.card-tag-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.card-content .listing-title {
    margin: 0;
    font-size: 1rem;
}

.card-content .listing-description {
    flex-grow: 1;
    margin: 0;
}

.card-content .listing-seller-info {
    font-size: 0.85rem;
}

.card-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.card-price-section .listing-price {
    margin: 0;
    font-size: 1.3rem;
}

.card-rating {
    font-size: 0.85rem;
    color: var(--muted);
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    border-top: 1px solid var(--border);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Pagination Navigation */
.pagination-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: linear-gradient(135deg, rgba(45, 81, 110, 0.4), rgba(34, 94, 101, 0.3));
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-dots {
    color: var(--muted);
    padding: 0 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .view-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .view-card {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .pagination-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .view-grid {
        grid-template-columns: 1fr;
    }

    .view-card {
        grid-template-columns: 1fr;
    }

    .listing-list-view {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }

    .list-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 8px;
    }

    .list-item-header {
        grid-template-columns: 1fr;
    }

    .pagination-btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .trending-strip,
    .products-grid,
    .view-grid,
    .view-card,
    .icon-view,
    .grid-5col {
        grid-template-columns: 1fr;
    }

    .top-movers-bar,
    .top-movers-track {
        flex-wrap: wrap;
        white-space: normal;
        animation: none;
    }

    .view-mode-toggles {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .view-grid {
        grid-template-columns: 1fr;
    }

    .view-list {
        grid-template-columns: 1fr;
    }

    .pagination-nav {
        gap: 4px;
    }

    .pagination-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* ===== MARKETPLACE SECTION LAYOUT ===== */

.marketplace-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.products-header {
    padding: 0;
    background: transparent;
    border: none;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

#sort-by {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#sort-by:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

/* Shop reasons section styling */
.shop-reasons-card {
    margin-top: 40px;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .marketplace-section {
        max-width: 100%;
    }

    .view-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .pagination-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .view-grid {
        grid-template-columns: 1fr;
    }

    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls-group {
        width: 100%;
    }

    #sort-by,
    #items-per-page {
        width: 100%;
    }

    .view-mode-toggles {
        width: 100%;
        justify-content: space-between;
    }
}

/* Utility classes for removing inline styles */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.chart-container {
    max-height: 400px;
}

.small-text {
    font-size: 12px;
}

/* Margin utilities */
.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: 4px;
}

.mt-6 {
    margin-top: 6px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-14 {
    margin-top: 14px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-0-25 {
    margin-top: 0.25rem;
}

.mt-0-5 {
    margin-top: 0.5rem;
}

.mt-0-75 {
    margin-top: 0.75rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-1-5 {
    margin-top: 1.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 4px;
}

.mb-6 {
    margin-bottom: 6px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-0-25 {
    margin-bottom: 0.25rem;
}

.mb-0-5 {
    margin-bottom: 0.5rem;
}

.mb-1-25 {
    margin-bottom: 1.25rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Padding utilities */
.p-1 {
    padding: 1rem;
}

/* Width utilities */
.w-100 {
    width: 100%;
}

.w-80 {
    width: 80px;
}

.max-w-520 {
    max-width: 520px;
}

.max-w-1400 {
    max-width: 1400px;
}

/* Height utilities */
.h-80 {
    height: 80px;
}

.h-200 {
    height: 200px;
}

/* Border radius utilities */
.border-radius-8 {
    border-radius: 8px;
}

/* Display utilities */
.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.hidden {
    display: none;
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-start {
    align-items: flex-start;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-gap-0-75 {
    display: flex;
    gap: 0.75rem;
}

.flex-gap-8 {
    display: flex;
    gap: 8px;
}

.flex-gap-1 {
    display: flex;
    gap: 1rem;
}

.flex-gap-12 {
    display: flex;
    gap: 12px;
}

.flex-gap-16 {
    display: flex;
    gap: 16px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-1 {
    gap: 1rem;
}

/* Grid utilities */
.grid-auto-fit-280 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.grid-auto-fit-240 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.grid-5col {
    grid-template-columns: repeat(5, minmax(200px, 1fr));
    gap: 1rem;
}

.grid-2col {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
}

.grid-2col-even {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-2col-1fr {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.9rem;
}

.grid-span-full {
    grid-column: 1 / -1;
}

.filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.filters-grid-200 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Font utilities */
.font-sm {
    font-size: 0.9rem;
}

.font-xs {
    font-size: 0.85rem;
}

.text-lg {
    font-size: 1.1rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-0-9 {
    font-size: 0.9rem;
}

.font-0-95 {
    font-size: 0.95rem;
}

.font-1-5 {
    font-size: 1.5rem;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

/* Color utilities */
.color-primary {
    color: var(--primary);
}

.color-muted {
    color: var(--muted);
}

.color-inherit {
    color: inherit;
}

.color-slate {
    color: #94a3b8;
}

/* Border utilities */
.border-subtle {
    border-color: rgba(255, 255, 255, 0.08);
}

.border-1 {
    border: 1px solid var(--border);
}

.border-radius-10 {
    border-radius: 10px;
}

/* Object fit utilities */
.object-cover {
    object-fit: cover;
}

/* Text decoration utilities */
.text-decoration-none {
    text-decoration: none;
}

/* Misc utilities */
.img-preview {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.info-card {
    background: rgba(45, 81, 110, 0.1);
    border: 1px solid var(--border);
    margin: 16px 0;
}

.info-card-simple {
    background: rgba(45, 81, 110, 0.1);
}

.textarea-resizable {
    resize: vertical;
    min-height: 80px;
}

.clickable-panel {
    padding: 20px;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.webcam-preview-box {
    width: 100%;
    height: 300px;
    background: #0a0a0a;
    border-radius: 8px;
}

.min-w-0 {
    min-width: 0;
}

/* Filter panel styling */
.filters-panel {
    background: rgba(10, 20, 35, 0.6);
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.filters-panel label {
    color: var(--text);
}

.filters-panel input,
.filters-panel select {
    background: rgba(15, 23, 42, 0.7);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.filters-panel input::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

/* Mobile responsive filters */
@media (max-width: 768px) {
    .filters-panel {
        padding: 0.75rem !important;
    }

    .filters-grid-200 {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .filters-panel label {
        font-size: 0.85rem;
    }

    .filters-panel input,
    .filters-panel select {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .filters-grid-200 {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        gap: 0.5rem;
    }

    .filters-panel {
        padding: 0.5rem !important;
    }

    .filters-panel input,
    .filters-panel select {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
}

/* ==========================================
   ENGAGEMENT SYSTEM - PSYCHOLOGICAL TRIGGERS
   ========================================== */

.trending-card {
    border: 1px solid rgba(0, 217, 255, 0.2);
    background: linear-gradient(135deg, rgba(45, 81, 110, 0.15), rgba(34, 94, 101, 0.15));
}

.trending-hero {
    max-width: 1400px;
    margin: 1.25rem auto 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(8, 15, 20, 0.95), rgba(18, 30, 40, 0.92));
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.trending-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.trending-hero-actions {
    display: flex;
    gap: 0.5rem;
}

.trending-hero-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.trending-hero-item {
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-hero-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 217, 255, 0.15);
}

.trending-hero-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.trending-hero-media {
    aspect-ratio: 5 / 7;
    max-height: 260px;
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.trending-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.trending-hero-body {
    padding: 0.9rem 1rem 1rem;
}

.trending-hero-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.6em;
}

.trending-hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.trending-hero-price {
    color: #00d9ff;
    font-weight: 700;
}

.top-movers {
    max-width: 1400px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
}

.top-movers-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.top-movers-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #00d9ff;
    white-space: nowrap;
}

.top-movers-track {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    white-space: nowrap;
    animation: movers-scroll 22s linear infinite;
}

.top-movers-item {
    font-size: 0.85rem;
    color: #d7e4f1;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.top-movers-price {
    color: #00d9ff;
    font-weight: 700;
}

.top-movers-activity {
    color: #9fb0c2;
}

@keyframes movers-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.trending-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    overflow: visible;
    padding-bottom: 6px;
}

.trending-strip .card {
    min-width: 0;
}

.trending-empty {
    color: var(--muted);
    padding: 8px 0;
}

.engagement-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}

.engagement-favorite-btn:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.engagement-favorite-btn.is-active {
    background: rgba(255, 107, 53, 0.7);
    border-color: rgba(255, 107, 53, 0.9);
}

/* Pulse Animation for Limited/Hot Items */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    }
}

/* Engagement Badges Animation */
.pill {
    transition: all 0.3s ease;
}

.pill-sm {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    transition: all 0.2s ease;
}

/* Limited/Hot badges glow effect */
[style*="animation: pulse"] {
    animation: pulse 2s infinite;
}

/* Product Cards Enhanced */
.grid.grid-5col .card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.grid.grid-5col .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.15);
}

/* Social Proof Indicators */
[style*="👁️"],
[style*="📦"],
[style*="⭐"] {
    animation: fadeInSlide 0.4s ease 0.2s both;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collector Profile Card Gradient */
[style*="linear-gradient(135deg, #2D516E"] {
    animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
    }

    50% {
        box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
    }
}

/* Mystery Bonus Section */
[style*="rgba(34, 94, 101, 0.1)"] {
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background: linear-gradient(135deg, rgba(34, 94, 101, 0.1), rgba(45, 81, 110, 0.1));
    }

    50% {
        background: linear-gradient(135deg, rgba(34, 94, 101, 0.15), rgba(45, 81, 110, 0.15));
    }
}

/* Engagement Notification Styles */
.engagement-notification {
    animation: slideIn 0.3s ease-out, slideOut 0.3s ease-in 3.7s forwards;
}

/* Button Hover Effects */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.98);
}

/* Badge Unlock Modal */
.badge-unlock-modal {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes popOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
}

/* Responsive Engagement Elements */
@media (max-width: 768px) {
    .top-movers {
        padding: 0 1rem;
    }

    .top-movers-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .trending-hero {
        padding: 1rem;
        margin: 1rem auto 1.25rem;
    }

    .trending-hero-list {
        grid-auto-columns: minmax(180px, 1fr);
    }

    .trending-strip {
        gap: 12px;
    }

    .trending-strip .card {
        min-width: 200px;
    }

    [style*="linear-gradient(135deg, #2D516E"] {
        flex-direction: column;
        text-align: center;
    }

    [style*="border-left: 2px solid"] {
        border-left: none;
        border-top: 2px solid rgba(0, 217, 255, 0.3);
        padding-top: 16px;
        margin-left: 0;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .grid.grid-5col {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .pill-sm {
        font-size: 10px;
        padding: 3px 8px;
    }
}
