/* ===== TRENCHES MARKETPLACE - EXACT CSFloat Replica ===== */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@font-face {
    font-family: 'HeadingNowVariable';
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
    src: url('HeadingNowVariable.woff2') format('woff2');
}

@font-face {
    font-family: 'HeadingNowVariable';
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
    src: url('HeadingNowVariableItalic.woff2') format('woff2');
}

/* ===== CSS VARIABLES - Exact CSFloat Colors ===== */
:root {
    --csfloat-bg: rgb(21, 23, 28);
    --csfloat-card-bg: rgb(27, 29, 36);
    --csfloat-input-bg: rgba(193, 206, 255, 0.04);
    --csfloat-text-white: rgb(255, 255, 255);
    --csfloat-text-muted: rgba(255, 255, 255, 0.7);
    --csfloat-text-dim: rgba(255, 255, 255, 0.5);
    --csfloat-blue-primary: rgb(51, 153, 255);
    --csfloat-blue-accent: rgb(30, 144, 255);
    --csfloat-orange: rgb(255, 120, 44);
    --csfloat-gold: oklch(0.88 0.161 109.3);
    --csfloat-green: rgb(75, 235, 100);
    --csfloat-red: rgb(235, 75, 75);
    --csfloat-border: rgba(255, 255, 255, 0.12);
    --csfloat-border-light: rgba(255, 255, 255, 0.08);
    --wear-gradient: linear-gradient(to right, rgb(217, 187, 165), rgb(229, 144, 59), rgb(219, 89, 119), rgb(103, 117, 225));
}

/* ===== PAGE LAYOUT - Exact CSFloat ===== */
.marketplace-page {
    background-color: var(--csfloat-bg);
    min-height: 100vh;
    padding: 0 60px;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    color: var(--csfloat-text-white);
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    zoom: 1 !important; /* Override the 0.65 zoom from style.css */
}

.marketplace-page .main-nav {
    zoom: 1 !important; /* Keep nav at normal size too */
}

/* Navigation uses site default styles from style.css */

/* ===== CATEGORY BAR ===== */
.category-bar {
    position: fixed;
    top: 64px; /* Below nav (no zoom adjustment needed now) */
    left: 0;
    right: 0;
    z-index: 199;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 60px;
    margin-top: 16px;
    background: var(--csfloat-bg);
    border-bottom: 1px solid var(--csfloat-border);
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s;
}

.category-btn:hover {
    color: var(--csfloat-text-white);
}

.category-btn.active {
    color: var(--csfloat-text-white);
}

.category-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

/* ===== MAIN LAYOUT ===== */
.marketplace-wrapper {
    padding-top: 160px; /* 64px nav + 50px category + padding */
    min-height: calc(100vh - 160px);
}

.marketplace-layout {
    display: flex;
    gap: 15px;
}

/* ===== SIDEBAR - Exact CSFloat 350px ===== */
.marketplace-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.marketplace-sidebar::-webkit-scrollbar {
    width: 6px;
}

.marketplace-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.marketplace-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}


/* ===== SEARCH INPUT - Exact CSFloat Style ===== */
.filter-search {
    margin-bottom: 28px;
}

.filter-search-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: var(--csfloat-input-bg);
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
}

.filter-search-container:focus-within {
    outline: 2px solid var(--csfloat-blue-primary);
    outline-offset: -2px;
}

.filter-search-icon {
    color: rgb(255, 255, 255);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 -4px;
}

.filter-search input {
    flex: 1;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--csfloat-text-white);
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

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

.filter-search-shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(193, 206, 255, 0.04);
    border: 0.666667px solid rgba(158, 167, 177, 0.15);
    border-radius: 6px;
    color: rgb(158, 167, 177);
    font-size: 14px;
    font-weight: 400;
    margin-left: 8px;
}

/* ===== FILTER SECTIONS - Exact CSFloat ===== */
.filter-section {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 15px;
    padding: 6px 0;
    cursor: pointer;
}

