/* Marketplace & Inventory Styles */
.marketplace-wrap {
    animation: fadeIn 0.4s ease-out;
}

.market-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flux-balance {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--neon-gold);
    padding: 6px 15px;
    border-radius: 4px;
    font-family: 'Share Tech Mono';
    display: flex;
    gap: 10px;
}

.flux-balance .label {
    color: rgba(255, 215, 0, 0.6);
    font-size: 0.7rem;
    font-weight: bold;
}

.flux-balance .value {
    color: var(--neon-gold);
    font-weight: bold;
    font-size: 0.9rem;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.sync-status {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Share Tech Mono';
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-status .dot {
    width: 6px;
    height: 6px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-blue);
}

.market-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.m-nav-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    color: #888;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s;
}

.m-nav-item:hover,
.m-nav-item.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.item-card {
    background: #0F0F12;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    border-color: #555;
    transform: translateY(-5px);
}

.item-card.owned {
    border-bottom: 3px solid var(--neon-blue);
}

.item-thumb {
    height: 200px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.item-card:hover .item-thumb img {
    transform: scale(1.05);
}

.placeholder-thumb {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.8rem;
    font-family: 'Share Tech Mono';
}

.owned-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--neon-blue);
    color: #000;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.item-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1rem;
    font-family: 'Orbitron';
}

.item-meta {
    margin-bottom: 15px;
}

.item-type {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-footer {
    margin-top: auto;
}

.buy-btn {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.buy-btn:hover {
    border-color: var(--neon-gold);
    background: rgba(255, 215, 0, 0.05);
}

.buy-btn .price {
    font-weight: bold;
    color: var(--neon-gold);
}

.buy-btn .label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.set-active-btn {
    width: 100%;
    background: var(--neon-blue);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-family: 'Orbitron';
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.set-active-btn:hover {
    box-shadow: 0 0 15px var(--neon-blue);
}

.active-btn.disabled {
    width: 100%;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
    border: 1px dashed var(--neon-blue);
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-family: 'Orbitron';
    font-size: 0.8rem;
    cursor: default;
}

.empty-market {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: #444;
    font-family: 'Share Tech Mono';
}