/* Exchange Panel - Morrhollow Security Terminal Style */
/* Matches Hollowcore Hub V2 design essence: glowing, slick, semi-transparent */
/* Orange/Amber trade theme (vs green for economy, blue for companions) */

:root {
    --ex-gap-xs: 3px;
    --ex-gap-sm: 4px;
    --ex-gap-md: 6px;
    --ex-gap-lg: 8px;
    --ex-pad-xs: 4px;
    --ex-pad-sm: 6px;
    --ex-pad-md: 8px;
    --ex-pad-lg: 12px;

    /* Morrhollow Terminal Colors - Trade theme (orange/amber) */
    --ex-bg-dark: rgba(15, 15, 25, 0.95);
    --ex-bg-darker: rgba(8, 8, 15, 0.98);
    --ex-orange-glow: #fb923c;
    --ex-orange-accent: #f97316;
    --ex-gold-accent: rgba(212, 175, 55, 0.9);
    --ex-gold-border: rgba(212, 175, 55, 0.4);
}

.panel-exchange {
    position: fixed;
    top: 50px;
    left: 10px;
    width: min(1000px, calc(100vw - 20px));
    max-width: 1000px;
    height: calc(100vh - 100px);
    max-height: 700px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    /* Morrhollow-style multi-layer glow shadow (orange trade theme) */
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(251, 146, 60, 0.15),
        0 0 20px rgba(212, 175, 55, 0.1);
    border: 1px solid var(--ex-gold-border);
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    color: #E5E7EB;
    user-select: none;
    background: transparent;
    animation: ex-panel-slide-in 0.3s ease-out;
    margin: 0;
    padding: 0;
}

/* CRITICAL: Remove padding from .panel-content wrapper */
.panel-exchange .panel-content {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Hide the auto-generated .panel-close button */
.panel-exchange .panel-close {
    display: none !important;
}

@keyframes ex-panel-slide-in {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.panel-exchange::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        var(--ex-bg-dark) 0%,
        var(--ex-bg-darker) 50%,
        var(--ex-bg-dark) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* Glowing border pulse animation */
@keyframes ex-border-glow {
    0%, 100% {
        box-shadow:
            0 4px 30px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 40px rgba(251, 146, 60, 0.15),
            0 0 20px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow:
            0 4px 30px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 50px rgba(251, 146, 60, 0.25),
            0 0 30px rgba(212, 175, 55, 0.2);
    }
}

/* Header - Compact Single Row */
.panel-exchange .economy-hub-header {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.98) 100%);
    min-height: 30px;
    max-height: 30px;
    border-bottom: 1px solid var(--ex-gold-border);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(251, 146, 60, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    gap: 8px;
}

.panel-exchange .economy-hub-header h2 {
    font-size: 11px;
    color: var(--ex-gold-accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
    text-shadow:
        0 0 10px rgba(251, 146, 60, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

@keyframes ex-title-pulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(251, 146, 60, 0.3),
            0 1px 2px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow:
            0 0 15px rgba(251, 146, 60, 0.5),
            0 0 5px rgba(212, 175, 55, 0.3),
            0 1px 2px rgba(0, 0, 0, 0.8);
    }
}

.panel-exchange .economy-hub-header .wallet-actions {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* Tabs - Morrhollow Terminal Button Style */
.panel-exchange .economy-hub-tabs {
    display: flex;
    gap: var(--ex-gap-sm);
    padding: var(--ex-pad-sm) var(--ex-pad-sm);
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 100%);
    border-bottom: 1px solid var(--ex-gold-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    min-height: 2.25rem;
}

.panel-exchange .hub-tab {
    flex: 1;
    padding: var(--ex-pad-sm) var(--ex-pad-md);
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.4) 100%);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 4px;
    color: rgba(186, 166, 116, 0.8);
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ex-gap-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Morrhollow sweep effect */
.panel-exchange .hub-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(251, 146, 60, 0.15),
        transparent);
    transition: left 0.5s ease;
}