.filter-title {
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    color: rgb(255, 255, 255);
    letter-spacing: 0.6px;
    margin: 0;
}

.filter-toggle {
    width: 18px;
    height: 18px;
    color: rgb(158, 167, 177);
    transition: transform 0.2s;
}

.filter-section.collapsed .filter-toggle {
    transform: rotate(180deg);
}

.filter-content {
    padding-top: 8px;
    padding-bottom: 24px;
}

.filter-section.collapsed .filter-content {
    display: none;
}

/* ===== PRICE FILTER - Exact CSFloat ===== */

/* Price Range Slider */
.price-slider-container {
    position: relative;
    width: 100%;
    height: 24px;
    margin-bottom: 20px;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transform: translateY(-50%);
}

.price-slider-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--csfloat-blue-primary);
    border-radius: 2px;
    transform: translateY(-50%);
    left: 0;
    right: 0;
}

.price-slider-thumb {
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid white;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
}

.price-slider-thumb.right {
    border-top: none;
    border-bottom: 10px solid white;
}

/* Price Inputs */
.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
}

.price-input-group {
    flex: 1;
    min-width: 0;
}

.price-input-label {
    display: block;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgb(158, 167, 177);
    margin-bottom: 8px;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    background: rgba(193, 206, 255, 0.04);
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
}

.price-input-prefix {
    color: var(--csfloat-text-white);
    font-size: 16px;
    margin-right: 4px;
}

.price-input {
    flex: 1;
    width: 100%;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--csfloat-text-white);
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

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

.price-input-wrapper:focus-within {
    outline: 2px solid var(--csfloat-blue-primary);
    outline-offset: -2px;
}

/* Price Quick Filters - Exact CSFloat bubble buttons */
.price-quick-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 4px;
}

.price-quick-btn {
    height: 26px;
    padding: 5px 6px;
    background: rgba(193, 206, 255, 0.04);
    border: 0.666667px solid transparent;
    border-radius: 12px;
    color: rgb(158, 167, 177);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    box-sizing: border-box;
}

.price-quick-btn:hover {
    border-color: rgb(158, 167, 177);
    color: rgb(255, 255, 255);
}

.price-quick-btn.active {
    background: var(--csfloat-blue-primary);
    border-color: var(--csfloat-blue-primary);
    color: #fff;
}

/* ===== WEAR SECTION - Exact CSFloat ===== */
.wear-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.wear-bar {
    width: 100%;
    height: 7px;
    background: var(--wear-gradient);
    border-radius: 0;
}

.wear-slider-thumbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
}

.wear-thumb {
    position: absolute;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid white;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 2;
}

.wear-thumb.right {
    border-top: none;
    border-bottom: 10px solid white;
    top: auto;
    bottom: -3px;
}

.wear-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
}

.wear-input-group {
    flex: 1;
    min-width: 0;
}

.wear-input-label {
    display: block;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgb(158, 167, 177);
    margin-bottom: 8px;
}

.wear-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    background: rgba(193, 206, 255, 0.04);
    border: none;
    border-radius: 6px;
    color: rgb(255, 255, 255);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.wear-input:focus {
    outline: 2px solid var(--csfloat-blue-primary);
    outline-offset: -2px;
}

/* Wear Toggle Buttons (FN, MW, FT, WW, BS) - Exact CSFloat bubble */
.wear-toggles {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.wear-toggle-btn {
    height: 26px;
    padding: 5px 10px;
    background: rgba(193, 206, 255, 0.04);
    border: 0.666667px solid transparent;
    border-radius: 12px;
    color: rgb(158, 167, 177);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    transition: all 0.15s;
    box-sizing: border-box;
}

.wear-toggle-btn:hover {
    border-color: rgb(158, 167, 177);
    color: rgb(255, 255, 255);
}

.wear-toggle-btn.active {
    background: var(--csfloat-blue-primary);
    border-color: var(--csfloat-blue-primary);
    color: #fff;
}

/* ===== RARITY BAR (Legacy) ===== */
.rarity-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--wear-gradient);
    margin-bottom: 12px;
}

