/* ==========================================
   MARKETPLACE STYLES
   Sistema de Loja do Jogador (Player Marketplace)
   ========================================== */

/* ==========================================
   MARKETPLACE SECTION
   ========================================== */
#marketplace-section {
    padding: 0;
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
    border-radius: 20px;
    border: 3px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    gap: 15px;
}

.marketplace-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(79, 195, 247, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.marketplace-header h2::before {
    content: '🏪';
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(79, 195, 247, 0.6));
}

/* Marketplace Tabs */
.marketplace-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8) 0%, rgba(20, 30, 50, 0.9) 100%);
    border-radius: 20px;
    border: 3px solid rgba(79, 195, 247, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    justify-content: center;
}

.marketplace-tab {
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.9) 0%, rgba(20, 30, 50, 0.95) 100%);
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.marketplace-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.2), transparent);
    transition: left 0.6s ease;
}

.marketplace-tab:hover::before {
    left: 100%;
}

.marketplace-tab:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2) 0%, rgba(33, 150, 243, 0.2) 100%);
    border-color: rgba(79, 195, 247, 0.5);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.3);
}

.marketplace-tab.active {
    background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
    border-color: #4fc3f7;
    color: #fff;
    box-shadow: 0 6px 25px rgba(79, 195, 247, 0.6), 0 0 30px rgba(79, 195, 247, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.marketplace-tab .tab-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.marketplace-tab .tab-count {
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.marketplace-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Marketplace Panels */
.marketplace-panel {
    display: none;
}

.marketplace-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   BROWSE PANEL - FILTERS
   ========================================== */
.marketplace-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8) 0%, rgba(20, 30, 50, 0.9) 100%);
    border-radius: 16px;
    margin-bottom: 25px;
    border: 3px solid rgba(79, 195, 247, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 130px;
    transition: all 0.3s ease;
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: rgba(79, 195, 247, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.filter-group input[type="number"] {
    width: 100px;
}

.price-range-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range-group span {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   MARKETPLACE GRID
   ========================================== */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.6) 0%, rgba(20, 30, 50, 0.7) 100%);
    border-radius: 16px;
    border: 2px solid rgba(79, 195, 247, 0.2);
    min-height: 300px;
}

/* Marketplace Card */
.marketplace-card {
    background: linear-gradient(145deg, rgba(26, 42, 74, 0.95) 0%, rgba(13, 25, 41, 1) 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(255, 255, 255, 0.15);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.marketplace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.marketplace-card:hover::before {
    left: 100%;
}

.marketplace-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(79, 195, 247, 0.3);
    border-color: rgba(79, 195, 247, 0.6);
}

.own-listing-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

/* Marketplace usa layout de 3 zonas do cards.css */
/* card-header, card-body, card-image, card-footer vêm do cards.css */

.marketplace-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.marketplace-card .card-header {
    flex-shrink: 0;
}

.marketplace-card .card-body {
    flex: 1;
    min-height: 0;
}

.marketplace-card .card-image {
    flex: 1;
    min-height: 80px;
}

.marketplace-card .card-footer {
    flex-shrink: 0;
}

.marketplace-card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(79, 195, 247, 0.25) 0%, rgba(79, 195, 247, 0.15) 100%);
    border-top: 2px solid rgba(79, 195, 247, 0.3);
    position: relative;
    z-index: 2;
}

.marketplace-card-price .price-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(79, 195, 247, 0.5));
}

.marketplace-card-price .price-value {
    font-weight: 800;
    font-size: 1.15rem;
    color: #81d4fa;
    text-shadow: 0 2px 8px rgba(79, 195, 247, 0.6);
}

