/**
 * Phonecards Inventory - Styles dedies
 * Extrait de phonecards_inventory.html pour meilleure maintenabilite
 */

/* === REFERENCES BAR === */
.references-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: rgba(14, 14, 24, 0.5);
    padding: 10px 14px;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ref-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-group:last-child {
    border-right: none;
}

.ref-title {
    font-size: 10px;
    font-weight: bold;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ref-links {
    display: flex;
    gap: 6px;
}

.ref-link {
    font-size: 11px;
    color: #aaa;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    white-space: nowrap;
}

.ref-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

/* === MODE SELECTOR === */
.mode-selector {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.mode-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
}

.mode-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.mode-btn.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
}

/* === GRADIENT BUTTONS === */
.btn-gradient-instagram {
    background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
    border: none;
    color: white;
}

.btn-gradient-ebay {
    background: linear-gradient(135deg, #86A8E7 0%, #91EAE4 100%);
    border: none;
    color: white;
}



/* === INVENTORY GRID === */
.inventory-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

/* === CARD ITEM === */
.card-item {
    background: rgba(14, 14, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    transition: transform var(--transition-spring, 0.6s cubic-bezier(0.22, 1, 0.36, 1)),
        box-shadow var(--transition-smooth, 0.4s ease),
        border-color var(--transition-base, 0.25s ease);
}

.card-item:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* Ratio 4:3 */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.card-image:hover {
    transform: scale(1.05);
}

.card-content {
    padding: 12px;
}

.card-publish-section {
    padding: 8px 12px 12px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-price-input {
    width: 100%;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}

.card-publish-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.card-publish-btn {
    padding: 6px 4px;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.card-publish-btn.ebay {
    background: linear-gradient(135deg, #86A8E7 0%, #91EAE4 100%);
}

.card-publish-btn.ricardo {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.card-publish-btn.anibis {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.card-publish-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.card-publish-btn:active {
    transform: translateY(0);
}

.btn-label {
    flex: 1;
}

.btn-status {
    font-size: 12px;
    font-weight: bold;
}

.btn-status.published {
    color: #4CAF50;
}

.btn-status.published::after {
    content: '\2713';
    /* Checkmark */
}

/* === STATUS BADGES === */
.card-status-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.status-pill {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.pill-v1 {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.pill-v2 {
    background: rgba(56, 239, 125, 0.3);
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.5);
}

/* === META TAGS === */
.card-meta-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.2);
    color: #a8b4f0;
}

.card-filename {
    font-size: 11px;
    color: #aaa;
    word-break: break-all;
}

.section-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.3);
    color: #a8b4f0;
    margin-left: 8px;
}

/* === ADVANCED FILTERS === */
.advanced-filters {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.advanced-filters select {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    min-width: 120px;
}

.advanced-filters select:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.advanced-filters select option {
    background: #1e1e1e;
    color: #fff;
}

.advanced-filters label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-filters-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #aaa;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.apply-filters-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-filters-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.apply-filters-btn:active {
    transform: translateY(0);
}

.apply-filters-btn.has-changes {
    animation: pulse-btn 1.5s infinite;
}

@keyframes pulse-btn {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
    }
}

/* === SKELETON LOADER === */
.card-image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.card-image.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card-image.loaded {
    opacity: 1;
}

/* === MODAL STYLES — base dans style.css, extensions phonecards ici === */

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.modal-description {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-currency {
    font-weight: bold;
    color: #667eea;
}

.price-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.action-btn.ebay {
    background: linear-gradient(135deg, #86A8E7 0%, #91EAE4 100%);
    color: white;
}

.action-btn.ebay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(134, 168, 231, 0.4);
}

.action-btn.ricardo {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.action-btn.ricardo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.action-btn.anibis {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.action-btn.anibis:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* === SCROLL INFINI === */
.scroll-sentinel {
    height: 1px;
    width: 100%;
}

.loading-more {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 10px;
    color: #aaa;
    font-size: 13px;
}

.loading-more .loading-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.end-of-list {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === ERROR MESSAGE === */
.error-msg {
    text-align: center;
    color: #f87171;
    padding: 40px;
    font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .references-bar {
        flex-direction: column;
        gap: 8px;
    }

    .ref-group {
        border-right: none;
        padding-right: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .ref-group:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .advanced-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .advanced-filters>div {
        width: 100%;
    }

    .advanced-filters select {
        width: 100%;
    }

    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* === PRICE BADGES === */
.card-price-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin: 4px 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.card-price-badge:hover {
    opacity: 0.8;
}

.price-validated {
    background: rgba(56, 239, 125, 0.15);
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.3);
    cursor: default;
}

.price-estimated {
    background: rgba(247, 147, 30, 0.15);
    color: #f7931e;
    border: 1px solid rgba(247, 147, 30, 0.3);
}

.price-none {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.price-loading {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* === MARKETPLACE BADGES === */
.mp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.mp-active {
    background: rgba(56, 239, 125, 0.15);
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.mp-active:hover {
    background: rgba(56, 239, 125, 0.25);
}

.mp-inactive {
    background: rgba(255, 255, 255, 0.03);
    color: #555;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === SOLD / REPOST BADGES === */
.card-sold {
    opacity: 0.7;
    border-color: rgba(56, 239, 125, 0.3);
}

.card-sold:hover {
    opacity: 0.9;
}

.sold-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(56, 239, 125, 0.9);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.repost-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(247, 147, 30, 0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.v3-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(167, 139, 250, 0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* === SKELETON LOADING (page entiere) === */
.skeleton-card {
    background: rgba(14, 14, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
}

.skeleton-card .skeleton-image {
    width: 100%;
    padding-top: 75%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-card .skeleton-line {
    height: 12px;
    margin: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-card .skeleton-line.short {
    width: 60%;
}

.skeleton-card .skeleton-tags {
    display: flex;
    gap: 6px;
    margin: 0 12px 12px;
}

.skeleton-card .skeleton-tag {
    width: 50px;
    height: 18px;
    border-radius: 12px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

/* === BATCH ACTIONS === */
.batch-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === BOUTONS COLORES (variantes batch/modal) === */
.btn-color-brand {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
}

.btn-color-warning {
    background: rgba(247, 147, 30, 0.15);
    color: #f7931e;
    border-color: rgba(247, 147, 30, 0.3);
}

.btn-color-success {
    background: rgba(56, 239, 125, 0.15);
    color: #38ef7d;
    border-color: rgba(56, 239, 125, 0.3);
}

.btn-color-gemini {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
}

/* === FILTERS BAR (sticky) === */
.filters-bar {
    position: sticky;
    top: 10px;
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
}

.filters-bar .search-box {
    flex: 1;
}

/* === FILTER ROW === */
.filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === MODAL SECTIONS (blocs enrichissement) === */
.modal-section {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
}

.modal-section--brand {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.modal-section--success {
    background: rgba(56, 239, 125, 0.05);
    border: 1px solid rgba(56, 239, 125, 0.15);
}

.modal-section--warning {
    background: rgba(247, 147, 30, 0.05);
    border: 1px solid rgba(247, 147, 30, 0.15);
}

.modal-section--gemini {
    background: rgba(167, 139, 250, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.modal-section--ocr {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.modal-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-section-label.brand { color: #667eea; }
.modal-section-label.success { color: #38ef7d; }
.modal-section-label.warning { color: #f7931e; }
.modal-section-label.gemini { color: #a78bfa; }

/* === MODAL TAGS ROW === */
.modal-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.modal-tags-sm {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* === MODAL COLLAPSIBLE HEADER === */
.modal-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.modal-collapse-toggle {
    font-size: 12px;
}

.modal-collapse-body {
    margin-top: 10px;
}

/* === MODAL INLINE TEXT === */
.modal-text-muted {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

.modal-text-sm {
    color: #999;
    font-size: 12px;
    line-height: 1.5;
}

.modal-text-code {
    color: #bbb;
    font-size: 13px;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-text-ocr {
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* === PRICING === */
.pricing-value {
    font-size: 22px;
    font-weight: bold;
    color: #f7931e;
}

.pricing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pricing-actions {
    display: flex;
    gap: 8px;
}

.pricing-loading {
    color: #667eea;
    font-size: 12px;
}

.validated-price {
    color: #38ef7d;
    font-weight: bold;
    font-size: 18px;
}

.validated-label {
    color: #666;
    font-size: 12px;
    margin-left: 8px;
}

/* === ACTION BUTTONS (petits, dans modals) === */
.action-btn-sm {
    font-size: 12px;
    padding: 6px 14px;
}

/* === SOLD SECTION === */
.sold-select {
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 12px;
}

.sold-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* === FORM (add card modal) === */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-label {
    color: #aaa;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* === ANALYTICS === */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.analytics-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.analytics-card h4 {
    margin: 0 0 10px;
}

.analytics-card h4.brand { color: #667eea; }
.analytics-card h4.success { color: #38ef7d; }
.analytics-card h4.warning { color: #f7931e; }
.analytics-card h4.gemini { color: #a78bfa; }

.modal-content--wide {
    max-width: 900px;
    width: 95%;
}

/* === TABS BAR === */
.tabs-bar {
    display: flex;
    gap: 4px;
    background: rgba(14, 14, 24, 0.5);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.tab-btn:hover {
    color: #bbb;
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* === MARKETPLACE VIEW === */
.marketplace-view {
    margin-top: 20px;
}

.marketplace-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mp-stat-card {
    flex: 1;
    min-width: 120px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(14, 14, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.mp-stat-value {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.mp-stat-label {
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marketplace-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.marketplace-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.marketplace-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #667eea;
    background: rgba(14, 14, 24, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.marketplace-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.marketplace-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.marketplace-table td {
    padding: 8px 14px;
    vertical-align: middle;
    color: #ccc;
}

.mp-thumb {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.mp-cell-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.mp-cell-listed {
    background: rgba(56, 239, 125, 0.12);
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.25);
    cursor: pointer;
    text-decoration: none;
}

.mp-cell-listed:hover {
    background: rgba(56, 239, 125, 0.22);
}

.mp-cell-none {
    background: rgba(255, 255, 255, 0.03);
    color: #444;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-cell-sold {
    background: rgba(247, 147, 30, 0.12);
    color: #f7931e;
    border: 1px solid rgba(247, 147, 30, 0.25);
}

.mp-cell-available {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.mp-card-name {
    font-size: 12px;
    color: #aaa;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .marketplace-summary {
        flex-direction: column;
    }
    .mp-stat-card {
        min-width: unset;
    }
    .marketplace-table {
        font-size: 11px;
    }
    .marketplace-table td, .marketplace-table thead th {
        padding: 6px 8px;
    }
}

/* === MISC UTILITIES === */
.text-label-sm {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
}

.nowrap {
    white-space: nowrap;
}

.hidden {
    display: none;
}

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 20px; }
.mb-md { margin-bottom: 15px; }
