/* ===========================================================
   Market page — small additions on top of inventory-redesign.css
   Reuses: .inv-hero, .inv-pill, .inv-sidebar-card, .inv-side-row,
           .inv-showcase-card, .inv-showcase-sell-btn, etc.
   =========================================================== */

/* Chip stack above the image — StatTrak + listing status, stacked, seamless (no divider/background) */
.market-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 0.5rem 0.55rem 0;
    min-height: 2.7rem;
    background: transparent;
    border: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Make image area seamless with the card body so the header reads as part of the image area, not a strip */
.inv-showcase-card-img {
    background: transparent !important;
    padding-top: 0 !important;
}

.market-stattrak-chip {
    background: rgba(255, 193, 7, 0.18);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #ffc107;
    padding: 0.05rem 0.35rem;
    border-radius: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.4;
}

.market-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.05rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    line-height: 1.4;
}

    .market-status-chip > i {
        font-size: 0.6rem;
    }

.market-status-chip.market-status-active {
    background: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.5);
    color: #75b798;
}

.market-status-chip.market-status-sold {
    background: rgba(13, 202, 240, 0.18);
    border-color: rgba(13, 202, 240, 0.5);
    color: #0dcaf0;
}

.market-status-chip.market-status-cancelled {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.5);
    color: #adb5bd;
}

/* Indented sub-menu under a sidebar type row (e.g. weapon categories under "Skinai") */
.inv-side-submenu {
    margin: 0.15rem 0 0.35rem 0.85rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(13, 202, 240, 0.18);
}

    .inv-side-submenu .inv-side-sub {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }


/* Listing status badge — sits in card image corner (My listings only) */
.market-status-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.market-status-badge.market-status-active {
    background: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.5);
    color: #75b798;
}

.market-status-badge.market-status-sold {
    background: rgba(13, 202, 240, 0.18);
    border-color: rgba(13, 202, 240, 0.5);
    color: #0dcaf0;
}

.market-status-badge.market-status-cancelled {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.5);
    color: #adb5bd;
}

/* Cancel button — red variant of inv-showcase-sell-btn */
.market-cancel-btn {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ea868f;
    padding: 0.35rem 0.65rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease;
}

.market-cancel-btn:hover:not(:disabled) {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    transform: scale(1.05);
}



.market-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0.85rem;
    border: 1px solid rgba(13, 202, 240, 0.22);
    background:
        linear-gradient(135deg, rgba(13, 202, 240, 0.10) 0%, rgba(15, 22, 33, 0.70) 55%) ,
        rgba(15, 22, 33, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

    .market-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 0% 0%, rgba(13, 202, 240, 0.18), transparent 45%),
            radial-gradient(circle at 100% 100%, rgba(255, 203, 49, 0.08), transparent 50%);
        pointer-events: none;
    }

.market-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
}

.market-hero-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.market-hero-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.3), rgba(13, 202, 240, 0.1));
    color: #0dcaf0;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(13, 202, 240, 0.25);
}

.market-hero-eyebrow {
    color: rgba(13, 202, 240, 0.85);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.market-hero-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.15;
}

.market-hero-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.6rem;
    padding: 0.15rem;
    overflow: hidden;
}

