/*‖‖‖‖‖ SISTEMA DE MERCADO INVISION ‖‖‖‖‖*/

.market-container {
    padding: 20px 0;
}

.market-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.market-nav-link {
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    font-size: 13px;
    color: #64748b;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.market-nav-link.active {
    background: #2a7de9;
    color: #fff;
    border-color: #2a7de9;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.market-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.market-card-head {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #eee;
}

.market-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-item { background: #2a7de9; }
.badge-char { background: #8b5cf6; }
.badge-acc { background: #f59e0b; }

.market-card-body {
    padding: 20px;
    flex: 1;
}

.market-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    display: block;
}

.market-price-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.market-price {
    font-size: 20px;
    font-weight: 900;
    color: #2ecc71;
}

.market-currency {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.btn-buy {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy:hover { background: #2a7de9; }

/* Modal de Venda */
.sell-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sell-modal {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
}

.sell-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sell-body {
    padding: 30px;
}

.sell-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}