.panel-exchange .hub-tab:hover {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.5) 0%,
        rgba(51, 65, 85, 0.6) 100%);
    border-color: var(--ex-orange-glow);
    color: #ffffff;
    box-shadow:
        0 0 10px rgba(251, 146, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.panel-exchange .hub-tab:hover::before {
    left: 100%;
}

.panel-exchange .hub-tab.active {
    background: linear-gradient(135deg,
        rgba(251, 146, 60, 0.15) 0%,
        rgba(251, 146, 60, 0.25) 100%);
    border-color: var(--ex-orange-glow);
    color: var(--ex-orange-glow);
    box-shadow:
        0 0 15px rgba(251, 146, 60, 0.4),
        inset 0 0 10px rgba(251, 146, 60, 0.1);
}

/* Glowing active underline */
.panel-exchange .hub-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--ex-orange-glow),
        transparent);
    animation: ex-tab-glow 1.5s ease-in-out infinite;
}

@keyframes ex-tab-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.panel-exchange .tab-icon {
    font-size: 14px;
}

.panel-exchange .tab-text {
    font-size: 9px;
}

/* Body - FIXED HEIGHT, NO SCROLL */
.panel-exchange .economy-hub-body {
    flex: 1;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Header Action Buttons */
.panel-exchange .refresh-btn,
.panel-exchange .close-btn {
    padding: 2px 6px;
    background: transparent;
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 3px;
    color: rgba(186, 166, 116, 0.7);
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.panel-exchange .refresh-btn:hover,
.panel-exchange .close-btn:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: var(--ex-orange-glow);
    color: var(--ex-orange-glow);
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.2);
}

.panel-exchange .refresh-btn.spinning {
    animation: ex-spin 1s linear;
}

@keyframes ex-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== BROWSE TAB - WOW STYLE ===== */

.auction-browse-container {
    display: flex;
    gap: 12px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Left Sidebar */
.browse-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 12px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 100%);
    border-radius: 6px;
}

.browse-sidebar::-webkit-scrollbar {
    width: 4px;
}

.browse-sidebar::-webkit-scrollbar-thumb {
    background: var(--ex-gold-accent);
    border-radius: 2px;
}

/* Filter Sections */
.filter-section {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--ex-gold-border);
    border-radius: 6px;
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ex-gold-border);
}

.filter-icon {
    font-size: 14px;
}

.filter-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--ex-gold-accent);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Category Buttons */
.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.4) 0%,
        rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    color: rgba(229, 231, 235, 0.8);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.category-btn:hover {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 0.6) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    border-color: var(--ex-orange-glow);
    transform: translateX(4px);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg,
        rgba(251, 146, 60, 0.2) 0%,
        rgba(249, 115, 22, 0.3) 100%);
    border-color: var(--ex-orange-glow);
    color: var(--ex-orange-glow);
    box-shadow: 0 0 16px rgba(251, 146, 60, 0.4);
}

.cat-icon {
    font-size: 16px;
}

.cat-name {
    flex: 1;
    font-weight: 600;
}

.cat-count {
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    font-size: 9px;
    color: var(--ex-gold-accent);
    font-weight: 700;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid var(--ex-gold-border);
    border-radius: 4px;
    color: #E5E7EB;
    font-family: 'RemiliaMincho', serif;
    font-size: 11px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--ex-orange-glow);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.3);
}

.search-input::placeholder {
    color: rgba(186, 166, 116, 0.4);
}

/* Advanced Filters */
.advanced-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 9px;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-min-input,
.price-max-input,
.rarity-filter {
    flex: 1;
    padding: 6px 8px;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid var(--ex-gold-border);
    border-radius: 4px;
    color: #E5E7EB;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    outline: none;
}

.range-separator {
    color: var(--ex-gold-accent);
    font-weight: bold;
}

.rarity-filter {
    width: 100%;
}

/* Market Stats Section */
.market-stats-section {
    background: linear-gradient(135deg,
        rgba(20, 184, 166, 0.1) 0%,
        rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(20, 184, 166, 0.3);
}

.market-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 8px;
    text-align: center;
}