.market-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    min-width: 110px;
    line-height: 1.1;
}

    .market-hero-stat + .market-hero-stat {
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

.market-hero-stat-value {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.market-hero-stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.market-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .market-hero-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .market-hero-stats {
        align-self: stretch;
    }

    .market-hero-cta {
        justify-content: stretch;
    }

        .market-hero-cta > .btn {
            flex: 1 1 auto;
        }
}

@media (max-width: 576px) {
    .market-hero-stat {
        min-width: 0;
        flex: 1 1 0;
        padding: 0.4rem 0.5rem;
    }
}

/* ===========================================================
   Market tabs — segmented underline tabs (distinct from .inv-pill chips)
   =========================================================== */
.market-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    background: rgba(15, 22, 33, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.6rem;
    padding: 0.25rem;
    backdrop-filter: blur(8px);
}

.market-tab {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
    position: relative;
}

    .market-tab > i {
        font-size: 0.9rem;
        opacity: 0.85;
    }

    .market-tab:hover:not(.active) {
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
    }

    .market-tab.active {
        background: rgba(13, 202, 240, 0.14);
        color: #0dcaf0;
        box-shadow: inset 0 0 0 1px rgba(13, 202, 240, 0.35);
    }

        .market-tab.active > i {
            opacity: 1;
        }

.market-tab-count {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    line-height: 1;
}

.market-tab.active .market-tab-count {
    background: rgba(13, 202, 240, 0.25);
    color: #0dcaf0;
}


/* ===========================================================
   Store page — styled like Market but with a distinct warm
   amber/gold accent so users can tell them apart at a glance.
   Reuses: .inv-sidebar-card, .inv-side-row, .inv-showcase-card,
           .inv-showcase-sell-btn, .inv-cat-section, etc.
   =========================================================== */

/* ---------- Hero ---------- */
.store-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 193, 7, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(15, 22, 33, 0.72) 55%),
        rgba(15, 22, 33, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

    .store-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 0% 0%, rgba(255, 193, 7, 0.18), transparent 45%),
            radial-gradient(circle at 100% 100%, rgba(13, 202, 240, 0.10), transparent 50%);
        pointer-events: none;
    }

.store-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
}

.store-hero-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.store-hero-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.32), rgba(255, 193, 7, 0.08));
    color: #ffc107;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.3);
}

.store-hero-eyebrow {
    color: rgba(255, 193, 7, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.store-hero-title {
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
}

.store-hero-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.45rem 1.1rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 193, 7, 0.22);
    border-radius: 0.6rem;
    min-width: 180px;
}

.store-hero-balance-label {
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

.store-hero-balance-value {
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.store-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.store-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

    .store-hero-chip > i {
        color: #ffc107;
        opacity: 0.9;
    }

    .store-hero-chip strong {
        color: #fff;
    }

@media (max-width: 992px) {
    .store-hero-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .store-hero-balance {
        align-self: stretch;
        min-width: 0;
    }

    .store-hero-chips {
        justify-content: stretch;
    }

        .store-hero-chips > .store-hero-chip {
            flex: 1 1 auto;
            justify-content: center;
        }
}

/* ---------- Tabs (segmented, amber-accented) ---------- */
.store-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    background: rgba(15, 22, 33, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.6rem;
    padding: 0.25rem;
    backdrop-filter: blur(8px);
}

.store-tab {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
    position: relative;
}

    .store-tab > i {
        opacity: 0.85;
    }

    .store-tab:hover:not(.active) {
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
    }

    .store-tab.active {
        background: rgba(255, 193, 7, 0.14);
        color: #ffc107;
        box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.4);
    }

        .store-tab.active > i {
            opacity: 1;
        }

.store-tab-count {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    line-height: 1;
}

.store-tab.active .store-tab-count {
    background: rgba(255, 193, 7, 0.22);
    color: #ffc107;
}

/* ---------- Showcase card amber accent (so cards read as Store, not Market) ---------- */
.store-showcase .inv-showcase-card-glow {
    background: radial-gradient(circle at 50% 0%, rgba(255, 193, 7, 0.22), transparent 65%);
}

.store-showcase .inv-showcase-sell-btn {
    background: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

    .store-showcase .inv-showcase-sell-btn:hover:not(:disabled) {
        background: #ffc107;
        color: #1a1f2b;
        border-color: #ffc107;
    }

/* ---------- Quantity stepper ---------- */
.store-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.45rem;
    padding: 0.15rem;
}

.store-qty-btn {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0.3rem;
    transition: all 0.15s ease;
}

    .store-qty-btn:hover:not(:disabled) {
        background: rgba(255, 193, 7, 0.18);
        color: #ffc107;
    }

    .store-qty-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.store-qty-input {
    width: 2.5rem;
    height: 1.6rem;
    background: transparent;
    border: 0;
    color: #fff;
    text-align: center;
    padding: 0;
    line-height: 1;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}

    .store-qty-input::-webkit-outer-spin-button,
    .store-qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .store-qty-input:focus {
        outline: none;
        box-shadow: none;
    }