.marketplace-card-seller {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.seller-avatar-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-name-mini {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Rarity border colors for marketplace cards */
.marketplace-card.rarity-comum { border-color: rgba(158, 158, 158, 0.4); }
.marketplace-card.rarity-raro { border-color: rgba(33, 150, 243, 0.4); }
.marketplace-card.rarity-epico { border-color: rgba(156, 39, 176, 0.4); }
.marketplace-card.rarity-lendario { border-color: rgba(255, 152, 0, 0.4); }
.marketplace-card.rarity-mitico { border-color: rgba(233, 30, 99, 0.4); }
.marketplace-card.rarity-transcendente { border-color: rgba(0, 188, 212, 0.4); }
.marketplace-card.rarity-ultra-criatura { border-color: rgba(255, 215, 0, 0.5); }

.marketplace-card.rarity-lendario:hover,
.marketplace-card.rarity-mitico:hover,
.marketplace-card.rarity-transcendente:hover,
.marketplace-card.rarity-ultra-criatura:hover {
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.3);
}

/* ==========================================
   MY LISTINGS PANEL
   ========================================== */
.my-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8) 0%, rgba(20, 30, 50, 0.9) 100%);
    border-radius: 16px;
    border: 3px solid rgba(79, 195, 247, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.my-listings-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.my-listings-count {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3) 0%, rgba(79, 195, 247, 0.2) 100%);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #81d4fa;
    border: 2px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 2px 10px rgba(79, 195, 247, 0.3);
}

.my-listings-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.6) 0%, rgba(20, 30, 50, 0.7) 100%);
    border-radius: 16px;
    border: 2px solid rgba(79, 195, 247, 0.2);
}

.my-listing-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: linear-gradient(145deg, rgba(26, 42, 74, 0.95) 0%, rgba(13, 25, 41, 1) 100%);
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.my-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.1), transparent);
    transition: left 0.6s ease;
}

.my-listing-card:hover::before {
    left: 100%;
}

.my-listing-card:hover {
    border-color: rgba(79, 195, 247, 0.5);
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 195, 247, 0.2);
}

.my-listing-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(79, 195, 247, 0.3);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.my-listing-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.my-listing-info {
    flex: 1;
    min-width: 0;
}

.my-listing-info .listing-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #fff;
}

.my-listing-info .listing-rarity {
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.my-listing-info .listing-stats {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.my-listing-price {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.25) 0%, rgba(79, 195, 247, 0.15) 100%);
    border-radius: 25px;
    border: 2px solid rgba(79, 195, 247, 0.3);
    box-shadow: 0 2px 10px rgba(79, 195, 247, 0.2);
}

.my-listing-price .price-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(79, 195, 247, 0.5));
}

.my-listing-price .price-value {
    font-weight: 800;
    font-size: 1.05rem;
    color: #81d4fa;
    text-shadow: 0 2px 6px rgba(79, 195, 247, 0.5);
}

.my-listing-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    min-width: 90px;
    text-align: center;
}

.my-listing-card .cancel-listing-btn {
    flex-shrink: 0;
}

/* ==========================================
   SELL PANEL
   ========================================== */
.sell-panel-header {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8) 0%, rgba(20, 30, 50, 0.9) 100%);
    border-radius: 16px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sell-panel-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.sell-panel-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.sellable-creatures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.6) 0%, rgba(20, 30, 50, 0.7) 100%);
    border-radius: 16px;
    border: 2px solid rgba(76, 175, 80, 0.2);
    min-height: 300px;
}

.sellable-card {
    background: linear-gradient(145deg, rgba(26, 42, 74, 0.95) 0%, rgba(13, 25, 41, 1) 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sellable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.sellable-card:hover::before {
    left: 100%;
}

.sellable-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
}

/* Sellable cards usam layout de 3 zonas do cards.css */
.sellable-card {
    min-height: 200px;
}

.sellable-card .card-header {
    flex-shrink: 0;
}

.sellable-card .card-body {
    flex: 1;
    min-height: 0;
}

.sellable-card .card-image {
    flex: 1;
    min-height: 70px;
}

.sellable-card .card-footer {
    flex-shrink: 0;
}

.sellable-card .sell-btn {
    margin: 0 10px 10px;
    width: calc(100% - 20px);
    flex-shrink: 0;
}

/* ==========================================
   DETAIL MODAL
   ========================================== */
#marketplace-detail-modal .modal-content {
    max-width: 450px;
}