.stat-label {
    font-size: 8px;
    color: rgba(186, 166, 116, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: rgba(20, 184, 166, 0.9);
    text-shadow: 0 0 8px rgba(20, 184, 166, 0.4);
}

/* Main Content Area */
.browse-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Toolbar */
.browse-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(90deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--ex-gold-border);
    border-radius: 6px;
    margin-bottom: 12px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-count {
    font-size: 11px;
    color: rgba(229, 231, 235, 0.7);
}

.results-count strong {
    color: var(--ex-orange-glow);
    font-size: 13px;
}

.sort-label {
    font-size: 10px;
    color: rgba(212, 175, 55, 0.8);
    font-weight: 600;
}

.sort-select {
    padding: 6px 10px;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid var(--ex-gold-border);
    border-radius: 4px;
    color: #E5E7EB;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    cursor: pointer;
    outline: none;
}

/* Listings Grid - WoW Card Style */
.auction-listings-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.auction-listings-grid::-webkit-scrollbar {
    width: 8px;
}

.auction-listings-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.auction-listings-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        var(--ex-gold-accent) 0%,
        var(--ex-orange-glow) 100%);
    border-radius: 4px;
}

/* Listing Card - WoW Item Card */
.listing-card {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(15, 23, 42, 0.95) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(251, 146, 60, 0.3);
    border-color: var(--ex-orange-glow);
}

/* Rarity Colors (WoW Style) */
.listing-card.rarity-common { border-color: rgba(157, 157, 157, 0.5); }
.listing-card.rarity-uncommon { border-color: rgba(30, 255, 0, 0.5); }
.listing-card.rarity-rare { border-color: rgba(0, 112, 221, 0.5); }
.listing-card.rarity-epic { border-color: rgba(163, 53, 238, 0.5); }
.listing-card.rarity-legendary { border-color: rgba(255, 128, 0, 0.5); }

.listing-card.rarity-legendary:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(255, 128, 0, 0.5);
}

/* Card Header */
.card-header {
    position: relative;
    padding: 16px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.item-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
}

.item-icon-large {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.stack-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--ex-gold-accent);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.rarity-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.3;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%);
}

.rarity-glow.rarity-legendary {
    background: radial-gradient(circle at center,
        rgba(255, 128, 0, 0.4) 0%,
        transparent 70%);
}

/* Card Body */
.card-body {
    padding: 12px;
}

.item-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.item-name.rarity-common { color: #9d9d9d; }
.item-name.rarity-uncommon { color: #1eff00; }
.item-name.rarity-rare { color: #0070dd; }
.item-name.rarity-epic { color: #a335ee; }
.item-name.rarity-legendary { color: #ff8000; }

.item-meta {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.meta-badge {
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-badge.nft {
    background: linear-gradient(135deg, rgba(255, 128, 0, 0.2), rgba(163, 53, 238, 0.2));
    border-color: rgba(255, 128, 0, 0.5);
    color: #ff8000;
}

.meta-badge.dutch {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
}

/* Price Section */
.price-section {
    text-align: center;
    margin-bottom: 10px;
}

.price-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ex-gold-border);
    border-radius: 4px;
    margin-bottom: 4px;
}

.price-icon {
    font-size: 18px;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ex-orange-glow);
    text-shadow: 0 0 8px rgba(251, 146, 60, 0.4);
}

.price-per-unit {
    font-size: 9px;
    color: rgba(186, 166, 116, 0.6);
    font-style: italic;
}

/* Listing Footer */
.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.time-left {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    font-size: 9px;
    color: rgba(229, 231, 235, 0.7);
}

.time-left.urgent {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    animation: pulse-urgent 1.5s infinite;
}

.time-left.warning {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.time-icon {
    font-size: 10px;
}

.time-text {
    font-weight: 600;
}

.btn-buy-now {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(135deg,
        rgba(251, 146, 60, 0.8) 0%,
        rgba(249, 115, 22, 0.9) 100%);
    border: 1px solid var(--ex-orange-glow);
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
}

.btn-buy-now:hover {
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 1) 0%,
        rgba(234, 88, 12, 1) 100%);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 12px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(186, 166, 116, 0.5);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 12px;
    opacity: 0.7;
}

/* ===== SELL TAB - WOW STYLE ===== */

.auction-sell-container {
    display: flex;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 12px;
    overflow: hidden;
}

/* Left: Inventory Section */
.sell-inventory-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.4) 0%,
        rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid var(--ex-gold-border);
    border-radius: 8px;
    padding: 12px;
}

.sell-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ex-gold-border);
}

