/* ── Marketplace — conversion-focused layout ───────────────── */

/* Product grid — stagger entrance after load */
@keyframes mkt-product-in {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mkt-results-block-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mkt-results-panel-in {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* All Products reveal — ~1.5–2s total (panel + staggered cards) */
#marketplace-results-content {
    --mkt-reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --mkt-panel-duration: 1.25s;
    --mkt-header-duration: 1.05s;
    --mkt-header-delay: 0.2s;
    --mkt-card-duration: 1s;
    --mkt-card-base-delay: 0.35s;
    --mkt-stagger-step: 105ms;
    --mkt-pagination-duration: 0.95s;
    --mkt-pagination-delay: 1.35s;
}

/* SSR: hide until JS reveal */
#marketplace-results-content.is-preload .mkt-results-panel {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
}

#marketplace-results-content.is-preload .mkt-results-header,
#marketplace-results-content.is-preload .mkt-results-pagination,
#marketplace-results-content.is-preload .marketplace-product-card {
    opacity: 0;
}

#marketplace-results-content.is-preload .mkt-results-header,
#marketplace-results-content.is-preload .mkt-results-pagination {
    transform: translateY(14px);
}

#marketplace-results-content.is-preload .marketplace-product-card {
    transform: translateY(20px) scale(0.97);
}

#marketplace-results-content.mkt-results-revealing .mkt-results-panel {
    animation: mkt-results-panel-in var(--mkt-panel-duration) var(--mkt-reveal-ease) both;
}

#marketplace-results-content.mkt-results-revealing .mkt-results-header {
    animation: mkt-results-block-in var(--mkt-header-duration) var(--mkt-reveal-ease) both;
    animation-delay: var(--mkt-header-delay);
}

#marketplace-results-content.mkt-results-revealing .mkt-results-pagination {
    animation: mkt-results-block-in var(--mkt-pagination-duration) var(--mkt-reveal-ease) both;
    animation-delay: var(--mkt-pagination-delay);
}

.marketplace-products-grid.is-revealing .marketplace-product-card {
    animation: mkt-product-in var(--mkt-card-duration) var(--mkt-reveal-ease) both;
    animation-delay: calc(var(--mkt-card-base-delay) + var(--mkt-stagger, 0) * var(--mkt-stagger-step));
}

/* Wishlist heart — site purple (not red) */
.mkt-wishlist-btn {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(51, 65, 85, 0.6);
    color: #94a3b8;
}

.mkt-wishlist-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.35);
    color: #a78bfa;
}

.mkt-wishlist-btn--active {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    color: #a78bfa !important;
}

.mkt-wishlist-btn--active .fa-heart,
.mkt-wishlist-btn:hover .fa-heart {
    color: #a78bfa;
}

.mkt-wishlist-btn--active .fa-heart {
    color: #8b5cf6;
}

@media (prefers-reduced-motion: reduce) {
    #marketplace-results-content.is-preload .mkt-results-panel,
    #marketplace-results-content.is-preload .mkt-results-header,
    #marketplace-results-content.is-preload .mkt-results-pagination,
    #marketplace-results-content.is-preload .marketplace-product-card {
        opacity: 1;
        transform: none;
    }

    #marketplace-results-content.mkt-results-revealing .mkt-results-panel,
    .marketplace-products-grid.is-revealing .marketplace-product-card,
    #marketplace-results-content.mkt-results-revealing .mkt-results-header,
    #marketplace-results-content.mkt-results-revealing .mkt-results-pagination {
        animation: none !important;
    }
}

.mkt-hero {
    position: relative;
    isolation: isolate;
    padding: 7rem 1rem 3.5rem;
    overflow: hidden;
    background: #0B0B0F;
}

@media (min-width: 640px) {
    .mkt-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .mkt-hero { padding-left: 2rem; padding-right: 2rem; padding-bottom: 4rem; }
}