/* ===== CHECKBOX FILTERS - Exact CSFloat ===== */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid var(--csfloat-border);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

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

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox .checkbox-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.filter-checkbox:hover .checkbox-label {
    color: var(--csfloat-text-white);
}

.rarity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== SPECIAL SECTION - Exact CSFloat ===== */
.special-options {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.special-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 50%;
    height: 40px;
    cursor: pointer;
    box-sizing: border-box;
}

.special-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

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

.special-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.special-label {
    font-size: 14px;
    font-weight: 400;
    color: rgb(255, 255, 255);
}

.special-label.stattrak {
    color: rgb(255, 120, 44);
    font-weight: 500;
}

.special-label.souvenir {
    color: oklch(0.88 0.161 109.3);
    font-weight: 500;
}

.special-label.highlight {
    color: rgb(255, 215, 170);
    font-weight: 500;
}

.special-checkbox:hover .special-label {
    opacity: 0.8;
}

/* ===== COLOR SWATCHES ===== */
.filter-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: var(--csfloat-text-white);
    box-shadow: 0 0 0 2px var(--csfloat-blue-primary);
}

/* ===== TOGGLE BUTTONS ===== */
.filter-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.toggle-btn {
    height: 32px;
    padding: 0 14px;
    background: var(--csfloat-card-bg);
    border: 1px solid var(--csfloat-border);
    border-radius: 6px;
    color: var(--csfloat-text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.toggle-btn:hover {
    color: var(--csfloat-text-white);
}

.toggle-btn.active {
    background: var(--csfloat-blue-primary);
    border-color: var(--csfloat-blue-primary);
    color: #fff;
}

/* ===== RESET BUTTON ===== */
.filter-reset-btn,
.reset-filters-btn {
    width: 100%;
    height: 40px;
    margin-top: 16px;
    background: transparent;
    border: 1px solid var(--csfloat-border);
    border-radius: 6px;
    color: var(--csfloat-text-muted);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-reset-btn:hover,
.reset-filters-btn:hover {
    border-color: var(--csfloat-red);
    color: var(--csfloat-red);
}

/* Color Swatches Container */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* My Collection Button in Category Bar */
.my-collection-btn {
    margin-left: auto;
    background: linear-gradient(135deg, #f5f525, #d4d420) !important;
    color: #000 !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
    border-radius: 6px !important;
    text-decoration: none;
}

.my-collection-btn:hover {
    opacity: 0.9;
}

/* ===== MAIN CONTENT AREA ===== */
.marketplace-content {
    flex: 1;
    min-width: 0;
}

/* ===== CONTENT HEADER ===== */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    height: 40px;
}

.content-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-icon-btn,
.refresh-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--csfloat-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-icon-btn:hover,
.refresh-btn:hover {
    color: var(--csfloat-text-white);
    background: rgba(255, 255, 255, 0.05);
}

.content-tabs {
    display: flex;
    gap: 4px;
    background: var(--csfloat-card-bg);
    border-radius: 8px;
    padding: 4px;
}

.content-tab {
    height: 32px;
    padding: 0 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--csfloat-text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.content-tab:hover {
    color: var(--csfloat-text-white);
}

.content-tab.active {
    background: var(--csfloat-blue-primary);
    color: #fff;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-select {
    appearance: none;
    height: 40px;
    padding: 0 36px 0 16px;
    background: var(--csfloat-card-bg);
    border: 1px solid var(--csfloat-border);
    border-radius: 8px;
    color: var(--csfloat-text-white);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239e9e9e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--csfloat-blue-primary);
    outline: none;
}

.sort-select option {
    background: var(--csfloat-card-bg);
}

/* ===== CARD GRID - Exact CSFloat Layout ===== */
.marketplace-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    padding-bottom: 60px;
}

/* ===== MARKETPLACE CARDS - Exact CSFloat 232x398px ===== */
.mp-card {
    display: flex;
    flex-direction: column;
    width: 232px;
    height: 398px;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: var(--csfloat-card-bg);
    border: 2px solid transparent;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,
                rgba(0, 0, 0, 0.14) 0px 1px 1px 0px,
                rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.mp-card:hover {
    border-color: var(--csfloat-blue-primary);
    transform: translateY(-2px);
}

/* Card Header - with proper padding for readability */
.mp-card-header {
    width: 228px;
    min-height: 75px;
    padding: 14px 12px 10px 12px;
    box-sizing: border-box;
}

.mp-card-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--csfloat-text-white);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-card-name.legendary,
.mp-card-name.stattrak {
    color: var(--csfloat-orange);
}

.mp-card-type {
    font-size: 13px;
    color: var(--csfloat-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Image Area - 228x178px */
.mp-card-image {
    width: 228px;
    height: 178px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mp-card-item-visual {
    font-size: 90px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s;
    line-height: 1;
}

.mp-card:hover .mp-card-item-visual {
    transform: scale(1.05);
}

/* Item image instead of emoji */
.mp-card-item-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s;
}

.mp-card:hover .mp-card-item-img {
    transform: scale(1.08);
}

/* 3D Model Badge */
.mp-card-3d-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(51, 153, 255, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Action Buttons */
.mp-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.mp-card:hover .mp-card-actions {
    opacity: 1;
}

.mp-card-action {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 32, 38, 0.7);
    border: none;
    border-radius: 50%;
    color: var(--csfloat-text-white);
    cursor: pointer;
    transition: background 0.15s;
}

.mp-card-action:hover {
    background: var(--csfloat-blue-primary);
}

.mp-card-action svg {
    width: 14px;
    height: 14px;
}

/* Card Footer/Info - 228x159px with padding 12px 12px 0px */
.mp-card-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

/* Price Row - 24px height */
.mp-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
    margin-bottom: 8px;
}

.mp-card-price {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--csfloat-text-white);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mp-card-discount {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--csfloat-green);
}

.mp-card-discount::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--csfloat-green);
}