.listing-detail-header {
    text-align: center;
    margin-bottom: 20px;
}

.listing-creature-card {
    width: 150px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.listing-creature-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.listing-creature-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.listing-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.listing-detail-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.listing-detail-stats .detail-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
}

.listing-detail-stats .stat-icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 5px;
}

.listing-detail-stats .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
}

.listing-detail-stats .stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.listing-detail-stats .detail-stat.attack .stat-value { color: #ff7043; }
.listing-detail-stats .detail-stat.defense .stat-value { color: #42a5f5; }
.listing-detail-stats .detail-stat.power .stat-value { color: #ffeb3b; }

.listing-seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.seller-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.seller-details {
    display: flex;
    flex-direction: column;
}

.seller-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.seller-name {
    font-weight: 600;
    font-size: 1rem;
}

.listing-price-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-icon-large {
    font-size: 2rem;
}

.price-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #81d4fa;
}

.price-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.listing-actions {
    margin-top: 10px;
}

.listing-actions .btn-block {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
}

.listing-actions .btn-buy {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border-color: rgba(76, 175, 80, 0.5);
}

.listing-actions .btn-buy:hover {
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

/* ==========================================
   SELL MODAL
   ========================================== */
#sell-creature-modal .modal-content {
    max-width: 400px;
}

.sell-creature-preview {
    text-align: center;
    margin-bottom: 25px;
}

.sell-creature-card {
    width: 120px;
    height: 160px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.sell-creature-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sell-creature-preview h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sell-creature-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.sell-creature-badges .badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sell-creature-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    font-size: 0.9rem;
}

.sell-price-form {
    margin-bottom: 20px;
}

.sell-price-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 5px 15px;
    transition: border-color 0.3s ease;
}

.price-input-wrapper:focus-within {
    border-color: #4fc3f7;
}

.price-input-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.price-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 10px 0;
    outline: none;
}

.price-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.price-preview {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
}

.price-preview p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.price-preview strong {
    color: #81d4fa;
}

.sell-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.sell-warning span {
    font-size: 1.2rem;
}

.sell-warning p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.sell-modal-actions {
    display: flex;
    gap: 10px;
}

.sell-modal-actions .btn {
    flex: 1;
    padding: 12px 20px;
}

/* ==========================================
   PLAYER SHOP MODAL
   ========================================== */
#player-shop-modal .modal-content {
    max-width: 700px;
}

.player-shop-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-owner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(79, 195, 247, 0.4);
}

.player-shop-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
}

.shop-count {
    background: rgba(79, 195, 247, 0.2);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #81d4fa;
}

.player-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* ==========================================
   EMPTY & ERROR STATES
   ========================================== */
.marketplace-empty,
.marketplace-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
}

.marketplace-empty .empty-icon,
.marketplace-error .empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.6;
}

.marketplace-empty p,
.marketplace-error p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 10px;
}

.marketplace-empty .empty-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .marketplace-tabs {
        justify-content: center;
    }

    .marketplace-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .marketplace-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        flex: 1;
    }

    .marketplace-grid,
    .sellable-creatures-grid,
    .player-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .my-listing-card {
        flex-wrap: wrap;
    }

    .my-listing-date {
        display: none;
    }

    .listing-detail-stats {
        gap: 10px;
    }

    .listing-detail-stats .detail-stat {
        padding: 10px 15px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .marketplace-grid,
    .sellable-creatures-grid {
        grid-template-columns: 1fr 1fr;
    }

    .marketplace-card-image {
        height: 100px;
    }

    .sellable-card-image {
        height: 90px;
    }
}
