.marketplace-wrap {
    color: #fff;
}

/* Bright Cards for better visibility */
.bg-darker {
    background-color: #1a1f2d !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.border-border {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.border-primary-25 {
    border-color: rgba(13, 110, 253, 0.25) !important;
}

.border-border-faint {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(26, 31, 45, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.bg-dark-transparent {
    background: rgba(15, 23, 42, 0.6);
}

/* High Contrast Labels */
.text-white-50, .uppercase, label.form-label, .small.text-white-50 {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    opacity: 1 !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #fff !important;
}

.text-white-80 {
    color: #f8fafc !important;
}

/* Base form contrast fix */
.form-control, .form-select {
    background-color: #1a1f2d !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.form-control:focus, .form-select:focus {
    background-color: #1a1f2d !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.marketplace-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.filters-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Listing Cards */
.listing-card {
    background: #1a1f2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: #0d6efd;
}

.listing-banner {
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid #0d6efd;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(26, 31, 45, 1) 0%, rgba(26, 31, 45, 0) 100%);
}

.listing-card .card-body {
    padding: 1rem;
}

.listing-card .status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.game-icon-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0d6efd;
}

.listing-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.listing-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.seller-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.seller-name {
    font-weight: 600;
    color: #0d6efd;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-reserved { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-completed { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }

/* Product Images & Gallery */
.listing-img-wrapper {
    height: 180px;
    overflow: hidden;
}

.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .listing-img {
    transform: scale(1.1);
}

.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    border-color: #0d6efd !important;
}

.bg-primary-transparent {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.border-primary-50 {
    border-color: rgba(13, 110, 253, 0.5) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Marketplace Guide Styles */
.step-counter {
    width: 32px;
    height: 32px;
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.1);
}

.step-counter.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.x-small {
    font-size: 0.75rem;
}

/* Trust Badges */
.trust-floating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-floating-badge.protected {
    background: rgba(13, 110, 253, 0.8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.trust-floating-badge.official {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Reputation Pills */
.badge-trust-pill {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.badge-trust-pill.basic {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.badge-trust-pill.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-trust-pill.power {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.1);
}

.badge-trust-pill.legendary {
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.1), rgba(234, 179, 8, 0.1));
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
    100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
}

/* Modal Compact Refinements */
#buyModalBody {
    padding: 1.25rem !important;
}

.listing-details-sidebar h6.uppercase {
    font-size: 0.7rem !important;
    margin-bottom: 0.4rem !important;
}

#modalDescription {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem !important;
}

.listing-amount-badge h4 {
    font-size: 1.15rem !important;
}

.server-badge {
    font-size: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.price-box {
    padding: 0.75rem 1rem !important;
    margin-bottom: 1rem !important;
}

.price-box span.text-white-50 {
    font-size: 0.75rem !important;
    text-transform: uppercase;
    font-weight: 700;
}

#modalPrice {
    font-size: 1.25rem !important;
}

#deliveryInfoContainer h6 {
    font-size: 0.7rem !important;
    margin-bottom: 0.4rem !important;
}

#deliveryDetails {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
}

.alert {
    padding: 0.6rem 0.85rem !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.75rem !important;
}

#confirmBuyBtn {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 0.95rem !important;
}

#modalGallery .gallery-thumb-item {
    height: 50px !important;
}

#modalMainImage {
    height: 320px !important;
}

/* Mobile Optimizations - Hardened & Brute-Force Specificity */
@media (max-width: 768px) {
    /* Stop all potential body shift/zoom */
    html, body {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
    }

    /* Force Full Width - Matching PUBG style */
    html body .account-main {
        padding: 0 !important;
        margin: 0 !important;
    }

    html body .account-container {
        display: block !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    html body .account-sidebar {
        display: none !important; /* Hide Sidebar on Mobile for Marketplace to match PUBG */
    }

    html body .account-content {
        padding: 0.75rem !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    html body .marketplace-wrap {
        padding: 0 !important;
    }

    html body .marketplace-header h2 {
        font-size: 1.3rem !important;
        margin-top: 0.5rem !important;
    }

    html body .filters-card .card-body {
        padding: 0.75rem !important;
    }

    /* Modal Brute Force */
    html body .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        height: 100% !important;
    }

    html body .modal-content {
        height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }

    html body #modalMainImage {
        height: 220px !important;
    }

    html body .listing-details-sidebar {
        padding: 1rem !important;
    }

    html body .price-box {
        margin-bottom: 0.75rem !important;
    }

    html body #modalPrice {
        font-size: 1rem !important;
    }

    html body .alert {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.7rem !important;
    }

    html body #confirmBuyBtn {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }
}