/* Rarity label on price row */
.mp-card-rarity-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Collection row */
.mp-card-collection-row {
    margin-top: auto;
    padding-top: 8px;
}

.mp-card-collection {
    font-size: 12px;
    color: var(--csfloat-text-muted);
}

/* Float/Rarity Bar - 8px height */
.mp-card-rarity-bar {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.mp-card-rarity-bar-marker {
    position: absolute;
    top: -2px;
    width: 3px;
    height: 12px;
    background: var(--csfloat-text-white);
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.mp-card-rarity-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Float Value Row */
.mp-card-float-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    margin-bottom: 8px;
    font-size: 12px;
}

.mp-card-float-value {
    color: var(--csfloat-text-muted);
    font-family: monospace;
}

.mp-card-rank {
    color: var(--csfloat-text-muted);
}

/* Meta Row */
.mp-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mp-card-rarity {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-card-stat {
    font-size: 11px;
    color: var(--csfloat-text-muted);
}

/* Seller Details Row */
.mp-card-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 18px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--csfloat-text-muted);
}

.mp-card-seller::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--csfloat-text-muted);
}

.mp-card-seller.online::before {
    background: var(--csfloat-green);
}

/* Card Footer - Auction/Expires */
.mp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 26px;
    margin-top: auto;
}

.mp-card-expires-label {
    font-size: 11px;
    color: var(--csfloat-text-muted);
}

.mp-card-expires {
    font-size: 11px;
    color: var(--csfloat-blue-accent);
}

/* T-Bucks Icon */
.tbucks-icon {
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.tbucks-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ===== EMPTY STATE ===== */
.marketplace-empty {
    width: 100%;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.marketplace-empty-icon {
    font-size: 64px;
    opacity: 0.3;
}

.marketplace-empty-text {
    color: var(--csfloat-text-muted);
    font-size: 16px;
    max-width: 360px;
}

/* ===== ITEM DETAIL PAGE ===== */
.item-detail-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 0 60px;
}

.item-detail-layout {
    display: flex;
    gap: 40px;
    min-height: 70vh;
}

.item-display-container {
    flex: 1;
    min-height: 500px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--csfloat-card-bg);
}