.mkt-hero__scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.mkt-hero__mesh {
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(ellipse 45% 38% at 15% 25%, rgba(139, 92, 246, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 40% 32% at 85% 20%, rgba(244, 114, 182, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse 35% 28% at 50% 90%, rgba(52, 211, 153, 0.1) 0%, transparent 55%);
    animation: mktMeshShift 16s ease-in-out infinite alternate;
}

@keyframes mktMeshShift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-1.5%, 2%) scale(1.05); }
}

.mkt-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 15%, transparent 72%);
}

.mkt-hero__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(11, 11, 15, 0.85) 100%);
}

.mkt-hero__content {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    text-align: center;
}

.mkt-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 9999px;
}

.mkt-hero__eyebrow i {
    color: #a78bfa;
    font-size: 0.65rem;
}

.mkt-hero__title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1rem;
}

.mkt-hero__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.6;
    color: #94a3b8;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.mkt-hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.mkt-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(17, 17, 20, 0.75);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.mkt-stat-pill i {
    color: #a78bfa;
    font-size: 0.75rem;
}

.mkt-stat-pill strong {
    color: #fff;
    font-weight: 800;
}

.mkt-search-wrap {
    position: relative;
    max-width: 42rem;
    margin: 0 auto 1.75rem;
}

.mkt-search-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.05rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(244, 114, 182, 0.35), rgba(139, 92, 246, 0.25));
    opacity: 0.45;
    filter: blur(6px);
    z-index: 0;
    transition: opacity 0.3s ease;
}

.mkt-search-wrap:focus-within::before {
    opacity: 0.75;
}