.sell-section-header h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--ex-gold-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.btn-refresh-inventory {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--ex-gold-border);
    border-radius: 4px;
    color: var(--ex-gold-accent);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-inventory:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: var(--ex-orange-glow);
    color: var(--ex-orange-glow);
}

/* Inventory Grid */
.sell-inventory-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
}

.sell-inventory-grid::-webkit-scrollbar {
    width: 6px;
}

.sell-inventory-grid::-webkit-scrollbar-thumb {
    background: var(--ex-gold-accent);
    border-radius: 3px;
}

/* Inventory Card */
.inventory-card {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(15, 23, 42, 0.8) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border-color: var(--ex-orange-glow);
}

.inventory-card.selected {
    background: linear-gradient(180deg,
        rgba(251, 146, 60, 0.3) 0%,
        rgba(249, 115, 22, 0.4) 100%);
    border-color: var(--ex-orange-glow);
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.5);
}

/* Rarity borders for inventory */
.inventory-card.rarity-common { border-color: rgba(157, 157, 157, 0.4); }
.inventory-card.rarity-uncommon { border-color: rgba(30, 255, 0, 0.4); }
.inventory-card.rarity-rare { border-color: rgba(0, 112, 221, 0.4); }
.inventory-card.rarity-epic { border-color: rgba(163, 53, 238, 0.4); }
.inventory-card.rarity-legendary { border-color: rgba(255, 128, 0, 0.4); }

.inv-card-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.inv-card-icon {
    font-size: 42px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.inv-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.inv-card-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--ex-gold-accent);
    border-radius: 3px;
    font-size: 8px;
    font-weight: 700;
    color: var(--ex-orange-glow);
}

.inv-card-qty {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--ex-gold-accent);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.inv-card-body {
    text-align: center;
}

.inv-card-name {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.inv-card-name.rarity-common { color: #9d9d9d; }
.inv-card-name.rarity-uncommon { color: #1eff00; }
.inv-card-name.rarity-rare { color: #0070dd; }
.inv-card-name.rarity-epic { color: #a335ee; }
.inv-card-name.rarity-legendary { color: #ff8000; }

.inv-card-meta {
    font-size: 9px;
    color: rgba(186, 166, 116, 0.6);
    text-transform: uppercase;
}

/* Right: Listing Form Section */
.sell-form-section {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--ex-gold-border);
    border-radius: 8px;
    padding: 16px;
    overflow-y: auto;
}

.sell-form-section::-webkit-scrollbar {
    width: 6px;
}

.sell-form-section::-webkit-scrollbar-thumb {
    background: var(--ex-gold-accent);
    border-radius: 3px;
}

/* Empty Form Prompt */
.empty-form-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: rgba(186, 166, 116, 0.7);
}

.prompt-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.prompt-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ex-gold-accent);
    margin-bottom: 8px;
}

.prompt-text {
    font-size: 12px;
    margin-bottom: 24px;
}

.prompt-tips {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ex-gold-border);
    border-radius: 6px;
    padding: 12px;
    text-align: left;
    width: 100%;
}

.tip-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--ex-orange-glow);
    margin-bottom: 8px;
}

.prompt-tips ul {
    margin: 0;
    padding-left: 20px;
}

.prompt-tips li {
    font-size: 10px;
    margin-bottom: 6px;
    color: rgba(229, 231, 235, 0.8);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .panel-exchange {
        width: min(90vw, 800px);
    }

    .auction-browse-container {
        flex-direction: column;
    }

    .browse-sidebar {
        width: 100%;
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .panel-exchange {
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 70px);
    }

    .panel-exchange .tab-text {
        display: none;
    }

    .auction-sell-container {
        flex-direction: column;
    }

    .sell-form-section {
        width: 100%;
    }

    .auction-listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