.item-display-visual {
    font-size: 200px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
    animation: itemFloat 3s ease-in-out infinite;
}

@keyframes itemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.item-display-pedestal {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(8px);
}

.item-detail-panel {
    width: 420px;
    flex-shrink: 0;
}

.item-detail-panel-inner {
    background: var(--csfloat-card-bg);
    border-radius: 16px;
    border: 1px solid var(--csfloat-border);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--csfloat-text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.item-back-btn:hover {
    color: var(--csfloat-blue-accent);
}

.item-detail-name {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 32px;
    font-style: italic;
    font-variation-settings: "wdth" 825, "wght" 700;
    text-transform: uppercase;
    color: var(--csfloat-text-white);
    line-height: 1.1;
    margin-bottom: 12px;
}

.item-detail-description {
    color: var(--csfloat-text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.item-detail-specs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: auto;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--csfloat-border);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-label {
    color: var(--csfloat-text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    color: var(--csfloat-text-white);
    font-size: 14px;
    font-weight: 500;
}

.item-detail-purchase {
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-detail-price {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 32px;
    font-variation-settings: "wdth" 668, "wght" 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-buy-btn {
    width: 100%;
    height: 56px;
    background: var(--csfloat-blue-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'HeadingNowVariable', sans-serif;
    font-style: italic;
    font-size: 18px;
    font-variation-settings: "wdth" 825, "wght" 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.item-buy-btn:hover {
    background: var(--csfloat-blue-accent);
}

.item-buy-btn-disabled {
    background: #555 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    font-size: 12px !important;
    font-style: normal !important;
    text-transform: none !important;
    font-weight: 500 !important;
    padding: 16px !important;
    line-height: 1.4 !important;
}

.item-buy-btn-disabled:hover {
    background: #555 !important;
    transform: none !important;
}

/* Footer uses site default styles from style.css */

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .marketplace-sidebar {
        width: 300px;
    }
}

@media (max-width: 1200px) {
    .marketplace-sidebar {
        width: 280px;
    }
}

@media (max-width: 1023px) {
    .marketplace-sidebar {
        width: 260px;
    }
    .mp-card {
        width: 200px;
        height: 360px;
    }
    .mp-card-header {
        width: 196px;
        min-height: 65px;
        padding: 12px 10px 8px 10px;
    }
    .mp-card-image {
        width: 196px;
        height: 150px;
    }
    .mp-card-item-visual {
        font-size: 70px;
    }
    .item-detail-layout {
        flex-direction: column;
    }
    .item-detail-panel {
        width: 100%;
    }
    .item-display-container {
        min-height: 350px;
    }
    .item-display-visual {
        font-size: 140px;
    }
}

@media (max-width: 767px) {
    .marketplace-page {
        padding: 0 16px;
    }
    .category-bar {
        padding-left: 16px;
        padding-right: 16px;
    }
    .marketplace-layout {
        flex-direction: column;
    }
    .marketplace-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }
    .marketplace-grid {
        justify-content: center;
    }
    .mp-card {
        width: 165px;
        height: 320px;
    }
    .mp-card-header {
        width: 161px;
        min-height: 58px;
        padding: 10px 8px 6px 8px;
    }
    .mp-card-name {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .mp-card-type {
        font-size: 11px;
    }
    .mp-card-image {
        width: 161px;
        height: 120px;
    }
    .mp-card-item-visual {
        font-size: 55px;
    }
    .mp-card-price {
        font-size: 14px;
    }
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        height: auto;
    }
    .content-tabs {
        width: 100%;
        overflow-x: auto;
    }
    .item-detail-wrapper {
        padding: 130px 0 40px;
    }
    .item-display-container {
        min-height: 280px;
    }
    .item-display-visual {
        font-size: 100px;
    }
    .item-detail-panel-inner {
        padding: 24px;
    }
    .item-detail-name {
        font-size: 24px;
    }
    .item-detail-price {
        font-size: 26px;
    }
}