.mkt-search-form {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    background: rgba(17, 17, 20, 0.95);
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 1rem;
    padding: 0.375rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mkt-search-form:focus-within {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mkt-search-form > i {
    margin-left: 0.875rem;
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
}

.mkt-search-form input {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 0.75rem;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9375rem;
}

.mkt-search-form input::placeholder {
    color: #64748b;
}

.mkt-search-form button {
    flex-shrink: 0;
    padding: 0.75rem 1.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8B5CF6 0%, #a855f7 50%, #ec4899 100%);
    border: none;
    border-radius: 0.65rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.mkt-search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
}

.mkt-hero__platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.mkt-platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: 9999px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.mkt-platform-chip:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

/* Results header */
.mkt-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Bottom CTA */
.mkt-bottom-cta {
    position: relative;
    width: 100%;
    margin: 2rem 0 2rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(17, 17, 20, 0.85);
}

@media (min-width: 640px) {
    .mkt-bottom-cta { padding: 3rem 2.5rem; }
}

.mkt-bottom-cta__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.mkt-bottom-cta__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mkt-bottom-cta h2 {
    font-size: clamp(1.375rem, 3vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.625rem;
}

.mkt-bottom-cta p {
    font-size: 0.9375rem;
    color: #94a3b8;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.mkt-bottom-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #8B5CF6, #ec4899);
    border-radius: 0.75rem;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mkt-bottom-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.45);
}

/* ── Sidebar filters — refined, muted (desktop column only) ─── */

@media (min-width: 1024px) {
    .mkt-sidebar {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 1023px) {
  #mkt-filters-slot {
        display: none !important;
    }
}

.mkt-panel {
    position: relative;
    border-radius: 0.875rem;
    background: rgba(17, 17, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
    transition: border-color 0.25s ease;
}

.mkt-panel.filter-section {
    overflow: hidden;
}

.mkt-panel.filter-section .filter-body.hidden,
.mkt-panel.filter-section .filter-body.is-collapsed {
    display: none;
}

.mkt-panel::before {
    display: none;
}

.mkt-panel:hover,
.mkt-panel.is-open {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.mkt-panel--sort {
    background: rgba(17, 17, 20, 0.85);
    overflow: visible;
    z-index: 30;
}

.mkt-panel--sort:has(.mkt-sort-dropdown.is-open) {
    z-index: 50;
}

.mkt-panel__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9375rem 1rem;
    border: none;
    background: transparent;
    cursor: default;
}

.mkt-panel__head--static {
    padding-bottom: 0.5rem;
}

.mkt-panel__toggle {
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    text-align: left;
}

.mkt-panel__toggle:hover {
    background: rgba(255, 255, 255, 0.025);
}

.mkt-panel__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #8b7ec8;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.mkt-panel__icon--sort,
.mkt-panel__icon--platform,
.mkt-panel__icon--category,
.mkt-panel__icon--type,
.mkt-panel__icon--price {
    color: #8b7ec8;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mkt-panel__titles {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.mkt-panel__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

.mkt-panel__sublabel {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
}

.mkt-panel__chev {
    flex-shrink: 0;
    font-size: 0.65rem;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s;
}

.mkt-panel.is-open .mkt-panel__chev {
    color: #94a3b8;
    transform: rotate(180deg);
}

.mkt-panel__body {
    padding: 0.5rem 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mkt-panel__body--flush {
    padding: 0.375rem 0.75rem 0.875rem;
    overflow: visible;
}

.mkt-sort-dropdown {
    position: relative;
    z-index: 40;
}

/* Sort dropdown */
.mkt-sort-trigger {
    padding: 0.6875rem 0.875rem;
    border-radius: 0.625rem;
    background: rgba(13, 13, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.mkt-sort-trigger:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 20, 0.95);
    transform: none;
}

.mkt-sort-trigger__icon {
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4375rem;
    font-size: 0.6875rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mkt-sort-trigger__chev {
    transition: transform 0.2s ease;
}

.mkt-sort-dropdown.is-open .mkt-sort-trigger__chev {
    transform: rotate(180deg);
}

.mkt-sort-menu {
    background: rgba(13, 13, 16, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px);
    z-index: 50;
}

.mkt-sort-menu.visible,
.mkt-sort-menu.opacity-100 {
    opacity: 1 !important;
    visibility: visible !important;
}

.mkt-sort-item {
    color: #94a3b8;
    text-decoration: none;
}

.mkt-sort-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.mkt-sort-item.is-active {
    background: rgba(139, 92, 246, 0.1);
    color: #e2e8f0;
}

.mkt-sort-item__check {
    flex-shrink: 0;
    font-size: 0.6875rem;
    color: #8b7ec8;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.mkt-sort-item.is-active .mkt-sort-item__check {
    opacity: 1;
}

.mkt-sort-item__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    color: #64748b;
    background: rgba(51, 65, 85, 0.4);
}

.mkt-sort-item.is-active .mkt-sort-item__icon {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
}

/* Filter options */
.mkt-sidebar input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.mkt-sidebar input[type="radio"]:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.mkt-sidebar input[type="radio"]:checked {
    border-color: #7c6bb8;
    background: #7c6bb8;
    box-shadow: none;
    transform: none;
}

.mkt-sidebar input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

.mkt-opt {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5625rem 0.6875rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.mkt-opt:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: none;
}

.mkt-opt:active {
    transform: none;
}

.mkt-opt:has(input:checked) {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: inset 2px 0 0 rgba(124, 107, 184, 0.7);
}

.mkt-opt:has(input:checked) .mkt-opt__text {
    color: #e2e8f0;
    font-weight: 600;
}

.mkt-opt:has(input:checked) .mkt-count {
    background: rgba(139, 92, 246, 0.1);
    color: #a89bd4;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.mkt-opt__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.15s;
}

.mkt-opt:hover .mkt-opt__text {
    color: #cbd5e1;
}

.mkt-opt__content {
    flex: 1;
    min-width: 0;
}

.mkt-count {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.15rem 0.4375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #52525b;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 9999px;
}

.mkt-opt__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    color: #64748b;
    background: rgba(51, 65, 85, 0.4);
}

.mkt-opt__icon--neutral {
    color: #64748b;
    background: rgba(51, 65, 85, 0.4);
}

.mkt-opt__icon--purple  { color: #a78bfa; background: rgba(139, 92, 246, 0.14); }
.mkt-opt__icon--blue    { color: #60a5fa; background: rgba(59, 130, 246, 0.14); }
.mkt-opt__icon--sky     { color: #38bdf8; background: rgba(14, 165, 233, 0.14); }
.mkt-opt__icon--green   { color: #4ade80; background: rgba(34, 197, 94, 0.14); }
.mkt-opt__icon--pink    { color: #f472b6; background: rgba(236, 72, 153, 0.14); }
.mkt-opt__icon--red     { color: #f87171; background: rgba(239, 68, 68, 0.14); }
.mkt-opt__icon--emerald { color: #34d399; background: rgba(16, 185, 129, 0.14); }
.mkt-opt__icon--amber   { color: #fbbf24; background: rgba(245, 158, 11, 0.14); }

.mkt-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6875rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #52525b;
    text-decoration: none;
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.mkt-clear-btn:hover {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transform: none;
    box-shadow: none;
}

.mkt-clear-btn i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.mkt-clear-btn:hover i {
    transform: rotate(-90deg);
}

.mkt-sidebar .scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}

.mkt-sidebar .scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.2);
    border-radius: 10px;
}

.mkt-sidebar .scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 10px;
}

.mkt-sidebar .scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.45);
}

/* Marketplace AJAX loading overlay (portaled to body) */
#marketplace-loading {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    background: rgba(11, 11, 15, 0.88);
    backdrop-filter: blur(3px);
    pointer-events: auto;
}

#marketplace-loading.is-visible,
body.marketplace-is-loading #marketplace-loading {
    display: flex !important;
}

body.marketplace-is-loading {
    overflow: hidden;
}

.marketplace-results-wrapper.is-loading #marketplace-results-content {
    visibility: hidden;
    min-height: 380px;
}

.marketplace-loading-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b7ec8;
    border-radius: 50%;
    animation: marketplace-spin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes marketplace-spin {
    to { transform: rotate(360deg); }
}

/* ── Marketplace product cards — match sidebar palette ───── */

.marketplace-products-grid .marketplace-product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.marketplace-products-grid .marketplace-product-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.marketplace-products-grid .product-card__inner {
    border-color: rgba(255, 255, 255, 0.05);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.marketplace-products-grid .marketplace-product-card:hover .product-card__inner {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

.marketplace-products-grid .marketplace-product-card:hover h3 {
    color: #c4b5fd !important;
    transform: none !important;
}

.marketplace-products-grid .marketplace-product-card:hover .gradient-text {
    filter: none;
    transform: none;
}

.marketplace-products-grid .marketplace-product-card:hover .btn-gradient {
    transform: none;
    box-shadow: 0 4px 14px rgba(124, 107, 184, 0.2);
}

.marketplace-products-grid .marketplace-product-card:hover [class*="bg-"][class*="/20"] {
    transform: none;
    box-shadow: none;
}

.marketplace-cat-badge {
    color: #8b7ec8;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.marketplace-products-grid .product-card [class*="bg-purple-500/15"],
.marketplace-products-grid .product-card [class*="bg-blue-500/15"],
.marketplace-products-grid .product-card [class*="bg-sky-500/15"],
.marketplace-products-grid .product-card [class*="bg-green-500/15"],
.marketplace-products-grid .product-card [class*="bg-pink-500/15"],
.marketplace-products-grid .product-card [class*="bg-red-500/15"],
.marketplace-products-grid .product-card [class*="bg-emerald-500/15"],
.marketplace-products-grid .product-card [class*="bg-amber-500/15"] {
    color: #64748b !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}

.marketplace-products-grid .product-card .aspect-square {
    background: rgba(255, 255, 255, 0.02);
}

.marketplace-products-grid .product-card [class*="bg-orange-500/20"],
.marketplace-products-grid .product-card [class*="bg-yellow-500/20"] {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.marketplace-products-grid .product-card .bg-purple-600 {
    background: rgba(124, 107, 184, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    animation: none !important;
}

.multi-prompt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.45rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.28);
    white-space: nowrap;
}

.multi-prompt-badge--sm {
    font-size: 0.5625rem;
    padding: 0.0625rem 0.3rem;
    border-radius: 0.3rem;
}

.multi-prompt-badge i {
    font-size: 0.6rem;
    opacity: 0.95;
}
